Tutorial: Bluetooth

Bluetooth (HC-06)

HC-06

Procedure

1. Connect the bluetooth module(HC-06) and the MCU.

For using USART1, select PA9(TX) and PA10(RX).

  • BT(TX) - PA10(RX)

  • BT(RX)- PA9(TX)

Connection

2. Search and add the bluetooth named "HC-06(n)". (n = 01, 02, ... )

image

3. Enter the password "1234".

password

4. If it's connected normally, you can connect the serial port with Teraterm.

Serial Port

Sample Code

  • Assumes you have ecUART2.h

Last updated

Was this helpful?