GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsThe same receiver with a buzzer: whenever a node adds ALERT to its message, the buzzer sounds until the node reports normal again (or for two minutes after the last alert).
Tick anything you already have and the total updates.
Long-range 433 MHz radio that sends small messages a kilometre or more across open fields with very little power.
Active buzzer with a built-in oscillator: apply power and it beeps at about 2.3 kHz.
Follow the colours: red is power, dark grey is ground, blue is a signal.
lora_receiver_alarm.inoVerify & upload in Electrolark// LoRa receiver with an alarm buzzer
// Geekobot project library · board: ESP32-C3 SuperMini
// Wiring diagram, parts list and build steps: Geekobot project page "lora-receiver-alarm"
#include <SPI.h>
#include <LoRa.h>
#include <Wire.h>
#include <Adafruit_GFX.h>
#include <Adafruit_SSD1306.h>
// ---- pins ----
const uint8_t LORA_RST = 10;
const uint8_t LORA_DIO0 = 3;
const uint8_t BUZZER_PIN = 2;
Adafruit_SSD1306 oled(128, 64, &Wire, -1);
String last = "(waiting)";
int rssi = 0;
unsigned long lastRx = 0, lastShow = 0;
void setBuzzer(bool on) { digitalWrite(BUZZER_PIN, on ? HIGH : LOW); }
void setup() {
Serial.begin(115200);
LoRa.setPins(SS, LORA_RST, LORA_DIO0);
if (!LoRa.begin(433E6)) Serial.println(F("LoRa module not found"));
LoRa.setSpreadingFactor(10); // slower but reaches further
if (!oled.begin(SSD1306_SWITCHCAPVCC, 0x3C)) Serial.println(F("OLED not found"));
oled.setTextColor(SSD1306_WHITE);
oled.clearDisplay();
oled.display();
pinMode(BUZZER_PIN, OUTPUT);
setBuzzer(false);
}
void loop() {
int size = LoRa.parsePacket();
if (size) {
last = "";
while (LoRa.available()) last += (char)LoRa.read();
rssi = LoRa.packetRssi(); lastRx = millis();
Serial.print(last); Serial.print(F(" RSSI ")); Serial.println(rssi);
}
bool alarm = last.indexOf("ALERT") >= 0 && millis() - lastRx < 120000;
setBuzzer(alarm && (millis() / 300) % 2 == 0);
if (millis() - lastShow < 500) return;
lastShow = millis();
oled.clearDisplay(); oled.setTextSize(1); oled.setCursor(0, 0);
int a = 0; // one field per line: NODE;name=value;...
for (int row = 0; row < 5 && a <= (int)last.length(); row++) {
int z = last.indexOf(';', a); if (z < 0) z = last.length();
oled.setCursor(0, row * 10); oled.print(last.substring(a, z));
a = z + 1;
}
oled.setCursor(0, 54);
if (lastRx) { oled.print(F("RSSI ")); oled.print(rssi); oled.print(F(" ")); oled.print((millis() - lastRx) / 1000); oled.print(F("s ago")); }
else oled.print(F("No signal yet"));
oled.display();
}
The sketch above runs here on a simulated ESP32-C3. Move the sliders for the sensors and buttons it reads, and watch the Serial monitor, display and outputs change.
Check the four SPI wires and that NSS and RST go to the pins in the sketch.
Mount both antennas high and vertical, clear of metal. Range drops sharply behind buildings.
Check SDA/SCL and try address 0x3D. Run an I²C scanner to confirm.
Low-triggered module: invert the logic in setBuzzer().
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.
Use a 5 V USB phone charger or a power bank into the board's USB port.
6 parts: ESP32-C3 SuperMini Development Board, SX1278 LoRa Module RA-02 433MHz, 0.96" OLED Display 128x64 (I2C), Active Buzzer Module 3.3–5V, 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 1–2 hours. The build on this page has 9 steps.
No. This page has the complete, tested code (lora_receiver_alarm.ino). Install these libraries first: LoRa, Adafruit SSD1306 and Adafruit GFX Library.
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 ₹899 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.
Active vs passive buzzers; Drawing text on an I²C display; LoRa radio and spreading factor.
Ideas that reuse this build: Receiver with an OLED and LoRa gate sensor. 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.
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.
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.