Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

Looking for digital speedometer program in C

Status
Not open for further replies.

navveed

Newbie level 4
Joined
Jan 23, 2006
Messages
5
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,333
digital speedometer

hi!

please help me. is it possible if someone could send me a programme in C language to programme PIC so that pulses in a specific time period after being counted by a counter are converted into a unit of speed that is either KM/h or miles/h.

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. In words it seems simple but I am confused in last part that is the display part. I have figured out what type of sensor to use, what type of counter to use and but the display will only show the number of pulses coming in but not the speed so is there any way that the pulses after being counted be converted in to a unit of speed either km/h or miles/h. well some one send me the following information if it could be a help to you;

So if you have one pulse per rotation of the wheel, then the distance travelled per pulse is the circumference of the wheel.

So if you have 10 pulses per second, the speed is 10xcircumference per second, multiply by 3600 to convert to hours, and divide by the ratio of the circumference to miles (or kms) to give the speed as kph or mph.

so if its possible send me the programme to programme PIC to do the job that is simply convert pulses into a unit of speed.
 

RICKYLO

Junior Member level 3
Joined
Jan 15, 2006
Messages
25
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,281
Activity points
1,528
Re: digital speedometer

Hi There,

Check the guys at http//www.techdesign.be

Regards, Rickylo
 

Slayerza

Full Member level 5
Joined
Oct 22, 2005
Messages
296
Helped
27
Reputation
54
Reaction score
5
Trophy points
1,298
Location
South Africa
Activity points
3,462
Re: digital speedometer

If there is 10 sensors on the circumference it would mean 10 pulses is one circumference.

thus number of rotations (10 pulses groups) per second * 3600 / 1000 would give km/h if the circumference is in meters

Cheers
Slayer
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top