A closer look at the E32-868T20D LoRA Module with UART interface
- 767 words
- 4 min
I've recently set up a gateway for The Things Network and to spice things up a bit a was looking into possibilities of hooking up some microcontroller based board to it. So it started to look into options how to make this happen.
As it turns out, Semtech is one of the biggest manufacturers of LoRaWAN capable IP cores which are also used by a lot of manufacturers in one way or another.
So I was hoping I would find a SX1276 based board somewhere in my drawer but unfortunately I only found RAK811 boards which are kind of expensive boards which already come with a microcontroller implementing a sophisticated LoRA/LoRAWAN stack requiring interfacing and a E32-868T20D module from EByte which does something similar but in a much more primitive and mostly useless way.
This is what it looks like:
Since EByte claimed that this is module contains a SX176 based design paired with premium components, I'd say we have a look under the hood and see whether we can make it useful for us; shall we?`
Under the hood
So with a bit of fiddling (and the help of SRA chip removal alloy) I removed the metal shield and was greeted with these components on the board:
From left to right we can see:
- The SMA connector
- A discrete filter and impedance matching network (look at those beautiful wirewound inductors!)
- The SX1276
- A crystal
- A STM8L151G microcontroller
- Two 3V3 voltage regulators
- Various decoupling caps and resistors
- The 2.54mm pin headers to hook up to a MCU or USB to serial interface
A few noteworthy things here: First of all, it's a really beautiful, well structured and clean design, the SX1276 and the antenna interface are textbook and use really high quality components. For whatever reason EByte has chosen a rather powerful and expensive STM8L151G microcontroller for such a dumb job. The reason for the two (and different brand!) 3V3 regulators is that one is for the MCU and the other one for the SX1276 which is actually conntrolled by the microcontroller and only turned on when communication is required.
Reversing the module
The module is a bit annoying in that the serial interface is rather useless. It only supports a P2P LoRA mode so it can only talk to another module of its kind -- pretty much. So my idea was to figure out what's happending under the hood, removing the serial interface and wire up the SPI interface of the SX1276 for direct use.
So here's the important bits marked up:
So basically we should be able to connect the
from the SX1276 directly to the
RXD pins, permanently turn
on the second LDO and everything should work just fine.
Mod the module
So here's the modded version:
I decided to remove the LDO for the STM8L151G as there's really no point in
having a second one which just adds to the noise and draws current all the
time. Then I'vve used shame wire to cross from the signals coming over from the
SX1276 to run them directly into the previous output pins of the STM8L151G.
RESET pin I simply bridged over to
M0, for this the former LDO line had
to go, otherwise that'd be connected to the LDO which is probably not good
for power sequencing reasons. Last but not least the LDO was set to be
Of course everything was tested for shorts and proper voltages/power consumption so until I can test it via software I'm going to assume it was succssfully converted.
Of course now we'll need some proper Oxidization and turn to writing some Rust software. I actually found two implementations, one from Rust Embedded WG member Ryan Kurte radio-sx127x and one from Charles Wade sx127x_lora. So all that there's left to do is try them out.
Exciting times. Until next time...