how to change the bluetooth speed to a different speed ( not the standard 9600 )

607 views
Skip to first unread message

peter p

unread,
Mar 4, 2016, 10:48:39 AM3/4/16
to MIT App Inventor Forum
I like to use a bluetooth connection to program my arduino from my pc at a speed of 115200. And use the same bluetooth at the same speed 115200 to connect to a app on my phone. The standard speed on samples that i find on internet is always 9600. Is it posible to change the mit app inventer setup to 115200 speed? Thanks for your reply.

Martyn_HK

unread,
Mar 4, 2016, 11:40:54 PM3/4/16
to mitappinv...@googlegroups.com
The baud rate is the speed the Arduino talks to the Bluetooth module, not the speed the Android talks to the module. The speed from Android to the BT module is automatic and dependent upon the BT module and the version of BT used.

To change the baud rate used between Arduino and the BT module, 
1st change the baud rate of the BT module (normally done using AT commands), 
2nd when you start the serial connection is the Arduino sketch use the same baud rate.

9600 is often used in examples because it is the  default speed for many of the cheap BT modules.



peter p

unread,
Mar 5, 2016, 11:57:21 AM3/5/16
to MIT App Inventor Forum
Thanks for the reply. I thought that I had to adapt the speed of the bluetooth connection according to the speed of the serial speed.
I give it a try.
Reply all
Reply to author
Forward
0 new messages