I've been working on a gauge that reads resistive(10-180 ohms) pressure sensors through a PIC.I've done this 2 ways so far.
1- Charged a cap, then discharged the cap through the sensor, timing the transition.RC timing I believe it's called.
2- Used the sensor as part of a voltage divider, read through an ADC channel.
Both of these ways worked well and were easy enough to implement, but looking at aftermarket gauges of this type, I noticed some use #1 and some use #2.My questions is, which way is the most accurate and consistant?
1- Charged a cap, then discharged the cap through the sensor, timing the transition.RC timing I believe it's called.
2- Used the sensor as part of a voltage divider, read through an ADC channel.
Both of these ways worked well and were easy enough to implement, but looking at aftermarket gauges of this type, I noticed some use #1 and some use #2.My questions is, which way is the most accurate and consistant?