Normally, digital speedometers are found only in luxury cars and high-end motorbikes.Even if your motorbike has a mechani- cal speedometer, what will you do when it gets damaged? First, you need to replace the mechanical worm gear and then the cable.
Anyway, we describe here how to build a digital speedometer-cum- odometer for your motorbike. The circuit uses a microcontroller, an LCD display and some commonly available components. It is a better alternative to the mechanical speedometer and even a beginner with minimal skill level can assemble it.
The features of the digital speedo-meter-cum-odometer are:
1. Digital readout
2. Speed displayed in km/hour
3. Distance traveled displayed in kilometres
4. Readings saved in non-volatile memory (EEPROM)
5. Reliability due to use of the mi-crocontroller
6. No mechanical wear and tear
7. Home-brewed speed transducer/sensor
8. Self reset to zero after completion of 99,999.9 km
9. Easy to build and fix onto the bike
Calculations:
You first need to know the radius of the bike’s front wheel. The calculations here are based on Hero Honda’s Splen- dor model. The radius of the front wheel is 30 cm. (This can vary with the brand or model.)
Circumference of the wheel= 2pr (where ‘r’ is in cm)
= 2×3.14×30
= 188.4 cm or 1.884 metres
Speed. Let’s assume that in 1 second the wheel completes one revolution. In other words, in one second, the bike has covered 1.88 metres.
Therefore the speed in km/hour:
N×1.88×3600/1000
= N×6.784 or N×6.8
where ‘N’ is the number of revolutions per second. ‘6.8’ is a constant and only
‘N’ varies; for example, if ‘N’ is 5, the speed equals 5x6.8= 34 km/hour.
Distance. The odometer is updated every 100 metres. To cover 100 metres, the wheel is required to make ap- proximately
53 revolutions (100/1.88). The microcontroller takes care of the tasks of revolutions counting, speed calculation, conversion and display of results.
Circuit description:
The circuit of the microcontroller-based digital speedometer-cum-odometer is shown in Fig. 1. The functions of vari- ous components used in the circuit are described below.Microcontroller A 40-pin AT89C2051 microcontroller from At- mel is used here because of its low pin count, affordability and compatibility with CISC-based 8051 famil available pins of the microcontrol- ler are utilised in the project.
This m i c r o c o n t r o l l e r features 2 kB of Flash, 128 bytes of RAM, 15 in- put/output (I/O) lines, two 16-bit timers/counters, a five-vector two- l e v e l i n t e r r u p t a r c h i t e c t u r e , a full-duplex serial port, a precision analogue compa- rator, on-chip os- cillator and clock circuitry.
LCD module.
T o d i s p l a y t h e s p e e d a n d d i s - tance traveled, we have used a 16x2 a l p h a n u m e r i c L C D b a s e d o n HD44780 control- ler. The backlight f e a t u r e o f t h e LCD allows data to be visible even at night.
Serial EEPROM.
T h e r e a d - ings of the d i s t a n c e traveled are s a v e d i n an external serial EEP- ROM. Here, a 2 4 C 0 2 serial EEP- ROM based o n P h i l i p s I2C protocol
http://www.mediafire.com/?9ziayw5x7322z5g
20 comments:
Hello
I want to build it, but I don't know how can I program the micro controller. Can You send me the code of the IC?
Thanks in advance
My e-mail: riplosz@gmail.com
I have added a link for the code that can b downloaded
hey can u send that code to me too. natalliap21@gmail.com. thank you so much for help
i have mail u the code
hey Im gurmeet n student of diploma final year so can u plz send that code to me too. gurmeetpannu@rocketmail.com ...thank you so much for help,,,
@ anonymous
i have change the link u can downlode the speedometer code through the link
plz send me a code itz urgent
to my mail md_sonu62@yahoo.com
@Anonymous
u can downlode the code from the link given at the end of the artical
hello i read your article speedometer cum odometer i want source code please mail me on yashodhanmv@gmail.com program is written in which language and which compiler is used?
for this project plz see
www.electroons.com
Hello GK,
in the circuit for speedometer cum odometer, you have used an opto-intrupter.... Can this design be used for motorcycles like Honda unicorn...Wher should I fix the opto intrupter so as to sense the speed ? And how about connecting the reed switch ?
Is it possible to interface the 20x4 lcd in place of 16x2 lcd module in the circuit ? And if possible, how to get the digits of larger size ?
My email is roshgorg@gmail.com
If we want to use it for another vehicle(with different tire radius), which are the register values which need to be modified?
please email me the source code for this project,,,
email me nijesmkrp@gmail.com
please send me the source code of your project to this email : mantekbhogal23@gmail.com
its a good project you have developed
so its urgent as i have to make it for my college project.
very glad i found it can you send me those programming also?? lebaimohammad@gmail.com i need it for my diploma project. :)
hello,
I want to try build it. can you send me the code. thanks..
this is my email sitihajarmohdmokhtar@gmail.com
i need the source code ,,,
the link u provide is temporarily blocked or deleted ,,
psabarinathan12@gmail.com
and add ur personal maild ID in my mail ,,, wanna to discuss smthng abt High end MC and ARM ,,
Thank you
Hello GK, can you send me the code
this is my email syabig21@gmail.com
Post a Comment