กลับไปหน้ารวมไฟล์
how-to-use-rylr998-lora-module-with-arduino-496504-en.md

In this tutorial I will show you how to program RYLR998 LORA radio modules from Reyax. How to connect them to Arduino. I will also create the code that will allow to remotely control the state of LED with the pushbutton.

Hope you will find this video Useful.

Long-Range Wireless Telemetry Overview

The RYLR998 LoRa Communication System is a powerful project that demonstrates the future of the Internet of Things (IoT). Utilizing LoRa (Long Range) technology, this system can transmit data over several kilometers with incredibly low power consumption. This makes it ideal for remote environmental sensing, farm monitoring, or building a secure, private communication network without relying on Wi-Fi or Cellular signals.

Hardware Infrastructure & Spread Spectrum Tech

  • Arduino Pro Mini (3.3V/8MHz): Chosen for its low energy profile. Running at 3.3V allows it to interface directly with the LoRa module without the need for complex level shifters.
  • RYLR998 LoRa Module: A high-performance transceiver from Reyax based on the Semtech chip. It features a built-in AT Command interface, which simplifies the wireless configuration to just a few lines of serial code.
  • LoRa Frequency (868/915 MHz): Uses Chirp Spread Spectrum (CSS) modulation to maintain a strong signal even in high-interference urban environments.
  • LilyPad LEDs and Tactile Switches: Provide the physical interface for verifying the bidirectional "Send and Receive" status of the system.

Programming Logic and AT Command Control

Unlike standard Wi-Fi modules, the RYLR998 acts like a modem:

  1. Network Configuration: The Arduino sends UART commands to the module to set the NETWORKID and ADDRESS. This ensures the data only reaches the intended receiver.
  2. Transmission Sequence:
    • When the Tactile Switch is pressed, the Arduino sends the string AT+SEND=0,5,STATE to the module.
    • The module encodes the "STATE" data and transmits it across the airwaves.
  3. The Receiver Loop: On the second Arduino, the LoRa module waits for incoming radio packets. When a packet is received, it outputs the data to the Arduino's serial port.
  4. Action Execution: If the receiving Arduino sees the "STATE" command, it toggles the LilyPad LED, providing instant confirmation of the remote command.

Practical Learning and Next Steps

Building with the RYLR998 teaches the fundamentals of UART Communication and LoRaWAN Topologies. It provides a robust alternative to short-range Bluetooth or power-hungry Wi-Fi. Once the basic LED toggle is mastered, you can expand this into a Long-Range Sensor Network where dozens of "Leaf Nodes" (tracking things like soil moisture or gate status) report back to a central "Gateway" miles away.

ข้อมูล Frontmatter ดั้งเดิม

title: "How to use RYLR998 LORA module with Arduino"
description: "Working with RYLR998 LORA and Arduino Pro Min 8v."
author: "Dziubym"
category: "Internet of Things, BT & Wireless"
tags:
  - "Communication"
views: 23571
likes: 7
price: 2450
difficulty: "Intermediate"
components:
  - "1x RYLR998 LORA from Reyax"
  - "1x Arduino Pro Mini 328 - 3.3V/8MHz"
  - "1x LilyPad LED Blue (5pcs)"
  - "1x Tactile Switch, Top Actuated"
tools: []
apps:
  - "1x Arduino IDE"
downloadableFiles: []
documentationLinks: []
passwordHash: "37be34500cb6adbdbe17b48cdaeb03fd1269c4f0fbb266b57e95083874dbd183"
encryptedPayload: "U2FsdGVkX1+U/RAxKB6RZJ+l3ez7LFeqe8/AmTQh25gTBinHHfe/2O/w9hqzt1G9P62O1ZKBOv23TjCkoC+jhjqMDTCDK+i9+Rt/dt5F7Wcq4Vr3Ol1U50i3qqYozFK72aL0/3BGkm24eFKP8HUVzQQysupEZkswZYSzz1CVF2rhcoDNSrv9zM9yuxZLNypbSkqr2TN7v15vNkg6MIN9epGYV0aeyZngGedROGoLjYaoUIArFnlHYO+GE/KFukLuO7jFLUwK4r/inaly4Wd07aKWhkEfYCPYdEZ37U+9F5ulkYZmVbBy6Kw2l4n4M6qid2D5voSLh3HXAeNIDfoopqAfgXMJAv+esQhc77LKoed4mhNQEoAWPVmcwxGPpfK3MEgRKO/Le7d/IbVlFtd7gE4Rd7gp4kgEPAF97Marxy7jJp43luyOSybIMNzGVvPX8Be0qb47Je1FNkFevkpHIxqqHChLKKhwH+zKbJUvXDunFHbFS7kcSKFnPMpkWNmRQ3Nt+uhk1a6WwBiLIfaZypRqVvjjzhvSD3MvogC8O8I0vTAUQ8WXZhNbTjkQaF/OBtCMJp4AH+1D8hwH8+eM3Zb5bU5h52c8bU/mZvY48er6yve54csyJ6rJsXN7vStpmtSDUASLKdvft9HsW9zSWaJ7CHul99IjrFWL/clXfHViy7eeIATLHKII+ranjsYu6T2AyEpOdYJBvvpPWI1aMjKh9ZLgpvLFWgI/CazvDOGgVO7+Vzsk9OWrk9Opw8bcJVG2vEfjsspo0rLfSX86kN+DQ/sRO6hPT8rSzOa2gsd2/oajvdkIJ+OG+V8S5Yvk"
seoDescription: "Step-by-step guide to using RYLR998 LORA module with Arduino Pro Mini 8v for long-range wireless communication."
videoLinks:
  - "https://www.youtube.com/embed/LiWlPERp1ec"
heroImage: "https://cdn.jsdelivr.net/gh/bigboxthailand/arduino-assets@main/images/projects/how-to-use-rylr998-lora-module-with-arduino-496504_cover.jpg"
lang: "en"