GPS speedometer and clock
A bike or car speedometer that needs no wheel sensor: satellites do the measuring.
Shop by category
Shop all componentsThe Reyax RYLR998 is a LoRa radio with simple AT commands over serial: set an address and network ID, then 'AT+SEND' a short message. The other module prints '+RCV=' with the sender, the text and the signal strength. Range is often a kilometre or more, so it reaches a farm gate, a shed or a water tank where Wi-Fi never will. One sketch runs both ends: set ROLE to 1 on the gate and 2 in the house.
Stay within India's power limits for 865-867 MHz; do not fit high-gain amplifiers.
Tick anything you already have and the total updates.
Reyax RYLR998 LoRa module
Magnetic reed door sensor for the gate (use its NO contact)
Follow the colours: red is power, dark grey is ground, blue is a signal.
USB chargers at both ends, or a power bank at the gate.
gate_lora.inoVerify & upload in Electrolark#define ROLE 1 // 1 = gate sender (address 1), 2 = house receiver (address 2)
const char* BAND = "865062500";
void at(const String& cmd) {
Serial2.println(cmd);
delay(200);
while (Serial2.available()) Serial.write(Serial2.read());
}
void setup() {
Serial.begin(115200);
Serial2.begin(115200, SERIAL_8N1, 16, 17);
at("AT");
at(String("AT+ADDRESS=") + ROLE);
at("AT+NETWORKID=18");
at(String("AT+BAND=") + BAND);
pinMode(4, INPUT_PULLUP);
pinMode(5, OUTPUT);
}
void loop() {
#if ROLE == 1
static bool wasOpen = false;
bool open = digitalRead(4) == HIGH; // magnet away = switch open
if (open && !wasOpen) at("AT+SEND=2,9,GATE OPEN");
wasOpen = open;
delay(100);
#else
if (Serial2.available()) {
String line = Serial2.readStringUntil('\n'); // +RCV=1,9,GATE OPEN,-60,11
Serial.println(line);
if (line.startsWith("+RCV=") && line.indexOf("GATE OPEN") > 0) {
for (int i = 0; i < 5; i++) { digitalWrite(5, HIGH); delay(200); digitalWrite(5, LOW); delay(200); }
}
}
#endif
}
TX and RX are swapped, or the module's baud is not 115200.
The frequency is outside what your module accepts; check its AT manual.
Raise both antennas, keep them vertical and away from metal.
Often 1-3 km with clear line of sight; walls and trees cut it down.
Set a password with AT+CPIN on both modules so others cannot read your messages.
Yes, put the ESP32 in deep sleep and wake it on the reed switch.
6 parts: 2 × Reyax RYLR998 868/915MHz LoRa Transceiver Module DIP Version, 2 × ESP32-WROOM-32 38-Pin Development Board, MAGREED 2538 Magnetic Proximity Sensor – NO/NC/Changeover, 18″ Cable, Buzzer Module 3.3–5V, Solderless Breadboard and Dupont Jumper Wires (40 pcs). 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 (gate_lora.ino).
About ₹3,674 for the parts at the prices on this page. Quantity price breaks lower the cost when you build several.
Driving a LoRa module with AT commands; RSSI and SNR as link health; Reed switches as door sensors.
Stay within India's power limits for 865-867 MHz; do not fit high-gain amplifiers.
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.