
They are individual wires about 15 cm long each. They don't make good contact a lot of times. The I2C device should have 100nF for the supply voltage.

Perhaps you have long wires, say more than 50cm, and they are close to each other, that could be a problem. Perhaps you have a few breakout boards with pull-up resistors on every breakout board, the total pull-up could be below 1k. * Example code to use Force Sensitive Resistor (FSR) as toggle switch to control LED.The 4k7 is the right value, it should work. Make sure the serial monitor is also set to a baudrate of 9600. You should see the following output in the serial monitor: Serial monitor output We can set some threshholds to display how much pressure is roughly applied: Print the fsrreading in the serial monitor: Read the FSR pin and store the output as fsrreading: Begin serial communication at a baud rate of 9600: Int fsrreading //Variable to store FSR value Define variable to store sensor readings: * Simple example code for Force Sensitive Resistor (FSR) with Arduino. So you should see a value between in the serial monitor, depending on how hard you squeeze the sensor. This means that it will map the input voltage between 0 and 5 V into integer values between. The Arduino boards contain a multichannel, 10-bit analog to digital converter. is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to products on .Īs mentioned earlier, the output voltage of the sensor will be between 0 V (no pressure applied) and roughly 5 V (maximum pressure applied).

Resistor assortment box (see wiring for values)

I have included 3 examples with a wiring diagram and code so you can start experimenting with your sensor.įirst I will show you the basic operation of the sensor. In this tutorial you will learn how an FSR works and how to use it with Arduino. These sensors are easy to use and great for sensing pressure. You will find them in electronic drums, mobile phones, handheld gaming devices and many more portable electronics.

FSRs are super robust pressure sensors that are used in all kinds of industries.
