This is a tutorial on how to program the LoRa-E5 mini device using the ST Cube programmer and IDE. It allows you to connect to The Things Network using a standard gateway.
The E5 mini is a compacted-sized development board suitable for the rapid testing and building of small-size prototyping and helps you design your ideal LoRaWAN® wireless IoT device with a long-distance transmission range. E5 mini is embedded with Wio-E5 STM32WLE5JC Module, which delivers the world-first combo of LoRa® RF and MCU chip into one single tiny chip and is FCC and CE certified. It is powered by ARM Cortex-M4 core and Semtech SX126X LoRa® chip and supports LoRaWAN® protocol on the worldwide frequency and (G)FSK, BPSK, (G)MSK, and LoRa® modulations.
If you want to send a text message from a weather station located 5 miles out in the wilderness, Bluetooth and Wi-Fi are utterly useless. Cellular networks require expensive monthly SIM cards. The solution is LoRa (Long Range Radio). The Seeed LoRa E5 module is an industrial-standard radio transceiver.
The LoRaWAN Advantage
LoRa operates on sub-gigahertz frequencies (e.g., 915 MHz in the US, 868 MHz in Europe).
- Low Bandwidth: You cannot send pictures over LoRa. It is designed to send tiny packets of text (e.g.,
[Temp: 24C]) every few minutes. - Extreme Range: Because the frequency is low and pulses very slowly, the signal can penetrate buildings, forests, and travel up to 10 kilometers line-of-sight on minimal battery power!
- The AT Command Interface: The Arduino communicates with the LoRa E5 module via Serial using "AT Commands." The Arduino shoots a text string:
AT+MSG="Hello World"over the TX pin, and the module handles the complex radio transmission.
Connecting to The Things Network (TTN)
Rather than building a second Arduino node to act as the receiver, you can connect to The Things Network.
- TTN is a global community of LoRa gateways.
- You register your module's keys on their website.
- Your Arduino blasts the data into the sky. If your city has a gateway on a roof miles away, the gateway picks it up and forwards it to the internet, allowing you to read your sensor data anywhere in the world, completely free!
Component Necessities
- Arduino board (preferably an ESP32 or ESP8266 for the Hub).
- Seeed LoRa-E5 module and its required Antenna.
- A reliable 3.3V power source.
#lora #lorawan #seeed #stm32 #thethingsnetwork #ttn #stm #stlink #stlinkv2