HC-02 โมดูลบลูทูธ Bluetooth Serial Port Wireless Digital Transmission Module Board 2.4G UART 3.3V TTL
Description:
The HC-02 Bluetooth serial port module is based on version 2.0 development, high stability, ultra-low power consumption, industrial-grade Bluetooth digital transmission module. Users do not need to care about complex wireless communication configurations and transmission algorithms, just connect the device through a TTL serial port.
The HC-02 slave module is powered up and can be connected to the phone for data transfer. In addition, it can be connected to HC-05 or HC-06 host (match code, default is 1234), can replace the traditional serial cable, has no wiring work, very flexible.
- Model: HC-02
- Working frequency band: 2.4G
- Communication interface: UART 3.3V TTL level
- Working voltage: 3V-3.6V
- Baud rate: 1200~115200bps
- Communication level: 3.3V
- Transmit power: 6dBm (maximum)
- Reference distance: 10 meters
- Module size: 27 * 13mm
- Airspeed: 2Mbps
- Antenna interface: built-in PCB antenna
- Communication current: 30mA
- Receive sensitivity: -85dbm @ 2Mbps
- Working humidity: 10%-90%
- Storage temperature: -40 ° C ~ + 85 ° C
- Working temperature: -25 ° C ~ + 75 ° C
A brief introduction to the working principle of the module
As shown in the figure above, the HC-02 module is used together with the HC-06 host to replace the physical connection during full-duplex communication. The device on the left sends the serial port data to the module. After receiving the serial port data, the RXD port of the module automatically sends the data to the air in the form of radio waves. The module on the right can be automatically received and the serial port data sent by the original left device is restored from TXD. The same is true from right to left.
The connection between module and MCU and other devices
- As shown in the figure above, When the module is connected to the power supply system for the 3.3V MCU, the serial port can be cross-connected. (RX of the module is connected to the TX of the MCU, and the TX of the module is connected to the RX of the MCU)
- When the module is connected to the 5V MCU of the power supply system, a 220 Ohm-1K Ohm resistor can be connected in series with the RX end of the module, and then the TX of the MCU is connected. The TX of the module is directly connected to the RX of the MCU, and no series resistor is needed. (Note: Please confirm that the MCU used determines the voltage of 3V as high level, otherwise it needs to add a 3.3V/5V level conversion circuit)
- Note: The power supply of the module is 3.3V (3~3.6V), it can't be connected to 5V, and directly connected to 5V will burn out the module! The 5V power supply must be stepped down by the LDO to 3.3V before powering the module.
Link between modules
HC-06 is the master, HC-02 is the slave, the pairing code is the same (the default is 1234), the baud rate is the same, and it can be automatically linked when the power is turned on. After the first connection, the HC-06 host will automatically remember the pairing object. If you need to connect other modules, you must first clear the pairing memory of the HC-06 host. There is no pairing memory in the slave.
Module connection to mobile phone
The HC-02 can be connected to the Android phone with Bluetooth. The communication test can use the Android serial port assistant software.
The HC-02 can be connected to the iPhone mobile phone for iPhone 4S or higher. The communication test needs to download and install the BLE serial assistant software.
Note:
- Proprietary Service UUID: 49535343-FF7D-4AE5-8FA9-9FAFD205E455
- TX UUID: 49535343-1 E4D-4BD9-BA61-23C647249616
- RX UUID: 49535343-8841-43F4-A8D4-ECBE34729BB3