Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 9th December 2005, 11:25 AM   #1
Default speedometer-code needed

hi,

is it possible for any one and i mean any one who can provide me with the code for the PIC (reprogrammable PIC16F84) that could simply multiply the input pulses per sec. with 1.263 to give the speed of a rotating wheel in miles per hour. that is do do the following calculations,

Speed in mph=1.263*pulses per sec.

the pulses per second are pre counted by a counter. and the basic idea is to show the speed.
further explaination that may help you is as follow,
Well the summary is somewhat like this, magnetic sensors to be used passing the pulses picked up from a rotating wheel and passing it to the counter and then finally to the display that is a seven segment display. but the unit to be used for the display is mph. so 1.263 should be multiplied by the pulses in each sec. this will be done by the PIC. now i need the code for the PIC to do the job. after the multiplication the result is passed to the display.
i dont mind the code to be in Assbly or C-programme but i need to prgramme the PIC as i do not have much time. i need to complete the project fast.
so help me.
thanks.
navveed is offline  
Old 9th December 2005, 01:10 PM   #2
Default

Answer sent in response to PM.
__________________
PIC programmer software, and PIC Tutorials at:
http://www.winpicprog.co.uk
Nigel Goodwin is offline  
Reply

Tags
needed, speedometercode

Thread Tools
Display Modes




All times are GMT. The time now is 06:54 AM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker