REYAX BLE - a Getting Started Guide

by sainisagar7294 in Circuits > Wireless

17 Views, 1 Favorites, 0 Comments

REYAX BLE - a Getting Started Guide

20220808_175404.jpg

A small RYBG_211_LITE BLE module comes with integrated antenna which provides a great range of 200meters. Now it is time for offline message

Supplies

mini_20220808_172148.jpg

Components required:

1) REYAX RYBG211_Lite

2) Usb to serial chip

3) Connecting wires

4) Android app and android ver-9.0

Story:

My Video14.gif
ice_screenshot_20220726-130952.png

​I made some projects using Bluetooth in home automation and robotics. But Bluetooth is quite old tech now, also it is not used vastly because of small range. But BLE changes the whole concept of Bluetooth to not use in home automation projects. BLE stands for Bluetooth low energy and keeping low energy in mind we thought that it would give small range connection compatibility. But REYAX RYBG_211_Lite has been changed the whole game of BLE with its small antenna with long range.​

Let’s see how to use this module with different electronics, we will make an offline BLE messenger using this and then test the range practically. I am new to BLE, and I am very sure I am making this fog beginners.

This project is sponsored by JLCPCB.com, one of the best PCB manufacturers deals in PCB prototypes, PCBA, SMT assembly, stencil and 3D-printing. Sign-up to JLCPCB using this link and get $54 new user coupons for future orders.

REYAX RYBG211_Lite:

REYAX RYBG211_LITE BLE Offline Messenger || How to use BLE || Android APP BLE

The RYBG211_Lite is a 2.4Ghz Bluetooth V5.1 Low Energy Module. By using the AT command which is developed by REYAX, your products could be fast and easily connected with the smartphones and all kinds of Bluetooth devices.

  • Bluetooth V5.1 with Bluetooth Low Energy.
  • SILABS 32-bit ARM® Cortex®-M33 core industry-standard chip.
  • Can connect 8 Host-Client RYBG21x modules at the same time.
  • Metal cover against EMI interference.
  • Control easily by AT commands.
  • Standard Generic Attribute Profile (GATT).
  • Designed with PCB integrated antenna.


AT Commands:

ice_screenshot_20220812-000140.png

​Because this module has an inbuilt microcontroller unit, we can use this directly with our PC/Mobile. Just a serial monitor is need to give commands and display messages. At commands for this module is given below and you can download the full AT instruction set from here.

Connection Diagram:

DF.png

This comes with 4 wire interface, 2 for the power. This module can only work in a voltage range of 3.0 to 3.3volts. UART connection using TX and RX can be made with the computer system with an external Usb to serial programmer. Don’t forget to select the 3.3volt jumper on the serial programmer.

Setting Up the Module:

My Video1.gif
ice_screenshot_20220812-135740.png
My Video.gif

​After making all the connections plug the USB in computer and open the Arduino IDE.

Select the COM port, can be seen in the device manager of your windows computer.

Then open the serial port in Arduino IDE, type AT and hit ENTER. It will display OK as the output if the USB/ Port is installed properly.

Module Settings With at Commands:

ice_screenshot_20220811-215854.png
ice_screenshot_20220812-000140.png

​After making connection with PCB, we have to configure the module properly. We can change the baud rate, address, transmitting RF power. All the At commands are explained in the video, but here we are only discussing RF power mode.

This module is designed to work with very low power, but we can increase/decrease the range and then overall consuming power of this module using this AT+CRFOP command. In default it is matched to +10db but can go from -20db to +20db.

Messenger Mode:

Screenshot_20220808-174320_REYAX BLE RYBG21x.jpg
My Video3.gif

​Either you need two BLE modules to make a setup or you can use a BLE android application provided by REYAX. Download and install the application in your mobile. Connect the module using Bluetooth inside app and send Hi. Now see the serial monitor of your computer it will display “BLE connected” and receive that message with channel info. Because you can pair a total of 8 device in parallel to make a chat room.

Now Using the Same Info From the Serial Monitor. We Can Send the Message Using This Syntax:

ice_screenshot_20220811-215837.png
My Video4.gif

And the message goes to the mobile through BLE. Because it has a very good range about 200meteres (line of sight) and 80 meters (inside home).

So it can be used in home automation to get a good range without internet/Wi-Fi. You Can check our video on YOUTUBE, where we measured the range practically making a messenger setup.

How to Order 1st Time From JLCPCB Using Worth $54 Coupons:

ice_screenshot_20220718-232619.png
ice_screenshot_20220718-233156.png
ice_screenshot_20220718-232824.png
ice_screenshot_20220718-232838.png

Collect all the files of your project and merge them as Gerber.

Go to JLCPCB using this link and register as a new user through google or Gmail account.​

Go to Coupons section and check the eligible coupons.

Upload your Gerber file and select all the parameters.

Add to cart and go for checkout.

Fill all the details for delivery and select your delivery method.

Make the payment and get your PCB in just 7 days.