I'm new to FSRs but does anyone know if an FSR exists that starts a digital timer when pressed and stops the timer when pressure is released? Would be great if it was able to save/record the longest time and display it when it doesn't have pressure on it. Also needs to have a long lasting battery source. Any help with similar existing FSRs or code would be helpful.
If by FSR you mean eg one of these, then surely the answer is "no", an FSR on its own won't start, stop, record, display anything; all they do is, well, "resist"
But it would be easy enough to record millis() into a start variable when the resistance crossed over a certain threshold as an "on" and then into a stop variable when it crossed back again as an "off".
PS, you probably have a good reason for using an fsr, but it seems a bit of a complicated thing to do, to set a threshold and use that and an analogRead() of a voltage divider (upper pic) where you could just digitalRead() a button (lower pic)?
Why do people repeatedly come up with such poor advice (and that one apparently from an Adafruit link!)?
Any sensor external to the microcontroller should wherever possible, connect to ground and have a pull-up to the reference voltage. In fact, much of the time, the internal pull-up will be perfectly appropriate.
Why do people repeatedly come up with such poor advice (and that one apparently from an Adafruit link!)?
You have commented on an image of a Force Sensitive Resistor (FSR) connected to an analog input with with a voltage divider. The poster noted
it seems a bit of a complicated thing to do, to set a threshold and use that and an analogRead() of a voltage divider (upper pic) where you could just digitalRead() a button (lower pic)?