top of page
Writer's pictureUseful Electronics

STM32 BLE Application

Updated: Feb 11, 2023


In this tutorial, RYBG211 Bluetooth Low Energy Module is interfaced by STM32F411 MCU using AT commands over UART and it is configured to have USB CDC interface.

with such setup, smartphone to personal computer messaging firmware is build making it possible to send data from a smartphone over BLE GATT connection to RYBG211 module that sends the data to the MCU over UART.


STM32F411 later on sends the received data over USB virtual COM port to the connected PC. a reversed communication rout is taken when the data source is the PC.


The advantage of such implementation is that PC does not worry about the connected MCU communication baud rate. The whole system is powered over the connected USB.


In this experiment, I have conducted a Bluetooth Low Energy (BLE) communication range test for RYBG211 module after adding GPIO control commands to the hosting MCU to change the status of connected power LEDs remotely as an indication of ongoing BLE communication.


The connected power LEDs are driving using L298n dual H bridge board that is usually used for control speed and direction control. The driver board is controlled with PWM signal generated by STM32F411 MCU.


GitHub Repository:





68 views0 comments

Comments


bottom of page