Joke Collection Website - Blessing messages - Using HC-05 Bluetooth module to connect with MCU, data can be sent from MCU to HC05, and then received by mobile phone. ...

Using HC-05 Bluetooth module to connect with MCU, data can be sent from MCU to HC05, and then received by mobile phone. ...

After the mobile phone is connected to the Bluetooth module, the single chip microcomputer can send data to the Bluetooth module through its own serial port, and the Bluetooth module then sends the data to the mobile phone.

Bluetooth module is used as serial port, and MCU programming is similar to serial communication.

HC05 needs to be set as slave and master. The temperature sensor is connected as a slave, and the digital tube display is connected as a host, and the data collected by the slave is sent to the host. The implementation steps are as follows: set the baud rate of serial communication between the two parties, etc. Set the slave to the sending state.

The Bluetooth serial port module is connected with the single chip microcomputer, and the baud rate of the Bluetooth serial port module should be consistent with that of the single chip microcomputer, and the baud rate of the mobile phone serial port application should also be consistent, otherwise garbled codes will appear.