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.
Components Needed
- Force Sensitive Resistor (FSR)
- Arduino (e.g., Uno, Nano)
- 10k ohm Resistor
- Jumper wires
- Breadboard
Circuit Setup
- Connect one pin of the FSR to the 5V pin of the Arduino.
- Connect the other pin of the FSR to pin A0 on the Arduino.
- Place a 10k ohm resistor between the FSR and GND to form a voltage divider.
Ensure all connections are made according to the instructions.
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
- If no change in values is detected, check the wiring and ensure the FSR is correctly connected.
- If the sensor is too sensitive, adjust the resistor value in the voltage divider to calibrate the sensor.