I have a fairly simple question and I have researched the existing forums already but havnt really been able to find out conclusively whether it is possible.
I want to put a PC in commercial vehicles that measure distances down to a tenth of a meter. (this is only one of many functions).
Currently I achieve this with a wheel probe or proximity sensor - i then run this into a data aquisition board and run it through custom software that I have written. This however requireds a $150 probe and $200 data aquisition board.
What I want to know is...is there a reliable way of getting the odometer reading from ODB-II in most japenese vehicles?
Is so... what is the accuracy?
Has anybody tried interfacing the speed sensor in vehicles directly? If so how did that go?
Any help is greatly appreciated.
Thanks for the advice, I will take a look now.
How about interfacing a speed sensor somehow, does anyone know anything about that?
GPS? This could give you accuracy as far as distance measurement however not in pinpoint accuracy.. but you should be able to get distances... (or at least that's what I've heard).
You said commercial vehicles? What type of vehicles? Heavy Truck Commercial Vehicles, light truck... what?
This could make a difference.
This data is similar concerning other cars.
I think this accuracy fits your requirements.
You can use a PIC or a frequency/voltage converter ic.
I wrote a simple program to PIC that count those pulses (it saved the value into EEPROM) and displays it on a small LCD.
Then I zeroed the daily km-counter on the dashboard.
After driving approx 800km, I simply divided the km value with the number of pulses and got a constant, that I use to calculate the speed and distance. I think it is not difficult at all.
I have used 18F4525 with a LCD display.
I have used a serial 4K7 resistor and a 4.7V zener diode in reverse to the ground parallel for the appropriate voltage that fits the PIC ttl level.
The whole electronic was present on a tiny board (I designed a demo panel for practicing with different PICs).
Because the power need is very little of the PIC, for the simplicity I fed it from the cig lighter connector.
So, measuring the distance is VERY simple, just multiple the number of pulses with that constant and it gives the distance.
For measuring the speed I program a timer that makes interrupt in every second (It is more frequent inside, but I divide it internally, of course) and
subtract the previous value of the pulses from the present pulse value.
So, I get the distance within a certain time (half second) so the result is in m/s, then multiply it with 3.6 then the result is in km/h now. For miles/h this value could vary.
You can also gain that constant by different method: Have an exact distance (eg. 10m) and apply a LED on that pulse wire (with a serial resistor, of course). Push your car slowly forward and count the number of periods when the LED light.