AI

## Overview of the RA-04-R Module
The **RA-04-R** is a low-power, wide-area network (LPWAN) communication module developed by Ai-Thinker. It is built upon the **LoRa (Long Range)** spread spectrum technology, specifically utilizing the **Semtech SX1262** chip. This module is designed for IoT applications requiring long-range communication, high sensitivity, and low energy consumption.
---
### 1. Key Technical Specifications
Below is a breakdown of the primary electronic and performance specifications:
| Feature | Specification |
| :--- | :--- |
| **Chipset** | Semtech SX1262 |
| **Frequency Range** | 410MHz ~ 525MHz (Default 433MHz) |
| **Interface** | SPI |
| **Operating Voltage** | 2.7V ~ 3.6V (Typical 3.3V) |
| **Operating Current** | Tx: ~118mA (22dBm); Rx: ~5.8mA |
| **Maximum Power** | +22 dBm |
| **Sensitivity** | -148 dBm (@BW=10.4kHz, SF=12) |
| **Modulation** | LoRa, FSK, GFSK, MSK, GMSK, OOK |
---
### 2. Core Electronic Components
The RA-04-R integrates several critical electronic components into a single SMD package:
#### A. Semtech SX1262 LoRa Transceiver
This is the heart of the module. Unlike the older SX1278 (used in RA-02), the SX1262 offers:
* Higher efficiency and lower power consumption.
* Support for the **DCDC** (DC-to-DC) converter mode to reduce current draw during transmission and reception.
#### B. TCXO (Temperature Compensated Crystal Oscillator)
The "R" in RA-04-R often signifies the inclusion of a high-precision **TCXO**. This ensures frequency stability even in extreme temperature fluctuations, which is vital for narrow-bandwidth LoRa communication.
#### C. RF Matching Circuit
The module includes an onboard LC (Inductor-Capacitor) matching network. This optimizes power transfer between the chip and the antenna port, ensuring the impedance is tuned to **50 Ohms**.
---
### 3. Pin Configuration (Interface)
The module communicates with a host MCU (like Arduino, ESP32, or STM32) via the **SPI** protocol.
| Pin Name | Function | Description |
| :--- | :--- | :--- |
| **GND** | Ground | Power reference |
| **3.3V** | Power Supply | 2.7V to 3.6V input |
| **MISO/MOSI/SCK** | SPI Interface | Data and clock lines for communication |
| **NSS** | SPI Chip Select | Activates the SPI interface |
| **NRESET** | Reset | Active low reset pin |
| **DIO1** | Interrupt | Configurable interrupt (usually for "Tx Done" or "Rx Done") |
| **BUSY** | Status Pin | Indicates if the internal state machine is busy |
---
### 4. Application Hardware Setup Example
When connecting the RA-04-R to a microcontroller, you must ensure logic level compatibility. Since the RA-04-R operates at **3.3V**, using a 5V microcontroller (like an Arduino Uno) requires a logic level shifter.
```cpp
// Typical Pin Mapping for RA-04-R (SX1262)
#define LORA_NSS 10
#define LORA_RESET 9
#define LORA_DIO1 2
#define LORA_BUSY 3
```
---
- ⤷
What are the main differences between the RA-04-R and the RA-02 (SX1278) module?
- ⤷ How do I configure the DCDC converter mode to save power on this module?
- ⤷ Can the RA-04-R be used for LoRaWAN gateway communication?