Close Menu
  • Articles
    • Learn Electronics
    • Product Review
    • Tech Articles
  • Electronics Circuits
    • 555 Timer Projects
    • Op-Amp Circuits
    • Power Electronics
  • Microcontrollers
    • Arduino Projects
    • STM32 Projects
    • AMB82-Mini IoT AI Camera
    • BLE Projects
  • IoT Projects
    • ESP8266 Projects
    • ESP32 Projects
    • ESP32 MicroPython
    • ESP32-CAM Projects
    • LoRa/LoRaWAN Projects
  • Raspberry Pi
    • Raspberry Pi Projects
    • Raspberry Pi Pico Projects
    • Raspberry Pi Pico W Projects
  • Electronics Calculator
Facebook X (Twitter) Instagram
  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us
  • Advertise With Us
Facebook X (Twitter) Instagram Pinterest YouTube LinkedIn
How To Electronics
  • Articles
    • Learn Electronics
    • Product Review
    • Tech Articles
  • Electronics Circuits
    • 555 Timer Projects
    • Op-Amp Circuits
    • Power Electronics
  • Microcontrollers
    • Arduino Projects
    • STM32 Projects
    • AMB82-Mini IoT AI Camera
    • BLE Projects
  • IoT Projects
    • ESP8266 Projects
    • ESP32 Projects
    • ESP32 MicroPython
    • ESP32-CAM Projects
    • LoRa/LoRaWAN Projects
  • Raspberry Pi
    • Raspberry Pi Projects
    • Raspberry Pi Pico Projects
    • Raspberry Pi Pico W Projects
  • Electronics Calculator
How To Electronics
Home » How to use Reyax RYLR890 LoRa Module with Arduino
Arduino Projects LoRa/LoRaWAN Projects

How to use Reyax RYLR890 LoRa Module with Arduino

Mamtaz AlamBy Mamtaz AlamUpdated:August 21, 20228 Comments5 Mins Read
Share Facebook Twitter LinkedIn Telegram Reddit WhatsApp
RYLR890 Arduino
Share
Facebook Twitter LinkedIn Pinterest Email Reddit Telegram WhatsApp

Overview

In this project, we will learn how to use Reyax RYLR890 LoRa Module with Arduino. The RYLR890/RYLR896 transceiver module features the Lora long range modem that provides ultra-long range spread spectrum communication and high interference immunity whilst minimizing current consumption. Earlier we learned about LoRa Module LR1276/SX1276 & its interfacing with the STM32 Microcontroller through SPI Pins. Today we will learn about the UART LoRa Module that can be used with any microcontroller using only 4 pins.

The Lora Module RYLR890/RYLR896 communicates up to the range of 10-15Km. It is designed using the best noise reduction technology. The LoRa Module can be easily interfaced with Arduino Board, ESP8266, ESP32, or STM32 Microcontrollers. The power consumption of the module is very low about 43mA during transmission & 16.5mA during receiving. Putting the module to sleep mode further reduces the power to 0.5uA.

In this tutorial, we will first make a simple Arduino LoRa RYLR890 Transmitter/Receiver Circuit & do a point-to-point communication like controlling a LED brightness Wirelessly using Potentiometer. In the 2nd example, we will send the sensor data wirelessly from transmitter to receiver. The sensor we are going to use is the BME280 Sensor that can measure environmental temperature, humidity, pressure & altitude.




Bill of Materials

Following are the list of components required for making this simple LoRa Based projects. All the components can be easily assembled on a breadboard. The components purchase link from Amazon is given below.

S.N.Components NameQuantityPurchase Links
1Arduino Nano Board2Amazon | AliExpress
2LoRa Module RYLR890/RYLR8962Amazon | AliExpress
3Potentiometer 10K1Amazon | AliExpress
4LED 5mm Any Color1Amazon | AliExpress
5BME280 Sensor1Amazon | AliExpress
6Resistor 4.7K1Amazon | AliExpress
7Resistor 10K1Amazon | AliExpress
8Connecting Wires10Amazon | AliExpress
9Breadboard1Amazon | AliExpress

Reyax LoRa RYLR890/RYLR896

The LoRa Module RYLR890/RYLR896 from Reyax Technologies is based on Semtech LoRa Chip SX1276 and STM32L151C8T6 microcontroller. The SX1276 Chips operates on frequency 868/915Mhz & is interfaced to STM32L151C8T6 via SPI Pins.

RYLR890 RYLR896

The Reyax RYLR890/RYLR896 LoRa module can be easily interfaced with Arduino using the UART Pins. There is a list of AT Commands that can be used to perform any task like sending the data or receiving the data or putting the device to sleep mode. You can learn more about the AT Commands from this Technical AT Command Documentation: RYLR890/RYLR896

Features & Specifications

1. Semtech SX1276 Chip
2. Excellent blocking immunity
3. Operating Voltage: 2.8V – 3.3V
4. Low Current Consumption (43mA in Transmission, 16.5 in receiving, 0.5uA in Sleep Mode)
5. Communication Range: 4.5km Typical & 15km Maximum
6. High RF sensitivity: -148dBm
7. Control easily by AT commands
8. 127 dB Dynamic Range RSSI
9. Small PCB integrated antenna
10. AES128 Data encryption



Pinouts

RYLR896 Pinout


Interfacing RYLR890/RYLR896 LoRa Module with Arduino

Now let us learn how we can interface the RYLR890/RYLR896 LoRa Module with Arduino Board. In this first example we will make a transmitter and a receiver circuit & control the brightness of LED using the potentiometer Wirelessly.

Transmitter Circuit

Reyax RYLR890 Arduino

The transmitter circuit has the potentiometer connected to A0 Pin of Arduino to generate variable Analog voltage while rotating the potentiometer. The LoRa module operates at 3.3V so we need a voltage divider network for UART Pins as Arduino digital pins can generate 5V. So a 4.7K & 10K Resistor is used for a voltage divider network that converts 5V logic voltage to almost 3.4V. Assemble the circuit as shown in the image.

Receiver Circuit

RYLR890 Arduino LED

The receiver circuit has the led connected to the D5 Pin of Arduino whose brightness can be adjusted while a signal from the transmitter is sent.

Reyax RYLR896 Transmitter Receiver



Source Code/Program

The code/program for the transmitter and receiver circuit is given below. You can upload the code to the both transmitter and receiver circuit after assembling them.

Transmitter Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <SoftwareSerial.h>
 
SoftwareSerial lora(2,3);
 
int pot = A0;
 
void setup()
{
  // put your setup code here, to run once:
  Serial.begin(115200);
  lora.begin(115200);
  pinMode(pot, INPUT);
}
 
void loop()
{
  int val = map(analogRead(pot),0,1024,0,255);
  Serial.println(val);
  String potval = String(val);
  String cmd = "AT+SEND=0,"+String(potval.length()) +","+ String(val)+"\r";
  //Serial.println("AT+SEND=0,3,val");
  lora.println(cmd);
  while(lora.available()){
    Serial.write(lora.read());
  }
  Serial.println();
  Serial.println(cmd);
  delay(50);
}

Receiver Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#include <SoftwareSerial.h>
 
SoftwareSerial lora(2,3);
 
int LED = 5;
//String inString = "";    // string to hold input
int val = 0;
 
void setup()
{
  // put your setup code here, to run once:
  Serial.begin(115200);
  lora.begin(115200);
  pinMode(LED, OUTPUT);
 
}
 
void loop()
{
  //char ch;
  String inString;
  while (lora.available())
  {
    if(lora.available()){
    inString += String(char(lora.read()));
    }
  }
  if(inString.length()>0)
  {
    //Serial.println(inString);
    String potval;
    potval= inString.substring(9,12);
    Serial.println(potval);
    analogWrite(LED,potval.toInt());
  }
  //delay(100);
}

After the code is uploaded to both the microcontroller board, you can start testing the entire circuit. On the transmitter side, you need to rotate the potentiometer so that the receiver LED Brightness will increase or decrease.




Send Sensor Data wirelessly with LoRa RYLR890/RYLR896 & Arduino

In this 2nd example, we will send the BME280 Barometric Pressure Sensor Data wirelessly to LoRa Receiver. The BME280 Barometric Pressure Sensor measures Temperature, Pressure, Humidity & Altitude.

Transmitter Circuit

The transmitter circuit has the BME280 sensor connected to the I2C Pins of Arduino. The LoRa module operates at 3.3V so we need a voltage divider network for UART Pins as Arduino digital pins can generate 5V. So a 4.7K & 10K Resistor is used for a voltage divider network that converts 5V logic voltage to almost 3.4V. Assemble the circuit as shown in the image.

Receiver Circuit

Arduino Reyax RYLR890 Connection

The receiver circuit has nothing except the LoRa Module connected to the UART pin of the Arduino


Source Code/Program

The code/program for the transmitter and receiver circuit is given below. After assembling the entire circuit as per the circuit diagram, you can upload the code to the both transmitter and receiver circuit.

Transmitter Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#include <SoftwareSerial.h>
#include <Wire.h>
#include <SPI.h>
#include <Adafruit_Sensor.h>
#include <Adafruit_BME280.h>
 
SoftwareSerial lora(2,3);
 
#define SEALEVELPRESSURE_HPA (1013.25)
Adafruit_BME280 bme;
 
void setup()
{
  // put your setup code here, to run once:
  Serial.begin(115200);
  lora.begin(115200);
  if (!bme.begin(0x76))
  {
    Serial.println("Could not find a valid BME280 sensor, check wiring!");
    while (1);
  }
}
 
void loop()
{
  float temperature = bme.readTemperature();
  float pressure = bme.readPressure() / 100.0F;
  float altitude = bme.readAltitude(SEALEVELPRESSURE_HPA);
  float humidity = bme.readHumidity();
 
  Serial.print(F("Temperature = "));
  Serial.print(temperature);
  Serial.println(F("*C"));
 
  Serial.print(F("Pressure = "));
  Serial.print(pressure);
  Serial.println(F("hPa"));
 
  Serial.print(F("Approx. Altitude = "));
  Serial.print(altitude);
  Serial.println(F("m"));
 
  Serial.print(F("Humidity = "));
  Serial.print(humidity);
  Serial.println(F("%"));
 
  String temp = String(temperature);
  String pres = String(pressure);
  String alt = String(altitude);
  String hum = String(humidity);
 
  String values = String(temp)+","+ String(pres)+","+ String(alt)+","+ String(hum);
  String cmd = "AT+SEND=0,"+String(values.length())+","+values;
  lora.println(cmd);
 
  while(lora.available())
  {
    Serial.write(lora.read());
  }
  Serial.println();
  Serial.println(cmd);
  delay(5000);
}


Receiver Code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#include <SoftwareSerial.h>
SoftwareSerial lora(2,3);
 
void setup()
{
  // put your setup code here, to run once:
  Serial.begin(115200);
  lora.begin(115200);
 
}
 
void loop()
{
  String inString;
  while (lora.available())
  {
    if(lora.available()){
    inString += String(char(lora.read()));
    }
  }
  if(inString.length()>0)
  {
      Serial.println(inString);
      inString.remove(0);
  }
  
}

Once the code is uploaded, you can open the Serial Monitor for both the transmitter & receiver parts. The sender/transmitter circuit will read the BME280 Sensor data and send it wirelessly to the receiver. The receiver will receive the data and display it on Serial Monitor along with the RSSI signal.

So this is how we can make a point to point communication between Reyax LoRa RYLR890 or RYLR896 & Arduino.


Video Tutorial & Guide

Reyax RYLR890/RYLR896 LoRa Tutorial | Sending Sensor Data Wirelessly with LoRa & Arduino
Watch this video on YouTube.

Some other products from Reyax Technology like RYS8830 & RYB080I may be useful in some other wireless applications.

Share. Facebook Twitter Pinterest LinkedIn Tumblr Email Reddit Telegram WhatsApp
Previous ArticleElectromyography(EMG) with MyoWare Muscle Sensor & Arduino
Next Article ESP32 & ILI9488 TFT Touch Screen Based Video Games

Related Posts

DC Energy Meter using Arduino

Build a DC Energy Meter using Arduino – 32V/5A

Updated:August 26, 20252K
Interfacing ADXL375 Accelerometer with Arduino

Interfacing ADXL375 Accelerometer with Arduino (±200g)

Updated:June 28, 2025
PZEM-004T Arduino Energy Meter

DIY AC Energy Meter using PZEM-004T & Arduino

Updated:March 6, 20258K
Interfacing BMI160 Accelerometer & Gyroscope with Arduino

Interfacing BMI160 Accelerometer & Gyroscope with Arduino

Updated:February 2, 20259K
Password Based Door Lock Security System Using Arduino & Keypad

Password Based Door Lock Security System Using Arduino & Keypad

Updated:February 2, 20252436K
Earthquake Detector Alarm with with Accelerometer & Arduino

Earthquake Detector Alarm with Accelerometer & Arduino

Updated:February 2, 2025661K
View 8 Comments

8 Comments

  1. Arindam Ghatak on January 11, 2022 5:02 PM

    In your transmitter program, temp, pres, alt etc are declared as String. But in String values calculation, you have again say:
    String values = String(temp)+”,”+ String(pres)+”,”+ String(alt)+”,”+ String(hum);

    Probably should be the following ?
    String values = temp+”,”+pres+”,”+alt+”,”+hum;

    Reply
  2. aniket on January 12, 2022 8:57 AM

    Hi I am connecting my lora module with esp32 and one module with arduino . can you let me know what directory i should use in both for transmitting and receiving ends of the modules .

    Reply
  3. Anwar Elhadad on October 10, 2022 3:51 PM

    Is the the schematic wrong for the reciever of the first example i only see 2 resistors in the picture?

    Reply
    • Admin on October 10, 2022 4:26 PM

      The Schematic is correct. Those two resistors are 1k+1k valued resistors making it 2K. In the schematic, a 2k is directly mentioned.

      Reply
  4. Miguel on November 13, 2022 12:50 AM

    Sorry, I am trying to make this project but is not working. Which two resistors 1k+1k you mean? the schematic shows a 10k, 4.7k and one resistor without the value. Can you clarify this please?

    Reply
  5. MrNams on May 20, 2023 2:25 PM

    What is logic level output voltage of ESP32 (ESP32 ESP-WROOM-32 )? 5v or 3.3v?
    I have to connect Lora module “REYAX RYLR998” to it, which works with 3.3v only.

    Reply
  6. MrNams on May 28, 2023 1:08 PM

    I lost whole day but could not succeed in sending AT command using SoftwareSerial, I have ESP32 Dev Unit
    SoftwareSerial lora(16, 17);
    const int NETWORKID_LORA=5; //enter Lora Network ID
    const int ADDRESS_LORA_NODE_GATEWAY=1;

    lora.begin(115200); // default baud rate of module is 115200
    delay(1000); // wait for LoRa module to be ready
    lora.print((String)”AT+ADDRESS=” + ADDRESS_LORA_NODE_GATEWAY + “\r\n”);
    delay(200);
    lora.print((String)”AT+NETWORKID=” + NETWORKID_LORA + “\r\n”);
    delay(200);
    Please help

    Reply
  7. R on April 20, 2024 6:20 PM

    It doesn’t work.

    Reply

CommentsCancel reply

Latest Posts
IoT Based PM & Air Quality Monitoring System using ESP32

IoT Based PM & Air Quality Monitoring System using ESP32

May 31, 2026
DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

DIY ESP32 MLX90640 IR Thermal Camera with Live Web Display

May 10, 2026
IoT Activity Tracker with ESP32 & Accelerometer Gyroscope

IoT Activity Tracker with ESP32 & Accelerometer/Gyroscope

May 2, 2026
A Guide to Sourcing Obsolete ICs for Vintage Projects

Beyond AliExpress: A Guide to Sourcing Obsolete ICs for Vintage Projects

April 21, 2026

ESP32 IoT Vehicle Motion Analyzer with MPU6050 & LIS3MDL

April 27, 2026
Building a Smart Sensor Node with a BLE Microcontroller

Building a Smart Sensor Node with a BLE Microcontroller

February 26, 2026
High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU

High-Accuracy Pitch, Roll, Yaw with ESP32 & BNO08x IMU

April 27, 2026
DIY Colorimeter using AS7265x Spectroscopy Sensor & ESP32

DIY Colorimeter using AS7265x Spectroscopy Sensor & ESP32

February 1, 2026
Top Posts & Pages
  • 12V DC to 220V AC Inverter Circuit & PCB
    12V DC to 220V AC Inverter Circuit & PCB
  • IoT AC Energy Meter with PZEM-004T & ESP32 WebServer
    IoT AC Energy Meter with PZEM-004T & ESP32 WebServer
  • IoT Based Drinking Water Quality Monitoring with ESP32
    IoT Based Drinking Water Quality Monitoring with ESP32
  • LD2410 Sensor with ESP32 - Human Presence Detection
    LD2410 Sensor with ESP32 - Human Presence Detection
  • ESP32 CAN Bus Tutorial | Interfacing MCP2515 CAN Module with ESP32
    ESP32 CAN Bus Tutorial | Interfacing MCP2515 CAN Module with ESP32
  • DIY IoT Water pH Meter using pH Sensor & ESP32
    DIY IoT Water pH Meter using pH Sensor & ESP32
  • Buck Converter: Basics, Working, Design & Application
    Buck Converter: Basics, Working, Design & Application
  • How to use Modbus RTU with ESP32 to read Sensor Data
    How to use Modbus RTU with ESP32 to read Sensor Data
Categories
  • Arduino Projects (197)
  • Articles (60)
    • Learn Electronics (19)
    • Product Review (15)
    • Tech Articles (28)
  • Electronics Circuits (46)
    • 555 Timer Projects (21)
    • Op-Amp Circuits (7)
    • Power Electronics (13)
  • IoT Projects (204)
    • ESP32 MicroPython (7)
    • ESP32 Projects (81)
    • ESP32-CAM Projects (15)
    • ESP8266 Projects (76)
    • LoRa/LoRaWAN Projects (22)
  • Microcontrollers (38)
    • AMB82-Mini IoT AI Camera (4)
    • BLE Projects (18)
    • STM32 Projects (19)
  • Raspberry Pi (93)
    • Raspberry Pi Pico Projects (57)
    • Raspberry Pi Pico W Projects (12)
    • Raspberry Pi Projects (24)
Follow Us
  • Facebook
  • Twitter
  • Pinterest
  • Instagram
  • YouTube
About Us

“‘How to Electronics’ is a vibrant community for electronics enthusiasts and professionals. We deliver latest insights in areas such as Embedded Systems, Power Electronics, AI, IoT, and Robotics. Our goal is to stimulate innovation and provide practical solutions for students, organizations, and industries. Join us to transform learning into a joyful journey of discovery and innovation.

Copyright © How To Electronics. All rights reserved.
  • About Us
  • Disclaimer
  • Privacy Policy
  • Contact Us
  • Advertise With Us

Type above and press Enter to search. Press Esc to cancel.

Ad Blocker Enabled!
Ad Blocker Enabled!
Looks like you're using an ad blocker. Please allow ads on our site. We rely on advertising to help fund our site.