GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsThe outdoor unit sends a short "DING" message over 2.4 GHz when the button is pressed; the indoor unit listens and plays a chime. Range is about 30 m through a couple of walls, with no Wi-Fi needed.
Tick anything you already have and the total updates.
The brain of the project; Second Uno for the indoor receiver
Connects the Uno to your computer to upload code and power it
2.4 GHz radio transceiver for short messages between two boards, up to about 30 m indoors.; Second radio for the receiver
Follow the colours: red is power, dark grey is ground, blue is a signal.
nrf24_wireless_doorbell.inoVerify & upload in Electrolark// Wireless doorbell with nRF24L01
// Geekobot project library · board: Arduino Uno
// Wiring diagram, parts list and build steps: Geekobot project page "nrf24-wireless-doorbell"
#include <SPI.h>
#include <RF24.h>
// ---- pins ----
const uint8_t RADIO_CE = 2;
const uint8_t RADIO_CSN = 3;
const uint8_t BUTTON_PIN = 4;
RF24 radio(RADIO_CE, RADIO_CSN);
const byte ADDRESS[6] = "OLDB1";
void setup() {
Serial.begin(115200);
pinMode(BUTTON_PIN, INPUT_PULLUP);
radio.begin();
radio.setPALevel(RF24_PA_LOW);
radio.openWritingPipe(ADDRESS);
radio.stopListening();
}
void loop() {
if (digitalRead(BUTTON_PIN) != LOW) return;
const char msg[] = "DING";
bool ok = radio.write(&msg, sizeof(msg));
Serial.println(ok ? F("Sent") : F("No acknowledgement"));
while (digitalRead(BUTTON_PIN) == LOW) delay(10);
delay(200);
}
The sketch above runs here on a simulated Arduino Uno. Move the sliders for the sensors and buttons it reads, and watch the Serial monitor, display and outputs change.
doorbell_receiver.inoVerify & upload in Electrolark// Wireless doorbell: RECEIVER (indoor unit)
// Board: Arduino Uno. Same nRF24L01 wiring as the button unit, plus a piezo on pin 5.
#include <SPI.h>
#include <RF24.h>
const uint8_t RADIO_CE = 9;
const uint8_t RADIO_CSN = 8;
const uint8_t PIEZO_PIN = 5;
RF24 radio(RADIO_CE, RADIO_CSN);
const byte ADDRESS[6] = "OLDB1";
void ring() {
tone(PIEZO_PIN, 880, 250); delay(300);
tone(PIEZO_PIN, 659, 400); delay(450);
noTone(PIEZO_PIN);
}
void setup() {
Serial.begin(115200);
pinMode(PIEZO_PIN, OUTPUT);
radio.begin();
radio.setPALevel(RF24_PA_LOW);
radio.openReadingPipe(1, ADDRESS);
radio.startListening();
Serial.println(F("Listening..."));
}
void loop() {
if (!radio.available()) return;
char msg[8] = {0};
radio.read(&msg, sizeof(msg));
Serial.print(F("Received: ")); Serial.println(msg);
if (strcmp(msg, "DING") == 0) ring();
}
Add the 10 µF capacitor, check both sketches use the same ADDRESS, and keep the boards at least 1 m apart.
The button is rotated 90°; legs on the same side are already connected. Turn it.
Open the Serial Monitor at 115200 baud and check for messages. Make sure you chose the right board and port in the Arduino IDE.
Close other programs using the serial port, try another USB cable (some are charge-only) and press reset just before uploading.
Yes. Most of the code works unchanged on an ESP32 with the ESP32 board package. Watch for 5 V modules: ESP32 pins are 3.3 V, so 5 V output signals need a resistor divider.
Use a 5 V USB phone charger or a power bank into the board's USB port.
8 parts: Uno R3 CH340G ATmega328p Compatible Development Board, Arduino USB-A to USB-B Data Cable for UNO/MEGA, NRF24L01 2.4GHz Wireless Transceiver Module, Tactile Push Button Switch, Electrolytic Capacitor, Piezo Buzzer (passive), Solderless Breadboard (830 points) and Dupont Jumper Wires (40 pcs). Tools: Digital Multimeter and Wire Stripper and Cutter. On this page you can tick the parts you already have and add only the rest to your cart.
It is a intermediate project and takes about 2–3 hours. The build on this page has 7 steps.
No. This page has the complete, tested code (nrf24_wireless_doorbell.ino and doorbell_receiver.ino). Install this library first: RF24.
Yes. The Run it panel under the code runs this exact sketch on a simulated board. Move the sliders or press the buttons for the sensors it reads, and the Serial monitor, display and outputs react as they will on the real build. It is a simulation, so real readings depend on your parts and wiring.
About ₹426 for the parts at the prices on this page, plus tools if you do not have them. Quantity price breaks lower the cost when you build several.
Packet radio and addresses; Pull-ups and debouncing.
Ideas that reuse this build: PIR visitor chime. They are listed under Take it further on this page.
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Records where you went every five seconds, ready to open on a map.
Check temperature, humidity and pressure from any phone on your Wi-Fi.
Soil moisture and room climate on your phone, with automatic watering and a manual override.
Learning project. Check every circuit and the datasheet of each part before you power it up.
A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.