Measuring rpm through the cigarette lighter plug.
Brian Smith
Posts: 44
The Gtech Pro ( www.gtechpro.com·) states that it can measure a cars RPM through the cigarette lighter plug. They say they are the only data system in the world to do this. Well you guys seem pretty smart. How is it done? Im pretty sure that it senses the ignition pulses and you have to tell it how many cylinders the engine has. But how can it sense these pulses?
Comments
It won't work on my car - its a diesel·
Kinda stupid though if you ask me, with the OBD connector right there.· Get the right data, clean, easy to access.· Geez - why do it the hard way when every car out there these days has an OBD-II port?
Can you get RPM from the OBD2? My car is a 59 model. No port, no computer, no electronic ignition nothing. Its even got a mechanical tach and speedo.
Post Edited (Brian Smith) : 1/12/2006 3:56:27 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Here is a schematic capable of detecting a ripple of .6V or more on a DC-supply line ranging from 6V to 100V.
The carrier frequency of the ripple can vary from 1kHz to 10kHz. This circuit uses a bi-polar transistor on the
input. If you used a N-MOS device in place of the 2n3904, you could most likely get much less than .6V
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Post Edited (Beau Schwabe (Parallax)) : 1/13/2006 12:01:51 AM GMT
Unfortunatly, the OBDII spec hasn't been defined all that well, and some cars have the RPM, other's don't.
I know my '96 Ford Mustang does have OBDII (first year required by law) and it does have RPM in the ODBII data. But I know alot of others don't have the PRM info.
The OBDII system was intended to be used for the emisions systems, so alot of car makers didn't put anything but what was required by law to be present, and RPM wasn't required.
There are some really neat converters from ODBII to RS-232 serial.
Of course, you're '59, won't have a OBDII. [noparse];)[/noparse]
ODBII was required by federal law, in the US, to be in any car produced after January 1, 1996. Alot of cars from Ford had them in '95. Not sure of Chevy, or any other car makers.
Knight.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-
This message transmitted with 100% recycled electrons.
-=-=-=-=-=-
Gravity doesn't exist. The Earth sucks.
-=-=-=-=-=-
Make a man a fire, and he will be warm for the night.
Light the man on fire, and he will be warm for the rest of his life.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-
I believe some of the standards (as mentioned above) have a RPM wire in the dashboard "diagnostic" port? Else this is readable via the CAN bus - depends on the age and model and whats been implemented by the manufacturer!
Check out;
http://www.embedded.com/showArticle.jhtml?articleID=13000304
and
http://www.racelogic.co.uk/_downloads/vbox/Datasheets/CAN Parameter List.pdf
Cheers
James
Plugged into the lighter socket seems a bit of a stretch as the battery would really filter out the pulses. But, it may be using a high-frequency pass filter to let in only the the small ripple riding on the vehicles DC system.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks, Parallax!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Now, what about the reduction and corresponding speed difference caused by the different sized pulleys on different engines?
Kind of makes you wonder how accurate it can be.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Never create anything you can't control"
"The amount of intelligence on the planet is fixed... the population is growing"
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
·1+1=10
Went to their site and downloaded manual.
On page 40 there is a procedure to calibrate the tach portion.
So it must be counting pulses.
Since you have to use a regular tach to calibrate the unit it obviously samples and stores the pulses for known RPMs then calculates everything in between.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
"Never create anything you can't control"
"The amount of intelligence on the planet is fixed... the population is growing"
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks, Parallax!
Easiest (and safesty) way would be via the ODBII port, assuming you're vehicle is newer than a 1996.
Knight.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-
This message transmitted with 100% recycled electrons.
-=-=-=-=-=-
Gravity doesn't exist. The Earth sucks.
-=-=-=-=-=-
Make a man a fire, and he will be warm for the night.
Light the man on fire, and he will be warm for the rest of his life.
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=--=-=-=-=-=-=-=-=-=-=-=-=-
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Thanks, Parallax!
The circuit below will respond to a 5mV(or more) Voltage ripple with a
frequency ranging from 1kHz to 20kHz over a DC offset ranging from
6V to 60V.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
The one listed in the link below works most of the time, but on some models has trouble at low rpm.
http://www.kmt-gmbh.com/de/automotiv/rpm8000.html
Regarding OBD 2 ports and engine rpm. Every passenger car sold in the U.S. since 1996 has an OBD2 port and it has an rpm output.....by regulation, it must.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Ken
...Ok, so by looking at the link that you provided says....
"...a DC signal level of about 12V superimposed with an AC signal of about 50mV."
From the latest circuit that I posted, It has a sensitivity of 5mV and should work for picking off the pulses.
http://forums.parallax.com/attachment.php?attachmentid=40105
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
·With a points ignition your best bet will be to read the ground signal on the coil. RPM can be read as frequncy, 8 break points per distributor revolution, turning half as fast as the engine so 1000 RPM /2 times 8 points / 60 seconds gives you a frequency of 66 and 2/3's hertz at idle. To read the signal directly from the coil ground directly·you'll need a 5 volt zener diode and a current limiting resistor so your stamp never see's more than 5 volts on the input pin.
Once you have all that, either use count to count pulses over a period of time to get frequency, or pulsin to measure a single pulse and calculate frequency,
·
RippleDetector.rar
But actually, if this is to be used for alternator ripple detection, the frequency would be max 200Hz at most (you have specified 1-20KHz).
Ken, this is actually the unit that gave me the idea of trying to build such a circuit in to my project in the first place (instead of trying to fix halls and magnets to flywheels etc.....). Yes, it is proving to be very challenging to do. Need to work on both petrol and diesels and battery system is either 12v or 24v. Do you think I should abandon this approach?
Any way you can post a scope view of the cigarette lighter plug to see what the signal looks like?
By the way I have been working on my own circuit but it uses OpAmps
1) Block the DC with a capacitor.
2) Apply a low pass filter, cut off say 200Hz (That's 12000RPM!!)
3) Amplify to a suitable input voltage for a Prop ADC input.
4) Sample the incoming voltage values in batches of 1024 at a known, fixed, sample rate.
4) Use the Fast Fourier Transform on the Prop to pull out all the frequencies in those samples (Well 512 of them, should be enough resolution)
5) Find the largest frequency present.
That result will, I suspect be a harmonic of your alternator rotation speed. From your alternator pulley ratios you can determine the engine RPM from that.
Here is a suitable FFT object for the Prop: http://forums.parallax.com/showthread.php?128292-Heater-s-Fast-Fourier-Transform.&highlight=heater_fft
http://tech.groups.yahoo.com/group/msp430/message/48381
I suggested getting it from the engine noise with a microphone, which should be feasible. The technique has several advantages.
Most new diesels are Elc fuel injected.(Big injectors, lots of current)
Mind you I'm only guessing as I have never looked that noise on a car cigarette lighter:)
Back in the 90's when I was using the 8051-based Blue Earth Controller to do what I'm doing with Propellers today, I had an Intel white paper about design for automotive systems (a big target market for the 8051) and it turns out the answer to this is...
A LOT.
It's been awhile but I seem to recall being warned to be ready for brownouts to 7VDC (especially during starting), overvoltages to 18V, occasional ripple in the multiple volts range, and kilovolt level millisecond spikes on both the power and common mode ground level from the ignition system, huge static charges from the tires and operator interaction with the seat upholstery, oh and the ground plane is Smile too. The thing left me wondering how anything electronic works within 10 meters of a car.