Pressure Sensing with FSR

Pressure Sensing with FSR

Introduction

This experiment demonstrates how to use a Force Sensitive Resistor (FSR) to detect pressure. FSRs change resistance based on the amount of force applied, making them ideal for pressure-sensing applications.

FSR Sensor

Components Needed

Circuit Setup

  1. Connect one pin of the FSR to the 5V pin of the Arduino.
  2. Connect the other pin of the FSR to pin A0 on the Arduino.
  3. Place a 10k ohm resistor between the FSR and GND to form a voltage divider.

Ensure all connections are made according to the instructions.

FSR Circuit Setup

Code for FSR Pressure Sensing

Upload the following code to your Arduino to read the pressure value:


const int fsrPin = A0; // Pin connected to the FSR
void setup() {
    Serial.begin(9600); // Start serial communication
}
void loop() {
    int fsrValue = analogRead(fsrPin); // Read the pressure value
    Serial.println(fsrValue); // Display the pressure value
    delay(500); // Delay for stability
}
            

Explanation

The FSR works by changing its resistance in response to applied pressure. The Arduino reads the analog value, which is then printed on the Serial Monitor, showing the level of pressure applied.

Troubleshooting