-
Notifications
You must be signed in to change notification settings - Fork 54
Bluetooth Module Setup
Andrey Voroshkov edited this page Jan 27, 2019
·
7 revisions
Connect HC-06 module to PC via USB-UART converter (e.g.FT232RL) Use Arduino IDE built-in Serial Monitor and perform selections/actions in order shown in the following pictures:
If you don't see the OK
response after sending AT
, then:
- try setting different baud rates one by one from 1200 to 115200 (sometimes modules are configured to a baud rate other than 9600).
- try changing "No line ending" to "Both NL & CR" and walk through available baud rates (as described in #1 above)
Typical session for earlier firmware versions:
- AT -> OK
- AT+NAMECHORUS -> OKname
- AT+PIN1234 -> OKpin
- AT+BAUD8 -> OK115200
Typical session for firmware 3.0 (and later?)
- AT -> OK
- AT+NAME: CHORUS -> OK
- AT+PSWD: "1234" -> OK
- AT+UART: 115200,0,0 -> OK
- AT - check the connection
- AT+VERSION - get firmware version
- AT+NAMECHORUS - Change name to "CHORUS". No space between name and command.
- AT+BAUD8 - change baud rate, 8 is the code for 115200 baud, no space between command and code.
- AT+PIN1234 - change pin to 1234, again, no space.
- AT - check the connection
- AT+VERSION - get firmware version
- AT+NAME: CHORUS - Change name to "CHORUS".
- AT+UART: 115200,0,0 - change baud rate to 115200 (don't know what are the zeros after it :)).
- AT+PSWD: "1234" - change password (pin) to 1234. Quotes required!
- AT+NAME - show name
- AT+PSWD - show password (pin)
- AT+NAME - show name
- AT+UART - show UART settings