Cirkit Designer Logo
Cirkit Designer
Your all-in-one circuit design IDE
Home / 
Component Documentation

How to Use STM32 Discovery kit LoRa, Sigfox, low-power wireless : Examples, Pinouts, and Specs

Image of STM32 Discovery kit LoRa, Sigfox, low-power wireless
Cirkit Designer LogoDesign with STM32 Discovery kit LoRa, Sigfox, low-power wireless in Cirkit Designer

Introduction

The STM32 Discovery Kit LoRa, Sigfox, Low-Power Wireless (manufacturer part ID: B-L072Z-LRWAN1) is a development board designed by STMicroelectronics. It is built around the STM32L072CZ microcontroller, which is part of the ultra-low-power STM32L0 series. This kit integrates LoRa® and Sigfox® communication capabilities, making it ideal for IoT applications requiring long-range, low-power wireless connectivity.

Explore Projects Built with STM32 Discovery kit LoRa, Sigfox, low-power wireless

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Dual-Mode LoRa and GSM Communication Device with ESP32
Image of modul gateway: A project utilizing STM32 Discovery kit LoRa, Sigfox, low-power wireless  in a practical application
This circuit features an ESP32 Devkit V1 microcontroller interfaced with an RFM95 LoRa transceiver module for long-range communication and a SIM800L GSM module for cellular connectivity. Two LM2596 step-down modules are used to regulate the 12V battery voltage down to 3.3V required by the ESP32, RFM95, and SIM800L. The ESP32 facilitates data exchange between the RFM95 and SIM800L, enabling the system to send/receive data over both LoRa and GSM networks.
Cirkit Designer LogoOpen Project in Cirkit Designer
STM32F103C8T6-Based Water Level Monitoring and Communication System with SIM900A and LoRa Connectivity
Image of water level: A project utilizing STM32 Discovery kit LoRa, Sigfox, low-power wireless  in a practical application
This circuit features a microcontroller (STM32F103C8T6) interfaced with a SIM900A GSM module, an HC-SR04 ultrasonic sensor, a water level sensor, and a LoRa Ra-02 SX1278 module for long-range communication. The STM32F103C8T6 is configured to communicate with the GSM module and LoRa module via serial connections, and it reads data from the ultrasonic and water level sensors. An FTDI Programmer is connected for programming and serial communication with the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Arduino Nano and LoRa SX1278 Battery-Powered Wireless Display
Image of transreciver: A project utilizing STM32 Discovery kit LoRa, Sigfox, low-power wireless  in a practical application
This circuit is a LoRa-based wireless communication system using an Arduino Nano to receive data packets and display them on an LCD. It includes a LoRa Ra-02 SX1278 module for long-range communication, a 3.7V battery with a charger module for power, and an LED indicator controlled by the Arduino.
Cirkit Designer LogoOpen Project in Cirkit Designer
Battery-Powered ESP32 and LoRa-Based Soil Moisture Monitoring System
Image of thesis: A project utilizing STM32 Discovery kit LoRa, Sigfox, low-power wireless  in a practical application
This circuit is a wireless sensor system powered by a 18650 Li-Ion battery, featuring an ESP32 microcontroller that reads data from an ADXL345 accelerometer and a DFRobot capacitive soil moisture sensor. The ESP32 also communicates with a LoRa Ra-02 SX1278 module for long-range data transmission.
Cirkit Designer LogoOpen Project in Cirkit Designer

Explore Projects Built with STM32 Discovery kit LoRa, Sigfox, low-power wireless

Use Cirkit Designer to design, explore, and prototype these projects online. Some projects support real-time simulation. Click "Open Project" to start designing instantly!
Image of modul gateway: A project utilizing STM32 Discovery kit LoRa, Sigfox, low-power wireless  in a practical application
Dual-Mode LoRa and GSM Communication Device with ESP32
This circuit features an ESP32 Devkit V1 microcontroller interfaced with an RFM95 LoRa transceiver module for long-range communication and a SIM800L GSM module for cellular connectivity. Two LM2596 step-down modules are used to regulate the 12V battery voltage down to 3.3V required by the ESP32, RFM95, and SIM800L. The ESP32 facilitates data exchange between the RFM95 and SIM800L, enabling the system to send/receive data over both LoRa and GSM networks.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of water level: A project utilizing STM32 Discovery kit LoRa, Sigfox, low-power wireless  in a practical application
STM32F103C8T6-Based Water Level Monitoring and Communication System with SIM900A and LoRa Connectivity
This circuit features a microcontroller (STM32F103C8T6) interfaced with a SIM900A GSM module, an HC-SR04 ultrasonic sensor, a water level sensor, and a LoRa Ra-02 SX1278 module for long-range communication. The STM32F103C8T6 is configured to communicate with the GSM module and LoRa module via serial connections, and it reads data from the ultrasonic and water level sensors. An FTDI Programmer is connected for programming and serial communication with the microcontroller.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of transreciver: A project utilizing STM32 Discovery kit LoRa, Sigfox, low-power wireless  in a practical application
Arduino Nano and LoRa SX1278 Battery-Powered Wireless Display
This circuit is a LoRa-based wireless communication system using an Arduino Nano to receive data packets and display them on an LCD. It includes a LoRa Ra-02 SX1278 module for long-range communication, a 3.7V battery with a charger module for power, and an LED indicator controlled by the Arduino.
Cirkit Designer LogoOpen Project in Cirkit Designer
Image of thesis: A project utilizing STM32 Discovery kit LoRa, Sigfox, low-power wireless  in a practical application
Battery-Powered ESP32 and LoRa-Based Soil Moisture Monitoring System
This circuit is a wireless sensor system powered by a 18650 Li-Ion battery, featuring an ESP32 microcontroller that reads data from an ADXL345 accelerometer and a DFRobot capacitive soil moisture sensor. The ESP32 also communicates with a LoRa Ra-02 SX1278 module for long-range data transmission.
Cirkit Designer LogoOpen Project in Cirkit Designer

