GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsThe RFM69HCW is a sub-GHz FSK radio with a high-power amplifier, good for a few hundred metres to a kilometre with simple wire antennas. It is a small module with castellated pads, so you solder thin wires to it. RadioHead's RH_RF69 driver handles packets, checks and encryption. One ESP32 watches a reed switch and sends 'OPEN' or 'CLOSED'; the other listens and sounds a buzzer.
Tick anything you already have and the total updates.
Reed switch with magnet
Follow the colours: red is power, dark grey is ground, blue is a signal.
Shed unit from a power bank or 5 V adapter; house unit from USB.
shed.inoVerify & upload in Electrolark#include <SPI.h>
#include <RH_RF69.h>
RH_RF69 rf(5, 4);
uint8_t KEY[16] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};
int last = -1;
void setup() {
pinMode(13, INPUT_PULLUP);
pinMode(2, OUTPUT); digitalWrite(2, HIGH); delay(10); digitalWrite(2, LOW); delay(10); // reset
rf.init(); rf.setFrequency(433.0); rf.setTxPower(20, true); rf.setEncryptionKey(KEY);
}
void loop() {
int open = digitalRead(13);
if (open != last) {
const char *msg = open ? "OPEN" : "CLOSED";
for (int i = 0; i < 3; i++) { rf.send((uint8_t *)msg, strlen(msg)); rf.waitPacketSent(); delay(100); }
last = open;
}
delay(50);
}
house.inoVerify & upload in Electrolark#include <SPI.h>
#include <RH_RF69.h>
RH_RF69 rf(5, 4);
uint8_t KEY[16] = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16};
void setup() {
Serial.begin(115200); pinMode(25, OUTPUT);
pinMode(2, OUTPUT); digitalWrite(2, HIGH); delay(10); digitalWrite(2, LOW); delay(10);
rf.init(); rf.setFrequency(433.0); rf.setTxPower(20, true); rf.setEncryptionKey(KEY);
}
void loop() {
if (!rf.available()) return;
uint8_t buf[RH_RF69_MAX_MESSAGE_LEN], len = sizeof(buf);
if (!rf.recv(buf, &len)) return;
buf[len] = 0;
Serial.printf("%s RSSI %d\n", (char *)buf, rf.lastRssi());
if (!strcmp((char *)buf, "OPEN")) tone(25, 2500, 1500);
}
Check the reset pulse and SPI wiring; the module is 3.3 V only.
Use a straight 17.3 cm antenna on both ends and lift them up.
The sender repeats three times; add an acknowledgement for full reliability.
Low-power use in 433-434.79 MHz is de-licensed.
Wi-Fi rarely reaches the far end of a garden; sub-GHz goes through foliage better.
The high-power version that can transmit up to 20 dBm.
6 parts: 2 × RFM69HCW Wireless Transceiver Module – 434MHz FSK/OOK, 2 × ESP32-WROOM-32 38-Pin Development Board, Generic Reed Switch 2×14mm Normally Open Magnetic Sensor (Pack of 10), Buzzer Module 3.3–5V, Solderless Breadboard and Dupont Jumper Wires (40 pcs). Tools: Solder Wire 60/40 Rosin Core. 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 3 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (shed.ino and house.ino).
About ₹1,501 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.
Sub-GHz radio and simple wire antennas; Sending packets with RadioHead; Encrypting a radio link.
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.
Two boards, two radios: press the button at the gate and it rings indoors.
Check temperature, humidity and pressure from any phone on your Wi-Fi.
Lessons are free to read. Maker (₹499/month) and Pro add quizzes, worked problems and certificates, paid with your Geekobot account. See plans
Learning project. Check every circuit and the datasheet of each part before you power it up.