Force-sensitive resistor and LED with Arduino
This circuit feeds data from a force-sensitive resistor into the Arduino, using a classic voltage divider circuit. The Arduino, then pulses out to an LED in proportion to how much force was exerted.
The Arduino code makes use of the Arduino map() function, which maps a number from one range to another. In this case, we are mapping a number from 0-1023 (the range corresponding to analog input on the Arduino) to its corresponding number from 0-255 (the range corresponding to analog output on the Arduino).
Note: This is almost exactly the same circuit as that used for the Potentiometer and LED example. All sensors that work via variable resistance will use this same voltage divider technique, although the exact value of the resistor used will depend upon the specific resistance range of the variable resistor being used.
- Give ideas of 2 applications of this sensor in the field of improving accessibility for handicapped people.