Force Sensitive Resistor ( FSR ) with Arduino Last Updated : 30 Apr, 2024 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, we will learn about Force sensors and the measurement of force sensors using Arduino. Arduino is an open-source electronics platform. It consists ATmega328P 8-bit Microcontroller. It can be able to read inputs from different sensors & we can send instructions to the microcontroller in the Arduino. It provides Arduino IDE to write code & connect the hardware devices like Arduino boards & sensors. Force Sensitive Resistor ( FSR): Force Sensitive Resistor is a transducer that converts mechanical forces like weight, tension, pressure, and compression into an electrical signal. It is widely used in weight measurement. As the force applied to the sensor increases, the resistance of the sensor decreases. Components Required: Arduino Uno R3Force sensor5 x LEDs10K resistor100 Ohms resistorJumper wireCircuit diagram: Force Sensor with Arduino circuitSetup: Connect 5V of Arduino to one terminal of the FSR sensor.Connect another terminal of the FSR sensor to the Arduino Analog pin directly GND pin with a 10K resistor.Connect Level 1 LED to Digital Pin 13.Connect Level 2 LED to Digital Pin 12.Connect Level 3 LED to Digital Pin 11.Connect Level 4 LED to Digital Pin 10.Connect Level 5 LED to Digital Pin 9.Connect the negative terminal of all the LEDs to the GND pin with a Resistance of 100 Ohm.Upload the code to Arduino Uno Board using Arduino IDE.Set the Serial monitor to a 9600 baud rate.Analog to Digital conversion: Analog Read output = (Input Voltage / 5 ) * 1024Level indication: LevelAnalog value range10 to 2002200 to 4003400 to 6004600 to 8005800 to 1023Arduino code: C++ void setup() { // Set the serial monitor baudrate to 9600 Serial.begin(9600); // Output LED Level 1 pinMode(13,OUTPUT); // Output LED Level 2 pinMode(12,OUTPUT); // Output LED Level 3 pinMode(11,OUTPUT); // Output LED Level 4 pinMode(10,OUTPUT); // Output LED Level 5 pinMode(9,OUTPUT); } void loop() { // Variable to store ADC value ( 0 to 1023 ) int level; // analogRead function returns the integer 10 bit integer (0 to 1023) level = analogRead(0); // Print "Analog value:" in serial monitor Serial.println("Analog value:"); // Print output voltage in serial monitor Serial.println(level); // Turn off all the led initially digitalWrite(13,LOW); digitalWrite(12,LOW); digitalWrite(11,LOW); digitalWrite(10,LOW); digitalWrite(9,LOW); // Splitting 1023 into 5 level => 200, 400, 600, 800, 1023 // Based on the ADC output, LED indicates the level (1 to 5) if (level<200) { // LEVEL 1 LED digitalWrite(13,HIGH); } else if(level<400) { // LEVEL 2 LED digitalWrite(12,HIGH); } else if(level<600) { // LEVEL 3 LED digitalWrite(11,HIGH); } else if(level<800) { // LEVEL 4 LED digitalWrite(10,HIGH); } else if(level<1023) { // LEVEL 5 LED digitalWrite(9,HIGH); } } Output: Applications: Weight measurementPressure measurement Comment More infoAdvertise with us Next Article LED Control with Potentiometer using Arduino M manikandansanmugam Follow Improve Article Tags : Electronics Engineering Technical Scripter 2022 Similar Reads LED Control with Potentiometer using Arduino In the field of electronics and programming, controlling an LED with a potentiometer is important too. By varying the resistance of the potentiometer, you can change the brightness of the LED. We will interface an LED (light-emitting diode) to the Arduino UNO board. An LED is a simple diode that emi 6 min read Resistors in Series Resistors are devices that obstruct the flow of electric current in the circuit. They provide the hindrance to the path of the current which flows in the circuit. A resistor is a two-terminal electrical component that works by reducing the flow of charge and voltage levels in the circuit. Most of th 10 min read Arduino - Ultrasonic Sensor Sensors are widely used for detecting devices by approximating their distance from the source. One such example of a sensor is the HC-SR04 ultrasonic sensor which uses the SONAR technique for the sensing purpose. The main feature of this sensor is to mimic the nature of bats and therefore predict th 7 min read Arduino - PIR Sensor Arduino is a technology for electronic and robotic hobbits that is easy to use since the software is available for free. This system is best for students with interests in arts, crafts, and experiments, among other things. It encompasses a computer chip on which one can copy applications. The passiv 6 min read Soil Moisture measurement using Arduino and Soil Moisture Sensor In This Article, We will learn how to measure the moisture (water content) in soil using the Moisture sensor & Arduino. Arduino is an open-source electronics platform. It consists ATmega328P 8-bit Microcontroller. It can be able to read inputs from different sensors & we can send instruction 5 min read Smart Collision Detector using Arduino Arduino is an open-source electronics platform based on easy-to-use hardware and software. Arduino boards can read digital & analog inputs from the sensors and the HR SC-04 Ultrasonic sensor uses sonar to find the distance between objects. It can measure distances ranging from 2cm to 400cm with 4 min read Like