Please Help With Sending and Receiving Data through HC-05 Bluetooth at 230400 Baud Rate
8 次查看(过去 30 天)
显示 更早的评论
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.
0 个评论
回答(1 个)
Raj
2024-4-2
Hello @Elaine Wong
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Modeling 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!