All wiring guides

Free wiring guides

Wire the SX1262 LoRa module (Ra-01SH) to the ESP32-C3

LoRa module Ra-01SH (SX1262, 868/915 MHz) on a 2.54 mm breakout, with antenna. Radio that carries a few bytes over hundreds of metres.

When buying: The bare module has 2 mm edge pads that do not fit jumpers: buy it on a breakout board. Vietnam uses the 920–923 MHz band, so do not buy a 433 MHz module.

Which pin goes where

On the partOn the ESP32-C3
3V33V3
GNDGND
SCKGPIO 4
MISOGPIO 5
MOSIGPIO 6
NSSGPIO 7
RSTGPIO 0
DIO1GPIO 1
BUSYGPIO 3

Wire it with the USB cable unplugged. Follow the names printed on your own part: makers sometimes reorder the pins.

In 3D

Example sketch

// LoRa module Ra-01SH (SX1262, 868/915 MHz) on a 2.54 mm breakout, with antenna
// on the ESP32-C3 Super Mini
// https://stem.manusignal.com/en/parts/sx1262-lora-ra-01sh-esp32-c3
#include <SPI.h>
#include <RadioLib.h>

const int PIN_SCK = 4;
const int PIN_MISO = 5;
const int PIN_MOSI = 6;
const int PIN_NSS = 7;
const int PIN_RST = 0;
const int PIN_DIO1 = 1;
const int PIN_BUSY = 3;

// Ra-01SH is an SX1262. Always fit the antenna before powering the radio.
SX1262 radio = new Module(PIN_NSS, PIN_DIO1, PIN_RST, PIN_BUSY);

void setup() {
  Serial.begin(115200);
  SPI.begin(PIN_SCK, PIN_MISO, PIN_MOSI, PIN_NSS);
  radio.tcxoVoltage = RadioLibTCXOVoltage_t::VoltageNone;
  ConfigLoRa_t config;
  config.frequency = 921400000UL;  // 921.4 MHz: check the band that is legal where you live
  int state = radio.begin(config);
  Serial.println(state == RADIOLIB_ERR_NONE ? "Radio ready" : "Radio failed: check the wiring");
}

void loop() {
  String message;
  if (radio.receive(message) == RADIOLIB_ERR_NONE) Serial.println(message);
}
  • Tools > Board > ESP32C3 Dev Module (USB CDC On Boot: Enabled), then Tools > Port and choose the board's port.
  • RadioLib (version 8 or newer): install it from Sketch > Include Library > Manage Libraries.

This sketch is compiled for the board before the page is published. It has not been run on real hardware by us.

What you should see

Open the Serial Monitor at 115200. It prints “Radio ready”, then any LoRa message it hears on the same settings.

If it does not work

The sketch says the radio failed to start.
Nine wires must all be right: check NSS, RST, DIO1 and BUSY first. If they are, your module may have a TCXO: change VoltageNone to Voltage1V6 in the sketch. An SX1276 module needs a different class.

The same part on the ESP32-S3

More parts on the ESP32-C3