STM32 USB CDC RYBG211 BLE PC to Smartphone Messaging Application

Опубликовано: 28 Февраль 2026
на канале: Useful Electronics
6,543
97

Video Sponsor is PCBWay. They are having discount on 4 & 6 layers PCBs.You can get extra free coupons using the link below:
https://www.pcbway.com/setinvite.aspx...

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.

Consider supporting me on Patreon:
  / usefulelectronics  

RYBG211 2.4GHz Bluetooth 5.1 High power long range module:
https://www.reyax.com/products/RYBG21...

ESP32S3 Interfacing 8bit Display Using LVGL and ESP IDF:
   • ESP32S3 Interfacing 8bit Display Using LVG...  MCU
Used pin number saving techniques playlist:   • STM32 Used Pin Number Saving Techniques  

GitHub Repository:
https://github.com/UsefulElectronics/...

Useful Electronics Blogs website:
https://www.usefulelectronics.net

Thingiverse Profile:
https://www.thingiverse.com/wardzx/de...