Force, Load and Flex Sensors
Force, load and flex sensors are used to detect force, pressure, weight, tension, compression, or bending.
They are useful when we want a machine to understand how much force is being applied to an object.
Common applications:
- Digital weighing machines
- Electronic scales
- Robotic arms
- Smart gloves
- Fitness equipment
- Industrial machines
- Touch/pressure interfaces
- Structural monitoring
- IoT agriculture systems
- Prosthetic devices
Basic concept:
Force / Weight / Bending ↓ Sensor ↓ Electrical Signal ↓ Arduino/ESP32 ↓ Data Processing ↓ Display / Alarm / Motor
1. What Is a Force Sensor?
A force sensor detects the amount of force applied to it.
For example:
FORCE ↓ ↓↓↓ ┌──────────┐ │ SENSOR │ └──────────┘ ↓ Electrical Signal
The controller can then determine whether the force is:
- Small
- Medium
- Large
2. What Is a Load Sensor?
A load sensor measures a load applied to a system.
In many electronic weighing systems, the load sensor is a load cell.
For example:
5 kg object ↓↓↓ ┌─────────┐ │ Load │ │ Cell │ └─────────┘ ↓ HX711 ↓ ESP32 ↓ Display
This is the basic architecture of a digital weighing scale.
3. Force vs Weight
These terms are related but technically different.
Force
Measured in:
Newton (N)
Mass
Measured in:
kilogram (kg)
Weight
Weight is a force caused by gravity:
Weight = Mass × Gravity
Formula:
F = m × g
where:
F= force in Newtonsm= mass in kgg≈ 9.81 m/s² near Earth's surface
For example:
Mass = 5 kg F = 5 × 9.81 F ≈ 49.05 N
Commercial weighing scales often display the result as kg, even though the sensor is physically responding to force.
4. Force-Sensitive Resistor (FSR)
An FSR (Force-Sensitive Resistor) changes its resistance when force is applied.
Generally:
More Force ↓ Resistance changes ↓ Voltage changes ↓ ADC ↓ ESP32
An FSR is usually better for detecting relative force or pressure than for highly accurate weight measurement.
5. FSR Structure
A simplified FSR can be represented as:
Force ↓↓↓ ┌─────────────────┐ │ Conductive Layer│ ├─────────────────┤ │ Resistive Layer │ ├─────────────────┤ │ Conductive Layer│ └─────────────────┘ ↓ Resistance changes
6. FSR Circuit
An FSR is normally used with a resistor as a voltage divider.
3.3V │ [FSR] │ ├──────────→ ESP32 ADC │ [R] │ GND
The ADC reads the changing voltage.
7. FSR with ESP32
Example:
#define FSR_PIN 34 void setup() { Serial.begin(115200); } void loop() { int value = analogRead(FSR_PIN); Serial.print("FSR Value: "); Serial.println(value); delay(200); }
When force changes:
Force ↑ ↓ FSR resistance changes ↓ ADC value changes
The direction of the ADC change depends on how the voltage divider is wired.
8. FSR Applications
FSRs can be used for:
Pressure-sensitive buttons
Finger ↓ FSR ↓ ESP32 ↓ Action
Smart shoes
Detect pressure distribution:
Heel pressure Toe pressure Foot pressure
Robotic gripper
Robot Hand ↓ Object ↓ FSR ↓ ESP32
The robot can detect whether it is gripping an object.
9. Limitations of FSR
FSRs are useful but aren't usually the first choice for precision weighing.
Problems include:
- Non-linear response
- Variation between sensors
- Drift
- Hysteresis
- Temperature effects
- Calibration requirements
Therefore:
Simple pressure detection ↓ FSR ✓ Accurate weighing ↓ Load Cell ✓
10. Load Cell
A load cell is a sensor designed to measure force or load accurately.
A common load cell contains strain gauges attached to a metal structure.
Example:
Weight ↓↓↓ ┌───────────┐ │ LOAD CELL │ └───────────┘ ↓ Tiny resistance changes ↓ HX711 ↓ ESP32
11. Strain Gauge
A strain gauge detects deformation of a material.
When a metal structure bends slightly:
Before: ────────────── After force: ───────╲______
The strain gauge deforms with the material.
Its electrical resistance changes slightly.
12. Strain
Strain describes deformation relative to the original length.
Formula:
Strain = Change in Length / Original Length
Usually represented as:
ε = ΔL / L
For example:
Original length = 100 mm Change = 0.1 mm ε = 0.1 / 100 ε = 0.001
This is a very small change.
That's why amplification is required.
13. Wheatstone Bridge
Load cells commonly use a Wheatstone bridge arrangement.
Simplified:
R1 R2 3.3V ──/\/\──┬──/\/\── GND │ OUT+ R3 R4 3.3V ──/\/\──┬──/\/\── GND │ OUT-
The bridge converts tiny resistance changes into a measurable differential voltage.
14. Why HX711 Is Used
The voltage generated by a load cell is extremely small.
An ESP32 ADC is not normally the ideal way to directly read that tiny differential signal.
The HX711 is a dedicated load-cell amplifier and ADC.
Basic system:
Load Cell ↓ Tiny differential signal ↓ HX711 ↓ Amplification + ADC ↓ ESP32
15. Load Cell + HX711 Wiring
A typical 4-wire load cell has wires corresponding to:
E+ E- A+ A-
The exact wire colors vary by load-cell manufacturer, so don't rely on color alone.
Typical HX711 connection:
Load Cell HX711 E+ ─────────────── E+ E- ─────────────── E- A+ ─────────────── A+ A- ─────────────── A-
Then:
HX711 ESP32 VCC ────────────── 3.3V* GND ────────────── GND DT ────────────── GPIO 16 SCK ────────────── GPIO 17
* Check the specific HX711 module's supply requirements.
16. HX711 Working
The HX711:
- Receives the tiny differential signal.
- Amplifies it.
- Converts it to digital data.
- Sends the result to the microcontroller.
Concept:
Mechanical Force ↓ Load Cell ↓ Resistance Change ↓ Bridge Voltage ↓ HX711 ↓ Digital Value ↓ ESP32
17. Load Cell Example
Suppose you build a weighing machine:
Object ↓ ┌───────────┐ │ PLATFORM │ └─────┬─────┘ ↓ Load Cell ↓ HX711 ↓ ESP32 ↓ LCD/OLED
Display:
Weight 5.25 kg
18. Calibration
Calibration is extremely important for load cells.
First, keep the scale empty:
No Load ↓ Read raw value ↓ Tare / Zero
Then place a known weight:
Known weight ↓ For example: 1 kg ↓ Read sensor value ↓ Calculate calibration factor
After calibration:
Unknown Weight ↓ Load Cell ↓ HX711 ↓ Calibration ↓ Weight in kg
19. Tare Function
A tare function sets the current load to zero.
Example:
Empty platform ↓ Press TARE ↓ Display = 0.00 kg
This is important when using a container.
For example:
Container = 500 g Food = 2 kg
After tare:
Container + Food ↓ Scale ↓ 2.00 kg
20. HX711 Example Code
A commonly used Arduino library is HX711.
Example:
#include "HX711.h" #define DT 16 #define SCK 17 HX711 scale; void setup() { Serial.begin(115200); scale.begin(DT, SCK); scale.set_scale(); scale.tare(); Serial.println("Scale Ready"); } void loop() { if (scale.is_ready()) { Serial.print("Raw: "); Serial.println(scale.get_units(5)); } else { Serial.println("HX711 not found"); } delay(500); }
For actual weighing, you need to determine and set the appropriate calibration factor for your particular load cell and mechanical setup.
21. Multiple Load Cells
Larger weighing platforms may use multiple load cells.
Example:
PLATFORM ┌──────────────────┐ │ │ │ │ └──────────────────┘ ↑ ↑ LC1 LC2 ↑ ↑ LC3 LC4
The cells can be combined into a suitable bridge arrangement or read using an appropriate load-cell interface.
This is common in:
- Industrial scales
- Platform scales
- Large weighing systems
22. Flex Sensor
A flex sensor detects bending.
When the sensor bends:
Straight: ──────────── Bent: ──────╮ ╰────
Its resistance changes.
Therefore:
Bending ↓ Resistance change ↓ Voltage change ↓ ADC ↓ ESP32
23. Flex Sensor Circuit
Like an FSR, a flex sensor can be used in a voltage divider:
3.3V │ [Flex Sensor] │ ├────────→ ESP32 ADC │ [R] │ GND
The ADC value changes as the sensor bends.
24. Flex Sensor Applications
Flex sensors are useful for:
- Smart gloves
- Robotic fingers
- Gesture detection
- Prosthetic control
- Rehabilitation devices
- Bend detection
- Wearable electronics
Example:
Finger bends ↓ Flex sensor bends ↓ Resistance changes ↓ ESP32 ↓ Servo moves
25. Smart Glove Project
A practical project:
Smart Glove ┌──────────────────────┐ │ Finger 1 → Flex 1 │ │ Finger 2 → Flex 2 │ │ Finger 3 → Flex 3 │ │ Finger 4 → Flex 4 │ │ Finger 5 → Flex 5 │ └──────────┬───────────┘ ↓ ESP32 ↓ Robot Hand
When you bend your finger:
Finger bends ↓ Flex sensor value changes ↓ ESP32 calculates angle ↓ Servo rotates
26. Force vs Load vs Flex
| Sensor | Measures | Typical Use |
|---|---|---|
| FSR | Relative force/pressure | Touch/pressure |
| Load cell | Force/load | Weighing |
| Strain gauge | Deformation/strain | Precision measurement |
| Flex sensor | Bending | Smart glove |
| HX711 | Amplifies/reads load-cell signal | Weighing systems |
27. FSR vs Load Cell
This distinction is important.
FSR
Force ↓ Resistance changes
Good for:
- Touch
- Pressure detection
- Relative force
Load Cell
Force ↓ Mechanical deformation ↓ Strain gauges ↓ Wheatstone bridge ↓ HX711
Good for:
- Weight measurement
- Scales
- Industrial measurement
28. Pressure Distribution
Multiple FSRs can be used to detect pressure distribution.
For example:
┌──────────────────────┐ │ FSR1 FSR2 │ │ │ │ FSR3 FSR4 │ └──────────────────────┘
The ESP32 can determine where pressure is highest.
Applications:
- Smart seats
- Smart beds
- Foot-pressure analysis
- Robotics
- Human-machine interfaces
29. Robotic Gripper
Force sensing is extremely useful for robotic hands.
Without force sensing:
Robot grabs object ↓ Motor keeps closing ↓ Object may break
With force sensing:
Robot closes ↓ Force sensor ↓ Force detected ↓ ESP32 ↓ Reduce/stop motor
This creates a safer robotic gripper.
30. Industrial Applications
Force/load sensors are used in:
- Weighing systems
- Manufacturing machines
- Material testing
- Robotic assembly
- Conveyor systems
- Packaging
- Crane load monitoring
- Structural monitoring
Example:
Industrial Machine ↓ Load Sensor ↓ Controller ↓ Safety / Automation
31. Common Problems
FSR
- Non-linear output
- Calibration variation
- Drift
- Not ideal for precision weight
Load Cell
- Incorrect wiring
- Mechanical mounting errors
- Overloading
- Temperature effects
- Poor calibration
HX711
- Electrical noise
- Unstable power
- Incorrect gain/configuration
- Poor grounding
Flex Sensor
- Limited bending range
- Mechanical damage
- Resistance drift
- Calibration differences
32. Overloading a Load Cell
A load cell has a specified capacity.
For example:
Rated capacity = 5 kg
Do not assume it is safe to continuously apply much larger loads.
Excessive force can permanently deform the sensing element.
Normal Load ↓ Correct measurement Overload ↓ Permanent deformation ↓ Incorrect readings / damage
Always check the load cell's rated capacity.
33. Practical Project: Digital Weighing Machine
Components
- ESP32
- Load cell
- HX711
- OLED/LCD
- Push button
System:
Object ↓ ┌─────────┐ │ Platform│ └────┬────┘ ↓ Load Cell ↓ HX711 ↓ ESP32 ↙ ↘ Display TARE
Features:
✓ Weight display ✓ Tare ✓ Calibration ✓ Overload warning ✓ Stable-reading detection
34. Practical Project: Smart Glove
Flex Sensors ↓ ESP32 ↓ Finger Position ↓ Servo Motors ↓ Robot Hand
This project demonstrates:
- Analog sensors
- ADC
- Calibration
- Mapping
- Servo control
- Human-machine interaction
35. Practical Project: Force-Sensitive Robot
Object ↓ ┌──────────┐ │ Gripper │ └────┬─────┘ ↓ FSR / Load Cell ↓ ESP32 ↓ Motor Driver ↓ Motor
Logic:
Low Force ↓ Continue closing Target Force ↓ Stop / hold Excessive Force ↓ Open / release
36. Important Formulas
Force
F = m × g
Strain
ε = ΔL / L
Stress
Stress = Force / Area
Basic voltage divider
For two resistors:
R1 Vin ──/\/\──┬──/\/\── GND R2 │ Vout
The output is:
Vout = Vin × R2 / (R1 + R2)
This principle is commonly used when converting resistance changes from FSRs or flex sensors into voltage.
37. Quick Selection Guide
Choose an FSR when:
You need simple pressure/force detection.
Choose a load cell when:
You need accurate weight/load measurement.
Choose a strain gauge when:
You need to measure mechanical deformation/strain.
Choose a flex sensor when:
You need to detect bending.
Choose an HX711 when:
You need to interface a typical strain-gauge load cell with a microcontroller.
38. Overall Concept
FORCE / LOAD ↓ ┌───────────┼───────────┐ ↓ ↓ ↓ FSR LOAD CELL FLEX ↓ ↓ ↓ Resistance Strain Resistance Change Gauge Change ↓ ↓ ↓ └───────────┼───────────┘ ↓ Signal Processing ↓ ESP32/Arduino ↓ ┌─────────────┼─────────────┐ ↓ ↓ ↓ Display Alarm Motor
Key Points
FSR → Detects relative force/pressure. Load Cell → Measures load/weight. Strain Gauge → Measures deformation through resistance change. HX711 → Amplifies and digitizes load-cell signals. Flex Sensor → Detects bending. Force → Measured in Newtons. Mass → Measured in kilograms. Weight → Gravitational force on mass.