I'm currently working on an Arduino-based alarm clock which can detect whether I'm out of bed via a velostat / piezoresistive material pressure sensor mattress underlay.
I'm running into a bit of an issue with the hardware (I'm much more of a software guy, haven't done much electronics in many years) and was hoping someone here might be able to steer me in the right direction.
Basically, the problem I'm running into is that because of the low resistance of the pressure sensor, I'm having a hell of a time getting the resolution I need without having such low resistance over the circuit that I'm pretty much just shorting it.
The circuit is pretty standard. I run the 5V power from the Arduino to my pressure sensor, which is copper mesh sandwiching the velostat. This then splits, and goes into an input pin on the Arduino on one side, and into another resistor and then to ground on the other.
The voltage the input pin on the Arduino will receive will be based on the ratio of the resistance of the pressure sensor to the resistance of the resistor that leads to ground. (Vout ~= Vin * Rsensor / (Rsensor + Rground)) So, to get maximum resolution out of pressure changes over the sensor, I want the resistance of the resistor which leads to ground to be right in the middle of the expected range of resistances I get out of the pressure sensor. (Right?)
Therein lies the problem. Because the pressure sensor is beneath my mattress (since I have an aversion to sleeping on electrified copper mesh), the resistance of the pressure sensor is always very low. (Also, Velostat is very conductive and it's rather expensive, so the sheet is pretty thin.) The resistance ranges from about 2 Ohm when I'm out of bed to 1.5 Ohm when I'm in bed. While this is detectable if the to-ground resistor has very low resistance, since it's a reasonably large proportional change in resistance, it means that the overall resistance of the circuit is extremely low, and I end up drawing a *ton* of current. But if I increase the resistance of the circuit by adding larger/more resistors, then I lose the resolution I need to detect whether I'm in bed, and I'm not sure what to do about it. Am I just screwed, or is there some clever trick I can pull off to salvage this sensor?
I have a fallback plan involving load sensors stolen from electronic bathroom scales, but the velostat sheet is mechanically simpler, not to mention less lumpy.
Thanks.