I recently bought a ribbon sensor (the one displayed here), with the intention to use it as a touch-enabled music instrument.
I used it correctly (so it seems), but I have two issues :
- When not pressed, the sensor seems to give random data, as if nothing was plugged to the pin.
- When unpressed, the resistance slowly decreases (and so is my sound pitch). Is that a normal behaviour ?
I don't know how to solve both issues. Has anyone an idea ?
A tinker of my test (Currently corrected thanks to @VE7JRO) can be seen here with my code here (The ribbon is replaced by a potentiometer but the principle remains the same). The code is also Available on GitHub.