Common Applications and Use Cases

  • Internet of Things (IoT) devices
  • Smart metering and smart cities
  • Industrial monitoring and control
  • Asset tracking and geolocation
  • Environmental monitoring
  • Home automation

Technical Specifications

Key Technical Details

Feature Description
Microcontroller STM32L072CZ (ARM® Cortex®-M0+ at 32 MHz, 192 KB Flash, 20 KB RAM)
Wireless Connectivity LoRa® and Sigfox® (via Semtech SX1276 transceiver)
Operating Voltage 3.3V (powered via USB or external source)
Power Consumption Ultra-low-power design (down to a few µA in standby mode)
Interfaces UART, SPI, I2C, ADC, GPIO, USB 2.0 FS
Antenna On-board antenna for LoRa®/Sigfox® communication
Expansion Arduino Uno V3-compatible headers and STMod+ connector
Debugging On-board ST-LINK/V2-1 debugger/programmer
Dimensions 95 mm x 25 mm

Pin Configuration and Descriptions

The STM32 Discovery Kit features Arduino Uno V3-compatible headers for easy prototyping. Below is the pinout for the Arduino header:

Pin Name Function Description
D0 PA3 UART RX Serial communication receive pin
D1 PA2 UART TX Serial communication transmit pin
D2 PA10 GPIO General-purpose input/output
D3 PB3 GPIO/PWM General-purpose I/O or PWM output
D4 PB5 GPIO General-purpose input/output
D5 PB4 GPIO/PWM General-purpose I/O or PWM output
D6 PB10 GPIO/PWM General-purpose I/O or PWM output
D7 PA8 GPIO General-purpose input/output
A0 PA0 ADC Analog input
A1 PA1 ADC Analog input
A2 PA4 ADC Analog input
A3 PB0 ADC Analog input
A4 PC1 I2C SDA I2C data line
A5 PC0 I2C SCL I2C clock line

Usage Instructions

How to Use the Component in a Circuit

  1. Powering the Board:

    • Connect the board to a computer or USB power source using a micro-USB cable.
    • Alternatively, supply 3.3V to the external power pins.
  2. Programming the Board:

    • Use the on-board ST-LINK/V2-1 debugger to program the STM32L072CZ microcontroller.
    • Compatible IDEs include STM32CubeIDE, Keil MDK, and IAR Embedded Workbench.
  3. Connecting Peripherals:

    • Use the Arduino Uno V3-compatible headers to connect sensors, actuators, or other peripherals.
    • For wireless communication, ensure the on-board antenna is not obstructed.
  4. Wireless Communication:

    • Configure the LoRa® or Sigfox® stack using the STM32Cube software libraries.
    • Use the Semtech SX1276 transceiver for long-range communication.

Important Considerations and Best Practices

  • Power Management: Utilize the ultra-low-power modes of the STM32L072CZ to maximize battery life in IoT applications.
  • Antenna Placement: Ensure the on-board antenna has a clear line of sight for optimal wireless performance.
  • Firmware Updates: Regularly update the firmware using STM32CubeProgrammer to ensure compatibility with the latest software libraries.
  • Debugging: Use the ST-LINK/V2-1 debugger for real-time debugging and troubleshooting.

Example Code for Arduino IDE

The STM32 Discovery Kit can be programmed using the Arduino IDE with the STM32 core installed. Below is an example of sending a message over UART:

// Include the necessary library for STM32
#include <Arduino.h>

// Define UART pins
#define RX_PIN PA3  // UART RX pin
#define TX_PIN PA2  // UART TX pin

void setup() {
  // Initialize UART communication at 9600 baud
  Serial.begin(9600);
  while (!Serial) {
    // Wait for the serial port to initialize
  }
  Serial.println("STM32 LoRa Discovery Kit Initialized");
}

void loop() {
  // Send a message over UART every 2 seconds
  Serial.println("Hello from STM32 Discovery Kit!");
  delay(2000);  // Wait for 2 seconds
}

Note: Install the STM32 board package in the Arduino IDE before uploading the code.

Troubleshooting and FAQs

Common Issues and Solutions

  1. Board Not Detected by Computer:

    • Ensure the USB cable is functional and supports data transfer.
    • Check that the ST-LINK/V2-1 driver is installed on your computer.
  2. Wireless Communication Fails:

    • Verify that the LoRa®/Sigfox® stack is correctly configured in the firmware.
    • Ensure the antenna is properly connected and unobstructed.
  3. Power Issues:

    • Confirm that the board is receiving sufficient power (3.3V via USB or external source).
    • Check for short circuits or incorrect connections on the headers.
  4. Programming Errors:

    • Ensure the correct microcontroller (STM32L072CZ) is selected in the IDE.
    • Update the ST-LINK firmware using the STM32CubeProgrammer tool.

FAQs

Q: Can I use this board with batteries?
A: Yes, the board supports battery operation. Use the external power pins to connect a 3.3V battery.

Q: Is the board compatible with LoRaWAN®?
A: Yes, the board supports LoRaWAN® through the Semtech SX1276 transceiver and STM32Cube software libraries.

Q: Can I use this board with Arduino shields?
A: Yes, the board features Arduino Uno V3-compatible headers for easy integration with Arduino shields.

Q: How do I update the firmware?
A: Use the STM32CubeProgrammer tool to flash the latest firmware via the ST-LINK/V2-1 debugger.

Q: What is the range of the LoRa® communication?
A: The range depends on environmental factors but can reach up to several kilometers in open areas.