uPyLoraWAN
The ESP32 and M5Stack using MicroPython meet LoRaWAN.
Check out these articles for more information:
- M5Stack Atom Matrix: LoRaWAN node running MicroPython
- Tutorial: ESP32 running MicroPython sends data over LoRaWAN
Video
Setup
Use VSCode and the PyMakr extension to upload the code. If you are new on MicroPython, this tutorial can help you to install the firmware on a ESP32.
Follow these steps to deploy the project:
- Rename the file
config.sample.py
toconfig.py
- Configure the SPI pins to connect to the SX127x module. I've included the following example connections:
- ES32 TTGO v1.0
- M5Stack ATOM connected to LoRa v2.0 board.
- M5Stack Fire connected to the LoRa868 Module.
- Configure the
devaddr
,nwkey
, andapp
of thettn_config
variable following the instruction from this link.
Hardware
- Wemos® TTGO LORA32 868/915Mhz board.
- M5Stack ATOM connected to LoRa v2.0 board. M5Stack Fire connected to the LoRa868 Module.
Revision
- 0.2v - first commit with LoRaWAN support
Licenses
- Apache 2.0
Results
Two screenshots from the TTN website:
References
- SX127x driver is based on: Wei1234c GitHub. The project was cleaned and made compatible with the Wemos® TTGO LORA32 868/915Mhz board.
- LoRaWAN connection is based on: Adafruit_CircuitPython_TinyLoRa