MuTech RoboticsLearning Hub
Kids OK with adultESP32Level 2/3

What Is LoRa? A Long-Range Gate Alert

LoRa sends small messages kilometres away on very little power. Try it with a gate alert: a sensor at the gate, an alarm inside the house.

Sign in to save
What Is LoRa? A Long-Range Gate Alert
Kids OK, with an adult

DIY project. Children must build this only with an adult (16+ years) beside them at all times. Not suitable for children under 8 years.

Low voltage. Always connect the antenna before powering a LoRa module, and use the frequency band that is legal in your country (865–867 MHz in India).

Strictly follow the description given with this video.

Video

How it works

  1. LoRa radios trade speed for range: tiny packets travel kilometres and a battery lasts for months.
  2. At the gate, a reed switch tells the transmitter ESP32 when the gate opens.
  3. It sends a short “GATE OPEN” packet on the LoRa band.
  4. Inside, the receiver ESP32 shows the message on the OLED and sounds the buzzer.

Parts you need

  • ESP32 development board (30-pin)ESP32 development board (30-pin)₹518× 2Buy
  • LoRa radio module with antenna× 2
  • Reed switch with magnetReed switch with magnet× 1Buy
  • 0.96" OLED display (I2C)0.96" OLED display (I2C)₹218× 1Buy
  • Active buzzerActive buzzer₹17× 1Buy
  • Jumper wiresJumper wires₹80× 1Buy

Wiring

LoRaVCCGNDNSSSCKMISOMOSIRSTDIO0ESP323V3GNDD5D18D19D23D16D4D27 and GNDD21 / D22D25Gate: reed switchHouse: OLEDSDA / SCLHouse: buzzer+
PowerGroundSignal
#FromConnect to
1 PowerLoRa VCC (both)ESP32 3V3
2 GroundLoRa GND (both)ESP32 GND
3 SignalLoRa NSSESP32 D5
4 SignalLoRa SCKESP32 D18
5 SignalLoRa MISOESP32 D19
6 SignalLoRa MOSIESP32 D23
7 SignalLoRa RSTESP32 D16
8 SignalLoRa DIO0ESP32 D4
9 SignalGate: reed switchESP32 D27 and GND
10 SignalHouse: OLED SDA / SCLESP32 D21 / D22
11 SignalHouse: buzzer +ESP32 D25

3D print files

This project has no 3D-printed parts.

Code

Get the code