

The SX1278 RA-02 is a low-power, long-range transceiver module designed for wireless communication. It operates in the sub-GHz frequency range (typically 433 MHz or 868 MHz) and supports LoRa (Long Range) modulation technology. LoRa enables robust, long-distance communication with low power consumption, making the SX1278 RA-02 ideal for Internet of Things (IoT) applications.








The SX1278 RA-02 module is designed to provide reliable and efficient wireless communication. Below are its key technical specifications:
| Parameter | Value |
|---|---|
| Frequency Range | 433 MHz / 868 MHz (configurable) |
| Modulation | LoRa, FSK, GFSK |
| Sensitivity | -148 dBm (LoRa mode) |
| Output Power | Up to +20 dBm |
| Data Rate | 0.018 kbps to 37.5 kbps (LoRa) |
| Supply Voltage | 1.8V to 3.7V |
| Current Consumption | 10.8 mA (Rx mode), 120 mA (Tx mode) |
| Communication Interface | SPI |
| Operating Temperature | -40°C to +85°C |
| Dimensions | 17.8 mm x 16.5 mm x 2.3 mm |
The SX1278 RA-02 module has 16 pins. Below is the pinout and description:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | GND | Ground connection |
| 2 | DIO5 | Digital I/O pin 5 |
| 3 | DIO4 | Digital I/O pin 4 |
| 4 | DIO3 | Digital I/O pin 3 |
| 5 | DIO2 | Digital I/O pin 2 |
| 6 | DIO1 | Digital I/O pin 1 |
| 7 | DIO0 | Digital I/O pin 0 (used for interrupts) |
| 8 | NSS | SPI chip select (active low) |
| 9 | MISO | SPI Master-In-Slave-Out |
| 10 | MOSI | SPI Master-Out-Slave-In |
| 11 | SCK | SPI clock |
| 12 | RESET | Reset pin (active low) |
| 13 | 3.3V | Power supply input (3.3V recommended) |
| 14 | ANT | Antenna connection |
| 15 | GND | Ground connection |
| 16 | GND | Ground connection |
3.3V pin to a regulated 3.3V power source. Ensure the ground (GND) pins are connected to the circuit's ground.ANT pin for optimal signal transmission and reception.NSS, MISO, MOSI, SCK) to the corresponding SPI pins of your microcontroller.DIO pins for handling interrupts or additional control signals as required by your application.RESET pin to a GPIO pin on your microcontroller or a manual reset button.Below is an example of how to use the SX1278 RA-02 with an Arduino UNO. This code uses the popular LoRa library.
#include <SPI.h>
#include <LoRa.h>
// Define LoRa module pins
#define NSS 10 // SPI chip select
#define RESET 9 // Reset pin
#define DIO0 2 // DIO0 pin for interrupts
void setup() {
Serial.begin(9600); // Initialize serial communication
while (!Serial);
Serial.println("Initializing LoRa module...");
// Initialize LoRa module
LoRa.setPins(NSS, RESET, DIO0);
if (!LoRa.begin(433E6)) { // Set frequency to 433 MHz
Serial.println("LoRa initialization failed!");
while (1);
}
Serial.println("LoRa initialized successfully!");
}
void loop() {
Serial.println("Sending packet...");
// Send a test message
LoRa.beginPacket();
LoRa.print("Hello, LoRa!");
LoRa.endPacket();
delay(5000); // Wait 5 seconds before sending the next packet
}
LoRa library in the Arduino IDE before uploading the code.433E6 or 868E6) based on your module's configuration and local regulations.No Communication with the Module
Poor Signal Range
ANT pin.LoRa Initialization Fails
NSS, RESET, and DIO0 pins are correctly connected and configured in the code.High Power Consumption
Can the SX1278 RA-02 operate at 5V?
What is the maximum range of the SX1278 RA-02?
Can I use the SX1278 RA-02 with other microcontrollers?
How do I change the operating frequency?
LoRa.begin() function. Ensure the selected frequency complies with local regulations.