Skip to content

Building an IoT Application using RYBG211 BLE5.1 long range module

Notifications You must be signed in to change notification settings

UsefulElectronics/stm32-rybg211-ble5.1

Repository files navigation

Build Status

Sponsors

PCBWay

Tutorial Series Sponsor PCBWay Website. You can get extra free coupons using the link below:


REYAX

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


STM32 USB CDC RYBG211 BLE PC to Smartphone Messaging Application


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.

Circuit Diagram


STM32 RYBG211 Bluetooth Low Energy Range Test


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.

Circuit Diagram


About

Building an IoT Application using RYBG211 BLE5.1 long range module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published