In this project, we build a long-range appliance control system using two Arduino Nano boards and Reyax RYLR999 LoRa modules. A smartphone communicates with the controller node through Bluetooth Low Energy (BLE), and the controller forwards the commands over LoRa to another Arduino-based node. The receiver then controls appliances such as a lamp or a fan using relay modules.
To provide real-time feedback, 16×2 I2C LCD displays are used on both nodes to show received commands, transmission status, and response messages. After executing a command, the receiver node sends an acknowledgment back to the controller, allowing the user to verify successful operation.
System Architecture
The system consists of two independent nodes:
Controller Node
The controller node acts as the interface between the smartphone and the LoRa network.
A smartphone communicates with the BLE interface of the RYLR999 module using the LightBlue application. Incoming commands are processed by the Arduino Nano and retransmitted over the LoRa interface.
The controller node therefore performs protocol conversion from BLE to LoRa.
Target Node
The target node continuously listens for LoRa packets.
Upon reception of a valid command, the Arduino interprets the payload and activates one of two relay outputs. The node then transmits a confirmation response back to the controller.
In the present implementation, the target controls:
- a 240 V AC lamp;
- a 12 V DC fan.
Both nodes employ 16×2 I²C LCD modules for monitoring communication status.
Why the RYLR999 Module?
The Reyax RYLR999 integrates two communication interfaces inside a single module:
- Bluetooth Low Energy;
- LoRa transceiver.
This dual functionality enables the smartphone to serve as a user interface without requiring additional hardware or dedicated mobile applications.
BLE is used for local communication, while LoRa provides long-distance transmission between nodes.
Hardware Used
- Arduino Nano ×2
- Reyax RYLR999 LoRa + BLE Module ×2
- Bidirectional Voltage Level Shifter ×2
- 16×2 I2C LCD ×2
- 2-Channel Relay Module
- 12V DC Fan
- 240V AC Bulb
- Jumper Wires
- 12V Power Supply
Command Structure
The smartphone sends commands through the LightBlue BLE application.
The following syntax is used:
*L1# Lamp ON
*L0# Lamp OFF
*F1# Fan ON
*F0# Fan OFF
The controller extracts the payload and forwards it over LoRa.
After executing the command, the target node replies with:
DONE
Although only the payload is shown above, the actual LoRa transmission includes addressing and formatting information required by the RYLR999 AT command protocol.
Complete source code, circuit diagrams, configuration details, and troubleshooting information are available at Play with Circuit:
https://playwithcircuit.com/long-range-appliance-control-from-smartphone-using-arduino/
Discussion (0 commentaire(s))