Skip to main content
Graduate
September 9, 2025
Question

Connect WBA55CG + LIS2DUX12

  • September 9, 2025
  • 1 reply
  • 581 views

Hello everyone,

 

I'm new to both BLE and MEMS sensor. I want to combine 2 examples code as following:

STMems_Standard_C_drivers/lis2dux12_STdC/examples/lis2dux12_mlc_activity_mobile.c at master · STMicroelectronics/STMems_Standard_C_drivers · GitHub

 

STM32WBA Bluetooth® LE – Serial communication - stm32mcu

 

so that i can send MEMS events via BLE/USART. Could someone give me support or instruction, how to combine ?

    This topic has been closed for replies.

    1 reply

    Technical Moderator
    September 12, 2025

    Hi @Henry_BLE ,

    Hello,

    Regarding the use of the STM32WBA microcontroller and BLE (Bluetooth Low Energy) technology, I would like to provide you with some advice and operational guidelines to facilitate the development of your application.

    Useful Resources

    On the official STMicroelectronics wiki, you can find numerous practical examples demonstrating how to use the STM32WBA microcontroller with BLE. In particular, I suggest consulting the following example:
    STM32WBA Heart Rate Example
    This example is especially useful as it presents a complete application for BLE data transmission and reception via a mobile app, covering both firmware implementation and communication management.

    Recommended Development Approach

    To optimize the development process, I suggest proceeding gradually by following these steps:

    1. Implement UART serial communication without BLE
      Start by creating a basic firmware that manages UART serial communication. This will allow you to verify and test data transmission simply and reliably, without introducing the complexity of the BLE protocol.
    2. Study and integrate the WPAN system for BLE
      Next, deepen your understanding of the WPAN  system used to manage BLE communication. You can rely on example firmware and documentation available on the ST wiki to understand how to configure and handle BLE communication on the STM32WBA microcontroller.
    3. Integrate UART and BLE communication
      Once you are familiar with both systems, you can integrate UART and BLE communication within the firmware. Essentially, during data transmission via WPAN, it will be possible to also send data over UART, enabling dual communication modes and facilitating debugging and monitoring.