Hi friendly arduino people!
I'm slightly at my wits end. This should be fairly simple.
I've made a pressure sensor as per this tutorial: http://www.instructables.com/id/Flexible-Fabric-Pressure-Sensor/. It gives a beautiful response when I hook it up in series with a 9V battery and LED, giving a brightness proportional to how hard it is pressed (brighter= harder) and no light at all when it's not pressed.
What I want is to count the number of times it is touched and display it either on my computer or on a liquid crystal display. I would have thought that wouldn't be too hard.
When I hook it up to a multimeter it gives a high (infinite) resistance when not touched and a value anything between about 100 to 200 ohms when pressed.
It basically acts as a variable resistor, but all the arduino programs for variable resistors are potentiometer based, and i have no idea how to substitute my sensor for the pot (like this one... http://arduino.cc/en/Tutorial/AnalogInput)
I tried following the tutorial for "knock", for a piezoelectric sensor, http://arduino.cc/en/Tutorial/Knock but got a strange little error and no readings.
I tried using the program suggested by the author of the instructable, but got no response out of that either ( sat stubbornly at "0", whatever "0" for an analog input pin means...)
If anyone can give me any kind of help that would be amazing.