Force Sensitive Resistor - Arduino Tutorial
Force Sensitive Resistor - Arduino Tutorial
In this tutorial you will learn how to use an FSR - Force Sensitive Resistor with Arduino to fade an LED.
This sensor is a variable resistor just like a photocell or flex sensor. The resistance changes by applying
pressure on it.
Arduino uno
Breadboard
LED
10KOhm & 220 Ohm resistors
The connections are pretty easy, see the image above with the breadboard circuit schematic.
Try downloading the Codebender plugin and clicking on the "Run on Arduino" button to program your
Arduino board with this sketch. And that's it, you've programmed your Arduino with this sketch.
How it works:
Read analog value from flex sensor
:: value=analogRead(sensorPin);
You can make your own modifications to the code by clicking the "Edit" button.
You have successfully completed one more Arduino "How to" tutorial and you learned how to use a
Force Sensitive Resistor with Arduino.