Replies: 2 comments
-
|
I’ll show you where to modify the board and what signals to wire, based on the typical layout of the Waveshare UART HAT. The board we’re talking about is the First it helps to understand what is actually on that board. According to the hardware description, the HAT includes:
So the UART design looks roughly like this:
The SX1262 itself normally communicates via SPI (MOSI, MISO, SCK, CS) and uses BUSY, RESET, and DIO1 interrupt pins for control. That means the chip is already wired for SPI internally — we just need to access those signals. 1️⃣ What the board usually looks likeTypical layout of the UART HAT:
The key parts to identify:
Those resistors are the SPI lines. 2️⃣ Signals you need to accessThe SX1262 pins you want:
SX1262 signal | Connect to Pi
-- | --
MOSI | GPIO10
MISO | GPIO9
SCK | GPIO11
NSS (CS) | GPIO8
BUSY | GPIO20
DIO1 | GPIO16
RESET | GPIO18
This is why most LoRa mesh systems use SPI radios. 3️⃣ The actual hardware modificationThere are three steps. Step A — isolate the UART circuitryLocate the series resistors between:
They usually look like:
These correspond to:
Remove them or cut the traces. This disconnects the UART logic from the radio. Step B — expose the SX1262 pinsNear the SX1262 module you will usually find test pads for:
If they are not labeled, they often appear as small gold pads near the module edges. You solder thin wires to those pads. Step C — wire to the Raspberry PiConnect like this:
Radio | Pi pin
-- | --
MOSI | GPIO10
MISO | GPIO9
SCK | GPIO11
NSS | GPIO8
BUSY | GPIO20
DIO1 | GPIO16
RESET | GPIO18
GND | GND
3V3 | 3V3
This is why most LoRa mesh systems use SPI radios. 4️⃣ Software configuration after the modEnable SPI: sudo raspi-config Check: ls /dev/spidev* Expected: /dev/spidev0.0 Then configure your radio in your project (for example in pyMC): { Now the software communicates directly with the SX1262 chip. 5️⃣ What performance improvement to expectTypical difference:
feature | UART board | SPI mod
-- | -- | --
latency | 10-80 ms | ~2 ms
RSSI accuracy | limited | accurate
PHY control | none | full
mesh reliability | medium | high
This is why most LoRa mesh systems use SPI radios. 6️⃣ Important warningOn many Waveshare boards the resistors are 0402 size, extremely small. Recommended tools:
But electrically the modification is simple. |
Beta Was this translation helpful? Give feedback.
-
|
Great — here is a real board photo and explanation of the parts you need to modify on the Board overview Main components on the board From the annotated board image: SX1262 LoRa module – the RF radio under the metal shield 74HC125 level shifter / buffer – connects logic signals between chips CP2102 USB-UART chip – converts USB/UART for configuration Raspberry Pi GPIO header – connection to the Pi USB port – serial debugging UART header – external serial control SMA antenna connector The board is designed as a UART LoRa modem, not a raw SPI radio. Where to modify the board The key path we want to bypass is: SX1262 We want: Raspberry Pi Step 1 — locate the SPI resistor network Near the 74HC125 chip you will see 4 small resistors in a row. These correspond to: MOSI They are usually labelled something like: R1 Those resistors connect: 74HC125 → SX1262 Remove those resistors or cut their traces. This disconnects the UART circuitry from the radio so the Pi can control it directly. Step 2 — find the SX1262 SPI pads Near the SX1262 module you will usually see test pads or vias for the SPI signals. Typical pads: MOSI These may appear as small gold circles near the module edge. Solder thin wires to those pads. Step 3 — wire them to the Raspberry Pi Connect like this: Step 4 — enable SPI on the Pi Run: sudo raspi-config Enable: Interface Options → SPI Check: ls /dev/spidev* You should see: /dev/spidev0.0 Step 5 — configure your software Example config for pyMC: { Now the Pi talks directly to the SX1262 radio chip. What improvement you get Compared to UART mode:
Important warning The resistors on this board are 0402 size (very small). Recommended tools: fine soldering tip flux tweezers magnification But electrically the modification is straightforward. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Yes 👍 — you can often convert the UART version of the Waveshare LoRa HAT into a direct SPI SX1262 board by bypassing the onboard microcontroller. This effectively turns the board into a normal SX1262 radio that works with software like pyMC_Repeater.
I’ll walk you through the concept and the typical modification.
The board we’re talking about is the
Waveshare SX1262 868M LoRa HAT.
1️⃣ Why the modification works
The UART HAT internally looks like this:
The microcontroller translates serial commands into SX1262 SPI commands.
But the SX1262 itself already exposes SPI pins, and the microcontroller is simply sitting between the Pi and the radio.
So the goal is to change it to:
This bypasses the firmware entirely.
2️⃣ Signals the SX1262 needs
The SX1262 requires these lines:
This makes a big difference for mesh systems.
3️⃣ What the UART board adds
On the UART HAT, the connections usually look like:
The MCU controls:
NSS
BUSY
DIO1
RESET
So to convert it, you must connect the SX1262 pins directly to the Pi GPIO header instead of the MCU.
4️⃣ Typical modification method
Most Waveshare LoRa HATs have exposed test pads or vias.
You typically do this:
Step 1 — locate SX1262 SPI pins
On the PCB you’ll find pads labeled something like:
Sometimes they are labelled:
Step 2 — disconnect MCU SPI lines
You must isolate the MCU so it doesn’t fight the Pi on the SPI bus.
Two common methods:
Option A (cleanest)
Remove the series resistors between MCU and SX1262.
Option B (easier)
Cut the SPI traces.
Typical resistors look like:
between MCU and radio.
Step 3 — wire SX1262 to Raspberry Pi
Example wiring:
These are the same pins used by the SPI version of the board.
5️⃣ Raspberry Pi configuration
Enable SPI:
Verify:
You should see:
6️⃣ Then pyMC works normally
Once wired like a real SX1262 radio you can run:
Now pyMC talks directly to the SX1262, exactly like the supported SPI HAT.
7️⃣ Performance improvement
Compared to UART mode:
This makes a big difference for mesh systems.
8️⃣ One important risk
Some Waveshare UART boards use very tiny 0402 resistors to isolate the SPI lines.
Removing them requires:
fine soldering tip
tweezers
magnification
But electrically the modification is simple.
✅ Good news: most Waveshare boards actually share the same PCB for UART and SPI versions, which means the SX1262 pins are usually easy to access.
Beta Was this translation helpful? Give feedback.
All reactions