User Tools

Site Tools


pidflight:bluetooth

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
pidflight:bluetooth [2017/10/09 08:57]
cmengler [Alternative]
pidflight:bluetooth [2018/03/22 15:47] (current)
cmengler [Arduino]
Line 16: Line 16:
   * **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 input 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 =====
pidflight/bluetooth.1507499826.txt.gz ยท Last modified: 2017/10/09 08:57 by cmengler