TUTORIAL: Build your own car onboard trip computer with Arduino - 5. Speedometer and Odometer

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 ก.ย. 2024
  • Hi! In this part we will build speedometer and odometer for our cars. As you will see, we implement speedometer, odometer, average speed per run and max speed per run. We will measure speed in km/h and distance in kilometers. Here you will find all needed steps to complete this project with Arduino. I suggest you to take a look on previous parts, because there you will find some informations useful in this part of tutorial. If you are interested, how it will look, you can find it on my chanel.
    Code to start this tutorial: pastie.org/1063...
    Do not hesitate to leave a comment, if you have question. Please subscribe and like this video. Thanks for all!!!

ความคิดเห็น • 45

  • @burningbeard
    @burningbeard 2 ปีที่แล้ว

    Couple years later (a lot years later), i see your video. I have electric wheelchair and i want to make the same project like yours in raspberry pi pico with micropython. Looks a little bit hard but i try it by your tutorial. Thanks for this uploading!

  • @catalindeac1275
    @catalindeac1275 8 ปีที่แล้ว +1

    Hello, you made it now so clear, thank you, but please send us the like with the code because the old one is not working anymore.

  • @s-nickos
    @s-nickos 8 ปีที่แล้ว

    Hi, congrats for the so informative tutorials!!!! You helped me so much
    I also have a Honda Civic MB1 with d16y3 engine and I was thinking to build a trip computer like the one you build for a long time now (I must say years) but I could not find the time. Anyway, now I am on it.
    I tested the vss sensor pulses and the signal is 0-5V. ( I also see it at the service manual)
    So no need for the 7805 for the vss pulses count. I tested it yesterday and all went well.
    But this is for the specific vehicle.
    The signal from injectors you surely need a 7805 (or a 5.1V zener).
    Also, I think is better for the accuracy to define the variables avg_speed and all_speed_values as volatile double
    and the speed will be the round() of the calculation you have made inside the ISR of the timer1.
    Then we print the round(avg_speed) to get good results there too.

  • @secondnikos
    @secondnikos 8 ปีที่แล้ว

    Waiting for the next part. Thank you very much!!

    • @grzeeezzz6633
      @grzeeezzz6633  8 ปีที่แล้ว +1

      +Nikos D I'm working on it, I need some time still. It will be about fuel consumption calculation.

  • @mk.widianto6122
    @mk.widianto6122 6 ปีที่แล้ว

    Cool project's bro! Hahaha.. thanks..

  • @franciscocasas2082
    @franciscocasas2082 7 ปีที่แล้ว +1

    Can you upload the code to another host (example github), because pastie has been having issues.
    Regards

  • @georgeadel5152
    @georgeadel5152 7 ปีที่แล้ว

    Hi , i have a hard time following your video in programming the arduino especially in the interrupt part , could u send me pictures of the whole arduino program?

  • @jacekeugeniuszlisiecki5056
    @jacekeugeniuszlisiecki5056 7 ปีที่แล้ว

    Very helpful tutorial! But I have request. Can You reupload a code? Thank You very much :)

  • @JustLukaz
    @JustLukaz 6 ปีที่แล้ว

    Hi is it possible to contact you any how.? I followed everything and have few questions. Calibrating part was a bit strange at low speeds it counted very fast pulses. Then i hit highway resseted arduino and driven 10 km pulse count was around 300.000 that was way more than you get. I tried to use that number and now it works like this: 10km/h on speedometer is 10km/h on arduino 20-30 40-60 60-90 after that there is more fun after hiting 70 is like 10km/h on arduino 80-15 120-30.

  • @sawi23s
    @sawi23s 6 ปีที่แล้ว

    Hejka. Jesteś jeszcze na YT? mogę prosić o jakiś kontakt? Super poradnik ale mam kilka problemów :/

  • @adampiccz
    @adampiccz 8 ปีที่แล้ว +1

    Hi, I tried make speedometer following this tutorial, but I have problem. When I pressed brake or switch the lights it make me lower voltage in system and arduino count it like a pulse. Have you an idea whan can I do with that?

    • @ziomanius
      @ziomanius 7 ปีที่แล้ว

      I have the same problem :/

    • @adampiccz
      @adampiccz 7 ปีที่แล้ว

      try this one postimg.org/image/6rgrml773/
      It`s functional for me

    • @franciscocasas2082
      @franciscocasas2082 7 ปีที่แล้ว

      @ Adam Petráč
      Can you share the code using another hosting because pastie has been having issues.

  • @abuhafss1
    @abuhafss1 3 ปีที่แล้ว

    Hi, the code link is not working.

  • @matg2002
    @matg2002 8 ปีที่แล้ว

    very nice project !
    i will definitely make my own copy ;)
    i have few questions:
    1. what about average speed counting when standing still in traffic? does is count time and reduce average speed? i would like to make it real average speed from whole trip including stops with engine running.
    2. is data stored in memory after turning car off? i mean, is it possible to calculate average speed and fuel consumption for the longer time, like week or month, or infinite? ;)

    • @grzeeezzz6633
      @grzeeezzz6633  8 ปีที่แล้ว

      +matg2002 Hi! Thanks for interesting :) 1. I decided to not count speed value = 0 (while standing). Of course you can count also 0 speed values while standing. You have to go to around 5:20 of video and look on the piece of code on the top. You will see avg_speed_divider variable under if(speed>3) statement. You have to just move avg_speed_divider from IF statement directly below speed calculation (speed = pulse_......). It will give you result with values of speed = 0.2. Actually I do not have completed this part of code. Of course some values will be stored in EEPROM, because is it necessary to make trip computer fully useful. I will be working on it soon.

    • @grzeeezzz6633
      @grzeeezzz6633  8 ปีที่แล้ว

      +grzeeezzz Don't forget to move avgSpeed(); function calling directly under recently moved avg_speed_divider out of IF(speed>3) statemet.

    • @s-nickos
      @s-nickos 8 ปีที่แล้ว

      +matg2002 In other words erase the if (speed>3) and leave what is in the if statement untouched.

  • @prasadana2
    @prasadana2 5 ปีที่แล้ว

    Keen on doing my own any way of getting the code thanks..

  • @MubeenMalik1982
    @MubeenMalik1982 3 ปีที่แล้ว

    Link is not working can you upload code else where thanks ❤️

  • @moti670420
    @moti670420 7 ปีที่แล้ว

    Hi, I have the exact same car as yours. What do you think can I use the data you gave here, or I have to make the all procedure? Thanx!

    • @grzeeezzz6633
      @grzeeezzz6633  7 ปีที่แล้ว +1

      If the engine is D14A8, I think you can.

    • @moti670420
      @moti670420 7 ปีที่แล้ว

      Many Thanx!

  • @ziomanius
    @ziomanius 7 ปีที่แล้ว

    This tutorial have many bugs... Can you add your working program?

  • @horeampesbukan
    @horeampesbukan 2 ปีที่แล้ว +1

    Link is not yet available

    • @horeampesbukan
      @horeampesbukan 2 ปีที่แล้ว

      Bolehkah saya membuat seperti ini

  • @yezok01
    @yezok01 8 ปีที่แล้ว

    I wold like to try to build this and I have followed this to the best of
    my abilities and it is still all Greek to me. Give me a multi meter,
    schematic and a soldering iron and i can fix or build just about any
    thing. but coding is another thing. I have tried the tutorial and it is a
    no go I am using the uno with I2C display and the proper
    LiquidCrystal_I2C.h library

    • @grzeeezzz6633
      @grzeeezzz6633  8 ปีที่แล้ว

      +Nerraw Yezok This tutorial is based on LCD with hd44780 controller. In this case I cannot advice as I do not have one.

  • @jakesanchez3552
    @jakesanchez3552 6 ปีที่แล้ว

    Not having any luck as well with the link

  • @CovidDisaster
    @CovidDisaster 5 ปีที่แล้ว

    Hello, please re up the code

  • @grzeeezzz6633
    @grzeeezzz6633  8 ปีที่แล้ว

    If you know any good site to share a bigger piece of code for a long time, please leave me a comment :)

    • @pablob5483
      @pablob5483 8 ปีที่แล้ว

      +grzeeezzz github is the best. Thanks for your work, do you think you can help me a bit? We need and odometer for a rally car, build with an arduino mega. Would your code be exportable to Arduino mega? thanks

  • @prasadana2
    @prasadana2 5 ปีที่แล้ว

    ??

  • @user-td8ej8rn9y
    @user-td8ej8rn9y 7 ปีที่แล้ว +1

    Nice project!
    Could You reupload a source code? :)

  • @cazphoenix
    @cazphoenix 8 ปีที่แล้ว

    do you tested a low speed like 20km/h? in my case I want to fix or "create" an analogue speedo for my old car with modern transmission, it has a VSS, but why not made a frequency-meter? I mean, we know the pulse that made 1 tyre spin, 35 or something, then use it and calculate what speed should be at 35 pulses at 2,000 kHz. (that was my plan, but I think I will use your method, looks easier than mine xD )

    • @grzeeezzz6633
      @grzeeezzz6633  8 ปีที่แล้ว +2

      Frequency-meter? Looks hard :) I think VSS reading is easier, I cannot help in other ways I think. Yes tested in full range of speed, from 0 to 110km/h for example - no issues.

  • @JuanHernandez-ub3ez
    @JuanHernandez-ub3ez 7 ปีที่แล้ว

    hmm why not just use an ipad?