Arduino cruise control for my car

Поділитися
Вставка
  • Опубліковано 29 сер 2024

КОМЕНТАРІ • 108

  • @ChrisRid
    @ChrisRid 3 роки тому +11

    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  3 роки тому +3

      Thanks! I wish the best of luck to your project.

    • @dasprasanjit_07
      @dasprasanjit_07 4 місяці тому

      @@carlesalbas2844 Hey can you please share me the link of the site where you bought this PCB Board ?

  • @ledzeppelin1212
    @ledzeppelin1212 2 роки тому +1

    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!

  • @bartekpoznan
    @bartekpoznan 2 місяці тому

    fantastic! i thing that CANBUS is response for engine speed control :)

  • @fuadmammadzade1213
    @fuadmammadzade1213 2 роки тому

    Wow! This man is a legend!

  • @kavindugilshan
    @kavindugilshan 3 роки тому +3

    Lets improve this to adaptive cruise control 😀
    Great 👍

  • @jeetsaini143
    @jeetsaini143 2 роки тому +1

    Great project sir. 👍

  • @algebuckina
    @algebuckina 4 роки тому

    This is amazing, I need this in my life

  • @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 роки тому +1

      @@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.

  • @danny117hd
    @danny117hd 3 роки тому +1

    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.

  • @travishanson166
    @travishanson166 2 роки тому

    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.

  • @batterynerd8779
    @batterynerd8779 Рік тому +1

    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?

  • @Hozaltay
    @Hozaltay 2 роки тому

    Perfect project!

  • @REVIEW_JUJUR
    @REVIEW_JUJUR 4 місяці тому

    *Your car using DrivebyWire, mine still using single direct cable from pedal to throttlebody. Gonna use some servo…*

  • @STRUTZKOFF
    @STRUTZKOFF 2 роки тому

    i want to do this but add lidar for adaptive cruise :) thanks for the video

  • @cipry1010
    @cipry1010 3 роки тому

    well done. nice project. keep going

  • @stupa55
    @stupa55 Рік тому

    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.

  • @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...?

  • @BarcelonaAustinA35
    @BarcelonaAustinA35 4 роки тому

    Great job

  • @yaudariz5764
    @yaudariz5764 Рік тому

    Nice…

  • @andersonmanfredini
    @andersonmanfredini 3 місяці тому

    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?

  • @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 роки тому +2

      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 3 роки тому

      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

  • @ajaysinhvainsh3269
    @ajaysinhvainsh3269 11 місяців тому

    I have some doubts,why u cut lcd wire(grey and orange) ?

  • @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 ....

  • @romxxxromxxx
    @romxxxromxxx 3 роки тому

    Maybe add to the code, that if car is on cruise control and accelerator pedal is pressed more than arduino giving, then it will release the relay...

  • @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

  • @carlosbah4623
    @carlosbah4623 3 роки тому

    Impresionante

  • @TDPalioG3queaFiatNaoFez-zf9sg
    @TDPalioG3queaFiatNaoFez-zf9sg Місяць тому

    boa sou aki do brasil vc ligou no sensor de velocidade??

  • @mariuus1724
    @mariuus1724 3 роки тому +1

    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 2 роки тому

      @@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.

  • @MePeterNicholls
    @MePeterNicholls 2 роки тому

    I thought you’d be doing this over CANBUS etc, but your hacking direct signals!

  • @dasprasanjit_07
    @dasprasanjit_07 4 місяці тому

    carlesalbas2844 Hey can you please share me the link of the site where you bought this PCB Board ?

  • @ayieeKevinMitnick
    @ayieeKevinMitnick 4 роки тому

    Maybe you just can read rpm from ecu for torque

  • @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

  • @antonioyip6673
    @antonioyip6673 3 роки тому

    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  3 роки тому +1

      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?

  • @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.

  • @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?

  • @madoo0100
    @madoo0100 Рік тому

    thx bro ineed to do it for my car nissan sunny at 2016 is it different

  • @mattbush315
    @mattbush315 4 роки тому

    Nice work. What program is the schematic file (.sch) intended to be opened with?

    • @carlesalbas2844
      @carlesalbas2844  4 роки тому +2

      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.

  • @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 роки тому +1

      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.

  • @yaudariz5764
    @yaudariz5764 Рік тому

    Can i used this march k13? Used sensor speed matic than switch cruise from stering whell?

  • @lilikoctasetyawan
    @lilikoctasetyawan Рік тому

    i want to aplication in march K13 thailand production.. can i use this project this my car?

  • @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

  • @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 4 місяці тому

      Hye ! you got it working ? can we join ?

  • @roybm3124
    @roybm3124 4 роки тому

    Great project, do you have the idea adding radar for adaptive cruisecontrol?

    • @carlesalbas2844
      @carlesalbas2844  4 роки тому +1

      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.

  • @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  3 роки тому

      Yes, it is! One of the two buttons does exactly that.

  • @eraydagci
    @eraydagci 3 роки тому

    hi, this circuit is for servo. Can it be made servo controlled for wired carburetors?

  • @willmv549
    @willmv549 3 роки тому

    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  3 роки тому +1

      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 3 роки тому

      @@carlesalbas2844 i have same problem not getting correct speed data / Reading , it jumpes frequently, not stable how to solve it,

  • @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 роки тому +2

      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.

  • @m.junaidmasoodkhan6722
    @m.junaidmasoodkhan6722 Рік тому

    can we take vehicle speed input from OBD2 ? if possible what changes to be required in Arduino program?

  • @pawelslomski4706
    @pawelslomski4706 4 роки тому

    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  4 роки тому

      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.

  • @wsip82
    @wsip82 Рік тому

    Hello, can you send me the program? Greetings!

  • @amorosarts
    @amorosarts 4 роки тому

    Hahahahahahaha em pixo tiu, ets un crack

  • @amitkadamak
    @amitkadamak 3 роки тому

    I have a question which potentiometer you used.
    Can you share model number

    • @amitkadamak
      @amitkadamak 3 роки тому +1

      Get it solved by rotary encoder

  • @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. : )

  • @Liam-ey2gs
    @Liam-ey2gs 4 роки тому

    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  4 роки тому +6

      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 4 роки тому

      Carles Albàs thank you for your response!

    • @stopthephilosophicalzombie9017
      @stopthephilosophicalzombie9017 3 роки тому +1

      @@Liam-ey2gs I had the same confusion.

  • @micha293
    @micha293 4 роки тому

    Great job!
    Would you give me the code on private messenge? I also build cruise control for my car.

    • @carlesalbas2844
      @carlesalbas2844  4 роки тому +2

      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 4 роки тому

      @@carlesalbas2844 Thanks Carles for your kindless, greetings form Poland! :-)

  • @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

  • @deezvanz6559
    @deezvanz6559 3 роки тому

    Look Comma.ai

  • @ipunkkurabalap9958
    @ipunkkurabalap9958 4 роки тому

    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  4 роки тому

      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 3 роки тому

      @@carlesalbas2844 How to contact you

  • @HeinrichG-V12
    @HeinrichG-V12 2 роки тому

    Bye bye safety.... It is most ugly project, which I've ever seen... Here is nothing automotive like...

  • @m.junaidmasoodkhan6722
    @m.junaidmasoodkhan6722 Рік тому

    Please send PCB drawing

  • @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!