Arduino Uno R4 WiFi · FSR pressure sensor

Wiring the pressure pad

One force-sensitive resistor and one 10 kΩ resistor form a voltage divider. Press the pad and the voltage on A0 climbs; hold it above the threshold and the sketch makes its API call.

Breadboard view

Numbers on the drawing match the build order in the table below.

USB-C to computer DC in ESP32-S3 WiFi 12 × 8 LED matrix RA4M1 UNO R4 WiFi ARDUINO DIGITAL (PWM ~) POWER ANALOG IN − + + − FSR legs: leg 1 → 15e · leg 2 → 16e ← signal node = column 16 (a–e) + rail (5V) − rail (GND) top rails unused FSR 402 force-sensitive resistor 2 legs · no polarity pad faces up, legs into 15e / 16e 10 kΩ → − rail A0 → signal node (16a) GND → − rail (col 26) 5V → + rail (col 28) FSR leg 1 → + rail 1 2 3 4 5 6 7 8

Swipe sideways inside the drawing to see the whole board →

Red — 5V Black — GND Yellow — signal to A0 Part legs (no wire) Signal node (column 16)

Schematic

Same circuit as circuit symbols: a voltage divider.

F A0 signal node 5V FSR 402 ≫1 MΩ idle → ~kΩ pressed R1 10 kΩ pull-down GND
V(A0) = 5 V × 10 kΩ ÷ (RFSR + 10 kΩ)
No pressure: RFSR is huge → A0 ≈ 0 V (reads ~0). Harder press: RFSR drops → A0 rises toward 5 V (reads up to ~1023). The default threshold of 500 ≈ 2.4 V, i.e. the FSR is down to about 10 kΩ — a firm press. Hold it there for 1.5 s and the API call fires.

Connections, in build order

Unplug USB while wiring. Each row is one wire or one part leg.

#FromToWire
1Arduino 5VBreadboard + railbottom rail, column 28Red
2Arduino GNDBreadboard − railbottom rail, column 26Black
3FSR leg 1Hole 15eFSR leg
4FSR leg 2Hole 16e= signal node (column 16)FSR leg
5Hole 15bFSR leg 1’s column+ railcolumn 11 — this puts FSR leg 1 on 5VRed (short)
610 kΩ leg 1Hole 16csignal nodeResistor leg
710 kΩ leg 2− railcolumn 22 — the pull-down to GNDResistor leg
8Hole 16asignal nodeArduino A0Yellow

The exact column numbers don’t matter — what matters is that FSR leg 2, the resistor and the A0 wire share one column, FSR leg 1’s column goes to +, and the resistor’s other leg goes to −.

Parts

  • Arduino Uno R4 WiFi
  • Half-size breadboard with + / − rails
  • FSR (e.g. Interlink FSR 402)
  • 10 kΩ resistor
    brown · black · orange · gold
  • 4–5 jumper wires (red, black, yellow)
  • USB-C cable

Good to know

  • The FSR has no polarity. Either leg can go to + rail; the other goes to the signal node.
  • The resistor has no polarity either — band direction doesn’t matter.
  • Live values: open the Serial Monitor at 115200 baud to watch the FSR reading as you press.

If it doesn’t work

  • Always near 0? Check the 10 kΩ goes to the GND (−) rail, not +, and that both FSR legs are fully in the breadboard.
  • Loose FSR? Its legs are thin — push them into a female header or use a clip so they make contact.
  • Always near 1023? The resistor is probably missing or not in the same column as FSR leg 2 and the A0 wire.