Resistance-to-ground sensing with adaptive current source #38
martinroger
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
General operating concept
Most of the usual resistive sensors used on cars are implicitly connected to the general chassis ground, meaning that they are systematically and irrevocably placed on the low side.
The most accurate and stable way to measure the resistance of such sensor is to feed it a known - small - current and measure the resulting dV with an ADC behind a protection diode.
Edge cases and protection
Aside from the usual ESD protection, the current feed line for the resistive sensor must be able to endure the common misuses and abuses :
Application-specific requirements
This project typically needs to measure two ranges of resistive sensors :
Op-Amp-based implementation with switchable caliber
This implementation uses a voltage reference Vdd-Vref (immune to supply level variations) to drive an Operational Amplifier U1 that has a current-setting circuit on the high-side of a P-MOSFET M1.
The MOSFET low side is protected by a low drop diode D1, and the resistive load is connected between the diode and ground at Vsensor.
The ADC pick-up point is set before the protection diode at Vadc, creating a small voltage offset that is mostly stable with current and less so with temperature. This offset is compensatable via software.
This implementation is best with a rail-to-rail op-amp for simplicity like AD8542, and a high ADC input impedance to avoid leakage of measuring current in a voltage divider at the ADC input.
An additional MOSFET M3 with high gate impedance R11 can be used to add a second setting resistance RsetLowR in parallel to the original one RsetHighR in order to increase the source current for lower impedance sensors.
In the pictured set-up, in low impedance mode (M3 gate to ground) the source current is about 9.01mA all the way to sensor resistances nearly up to 310 Ohm.
In high impedance mode (M3 gate to Vdd) the source current is about 1.08mA all the way to sensor resistances nearly up to 2.8 kOhm.
Constant current source IC implementations
LED drivers
Most I²C-settable LED drivers that can be reduced to about 1mA per channel are usually of the current-sink or open-drain layout, which prevents placing the resistive sensor on a driver channel, as the current sensing is done on the low side (as opposed to on the high side as in the Op-Amp-based implementation.
Some implementations with I²C and high-side current-setting unfortunately are rated for much higher voltages or very large currents (typically 1A) and low precision, thus not very useful for the task at hand.
Others ?
Beta Was this translation helpful? Give feedback.
All reactions