LoRa-E5 (STM32WLE5JC) Module
LoRa-E5 (STM32WLE5JC) Module
The LoRa-E5 (STM32WLE5JC) Module is a compact, low-power wireless communication module designed for IoT applications. It combines a powerful microcontroller (MCU) with a LoRa transceiver, enabling long-range wireless communication capabilities. The module is based on the STM32WLE5JC, a 32-bit microcontroller from the STM32 family, which provides a robust and feature-rich platform for developing IoT devices.
The LoRa-E5 Module is designed to facilitate wireless communication between devices in IoT networks, particularly in applications requiring low power consumption and long-range communication capabilities. The module enables devices to transmit and receive data using the LoRaWAN protocol, a popular LPWAN (Low Power Wide Area Network) technology. The module's MCU handles the processing of data and controls the LoRa transceiver, allowing for efficient and reliable data transmission.
| ### Microcontroller (MCU) Features | |
| STM32WLE5JC MCU | 32-bit ARM Cortex-M4 core with 256 KB of Flash memory and 64 KB of SRAM |
Operates at a voltage range of 1.8 V to 3.6 V and consumes as low as 350 A/MHz in Run mode
UART, SPI, I2C, I2S, USB, and ADC interfaces available
| ### LoRa Transceiver Features |
Supports LoRaWAN Class A and Class C devices
Operates in the 868 MHz and 915 MHz frequency bands
Up to 27.5 kbps in the 868 MHz band and up to 50 kbps in the 915 MHz band
Up to 10 km (6.2 miles) in urban environments and up to 40 km (25 miles) in rural areas
-148 dBm in the 868 MHz band and -142 dBm in the 915 MHz band
| ### Module Features |
18.5 mm x 24.5 mm x 3.5 mm (L x W x H)
-40C to +85C
1.8 V to 3.6 V
UART, SPI, I2C, and USB interfaces available
External antenna connector (SMA or IPX) for optimal performance
| ### Software Support |
Available for various development environments, including Keil Vision, IAR Embedded Workbench, and GCC-based IDEs
Provided for common use cases, such as LoRaWAN node and gateway applications
Supported through UART, SPI, or USB interfaces
The LoRa-E5 (STM32WLE5JC) Module is an ideal choice for IoT applications requiring low power consumption, long-range wireless communication, and robust processing capabilities. Its compact size, low power consumption, and interface flexibility make it suitable for a wide range of use cases, from smart sensors and actuators to gateway devices and industrial control systems.
LoRa-E5 (STM32WLE5JC) Module DocumentationOverviewThe LoRa-E5 module is a compact, low-power, and high-performance wireless communication module based on the STM32WLE5JC system-on-chip (SoC). It integrates a microcontroller, a LoRa transceiver, and a variety of peripherals, making it an ideal solution for IoT applications that require low-power wide-area network (LPWAN) connectivity.Key FeaturesSTM32WLE5JC SoC with Arm Cortex-M4 core
LoRa transceiver with Semtech SX1276/77/78/79
Supports LoRaWAN, private LoRa, and FSK/OOK modulation
Frequency range: 868/915 MHz (EU/US)
Power consumption: 1.8 mA (tx), 4.5 mA (rx), 20 A (sleep)
Onboard LDO regulator, reset button, and LED indicatorsCode ExamplesExample 1: LoRaWAN Node with ArduinoThis example demonstrates how to use the LoRa-E5 module as a LoRaWAN node with an Arduino board.Hardware RequirementsLoRa-E5 module
Arduino Uno/Nano board
Breadboard and jumper wires
Power supply (3.3V, 1.8V)Software RequirementsArduino IDE (version 1.8.x or later)
LoRaWAN library for Arduino (install via Library Manager)Code
```c++
#include <LoRaWAN.h>#define LORA_CE 9 // Chip Enable pin
#define LORA_CSN 10 // Chip Select pin
#define LORA_IRQ 2 // Interrupt pinLoRaWAN lora = LoRaWAN(LORA_CE, LORA_CSN, LORA_IRQ);void setup() {
Serial.begin(9600);
lora.init();
lora.join();
}void loop() {
char message[] = "Hello, LoRaWAN!";
lora.send(message, sizeof(message));
delay(10000);
}
```
Example 2: Private LoRa Network with MicroPythonThis example demonstrates how to use the LoRa-E5 module as a private LoRa node with a MicroPython board.Hardware RequirementsLoRa-E5 module
PyBoard or other MicroPython-compatible board
Breadboard and jumper wires
Power supply (3.3V, 1.8V)Software RequirementsMicroPython firmware (install via bootloader)
LoRa library for MicroPython (install via upip)Code
```python
import machine
import lora# Initialize LoRa module
lora.init()# Set LoRa frequency and spreading factor
lora_freq = 868100000 # EU frequency band
lora_sf = 7
lora.set_frequency(lora_freq)
lora.set_spreading_factor(lora_sf)while True:
# Create a packet
packet = bytes([0x01, 0x02, 0x03, 0x04, 0x05])# Send the packet
lora.send(packet)# Wait for 10 seconds
machine.sleep(10000)
```
Example 3: AT Command Interface with PythonThis example demonstrates how to use the LoRa-E5 module's AT command interface with a Python script.Hardware RequirementsLoRa-E5 module
USB-to-UART bridge (e.g., CP2102)
Computer with Python installedSoftware RequirementsPython 3.x (or later)
pyserial library (install via pip)Code
```python
import serial# Open the serial port
ser = serial.Serial('COM3', 9600, timeout=1)# Set the LoRa frequency and spreading factor
ser.write(b'AT+LORA=FREQ:868100000
')
ser.write(b'AT+LORA=SF:7
')while True:
# Create a packet
packet = bytes([0x01, 0x02, 0x03, 0x04, 0x05])# Send the packet using AT command
ser.write(b'AT+LORA=SEND:' + packet + b'
')# Wait for 10 seconds
time.sleep(10)
```
These examples demonstrate the basic functionality of the LoRa-E5 module in various contexts. Please consult the module's datasheet and user manual for more information on its capabilities and usage.