Ai-Thinker's LoRa product line is divided into the Ra Series (SPI-based), which provides raw access to the radio chip for custom protocols, and the LoRaWAN Series (SoC-based), which includes an integrated MCU and pre-installed AT firmware for standard network connections.
The Ai-Thinker Ra-01 and Ra-02 series consists of compact, low-power LoRa transceiver modules designed for long-range wireless data communication in the Internet of Things (IoT). Both modules are built around the Semtech SX1278 chip and operate primarily in the 410 MHz to 525 MHz frequency range, making them a standard choice for DIY and industrial projects requiring high interference resistance and low power consumption.
| Product Series | Model | Frequency | Core Chip | Interface | Primary Use Case |
|---|---|---|---|---|---|
| Ra Series (SPI) | Ra-01 | 410–525 MHz | SX1278 | SPI | Low-cost DIY, spring antenna included |
| Ra-02 | 410–525 MHz | SX1278 | SPI | Point-to-point, external IPEX antenna | |
| Ra-01H | 803–930 MHz | SX1276 | SPI | High-frequency (EU868/US915) DIY projects | |
| Ra-01S/SC | 410–525 MHz | SX1268/LLCC68 | SPI | Modern replacement for Ra-01/02 with better efficiency | |
| LoRaWAN (SoC) | Ra-07/07H | 410–960 MHz | ASR6501 | UART (AT) | Integrated Cortex-M0+; standard LoRaWAN nodes |
| Ra-08/08H | 410–930 MHz | ASR6601 | UART (AT) | Integrated Cortex-M4; supports LoRaWAN/LinkWAN | |
| Ra-09 | 410–525 MHz | STM32WLE5 | UART/SPI | High-performance industrial IoT; multi-modulation support |
Key Product Highlights
Key Differences: Ra-01 vs. Ra-02
The main difference between the two modules is the method of antenna connection, which greatly affects their deployment flexibility and range.
Network Configuration Requirements
To ensure these modules communicate in the same network, they must share identical software settings:
Range and Performance in a Network
| Pin | Label | Type | Description |
|---|---|---|---|
| 1 | ANT / GND | Antenna | Ra-01: Antenna solder point. Ra-02: Usually Ground (uses IPEX connector instead) |
| 2 | GND | Power | Ground |
| 3 | 3.3V | Power | Supply Voltage (2.5V - 3.7V). Do not use 5V |
| 4 | RESET | Input | Reset pin (active low) |
| 5 | DIO0 | I/O | Digital I/O 0 (standard interrupt for RX/TX done) |
| 6 | DIO1 | I/O | Digital I/O 1 (timeout/other interrupts) |
| 7 | DIO2 | I/O | Digital I/O 2 (FHSS/other interrupts) |
| 8 | DIO3 | I/O | Digital I/O 3 CAD/Header (Channel Activity Detection) |
| 9 | DIO4 | I/O | Digital I/O 4 Preamble/Ready |
| 10 | DIO5 | I/O | Digital I/O 5 System Ready / ModeReady signaling |
| 11 | SCK | SPI | SPI Serial Clock |
| 12 | MISO | SPI | SPI Master In Slave Out |
| 13 | MOSI | SPI | SPI Master Out Slave In |
| 14 | NSS | SPI | SPI Chip Select (Slave Select) |
| 15 | GND | Power | Ground |
| 16 | GND | Power | Ground |
DIO Functionality in LoRa Mode
| Pin | Default/Common Function | Detailed Events |
|---|---|---|
| DIO0 | RX/TX Done | Signals RxDone (packet received) or TxDone (packet sent). |
| DIO1 | Timeout | Signals RxTimeout, FhssChangeChannel, or CadDetected. |
| DIO2 | FHSS/Payload | Signals FhssChangeChannel or FhssValidHeader (frequency hopping). |
| DIO3 | CAD/Header | Signals CadDone, ValidHeader, or PayloadCrcError. |
| DIO4 | Preamble/Ready | Signals PreambleDetect, ModeReady, or PllLock. |
| DIO5 | System Ready | Signals ModeReady, ClkOut, or PllLock. |
Important Wiring Notes
The Ai-Thinker Ra-01 and Ra-02 are fully compatible and can communicate with each other because they are functionally identical and share the same internal hardware.
To use the Ai-Thinker Ra-01 with an Arduino, the most popular and reliable choice is the Sandeep Mistry LoRa library. This library allows for simple point-to-point communication using the SX1278 chip found in the Ra-01.
Wiring
Because the Arduino Uno/Nano uses 5V logic and the Ra-01 uses 3.3V, you must use a TXS0108E (HW-0108) Logic Level Converter or voltage dividers on the data lines to avoid damaging the module.
| Ra-01 Pin | Logic level converter | Arduino Pin (Uno/Nano) | Wire Color | Notes |
|---|---|---|---|---|
| VCC | Va - Vb | 5V | ♦ red | Power |
| GND | GND | GND | ♦ black | Common ground |
| SCK | A4 - B4 | D13 | ♦ green | SPI Clock |
| MISO | A3 - B3 | D12 | ♦ darkblue | SPI Master In Slave Out |
| MOSI | A2 - B2 | D11 | ♦ yellow | SPI Master Out Slave In |
| NSS | A1 - B1 | D10 (or D7) | ♦ lightblue | Chip Select (CS) |
| RESET | A8 - B8 | D9 (or D6) | ♦ purple | Reset Pin |
| DIO0 | A7 - B7 | D2 | ♦ orange | Interrupt Pin (Required for RX) |
Basic Transmitter Example
This sketch sends a “hello” message every 5 seconds. You can install the required library by searching for “LoRa” by Sandeep Mistry in the Arduino Library Manager.
#include <SPI.h> #include <LoRa.h> // Define custom pins for the Ra-01 module const int csPin = 10; // LoRa radio chip select const int resetPin = 9; // LoRa radio reset const int irqPin = 2; // Hardware interrupt pin (DIO0) int counter = 0; void setup() { Serial.begin(9600); while (!Serial); Serial.println("LoRa Sender starting..."); // Override default pins LoRa.setPins(csPin, resetPin, irqPin); // Initialize Ra-01 at 433 MHz (E6 is exponent for MHz) if (!LoRa.begin(433E6)) { Serial.println("Starting LoRa failed! Check wiring."); while (1); } Serial.println("LoRa Initialized OK!"); } void loop() { Serial.print("Sending packet: "); Serial.println(counter); // Send packet LoRa.beginPacket(); LoRa.print("hello "); LoRa.print(counter); LoRa.endPacket(); counter++; delay(5000); // Wait 5 seconds }
Key Library Functions
| Page | Date | Tags |
|---|---|---|
| 2026/04/23 21:51 | communication, iot, internet, iomt, 6lowpan, ipv4, ipv6, bluetooth, ble, li-fi, nfc, rfid, wi-fi, zigbee, z-wave, lte-advanced, 5g, lora, dash7, lpwan, lorawan, sigfox, nb-iot, weightless, rpma, mioty, vsat, ethernet, thread, matter | |
| 2026/04/23 21:51 | ai-thinker, lora manufacturer, communication, lora, modul, ra-01, ra-02, spi, arduino | |
| 2025/08/24 12:19 | arduino, board, mkr fox 1200, mkr zero, ethernet, shield, m-bus, rs-485, can, env, sd card, rgb, gps, iot, wifi, sigfox, lora, gsm, lte-m | |
| 2026/04/23 21:51 | ebyte, lora manufacturer, communication, lora, modul | |
| 2026/03/07 01:46 | waveshare, lora manufacturer, communication, lora, modul, usb-to-lora-xf02, core 1262, 1262, spi, arduino, rp2040-lora, rp2040 |
This page has been accessed for: Today: 7, Until now: 8