Happy Chinese New Year!Elecrow will be on holiday from February 14–22 (GMT+8). You may still place orders of products and
manufacturing services as usual, and we will resume production and shipping by February 25.

user-img

Dharani Creations

  • 19 Projects
  • 13 Followers
  • Feb 19,2026
+ Follow

No WiFi? 5KM LoRa Smart Relay using NodeMCU & Arduino

This project demonstrates a long-range smart home control system built using RYLR998 LoRa modules, NodeMCU ESP8266, and Arduino Uno. Unlike traditional WiFi-based home automation systems, this project uses LoRa (Long Range communication) technology to enable wireless communication up to 5KM range under line-of-sight conditions.

No WiFi? 5KM LoRa Smart Relay using NodeMCU & Arduino
 
  • thumbnail-img
  • thumbnail-img
  • thumbnail-img
  • thumbnail-img
 

Hardware Components

  • Arduino UNO

    X 1 fenxiang
  • NodeMCU

    X 1
  • Jumper Wires

    X 1
  • 5V Relay module

    X 1
  • TTP223B Touch Sensor

    X 1
  • Gravity: I2C 16x2 Arduino LCD

    DFRobot
    X 1
  • Oled 0,96" 128x64

    X 1
  • Breadboard

    X 1
  • Modified PC Power Supply

    X 1
  • RYLR998 Lora module

    Reyax Technology
    X 1

Tools, APP Software Used etc.

  • Arduino IDE (programming)

  • Fritzing

  • Blynk Platform

Story

 

 LoRa Based Smart Home Control System (5KM Range)

Project Overview

This project demonstrates a long-range smart home control system built using RYLR998 LoRa modules, NodeMCU ESP8266, and Arduino Uno.

Unlike traditional WiFi-based home automation systems, this project uses LoRa (Long Range communication) technology to enable wireless communication up to 5KM range under line-of-sight conditions.

The system supports both:

  • Online control via the Blynk IoT mobile application

  • Offline control using a capacitive touch sensor

This ensures reliable operation even in environments where internet connectivity is unstable or unavailable.


 Working Principle

The system is divided into two main sections:

1️⃣ Transmitter Section (NodeMCU Side)

The NodeMCU acts as the control and communication unit.

It performs the following functions:

  • Connects to WiFi

  • Communicates with the Blynk IoT platform

  • Reads input from the touch sensor

  • Sends commands via LoRa module

  • Displays system status on OLED screen

When a user presses the relay button in the Blynk app or touches the sensor, the NodeMCU sends a command through the LoRa module to the Arduino unit.


2️⃣ Receiver Section (Arduino Side)

The Arduino Uno acts as the execution unit.

It performs the following functions:

  • Receives LoRa command

  • Controls the relay module (Active-Low logic)

  • Sends acknowledgment (ACK) back to NodeMCU

  • Displays system status on 16x2 LCD

When a command is received, the relay is switched ON or OFF accordingly. The Arduino then sends an acknowledgment message back to the NodeMCU to ensure proper synchronization.


 Communication Protocol

The RYLR998 LoRa modules communicate using UART AT commands.

Configuration parameters:

  • Frequency Band: 868 MHz

  • Network ID: 5

  • Address (NodeMCU): 1

  • Address (Arduino): 2

Example Command Format:

 
AT+SEND=2,6,CMD:ON

Example Acknowledgment:

 
AT+SEND=1,6,ACK:ON

This bidirectional communication ensures reliable long-range control.


 Key Features

  •  868 MHz LoRa Communication

  •  Up to 5KM Range (Line-of-Sight)

  •  Blynk IoT Integration

  •  Offline Touch Control

  •  Real-Time Acknowledgment System

  •  OLED Status Display

  •  LCD Relay Status Display

  •  Active-Low Relay Logic

  •  Online + Offline Operation


 Hardware Components

  • NodeMCU ESP8266

  • Arduino Uno

  • 2 × RYLR998 LoRa Modules

  • OLED Display (SSD1306)

  • 16x2 LCD (I2C)

  • Relay Module

  • Touch Sensor

  • Voltage Divider (for LoRa RX protection)


 Applications

This system can be used in:

  • Smart agriculture irrigation systems

  • Remote lighting control

  • Industrial long-range monitoring

  • Rural area automation

  • Warehouse control systems

  • Security and surveillance applications


 Advantages of Using LoRa

Compared to WiFi:

  • Much longer communication range

  • Lower power consumption

  • Better penetration through obstacles

  • Suitable for IoT and remote applications

LoRa is ideal for scenarios where traditional WiFi coverage is limited.


 Conclusion

This project successfully demonstrates a long-range smart home automation system using LoRa technology. By combining IoT control with long-range wireless communication, the system provides a reliable, scalable, and efficient solution for remote device control.

The integration of Blynk IoT, UART configuration, acknowledgment system, and dual-mode operation (online + offline) makes this project suitable for real-world IoT deployments.

 

Code
  • CODE

    https://github.com/DharaniCreations/LoRa-Smart-Home-Control-5KM-Range-
    View
Schematic and Layout
  • Diagram

    https://github.com/DharaniCreations/LoRa-Smart-Home-Control-5KM-Range-
    View

No WiFi? 5KM LoRa Smart Relay using NodeMCU & Arduino

This project demonstrates a long-range smart home control system built using RYLR998 LoRa modules, NodeMCU ESP8266, and Arduino Uno. Unlike traditional WiFi-based home automation systems, this project uses LoRa (Long Range communication) technology to enable wireless communication up to 5KM range under line-of-sight conditions.

26
 
2
0
0

Share your project on social media to expand its influence! Get more people to support it.

  • Comments( 0 )
  • Like( 2 )
/1000
Upload a photo:
You can only upload 1 files in total. Each file cannot exceed 2MB. Supports JPG, JPEG, GIF, PNG, BMP

You May Also Like

View All
Add to cart
Board Type : GerberFile :
Layer : Dimensions :
PCB Qty :
Different PCB Design
PCB Thickness : PCB Color :
Surface Finish : Castellated Hole :
Copper Weight : 1 oz Production Time :
Total: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.

PCB Assembly

PCBA Qty: BomFile:
NO. OF UNIQUE PARTS: NO. of Components:
Country: Shipping Way:
Assembly Cost: US $
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
3dPrintingFile : Size :
Unit : Volumn :
3D Printing Qty : Material :
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Acrylic Type : AcrylicFile :
Dimensions: Engrave:
Acrylic Qty :
Acrylic Thickness:
Acrylic Color:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
CNC Milling File : Size:
Unit: Volumn:
CNC Milling Qty : Material:
Type of Aluminum: Surface Finish:
Tolerance:
Surface Roughness:
Total: US $12.99
As a sharing platform, our community will not bear responsibility for any issues with this design and parameters.
Add to cart
Item Price Qty Subtotal Delete
Total: US $0.00
Certified Product | Guaranteed Purchase: Full techsupport