Please Help With Sending and Receiving Data through HC-05 Bluetooth at 230400 Baud Rate

8 visualizaciones (últimos 30 días)
Currently, I am working on a project where I am trying to send data at a baud rate of 230400 or 250000. This works when the Arduino is wired to the computer. The data is received through a MATLAB code and the data is read by an Arduino program.
However, when I use an HC-05 Bluetooth module I can only send data when using a baud rate of 115200 across all programs. But when I program the module to 230400, as well as the MATLAB and Arduino, I do not receive the correct data. I programmed the Arduino to send flaggers after every 3 bytes of data, but I do not see any flaggers in MATLAB when the baud rate is 230400. I am receiving data, but I am not sure what it is since I do not see the flaggers. I am unsure where the issue is if it is the computer, the Bluetooth module, MATLAB, or Arduino. Please let me know how I can receive the correct data, or where the problem most likely is.

Respuestas (1)

Raj
Raj el 2 de Abr. de 2024
The HC-05 bluetooth module support a range of baud rates starting from 9600 to 460800 bps depending upon the model. Along with programatically setting the baud rate in the code being deployed to Arduino, you should also check if you have set the right baud rate in the HC-05 bluetooth module as well.
For doing so, you need to programatically configure the bluetooth module through AT commands. For more information on AT commands refer to the datasheet of HC-05 module from your manufacturer. You can additionally also refer to the link below
I hope this helps!

Categorías

Más información sobre Modeling en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by