This is an old revision of the document!
By default most modules are set to 9600 baud rate. The Bluetooth module must be configured to 115200 baud rate.
Please be aware the AT commands to configure your Bluetooth module may vary. Below are examples of typical AT commands for most common modules.
The following AT commands are used to configure the name and passcode on the Bluetooth module.
Some generic HC-06 modules labelled ZS-040 may use a variant of AT commands to configure the module. If the above commands do not work, please refer to the ZS-040 section below.
These AT commands have been verified with AT+VERSION command that returns VERSION:3.0-20170609.
An alternative option to setting up the Bluetooth module without an FTDI adapter is the use the bluetooth-passthru.hex with an Arduino Nano. This HEX file creates a software serial connection to the Bluetooth module on D6/D7 pins and relays AT commands from the serial terminal to the Bluetooth module.
This module is supported as of PIDflight Lap v1.0.0-alpha.5.
This module should be set to 9600 baud rate by factory default and require no further changes.
If you need to configure your HM-10 module to use baud rate 9600, following these steps:
Parameter | Baud rate |
---|---|
0 | 9600 |
1 | 19200 |
2 | 38400 |
3 | 57600 |
4 | 115200 |
5 | 4800 |
6 | 2400 |
7 | 1200 |
8 | 230400 |
IMPORTANT: Please be careful, if you set the baud rate to 1200, the module may no longer support the configurations of the AT command. You may need to short-circuit the PIO0 to ground to restore factory settings.
The following AT commands are used to configure the name and passcode on the Bluetooth module.