Doorbell vibration wristband
Build it step by step
0 of 7 doneTest the button
Print a message when pressed.
Test the band motor
Vibrate in each pattern.
Send the message
ESP-NOW from door unit to band.
Add the patterns
Door, phone, alarm.
Add the LED
Flash with the vibration.
Add the battery
Fit the LiPo on the band.
Test through walls
Walk around the house.
How do you build a doorbell vibration wristband?
When the doorbell rings, a wristband vibrates and flashes so deaf or hard-of-hearing people know someone is there. You need ESP32 DevKit V1, Seeed XIAO ESP32C3, Vibration motor (coin type), LED 5 mm red, Resistor 220 Ω, Li-Po battery 3.7 V 500 mAh, Tactile push button 6 mm, BC547 NPN transistor, Resistor 1 kΩ and Signal Diode 1N4148. It takes 7 steps and about 180 minutes.
- Level
- Intermediate
- Time
- About 180 min
- Parts
- 10
Parts list
- Development BoardsBuyESP32 DevKit V1 × 1
- Development BoardsBuy
- Motors & ActuatorsBuy
- SemiconductorsBuyLED 5 mm red × 1
- PassivesBuyResistor 220 Ω × 1
- BatteriesBuy
- SwitchesBuy
- SemiconductorsBuy
- PassivesBuyResistor 1 kΩ × 1
- SemiconductorsBuy
Tick what you already own. It saves to My Garage, so “Build with what I have” knows.
Wiring
| From | To | Why |
|---|---|---|
| DOOR UNIT: push button | ESP32 GPIO4 and GND | The doorbell button (low voltage, separate from any mains bell) |
| Door unit | 5 V USB adapter | Power |
| BAND: XIAO D2 | 1 kΩ to BC547 base | Motor switch |
| BC547 collector | Motor minus | Switched return |
| BC547 emitter | XIAO GND | Ground |
| Motor plus | XIAO 3V3 | Supply |
| 1N4148 | Across the motor, stripe to 3V3 | Flyback protection |
| Red LED anode and 220 Ω | XIAO D1 | Flash |
| Red LED cathode | XIAO GND | Return |
| LiPo | XIAO BAT pads | Power and charging |
Code
A button by the front door sends one small wireless message, and the band vibrates and flashes in a pattern that says what the alert is: two long pulses for the door, three short ones for a phone and six for an alarm. The door unit here is its own low-voltage push button: do not wire anything into a mains doorbell yourself, because that must be done by a qualified electrician. ESP-NOW messages are not encrypted, and the broadcast address means any band in range responds, so address the band by its own MAC if neighbours have similar devices. The band's range is typically 20 to 50 metres indoors. Do not rely on this as the only alert for something critical such as a smoke alarm; use certified alarms with strobe and vibration for that. Fit the band so the motor sits against the wrist, use a protected LiPo in a sewn pocket, and never wear it while charging. Arduino IDE with the ESP32 boards package 2.0.x, board "XIAO_ESP32C3".
Runs on a virtual Seeed XIAO ESP32-C3 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).
// DOOR UNIT (ESP32). Sends one ESP-NOW message when the button is pressed. Board package: ESP32 2.0.x.
#include <WiFi.h>
#include <esp_now.h>
uint8_t BAND[] = {0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}; // broadcast to any listening band; use the band's address to target one
const int BTN = 4;
unsigned long lastPress = 0;
void setup() {
pinMode(BTN, INPUT_PULLUP);
WiFi.mode(WIFI_STA); esp_now_init();
esp_now_peer_info_t p = {}; memcpy(p.peer_addr, BAND, 6); p.channel = 0; p.encrypt = false; esp_now_add_peer(&p);
}
void loop() {
if (!digitalRead(BTN) && millis() - lastPress > 3000) { // ignore repeats for 3 seconds
lastPress = millis();
uint8_t type = 1; // 1 = door, 2 = phone, 3 = alarm
esp_now_send(BAND, &type, 1);
}
}
/* ---- BAND (XIAO ESP32C3). Receives and vibrates in a pattern per alert type.
#include <WiFi.h>
#include <esp_now.h>
const int MOTOR = D2, LED = D1;
volatile uint8_t alertType = 0;
void onData(const uint8_t* mac, const uint8_t* data, int len) { if (len == 1) alertType = data[0]; }
void pulse(int ms) { digitalWrite(MOTOR, HIGH); digitalWrite(LED, HIGH); delay(ms); digitalWrite(MOTOR, LOW); digitalWrite(LED, LOW); delay(200); }
void setup() {
pinMode(MOTOR, OUTPUT); pinMode(LED, OUTPUT);
WiFi.mode(WIFI_STA); esp_now_init(); esp_now_register_recv_cb(onData);
}
void loop() {
if (alertType) {
uint8_t t = alertType; alertType = 0;
if (t == 1) { pulse(500); pulse(500); } // door: two long pulses
if (t == 2) { pulse(150); pulse(150); pulse(150); } // phone: three short pulses
if (t == 3) { for (int i = 0; i < 6; i++) pulse(300); } // alarm: six pulses
}
delay(20);
}
*/Test checklist
What you should see at each check. If a reading is far off, stop and use the troubleshooting list.
| Check | Expected |
|---|---|
| Press the door button | Two long pulses on the band |
| Press again within 3 seconds | Ignored |
| Out of range | No pulse, so keep the band close |
| Battery | Lasts a day or more on standby |
If it does not work
No vibration
Check the transistor pins and the diode direction.
Not receiving
Check both units use the same ESP32 package version.
Too many triggers
Lengthen the ignore time.
Motor too weak
Check the supply and the transistor.
Still stuck? Find the fault step by step with your multimeter →
Common questions
What parts do I need for the doorbell vibration wristband?
ESP32 DevKit V1, Seeed XIAO ESP32C3, Vibration motor (coin type), LED 5 mm red, Resistor 220 Ω, Li-Po battery 3.7 V 500 mAh, Tactile push button 6 mm, BC547 NPN transistor, Resistor 1 kΩ and Signal Diode 1N4148.
How long does the doorbell vibration wristband take to build?
About 180 minutes for a intermediate maker, in 7 steps.
How do I know the doorbell vibration wristband works?
Press the door button: Two long pulses on the band. Press again within 3 seconds: Ignored. Out of range: No pulse, so keep the band close.
No vibration: what should I check?
Check the transistor pins and the diode direction.
Not receiving: what should I check?
Check both units use the same ESP32 package version.
Too many triggers: what should I check?
Lengthen the ignore time.
Motor too weak: what should I check?
Check the supply and the transistor.
