GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsThe Ra-01S uses Semtech's SX1268, a newer LoRa chip than the SX1278 in the older Ra-01, with better sensitivity and lower current. It is not compatible with the old LoRa library, so this project uses RadioLib, which supports the SX126x family. One ESP32 sends a counter every two seconds; the other prints it with RSSI and SNR, so you can walk away and see how far the link reaches.
Never transmit without an antenna fitted; it can damage the radio.
Tick anything you already have and the total updates.
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB to each ESP32.
ra01s_link.inoVerify & upload in Electrolark#include <RadioLib.h>
#define SENDER 1 // 1 on one board, 0 on the other
SX1268 radio = new Module(5, 26, 14, 27); // NSS, DIO1, RESET, BUSY
volatile bool got = false;
void IRAM_ATTR onRx() { got = true; }
void setup() {
Serial.begin(115200);
int st = radio.begin(433.0, 125.0, 9, 7, RADIOLIB_SX126X_SYNC_WORD_PRIVATE, 14);
Serial.printf("begin: %d\n", st);
if (!SENDER) { radio.setDio1Action(onRx); radio.startReceive(); }
}
void loop() {
static int n = 0;
if (SENDER) {
String msg = "hello " + String(n++);
int st = radio.transmit(msg);
Serial.printf("sent %s (%d)\n", msg.c_str(), st);
delay(2000);
} else if (got) {
got = false;
String msg;
if (radio.readData(msg) == RADIOLIB_ERR_NONE)
Serial.printf("got '%s' RSSI %.0f dBm SNR %.1f dB\n", msg.c_str(), radio.getRSSI(), radio.getSNR());
radio.startReceive();
}
}
The chip is not found; check SPI wires, NSS and BUSY.
Both boards must use the same frequency, bandwidth, spreading factor and sync word.
Fit proper 433 MHz antennas and lift them higher.
Yes on the same settings, though sync word and settings must match exactly.
Low-power use in 433-434.79 MHz is licence-exempt in India; keep power modest.
Several kilometres in open country, less among buildings.
4 parts: 2 × AI-Thinker LoRa Ra-01S Module (410-525MHz), 2 × ESP32-WROOM-32 38-Pin Development Board, 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 2 hours. The build on this page has 6 steps.
No. This page has the complete, tested code (ra01s_link.ino).
About ₹1,731 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.
How LoRa trades speed for range; SPI radio modules with a BUSY pin; Reading RSSI and SNR.
Never transmit without an antenna fitted; it can damage the radio.
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.