loading

I build this speedometer for my own motorcycle. I am using it on my own Honda CD70 motorcycle (70CC) and it is working pretty well. The concept of this speedometer is very simple. A reed switch is used to measure the RPM of the wheel, and some mathematics is used to determine the circumference of the wheel. And that is then used to find the distance traveled in unit time, which is called speed.

In this project only three digital I/O pins of Arduino are used by the Display. And all other pins are available for future addition of functions, like engine temperature, fuel gauge etc.

Step 1: What You Will Need!

Parts List:

(1x) 128 x 64 Graphics LCD with blue or yellow background (your choice). Amazon.com

(1x) 40 x 60 mm prototype board Amazon.com

(1x) 220 Ohm 1/4 Watt Resistor Amazon.com

(2x) 10K Ohm 1/4 Watt Resistor Amaz on.com

(1x) 20 Pin single row Male Headers Amazon.com

(1x) 20 Pin single row Female Headers Amazon.com

(1x) 1N4001 Diod (this quantity can increase up to 5 depending on your required functionality). Amazon.com

(1x) Magnetic Reed Switch Amazon.com

(1x) Hall effect Sensor Module (3pins) if you ant to use it instead of reed switch.

If you want to use an Arduino UNO, then the following Items will not be needed.

(1x) Atmega 328p Microcontroller (Arduino UNO Boot loaded).

(1x) 28 pin DIP IC socket Adopter

(1x) 16 MHz Quartz Oscillator

(2x) 22pF Low Voltage DIP Ceramic Disc Capacitors, 50V

(1X) 7805 Voltage Regulator IC.

(2x) 10uF 25V Electrolytic Capacitors.

Additional Material.

Zip Ties.

Double Sided tape.

Electric Tape

Solder Wire

Soldering Station, or Soldering Iron or Soldering Gun.

An Arduino UNO will be required only for the first time when you burn the code into the Atmega 328p microcontroller.

I am using it with my Motor Cycle, which has its own 12V Battery, so I am using the same battery as supply voltage, If you want to use it with your bike which do not have its own power source, then you should use a 9V Alkaline battery.

<p>This is really cool, and that's a nice looking GUI too, well designed. </p>
<p>Thanks</p>
hi shahid ,its a nice project soon will order the lcd, but can you make the code for the gears indicator,1st gear to 5th gear as my bike have the gears and it would be cool if it has the gears too, thanks and advance keep on following you...
Superb! I am making this, could I replace the screen with little bigger size? Could you help me what changes and parts we need to show other gears? Could you add fuel gauge to it?
<p>Screen Size don't matter, you can use any size you want, just refer to its datasheet for correct connection. If your motorcycle already has other gear indication, then you can easily add them in this speedometer, same for fuel gauge. Ask me queries with details about your vehicle. Thank for appriciation. Please vot in the upper right corner if you like Thanks again.</p>
Voted already.
<p>thnx</p>
My bike is pulsar 150 dtsi. It has a fuel sensor installed in fuel tank which has 2 wires coming out of it. I will have to use reed switch to detech gear lever change. I would appreciate if you could help.
<p>For Gear lever change, you should use two microswitches, one to the front and other to the rear of gear change lever, reed switch will not work. you can write simple code for counting gears up and down, by incrementing or decrementing it with the micro switches. Which type is your current fuel gauge, analog or digital? I have my exam going on now a days, will contact you next week.</p>
<p>I plan on making a speedo for my car using this with a couple modifications of the code to make it work with a 7 segment display as well as adding an odometer function. Thanks for sharing!</p>
<p>You are welcome, Please share pictures after making.</p>
<p>How do I Connect it if i have a PSB pin?</p>
<p>Connect PSB (pin 15) to ground. Please ignore the pin labeling in the fritzing breadboard view. Just follow the pin numbers.</p>
<p>salam sir shahid khattak! i never worked on arduino but i want to make this project and i also want to start working on arduino...so which arduino uno i must use...thans in advance...</p>
If you are a beginner.. then you should use Arduino UNO R3. Thanks for commenting. If you feel any difficulty in this project or using Arduino then please feel free to contact me.
I have bought one...thnx for your reply i will definitely get your help if needed.
<p>Nice one Shahid Bhai,</p><p>but how will it tell about that In which gear the bike is going?</p><p>Thanx in advance.</p>
<p>Here a few bikes have the indication for gears, but if you are using CD 70, then there are a few parts, which mus be installed in the gearbox of motor cycle, and after that you will have to change the code and schematic to show the current gear. As my motor cycle have indication only for neutral gear, so I am using it to show whether my motorcyce is neutral or not. If have a motorcycle with all the gear indications, then comment here i will help you in building that. Thanks, and vote in the top right corner if you like.</p>
yes i will thnx<br>
what changes in the code if I switch to an hall effect?
<p>At line No 113</p><p>Change &quot; if (reedVal)&quot;</p><p>to &quot; if (!reedVal)&quot;</p><p>and in the schematic, you will remove the 10K resistor, which is connected between ground and reed switch.</p><p>I recommend you should use a hall effect sensor module for Arduino, which comes with amplifier and potentiometer. Also you should consider the polarity of magnet or the hall effect sensor, because the sensor is polirity sensitive. Hope I explained it well. I am working on the schematics, and will upload soon here. If you find any problem, please feel free to ask. Thanks. Please vote for me in the upper right corner if you like....</p><p>The image of module I am talking about is Here.</p>
Great Project. it might just be me but the fritzing schematics seem a little Incomplete.
<p>If you think so then please identify it for me, so that I can correct it, Thanks</p>
<p>That's a nice project, Shahid!</p>
Thanks
Really like this project. I particularly like the inclusion of a standard schematic as well as the Fritzing. I know by using the latter people can just copy exactly where you place the components and all will work but if you want to understand how things are connected then older people like me sometimes like a schematic.
<p>Thanks for your comment, you can vote for me if you like, please share it with your friends.</p>
<p>Cool. I always wonder how fast I am actually going on my bike rides.</p>

About This Instructable

9,274views

169favorites

License:

Bio: I am a student of BS Software Engineering. I have interest in microcontroller programming. I love to make electronic projects, especially CNC.
More by Shahid Khattak:How to increase the Life of Earpiece Arduino Bike Speedometer with 128 x 64 Graphics LCD 
Add instructable to: