Pages: [1]   Go Down
Author Topic: Automotive sensors with a single connection  (Read 457 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

How do they work?

How do I get a reading from one?

I'm mainly looking at an oil pressure sensor at the moment.
I have temp sensors sorted by using a thermistor in a voltage divder circuit. Which is easy, I understand how this works.
But how do you get the reading from sensors with just one wire?

Obviously it grounds through the engine, and has the bias resistor inside the sensor.. But that leaves me with either voltage in, or voltage out of the single pin. Obviously I can't get voltage out without putting voltage in.

So how does it work? Seems like black magic to me..........
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 178
Posts: 8064
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Most simple sensors work as a switch.  The signal wire is grounded when the switch is closed and floating when the switch is open.  Use a pull-up resistor to bias the signal wire to +5.  The signal will read HIGH when the switch is open and LOW when the switch is closed.  You can enable the built-n pull-up resistor on an input pin with:

Code:
     pinMode(pin, INPUT_PULLUP);
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

texas
Offline Offline
God Member
*****
Karma: 27
Posts: 862
old, but not dead
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Just to add to what John said, some do act as variable resistors to ground (think potentiometer controlled by heat, pressure or vacuum).  If the vehicle has mechanical gauges, or can tell you the precise temperature then its probably an analog output sensor.  Most modern sensors are completely isolated from the engine block ground by using an extra wire or two.
Logged

Experience, it's what you get when you were expecting something else.

Johannesburg UTC+2
Offline Offline
Faraday Member
**
Karma: 60
Posts: 3242
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Back in the day, the "wire" from an oil pressure gauge wasn't a wire, it just looked like one.... it was a plastic pipe full oil under pressure which operated some mechanical gubbins in the gauge, and which sprayed boiling oil in the driver's compartment if something broke.
Logged

Have you looked for answers in the Learning, Reference, Products and Playground tabs on http://arduino.cc/en/ ?
Look here http://electronicsclub.info/ for basic electronics

Offline Offline
Newbie
*
Karma: 0
Posts: 12
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Ok thanks guys. Seems like it's probably just a 'switch' sensor.

Once the pressure drops past a point, the circuit goes open and lights up the light on the dash.

Ill have to buy an aftermarket one that will give me an analog output.

Jimbo, no this one is certainly wire. As well as one of the coolent temp sensors. So I'd say its the same. Just a switch.

Thanks for the help guys.
Logged

Pages: [1]   Go Up
Jump to: