Electorials Electronics
Published © GPL3+

Project 015: Arduino Reyax RYLR896 LoRa Module Project

An intermediate project involving long range, low power communication between two Arduino boards with the help of the Reyax RYLR896 module.

IntermediateProtip30 minutes12,643
Project 015: Arduino Reyax RYLR896 LoRa Module Project

Things used in this project

Hardware components

Reyax RYLR896 LoRa Transceiver Modules
One module as a transmitter and another as a receiver but both can be interchanged to work as either.
×2
Breadboard (generic)
Breadboard (generic)
×2
Arduino UNO
Arduino UNO
You could use any other Arduino boards as well. The Maker Uno and the Seeeduino v4.2 is used in this example.
×2
USB-A to B Cable
USB-A to B Cable
Depends on the Arduino.
×2
Jumper wires (generic)
Jumper wires (generic)
9 Male to Male Jumper Wires.
×9
LED (generic)
LED (generic)
2 LEDs of any colour.
×2
TaydaElectronics 4.7K resistor
×1
Resistor 10k ohm
Resistor 10k ohm
×3
NextPCB
×1

Software apps and online services

Arduino IDE
Arduino IDE

Story

Read more

Schematics

Circuit Diagram (Transmitter)

Schematics (Transmitter)

Circuit Diagram (Receiver)

Schematics (Receiver)

Code

Arduino​ Reyax RYLR896 LoRa Transceiver Module Project Code (Transmitter)

C/C++
#define ledPin 2
unsigned long lastTransmission;
const int interval = 1000;

void setup(){
    Serial.begin(115200);
    pinMode(ledPin,OUTPUT);
}

void loop(){
    if (millis() > lastTransmission + interval){
        Serial.println("AT+SEND=0,8,Testing!");
        digitalWrite(ledPin,HIGH);
        delay(100);
        digitalWrite(ledPin, LOW);
        lastTransmission = millis();
    }
}

Arduino​ Reyax RYLR896 LoRa Transceiver Module Project Code (Receiver)

C/C++
#define ledPin 2
String incomingString;

void setup(){
    Serial.begin(115200);
    pinMode(ledPin,OUTPUT);
}

void loop(){
    if (Serial.available()){
        incomingString = Serial.readString();
        if(incomingString.indexOf("Testing!") == 0){
            digitalWrite(ledPin,HIGH);
            delay(100);
            digitalWrite(ledPin,LOW);
        }
    }
}

Credits

Electorials Electronics

Electorials Electronics

85 projects • 63 followers
I'm an electronic hobbyist interested in anything, from Arduino to drones. I plan to educate people with the content on my website.

Comments