Go Down

Topic: automotive readout (Read 872 times) previous topic - next topic

gjc5500

so I've never worked with arduino before, but i do have some basic programing knowledge (c,vb)

i ordered a UNO and a lcd in the hopes of building a display to output engine rpm, throttle position %, fuel %, and engine temperature.

ive worked out alot of the logistics already, but im not sure where to start with the code. i know that the rpm is a square wave,12v signal, throttle position is a .5v to 4.5v output, fuel % is 2ohm to 110ohm output, as for the engine temp, i am going to be adding a thermistor to the coolant system.

i know that the throttle, temp and fuel are going to be analog inputs, and the rpm will be digital (correct me if im wrong)

i know that i will have to step down the 12v to 5v.

i just need to be put in the right direction as far as coding this.

thanks in advance
gabe

Digger

Sounds like you are on the right track.  RPM is most easily read with an interrupt.  When the interrupt is triggered, subtract the current time from the previous interrupt's time stamp and then do a little math to convert to RPM.  Sometime like:

60,000,000/(time1-time0)=RPM

Analog inputs are easy.  You have a 0-5V signal that the ADC translates as 0-1023.  For throttle for example, just map 0-1023 to 0-100 (%) and print the results to the LCD screen.


gjc5500

thanks digger. i read through everything and i just had a question. it looks like i have to set the high and low limit, and everything in between. is that correct?

gjc5500

nevermind. all my inputs are linear

NI$HANT

You can read a lot of stuff from OBD Diagnostics in your vehicle.
"Real Men can Accomplish  Anything"

- skype : nishants5  

ਫ਼ਤੇਹ ਕਰੁਂ!

gjc5500

i wish i could, but my car is OBD0 so there's no way to directly communicate with it.

Go Up