Projects / Doorbell vibration wristband

Doorbell vibration wristband

Intermediate3 hGuided buildReviewed

Build it step by step

0 of 7 done
  1. ESP32

    Test the button

    Print a message when pressed.

  2. ESP32

    Test the band motor

    Vibrate in each pattern.

  3. ESP32

    Send the message

    ESP-NOW from door unit to band.

  4. ESP32

    Add the patterns

    Door, phone, alarm.

  5. ESP3211.5 mA

    Add the LED

    Flash with the vibration.

  6. ESP32+

    Add the battery

    Fit the LiPo on the band.

  7. ESP32

    Test through walls

    Walk around the house.

In short

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

Tick what you already own. It saves to My Garage, so “Build with what I have” knows.

Wiring

FromToWhy
DOOR UNIT: push buttonESP32 GPIO4 and GNDThe doorbell button (low voltage, separate from any mains bell)
Door unit5 V USB adapterPower
BAND: XIAO D21 kΩ to BC547 baseMotor switch
BC547 collectorMotor minusSwitched return
BC547 emitterXIAO GNDGround
Motor plusXIAO 3V3Supply
1N4148Across the motor, stripe to 3V3Flyback protection
Red LED anode and 220 ΩXIAO D1Flash
Red LED cathodeXIAO GNDReturn
LiPoXIAO BAT padsPower 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.

CheckExpected
Press the door buttonTwo long pulses on the band
Press again within 3 secondsIgnored
Out of rangeNo pulse, so keep the band close
BatteryLasts 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 →

Ask Lark AI

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.