Electorials Electronics
Published © GPL3+

Review 013: Reyax RYLR896 LoRa Transceiver Module Review

A review of the Reyax RYLR896 LoRa Transceiver Module from Reyax.

BeginnerProtip6 minutes2,643
Review 013: Reyax RYLR896 LoRa Transceiver Module Review

Things used in this project

Hardware components

Reyax RYLR896 LoRa Transceiver Module
×1
PCBWay Custom PCB
PCBWay Custom PCB
×1

Story

Read more

Code

Arduino Reyax RYLR896 LoRa Transceiver Module Sample 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 Sample 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
85 projects • 66 followers
I'm an electronic hobbyist interested in anything, from Arduino to drones. I plan to educate people with the content on my website.
Contact

Comments

Please log in or sign up to comment.