Analog readings creeping upward
Posted: Thu Oct 13, 2016 6:58 pm
I have a force sensitive resistor connected to the analog input with a voltage divider. One side of the FSR is connected to 3.3V, the other pin goes A0 with a pulldown resistor to ground.
The sensor is clearly working, as I get big spikes when I press the sensor. However, when I don't touch the sensor the analog readings creep upward from 40ish until I touch the sensor. It then will spike up to the reading number, and then reset at a reading of 40ish. If I hold a constant force on the sensor, it also will continue to creep upward until I let go and it returns to the minimum.
Is this a common occurence, or is something wrong with my code or circuit?
The sensor is clearly working, as I get big spikes when I press the sensor. However, when I don't touch the sensor the analog readings creep upward from 40ish until I touch the sensor. It then will spike up to the reading number, and then reset at a reading of 40ish. If I hold a constant force on the sensor, it also will continue to creep upward until I let go and it returns to the minimum.
Is this a common occurence, or is something wrong with my code or circuit?