Arduino cruise control for my car

  Рет қаралды 26,251

Carles Albàs

Carles Albàs

Күн бұрын

Пікірлер
@ChrisRid
@ChrisRid 4 жыл бұрын
I was literally trying to figure out how to do this myself! Fantastic video, and very well explained too. Love the custom PCB, that's exactly what I was thinking!
@carlesalbas2844
@carlesalbas2844 4 жыл бұрын
Thanks! I wish the best of luck to your project.
@dasprasanjit_07
@dasprasanjit_07 8 ай бұрын
@@carlesalbas2844 Hey can you please share me the link of the site where you bought this PCB Board ?
@ledzeppelin1212
@ledzeppelin1212 2 жыл бұрын
Very cool video, sir! Thank you for sharing!
@wsip82
@wsip82 Жыл бұрын
Very well done man! I want to do the same in my 2002 xsara picasso, greetings from Poland!
@batterynerd8779
@batterynerd8779 Жыл бұрын
Hi, it would be very interesting to see your code. Did you just do an if loop and if actual speed < setspeed, than throttle 100%? Wouldn’t that be very uncomfortable to drive?
@REVIEW_JUJUR
@REVIEW_JUJUR 8 ай бұрын
*Your car using DrivebyWire, mine still using single direct cable from pedal to throttlebody. Gonna use some servo…*
@jeetsaini143
@jeetsaini143 3 жыл бұрын
Great project sir. 👍
@m.junaidmasoodkhan6722
@m.junaidmasoodkhan6722 Жыл бұрын
Hello, it's very interesting project. Thanks for sharing in detail. Can you please add details of wheel speed sensor and it connection? Secondly, if we connect wheel speed sensor with cruise control how ABS will react? Please comment, thanks
@TDPalioG3queaFiatNaoFez-zf9sg
@TDPalioG3queaFiatNaoFez-zf9sg 5 ай бұрын
boa sou aki do brasil vc ligou no sensor de velocidade??
@ShaunYoung
@ShaunYoung 4 жыл бұрын
Nice neat project, well done. I've been wanting to do something simple like this to my cable operated Corolla.
@carlesalbas2844
@carlesalbas2844 4 жыл бұрын
Thanks! When you say cable operated you mean old-style mechanical cable to the carburator, right?
@piotrpaczuski4060
@piotrpaczuski4060 4 жыл бұрын
@@carlesalbas2844 Not exactly carburettor. They use cables even in modern day cars with fuel injectors. It goes to throttle body. Original cruise control in this solution is just another cable powered by separate module with kind of servo motor or something like that.
@fuadmammadzade1213
@fuadmammadzade1213 3 жыл бұрын
Wow! This man is a legend!
@riouaxel148
@riouaxel148 3 ай бұрын
Nice job ! is it still fonctional 5 years later ? Is it smooth on non flat road ? I notice that all your arduino code do is read the wheel speed every 500ms and adapt the throtle sensor at the same interval. I think you can significantly increase smooth by using a PID regulation , especially when the road begin to climb , with a good PID seting it should instantly put 100% or 0% throtlle when needed. If think of doing the same , but there is no flat lands where i live so i've got to think about that lol
@travishanson166
@travishanson166 3 жыл бұрын
To measure torque just use a map sensor or map and tps. Or map and accelerometers.
@stupa55
@stupa55 3 жыл бұрын
Well done mate :-D Love the project.
@bendavis1215
@bendavis1215 Жыл бұрын
I've been thinking of doing a very similar project for my fiesta, have you considered adding an extra relay for accelerator pick up whilst in cruise mode so you can still accelerate manually above the cruise limit, using the analogue inputs of the arduino
@kavindugilshan
@kavindugilshan 3 жыл бұрын
Lets improve this to adaptive cruise control 😀 Great 👍
@bendavis1215
@bendavis1215 Жыл бұрын
Hell yes!
@andersonmanfredini
@andersonmanfredini 7 ай бұрын
Hello, friend congratulations on the project, I am a student here in Brazil would like to use your scheme, would you like to make available or design of the license plate?
@algebuckina
@algebuckina 4 жыл бұрын
This is amazing, I need this in my life
@STRUTZKOFF
@STRUTZKOFF 2 жыл бұрын
i want to do this but add lidar for adaptive cruise :) thanks for the video
@lilikoctasetyawan
@lilikoctasetyawan 2 жыл бұрын
i want to aplication in march K13 thailand production.. can i use this project this my car?
@bartekpoznan
@bartekpoznan 6 ай бұрын
fantastic! i thing that CANBUS is response for engine speed control :)
@thephysicsflight7841
@thephysicsflight7841 Жыл бұрын
Hey there! Thanks for making and sharing this project with us... it's really full of information... I have a doubt and that is: how many pulses from the speed sensor are considered as one rotation of the wheel in this project...?
@ajaysinhvainsh3269
@ajaysinhvainsh3269 Жыл бұрын
I have some doubts,why u cut lcd wire(grey and orange) ?
@madoo0100
@madoo0100 2 жыл бұрын
thx bro ineed to do it for my car nissan sunny at 2016 is it different
@Vidgester1999
@Vidgester1999 2 жыл бұрын
I'm looking to do my own adaptive cruise and found this video. Is there any reason you couldn't do this with CANBUS?
@m.junaidmasoodkhan6722
@m.junaidmasoodkhan6722 Жыл бұрын
can we take vehicle speed input from OBD2 ? if possible what changes to be required in Arduino program?
@dasprasanjit_07
@dasprasanjit_07 8 ай бұрын
carlesalbas2844 Hey can you please share me the link of the site where you bought this PCB Board ?
@danny117hd
@danny117hd 3 жыл бұрын
You are very ambitious and successful. Five stars. The cons I don't like the location because it makes the project vehicle specific. You need a 3d printer.
@yaudariz5764
@yaudariz5764 2 жыл бұрын
Can i used this march k13? Used sensor speed matic than switch cruise from stering whell?
@chenaotunna4104
@chenaotunna4104 4 жыл бұрын
hi carles thank you for share this project is it possible to lock the present speed like normal cruise control system by use the wheel sensor signal
@carlesalbas2844
@carlesalbas2844 4 жыл бұрын
Yes, it is! One of the two buttons does exactly that.
@caronyvon
@caronyvon 2 жыл бұрын
If i want to make a cruze control based on a gps chip and a step motor to control the pedal itself, does it make sence
@stupa55
@stupa55 2 жыл бұрын
Nice job 👏 I was planning something similar to do with electronic pedal . Sadly due to lack of time the project sits on a shelf :-) Just an idea cause I used in the past a waeco magic speed ms-50 as cruise control and it only uses engine speed (rpm) as a reference signal to hold the speed . It also detected if you go on a slope due to ram drops and accelerates the car or it shut down if the drop was to significantly due to wrong gear.
@cipry1010
@cipry1010 4 жыл бұрын
well done. nice project. keep going
@antonioyip6673
@antonioyip6673 4 жыл бұрын
Great work, Carles! Why the wheel sensor signal need a comparator LM339? If I assume it is 12V, would voltage divider do the same? What voltage is the signal?
@carlesalbas2844
@carlesalbas2844 4 жыл бұрын
Hi! Thanks! Let me explain. The output of the wheel sensor is a square wave, the frequency of which is proportional to the speed. The high state of the square wave is 1v (not 12v). Therefore, this 0-1v square wave must be converted into a 0-5v square wave than can be fed into the digital input of the arduino. The comparator compares the 0-1v of the input pulses with a reference of around 0.8v and uses the difference to drive an open collector output, which together with the input pullup resistor of the arduino creates the 0-5v wave needed.
@aly21xxx
@aly21xxx Жыл бұрын
Why not use the ecu speed signal?
@danb2767
@danb2767 3 жыл бұрын
Good work! Have you found a way to alert the controller for disturbances like uphills and downhills? Im into building a generator, based upon cruise control (which also will face the disturbanceproblem). So I will look at your code and analyse it for curiosity. Thank you for posting.
@carlesalbas2844
@carlesalbas2844 3 жыл бұрын
Not really, it would be useful to have access to the engine torque as well to better anticipate to changes in slope. This cruise control is only based on speed. The controller only increases the throttle after the car has lost speed.
@eraydagci
@eraydagci 3 жыл бұрын
hi, this circuit is for servo. Can it be made servo controlled for wired carburetors?
@AloknandRavishankar
@AloknandRavishankar Жыл бұрын
Hi. Have you tried doing this using speed information from OBD? We can also read the break pedal value from OBD
@contactmsr
@contactmsr 8 ай бұрын
Hye ! you got it working ? can we join ?
@wsip82
@wsip82 Жыл бұрын
Hello, can you send me the program? Greetings!
@roybm3124
@roybm3124 4 жыл бұрын
Great project, do you have the idea adding radar for adaptive cruisecontrol?
@carlesalbas2844
@carlesalbas2844 4 жыл бұрын
Hi! I hadn't thought about doing it but it would certainly be interesting. Maybe when I have some free time I'll get to it.
@virgi8
@virgi8 4 жыл бұрын
hello , so nice project , would like for old school car create such ( with cablle and mechanical injection pump , similar as carb) , can have vacum actionner and would have only to drive a 12 volt solenoid for drive it , my car is able to have a hall speed sensor in cable giving 8 5 volts tops by weel rotation = nearly 1 meter = 8 tops ....
@willmv549
@willmv549 4 жыл бұрын
Nice job! I want to read the speed of the wheels, but the sensor is Variable Reluctance, is it possible with the lm339?
@carlesalbas2844
@carlesalbas2844 4 жыл бұрын
Hi, I'm not sure. I don't even know which kind of sensor I have. I employed a purely empirical method. I just tapped the sensor with an oscilloscope, accelerated the car and looked at which kind of signal it gave.
@amitkadamak
@amitkadamak 4 жыл бұрын
@@carlesalbas2844 i have same problem not getting correct speed data / Reading , it jumpes frequently, not stable how to solve it,
@Hozaltay
@Hozaltay 2 жыл бұрын
Perfect project!
@ayieeKevinMitnick
@ayieeKevinMitnick 4 жыл бұрын
Maybe you just can read rpm from ecu for torque
@mariuus1724
@mariuus1724 3 жыл бұрын
Buenas trabajo buenisimo, estoy interesado en el proyecto, nada mas ver el video he reconocido rapidamente que es la A-2 autovia que recorro cada dia desde bcn hasta el bruc, me gustaria aplicar en un peugeot 206 del 1998 no se como sacar la velocidad de mi coche
@carlesalbas2844
@carlesalbas2844 3 жыл бұрын
Hola! En efecto, es la A-2. Para sacar la velocidad del coche tienes que mirar en el manual de servicio qué sensores tiene y dónde, y estar preparado a desmontar medio coche para llegar al cable y cortarlo para hacer un empalme. En mi caso no fue fácil. Si tu coche tiene bus CAN puedes coger un ESP32 por ejemplo y sacar la velocidad de allí. Si tuviera que volver a hacer el proyecto de nuevo seguramente lo haría así.
@amitkadamak
@amitkadamak 3 жыл бұрын
@@carlesalbas2844 pls.share the codes for ESP32 bCoz getting proper car speed data is very difficult. If you are serious about it then please share the codes for ESP32 , (without proper seed data project is non of use, I have made it but it is useless without speed data) Pls reply if possible.
@StanleyGxG
@StanleyGxG 3 жыл бұрын
Hi, great project, i already start doing mine , got board uno and lcd connected so far, and sketch loaded. I have two questions ,if u can help me please. 1 it is possible to get wheel speed signal from gearbox speed sensor (ecu pin)? 2. how to convert to mph? Thanks.
@stopthephilosophicalzombie9017
@stopthephilosophicalzombie9017 3 жыл бұрын
Did you figure it out?
@carlesalbas2844
@carlesalbas2844 3 жыл бұрын
Hi! You should look at the schematics for your car and check which sensors it has. If this gearbox sensor is before the gearbox, it'll give you only the RPM of the engine, which can be converted to speed if you know the ratio and the gear. The manufacturer's documentation probably won't tell you what's the output of the sensor. I connected an oscilloscope to the sensor, accelerated and observed what happened. However, if I had to do this project again I probably would use an ESP32 and I'd get the speed directly from the CAN bus.
@stopthephilosophicalzombie9017
@stopthephilosophicalzombie9017 3 жыл бұрын
@@carlesalbas2844 I honestly worry that people who can't figure out basic questions like this are going to kill themselves but then I realize they probably will give up before connecting anything to the car.
@amitkadamak
@amitkadamak 3 жыл бұрын
@@carlesalbas2844 if you have free time pls. Do it using CAN bus speed data. Because I have tried it but failed. I have made your project and using it. Only speed data create problem (speed signal is not stables) any idea how to solve it.
@iliaslolis1769
@iliaslolis1769 3 жыл бұрын
Hey, I believe this is a Nissan Micra. I have the exact same car! Can you describe from which place did you take the brake and accelerator signals? From the pedal connector or from somewhere else? Cool implementation btw!
@carlesalbas2844
@carlesalbas2844 3 жыл бұрын
Hi! I cut the accelerator pedal sensor cable, not far from the pedal itself. I wouldn't recommend to do that in a new or expensive car that you might wish to sell some day. For the break sensor I just connected a second cable to the connector, as the break just needs to be detected, but not overriden.
@mattbush315
@mattbush315 5 жыл бұрын
Nice work. What program is the schematic file (.sch) intended to be opened with?
@carlesalbas2844
@carlesalbas2844 5 жыл бұрын
Thanks! The schematic was made with KiCad. I don't know whether other programs can open the file as well. I just uploaded the schematic in pdf format so it's easier to see.
@amitkadamak
@amitkadamak 4 жыл бұрын
I have a question which potentiometer you used. Can you share model number
@amitkadamak
@amitkadamak 4 жыл бұрын
Get it solved by rotary encoder
@sarath707
@sarath707 4 жыл бұрын
Today afternoon I was thinking about to design this exact circuit with this exact idea by using Adruino board. I was searching for the same now and found the same. Congrats dear man.👍👍👍. I dint know how to make these additional PCBs even though I am from an electronics background. Could you explain this in detail please for manufacturing it as DIY product, please? For Eg: how to make the base board from the schematic, etc.
@carlesalbas2844
@carlesalbas2844 4 жыл бұрын
Hi. I think that nowadays it doesn't make sense to make DIY boards. It's much cheaper and easier to get it manufactured professionally. I sent the schematic to jlcpcb (there are other companies as well), it only costed around 20€, shipping included, and took less than a week all the way from China to Spain. Just the products you'd need to make it yourself are more expensive, and the quality would be much worse. Best of luck with your project!
@sarath707
@sarath707 4 жыл бұрын
@@carlesalbas2844 Thank for your reply. I will try to do the same.
@amitkadamak
@amitkadamak 4 жыл бұрын
Sarth , Is your project completed. Can you share me some details like, how to get speed senser data, connection to the accelerator etc. my mail ID amitkadamak1@gmail.com
@MePeterNicholls
@MePeterNicholls 2 жыл бұрын
I thought you’d be doing this over CANBUS etc, but your hacking direct signals!
@BarcelonaAustinA35
@BarcelonaAustinA35 5 жыл бұрын
Great job
@pawelslomski4706
@pawelslomski4706 5 жыл бұрын
Hello! I really like your project. Could you add comments to the Arduino code? In another car, there will be a different voltage on the gas pedal. Also, it would be useful to be able to adapt the program to acceleration parameters.
@carlesalbas2844
@carlesalbas2844 5 жыл бұрын
Hi! Thanks for the interest. I didn't put comments because it's a small program and at that point I had no sight of sharing it. I have put a few now, but take into account that the whole thing is very fine tuned to my particular car. Other cars might have different voltages, different acceleration needs, a different number of sensors or maybe a different sensor technology altogether. You should take the code and the whole project as a guidance, but not something you could just plug into another car. Furthermore, if I had to do it now, I probably would have chosen a CAN bus capable microcontroller and read the speed and engine torque from there. I think it would be a more responsive cruise control if it had access to other variables rather than only the speed. In my project the car has to first lose speed before the cruise control realizes that it should apply more throttle.
@m.junaidmasoodkhan6722
@m.junaidmasoodkhan6722 Жыл бұрын
Please send PCB drawing
@carlosbah4623
@carlosbah4623 3 жыл бұрын
Impresionante
@yaudariz5764
@yaudariz5764 2 жыл бұрын
Nice…
@micha293
@micha293 5 жыл бұрын
Great job! Would you give me the code on private messenge? I also build cruise control for my car.
@carlesalbas2844
@carlesalbas2844 5 жыл бұрын
Thanks! I've uploaded the program and the schematic to a Github repo. It's on the video description. Feel free to use it as you wish!
@micha293
@micha293 5 жыл бұрын
@@carlesalbas2844 Thanks Carles for your kindless, greetings form Poland! :-)
@benhurrodriguez1807
@benhurrodriguez1807 3 жыл бұрын
But this method is extremely risky, one wrong mock sensor input value then whole system collapses, better to integrate with relays using in market cruise control module.
@stopthephilosophicalzombie9017
@stopthephilosophicalzombie9017 3 жыл бұрын
Yeah I have my own doubts about "crashing" the ECU with something like this. I would think it is definitely risky.
@carlesalbas2844
@carlesalbas2844 3 жыл бұрын
My board uses a relay to override the accelerator pedal. If the board crashes or the power is disconnected the car can function perfectly well on manual mode. If the sensor signal were to go wrong I can just power down the cruise control and drive normally. I designed it with that in mind.
@carlesalbas2844
@carlesalbas2844 3 жыл бұрын
If you send a wrong signal to the ECU then sure it crashes and the check engine light turns on. However, I installed the cruise control more than two years ago and hasn't failed a single time.
@stopthephilosophicalzombie9017
@stopthephilosophicalzombie9017 3 жыл бұрын
@@carlesalbas2844 I trust that you know what you are doing. You are a smart cookie. : )
@amorosarts
@amorosarts 5 жыл бұрын
Hahahahahahaha em pixo tiu, ets un crack
@funfactsmotivation6757
@funfactsmotivation6757 4 жыл бұрын
Hey Man I am from India I need This Project for my Personal Use Can you Please Teach Me For my Carburetor Bike. Thats My Request Please.
@carlesalbas2844
@carlesalbas2844 4 жыл бұрын
You want to put cruise control to a motorcycle? Looks a bit dangerous to me. In any case I guess that if it's a carburetor bike you'll need some sort of servo to physically move the cable. My car has electronic fuel injection so it's just about supplying the proper voltage to the ecu.
@funfactsmotivation6757
@funfactsmotivation6757 4 жыл бұрын
@@carlesalbas2844 ok man thanks for reply let i will learn some basic for made this
@Liam-ey2gs
@Liam-ey2gs 5 жыл бұрын
There is a problem with your design. By providing the ECU with an altered signal from the throttle position sensor, the ECU will add fuel, but without the throttle actually moving the airflow into the engine will not match the additional fuel, therefore the engine will have extremely rich air fuel lambda values. The correct way to do it would be to physically actuate the throttle using a stepper motor or drive by wire system, unless the vehicle is already fitted with a drive by wire system in which case you can alter its input signal using the arduino.
@carlesalbas2844
@carlesalbas2844 5 жыл бұрын
Hi! Thanks for the interest, but I think you didn't fully understand how this works, or I didn't explain myself properly. My car is indeed drive by wire as far as the throttle is concerned. The throttle pedal is a potentiometer that sends a signal to the ECU. When the cruise control is activated the arduino overrides the pedal input and sends its own signal to the ECU. As far as the car is concerned, it's exactly the same as the pedal being pushed and released. I am not touching the throttle position sensor, but the accelerator pedal position sensor. Maybe here is where the confusion lies.
@Liam-ey2gs
@Liam-ey2gs 5 жыл бұрын
Carles Albàs thank you for your response!
@stopthephilosophicalzombie9017
@stopthephilosophicalzombie9017 3 жыл бұрын
@@Liam-ey2gs I had the same confusion.
@ipunkkurabalap9958
@ipunkkurabalap9958 5 жыл бұрын
Interested 👍👍👍 Anyway can I have your email?? Because I really want to make my vehicle able to use the cruise control system Thanks before
@carlesalbas2844
@carlesalbas2844 5 жыл бұрын
Hi. I've uploaded the program and the schematic to a Github repo. In case you have further inquiries I'm going to create an email account that I'll make public.
@amitkadamak
@amitkadamak 4 жыл бұрын
@@carlesalbas2844 How to contact you
@deezvanz6559
@deezvanz6559 3 жыл бұрын
Look Comma.ai
@deezvanz6559
@deezvanz6559 3 жыл бұрын
github.com/Lukilink/openpilot
@HeinrichG-V12
@HeinrichG-V12 3 жыл бұрын
Bye bye safety.... It is most ugly project, which I've ever seen... Here is nothing automotive like...
@testford307
@testford307 2 жыл бұрын
Hello, I have a Ford Focus C-MAX, 2004, and I like your project very much, I would like to implement it in my car. May I know your email address to talk? Thanks!
How a Cruise Control Actuator Works
5:10
speedkar99
Рет қаралды 92 М.
Sniffing any CAN-bus on the cheap(5$) with Arduino, Tested on an VW Polo 9N3
21:57
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН
“Don’t stop the chances.”
00:44
ISSEI / いっせい
Рет қаралды 62 МЛН
BAYGUYSTAN | 1 СЕРИЯ | bayGUYS
36:55
bayGUYS
Рет қаралды 1,9 МЛН
Cruise Control - Explained
4:11
Engineering Explained
Рет қаралды 209 М.
Make your own GPS SMS Security Tracking System
8:35
GreatScott!
Рет қаралды 1,5 МЛН
Arduino Tutorial: Tachometer (RPM Counter)
3:54
InterlinkKnight
Рет қаралды 286 М.
How to read the CanBus in any car. (Can Bus) Part #1
17:03
South West EV UK
Рет қаралды 408 М.
Car Diagnostics With A Raspberry PI  - DIY Smart Car (Part 3)
6:28
How to hack your car | Part 1 - The basics of the CAN bus
16:57
Adam Varga
Рет қаралды 319 М.
This HONESTLY SCARES ME!!  5 WATT Akk VTX
8:04
UAVfutures
Рет қаралды 10 М.
Dakota Digital Cruise Control Installation CRS-2000/CRS-3000
15:17
DakotaDigitalTV
Рет қаралды 131 М.
REAL or FAKE? #beatbox #tiktok
01:03
BeatboxJCOP
Рет қаралды 18 МЛН