Build it step by step
0 of 8 doneWire the divider
FSR from 5V to A0, 10 kilohm from A0 to GND.
Wire the buzzer
Plus to D6, minus to GND.
Upload the sketch
Serial monitor shows readings near 0 with no load.
Press the pad with a finger
The reading rises well above 300.
Release it
The reading falls back to near 0.
Press again after three seconds
The buzzer gives a double chime.
Change THRESHOLD
Lower values make the pad more sensitive.
Place it under a mat
Step on it to test the real setup.
How do you build a pressure pad door chime?
A force-sensing pad under a mat triggers a chime when someone steps on it. You need Arduino Nano, Force sensitive resistor FSR 402, Resistor 10 kΩ, Active buzzer 5 V and Breadboard 830 Tie Points. It takes 8 steps and about 120 minutes.
- Level
- Beginner
- Time
- About 120 min
- Parts
- 5
Parts list
- Development BoardsBuyArduino Nano × 1
- SensorsBuy
- PassivesBuyResistor 10 kΩ × 1
- Motors & ActuatorsBuy
- PrototypingBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| Nano 5V | One leg of the FSR | Top of the divider |
| Other FSR leg | Nano A0 and one end of 10 kilohm | Divider midpoint |
| Other end of 10 kilohm | Nano GND | Bottom of the divider |
| Active buzzer plus | Nano D6 | Chime output |
| Active buzzer minus | Nano GND | Ground |
Code
A force-sensitive resistor lowers its resistance as you press harder, from a few megohms with no load to a few kilohms under a firm press. With a 10 kilohm resistor to ground it forms a voltage divider, so the voltage on A0 rises with force. The sketch averages eight readings to ignore noise, compares the result to a threshold and chimes once on each new press. A lock-out of three seconds stops repeated chimes while someone stands on the pad. The FSR is better at telling that something is pressed than at measuring weight, because its readings drift and vary between parts. For a door mat, place the sensor under a thin rubber mat with a flat piece of card above it to spread the force over the small sensing circle, and fix it so it cannot fold. Keep the thin legs away from sharp bends. This is a convenience chime, not a security alarm.
Runs on a virtual Arduino Nano in your browser, with sliders for the sensors. Happy with it? Verify and upload to your real board from the same page (Chrome or Edge on a computer).
const int FSR_PIN = A0;
const int BUZZER = 6;
const int THRESHOLD = 300; // 0 to 1023, raise it if the pad triggers too easily
const unsigned long LOCKOUT_MS = 3000;
unsigned long lastChime = 0;
bool wasPressed = false;
int readSmooth() {
long sum = 0;
for (int i = 0; i < 8; i++) { sum += analogRead(FSR_PIN); delay(2); }
return sum / 8;
}
void setup() {
pinMode(BUZZER, OUTPUT);
digitalWrite(BUZZER, LOW);
Serial.begin(9600);
}
void loop() {
int v = readSmooth();
bool pressed = v > THRESHOLD;
// Chime once per step, and not again until the lock-out time has passed
if (pressed && !wasPressed && millis() - lastChime > LOCKOUT_MS) {
digitalWrite(BUZZER, HIGH); delay(150);
digitalWrite(BUZZER, LOW); delay(100);
digitalWrite(BUZZER, HIGH); delay(150);
digitalWrite(BUZZER, LOW);
lastChime = millis();
}
wasPressed = pressed;
Serial.println(v);
delay(30);
}What the serial monitor should show
Open the serial monitor at the baud rate in the code. This is what our simulator prints for a virtual Arduino Nano with its sensors at their default values. Your numbers will follow your real readings, but the format should match.
512 511 512 511 512 511
Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| No load | Reading under 50 |
| Light finger press | Reading rises |
| Firm press | Reading above 500 |
| Step on twice quickly | One chime then a pause |
| Release and wait | Chime again on the next press |
If it does not work
Always chimes
Raise THRESHOLD or check the 10 kilohm resistor is to GND.
Never chimes
Lower THRESHOLD and check the FSR legs are in the right rows.
Readings jump around
Add a 100 nanofarad capacitor from A0 to GND.
Buzzer stays on
Check its wiring and that it is an active buzzer.
Pad stops working
The thin legs may have been bent, replace the sensor.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the pressure pad door chime?
Arduino Nano, Force sensitive resistor FSR 402, Resistor 10 kΩ, Active buzzer 5 V and Breadboard 830 Tie Points.
How long does the pressure pad door chime take to build?
About 120 minutes for a beginner maker, in 8 steps.
How do I know the pressure pad door chime works?
No load: Reading under 50. Light finger press: Reading rises. Firm press: Reading above 500.
Always chimes: what should I check?
Raise THRESHOLD or check the 10 kilohm resistor is to GND.
Never chimes: what should I check?
Lower THRESHOLD and check the FSR legs are in the right rows.
Readings jump around: what should I check?
Add a 100 nanofarad capacitor from A0 to GND.
Buzzer stays on: what should I check?
Check its wiring and that it is an active buzzer.
