Skip to content

Bluetooth Module Setup

Andrey Voroshkov edited this page Jan 27, 2019 · 7 revisions

HC-06 Module

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:

Arduino IDE Menu - Serial Monitor

Arduino Serial Monitor for BT Setup

If you don't see the OK response after sending AT, then:

  1. try setting different baud rates one by one from 1200 to 115200 (sometimes modules are configured to a baud rate other than 9600).
  2. 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:

  1. AT -> OK
  2. AT+NAMECHORUS -> OKname
  3. AT+PIN1234 -> OKpin
  4. AT+BAUD8 -> OK115200

Typical session for firmware 3.0 (and later?)

  1. AT -> OK
  2. AT+NAME: CHORUS -> OK
  3. AT+PSWD: "1234" -> OK
  4. AT+UART: 115200,0,0 -> OK

Available commands

For earlier firmware versions

  • 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.

For firmware version 3.0 (and later?)

  • 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