This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
pidflight:bluetooth [2017/05/31 18:27] cmengler [HM-10] |
pidflight:bluetooth [2018/03/22 15:46] cmengler |
||
---|---|---|---|
Line 15: | Line 15: | ||
* **AT+NAME<new name>** (e.g AT+NAMEPIDflight to set module name to "PIDflight") | * **AT+NAME<new name>** (e.g AT+NAMEPIDflight to set module name to "PIDflight") | ||
* **AT+PIN<XX... X>** (e.g AT+PIN0000 to set module pairing pin to "0000") | * **AT+PIN<XX... X>** (e.g AT+PIN0000 to set module pairing pin to "0000") | ||
+ | |||
+ | <WRAP center round info 80%> | ||
+ | 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. | ||
+ | </WRAP> | ||
+ | |||
+ | ==== ZS-040 ==== | ||
+ | These AT commands have been verified with **AT+VERSION** command that returns **VERSION:3.0-20170609**. | ||
+ | * **AT+UART=115200,0,0** (sets the baud rate to 115200) | ||
+ | * **AT+NAME=<new name>** (e.g AT+NAME=PIDflight to set module name to "PIDflight") | ||
+ | |||
+ | |||
+ | ==== Arduino ==== | ||
+ | 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. | ||
+ | |||
+ | - Connect the HC-06 to Arduino Nano: | ||
+ | - Arduino (5V) -> HC-06 (VCC) | ||
+ | - Arduino (D6) -> HC-06 (TX) | ||
+ | - Arduino (D7) -> HC-06 (RX) | ||
+ | - Arduino (GND) -> HC-06 (GND) | ||
+ | - Flash the {{:pidflight:bluetooth-passthru.zip|}} HEX file to the Arduino Nano. | ||
+ | - Once the HEX file has been flashed, open up a serial terminal (e.g. Serial Monitor within Arduino IDE) to the COM port of the Arduino Nano with baud rate 115200. | ||
+ | - Type "**AT**" into the serial terminal, "**AT> OK**" response should return to indicate the Bluetooth module is responding to AT commands. | ||
+ | - Proceed with configuring the Bluetooth module with AT commands. | ||
===== HM-10 ===== | ===== HM-10 ===== |