Force Sensitive Resistor

Z2M Part: EDT-00006-A

Detect pressure or force using an FSR.

Circuit Diagram
Circuit diagram for Force Sensitive Resistor
Wire Connections & Pin Configuration

Wire Color Connections:

Yellow → Analog Pin A0 to FSR–resistor junction
Red → 5V to FSR
Black → GND to 10kΩ resistor

Pin Configuration:

Arduino Analog Pin A0 → FSR (junction with 10kΩ)
Arduino 5V → FSR
Arduino GND → 10kΩ resistor
Arduino Code
Edit
int pressureAnalogPin = A0;  // Analog pin connected to FSR
int pressureReading;         // Variable to store analog reading

// Thresholds for different pressure levels (adjust as needed)
int noPressure = 0;
int lightPressure = 200;
int mediumPressure = 700;

void setup(void) {
  Serial.begin(9600);  // Initialize Serial Monitor
  Serial.println(\"FSR Pressure Sensor Initialized...\");
}

void loop(void) {
  // Read analog data from FSR sensor
  pressureReading = analogRead(pressureAnalogPin);

  // Print raw sensor value
  Serial.print(\"Pressure Pad Reading = \");
  Serial.println(pressureReading);

  // Determine and display pressure level
  if (pressureReading <= noPressure) {
    Serial.println(\" - No Pressure\");
  } else if (pressureReading < lightPressure) {
    Serial.println(\" - Light Pressure\");
  } else if (pressureReading < mediumPressure) {
    Serial.println(\" - Medium Pressure\");
  } else {
    Serial.println(\" - High Pressure\");
  }

  delay(1000); // Wait 1 second between readings
}

Instruction Details

Wiring: Connect FSR one end to 5V, other end to 10kΩ resistor to GND. Connect junction to Analog Pin A0.
Library: Not required (built-in).
Upload Code: Tools → Board → Arduino Uno. Tools → Port → select your COM port. Click Upload button.
View Output: Open Serial Monitor (Tools → Serial Monitor) at 9600 baud. Pressure readings and level (No/Light/Medium/High) display. Apply pressure to see values increase.

How to Use

  1. Connect the required components as per the Pin Configuration above
  2. Open Arduino IDE and create a new sketch
  3. Copy and paste the code above
  4. Select your Arduino board and COM port from Tools menu
  5. Click the Upload button to upload the code to your Arduino
  6. Open Serial Monitor (if applicable) to see the output

Components Required

  • Arduino Uno
  • Force Sensitive Resistor (FSR)
  • 10kΩ Resistor
  • Breadboard
  • Jumper Wires

Category: Sensors