Projects / Wireless doorbell

Wireless doorbell

Beginner2.5 hGuided buildReviewed

Build it step by step

0 of 8 done
  1. NANO433

    Wire the transmitter board

    DATA to D12, power, and a button on D2.

  2. NANO433

    Upload the transmitter sketch

    The first part of the code.

  3. NANO433

    Wire the receiver board

    DATA to D11, buzzer on D6, mute button on D3.

  4. NANO433

    Upload the receiver sketch

    Uncomment the second part and upload it separately.

  5. NANO

    Add antennas

    A 17 centimetre wire on each radio antenna pad.

  6. NANO

    Press the doorbell button

    The chime plays once.

  7. NANO

    Press the mute button

    The chime is silent for an hour.

  8. NANO433

    Test the range

    Walk away and press the button from different rooms.

In short

How do you build a wireless doorbell?

A 433 MHz pair rings a buzzer inside when someone presses the outside button. You need Arduino Nano × 2, 433 MHz RF transmitter and receiver pair, Tactile push button 6 mm × 2, Passive buzzer, Breadboard 830 Tie Points × 2 and Jumper wires male to male (40 pcs, 20 cm). It takes 8 steps and about 150 minutes.

Level
Beginner
Time
About 150 min
Parts
6

Parts list

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

Wiring

FromToWhy
Transmitter board: transmitter DATANano D12Data to the radio
Transmitter board: transmitter VCC and GNDNano 5V and GNDPower
Transmitter board: doorbell buttonNano D2 to GNDPress to ring
Receiver board: receiver DATANano D11Data from the radio
Receiver board: receiver VCC and GNDNano 5V and GNDPower
Receiver board: passive buzzer plusNano D6Chime
Receiver board: mute buttonNano D3 to GNDQuiet for one hour

Code

The cheap 433 megahertz transmitter and receiver pair sends simple on-off-keyed data: the receiver is a noisy radio that outputs random pulses when nothing is sent, so the RadioHead library adds a preamble and a checksum to pick real messages out of the noise. The doorbell sends a three byte message: the letters D and B and a counter that goes up with each press. It sends the message three times in a row, and the receiver ignores a message whose counter it has already seen, so one press rings once. The chime plays a short tune on the passive buzzer, and the mute button silences it for an hour. A wire about 17 centimetres long on each radio's antenna pin greatly improves the range, and walls cut it; test the range through your door. This system has no security at all: anyone with a similar transmitter could ring it, so use it only as a doorbell, never to open a lock or raise an alarm. Check your local rules about low-power 433 megahertz devices before using it outdoors.

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).

// ---------- Transmitter sketch (upload to the doorbell button board) ----------
#include <RH_ASK.h>
#include <SPI.h>

RH_ASK driver(2000, 11, 12, 10);          // speed, receive pin, transmit pin, unused
const int BUTTON = 2;
uint8_t counter = 0;

void setup() {
  pinMode(BUTTON, INPUT_PULLUP);
  driver.init();
}

void loop() {
  if (digitalRead(BUTTON) == LOW) {
    counter++;
    uint8_t msg[3] = {'D', 'B', counter};
    for (int i = 0; i < 3; i++) {          // send three times so one bad burst does not lose the ring
      driver.send(msg, 3);
      driver.waitPacketSent();
      delay(60);
    }
    delay(1500);                            // lock-out so a long press rings once
  }
}

// ---------- Receiver sketch (upload to the chime board, as a separate sketch) ----------
// #include <RH_ASK.h>
// #include <SPI.h>
// RH_ASK driver(2000, 11, 12, 10);
// const int BUZZER = 6, MUTE = 3;
// uint8_t lastCounter = 0;
// unsigned long muteUntil = 0;
// void melody() {
//   int notes[] = {659, 523, 587, 392};
//   for (int i = 0; i < 4; i++) { tone(BUZZER, notes[i], 250); delay(300); }
// }
// void setup() { pinMode(MUTE, INPUT_PULLUP); driver.init(); }
// void loop() {
//   if (digitalRead(MUTE) == LOW) { muteUntil = millis() + 3600000UL; delay(400); }
//   uint8_t buf[RH_ASK_MAX_MESSAGE_LEN]; uint8_t len = sizeof(buf);
//   if (driver.recv(buf, &len) && len == 3 && buf[0] == 'D' && buf[1] == 'B' && buf[2] != lastCounter) {
//     lastCounter = buf[2];
//     if (millis() > muteUntil) melody();
//   }
// }

Test checklist

What you should see at each check. If a reading is far off, stop and use the troubleshooting list.

CheckExpected
Button pressedChime plays once
Button heldOne ring only
Mute activeNo chime
Radios far apartWeak or no ring
No antennaRange of a metre or two

If it does not work

No chime

Check pin numbers on both boards and that both use the RadioHead library.

Random chimes

Noise from the receiver, check the counter and message length checks.

Short range

Add antennas and keep the radios away from metal.

Upload fails

Disconnect the radio DATA wire while uploading.

Chime plays twice

The counter check is missing on the receiver.

Still stuck? Find the fault step by step with your multimeter →

Ask Lark AI

Common questions

What parts do I need for the wireless doorbell?

Arduino Nano × 2, 433 MHz RF transmitter and receiver pair, Tactile push button 6 mm × 2, Passive buzzer, Breadboard 830 Tie Points × 2 and Jumper wires male to male (40 pcs, 20 cm).

How long does the wireless doorbell take to build?

About 150 minutes for a beginner maker, in 8 steps.

How do I know the wireless doorbell works?

Button pressed: Chime plays once. Button held: One ring only. Mute active: No chime.

No chime: what should I check?

Check pin numbers on both boards and that both use the RadioHead library.

Random chimes: what should I check?

Noise from the receiver, check the counter and message length checks.

Short range: what should I check?

Add antennas and keep the radios away from metal.

Upload fails: what should I check?

Disconnect the radio DATA wire while uploading.