How to use LoRa RYLR998 Modules with Arduino
Introduction
In recent years, the concept of "smart" technology has gained significant traction, with terms like "smart cities," "smart environments," and "smart homes" becoming part of our everyday vocabulary. These innovations rely heavily on information and communication technology (ICT) to enhance operational efficiency and improve the quality of life. At the heart of these systems are IoT (Internet of Things) devices—sensors, meters, and other connected components—that gather, analyze, and utilize data to optimize infrastructure, public services, utilities, and more.
As the demand for IoT solutions continues to grow, the importance of reliable and efficient communication technologies becomes paramount. This is where LoRa (Long Range) devices come into play. LoRa technology is revolutionizing how we manage and deploy IoT networks, offering long-range communication with low power consumption. Whether it's enhancing business performance or improving daily life, LoRa devices are becoming an essential component of smart infrastructure.
In this article, we will delve into the practical application of LoRa technology, specifically focusing on the REYAX LoRa RYLR998 module. We will explore how to interface this powerful module with Arduino to create long-range, internet-independent communication systems. By the end of this guide, you'll have a solid understanding of how to leverage the RYLR998 module for your own smart projects.
Why Choose REYAX LoRa RYLR998?
Before diving into the technical details, let’s explore why the REYAX LoRa RYLR998 stands out:
- Impressive Range: With a 4 km range, this module provides reliable communication over long distances.
- Versatile Frequency: Operates within the 865 MHz to 868 MHz range, making it compliant with India's license-free ISM band.
- No Internet Required: This module allows long-range communication without the need for an internet connection, making it perfect for remote applications.
Understanding the REYAX LoRa RYLR998 Module
Technical Specifications
- Frequency Range: 865 - 868 MHz (configurable)
- Transmission Power: Up to 22 dBm
- Sensitivity: -138 dBm
- Modulation: LoRa modulation
- Communication Interface: UART (TTL Level)
Setting Parameter
Before connecting the LoRA module with Arduino, you have to set some parameters like Address, Band for the Lora module using AT commands.
- First Connect the Lora module with the laptop. In the Arduino IDE select the PORT Tool–>PortOpen the Serial Monitor and set the Brud rate to 115200.
- Now we can set the parameters with some basic AT commands.
- First, type AT then press enter key. We should get +OK in the serial monitor.
- Then type AT+ADDRESS to set the address to 0 for transmitter Lora.
- Type AT+BAND to set the frequency of the wireless band.
Overview of LoRa RYLR998 Module
The RYLR998 transceiver module includes a long-range modem that gives ultra-long range spread spectrum communication and has excellent blocking immunity and high sensitivity. The module incorporates a Smart receiving power-saving mode. It is easy to control the module by AT commands. Moreover, the module contains a built-in antenna that makes it easier to send or receive the data.
Pinouts RYLR998
Pin Number |
Pin Name |
Description |
1 |
Vdd |
Power Supply pin |
2 |
NRST |
Active low Reset Pin |
3 |
RXD |
UART Data Input |
4 |
TXD |
UART Data Output |
5 |
GND |
Ground |
LoRa RYLR998 Module with Arduino
Now, we will see how to interface the Arduino with RYLR998 LoRa Module and control the relay through that. Below are the required components, coding, circuit diagram, etc for this interfacing.
Components Required
S.no |
Component |
Value |
Qty |
1. |
Lora |
RYLR998 |
1 |
2. |
Arduino |
– |
2 |
3. |
Resistor |
4.7K, 10K |
1, 1 |
4. |
LED |
– |
1 |
5. |
Battery |
9V |
1 |
Circuit Diagram
Coding the REYAX LoRa RYLR998 Module
Step 1: Configuring the Module
To control an LED on the receiver side by sending a signal from the transmitter side using the REYAX LoRa RYLR998 module, you can use the following code.
Transmitter Side Code
This code will send a signal from the transmitter side to turn the LED on or off.
Reciever Code
Circuit Explanation
Transmitter Side
In the transmitter circuit, we connect the TX pin of the Lora module with the RX pin of an arduino with the help of a voltage divider. The Arduino transfers the signal at the 5V logic level but the Lora module can receive the signal at the 3.3V logic level. And therefore voltage divider is required to drop 5V to 3.3V.
Receiver Side
At the receiver Lora circuit, the TX pin of the Lora module is connected with the RX pin of an Arduino. Since Arduino has an option to receive the signal at 3.3v logic level from the LoRa module, hence doesn’t require any divider circuit.
_________________________________________________________ 🄸🄽🅂🅃🄰🄶🅁🄰🄼 👇🏾 https://z-p42.www.instagram.com/aryanpandey699/ _______________________________________________________ (ABOUT ) Welcome to the "TECHNO SAP" YouTube channel, where you can explore the fascinating world of science with me, Aryan Pandey. As the founder and host of this channel, I am dedicated to sharing my passion for science and delivering exciting and informative videos on various scientific topics. From mind-blowing experiments to cutting-edge discoveries and technologies, you'll find it all here on my channel. So, join me on this incredible journey of learning and discovery, and don't forget to hit that SUBSCRIBE button and turn on the notification bell to stay updated on my latest uploads. _________________________________________________________ If you're interested in exploring more of the world of science, you're in the right place. Join me as we dive into exciting experiments, mind-blowing discoveries, and cutting-edge technology. Hit the SUBSCRIBE button and turn on the notification bell to stay updated on my latest uploads.
Thank you for watching, and I look forward to sharing more valuable content with you soon. #TechnoSAP" 🙏🙏