WWW. SEEEDSTUDIO.COM SEEED HC-12 Wireless Serial Port Communication Module User Manual V1.
WWW. SEEEDSTUDIO.COM SEEED Product Features Long-distance wireless transmission (1,000m in open space/baud rate 5,000bps in the air) Working frequency range (433.4-473.
WWW. SEEEDSTUDIO.COM SEEED Product Dimension Definition of Pins HC-12 module can adopt patch welding, or weld 2.54mm-spacing pin header, and directly insert it onto user’s PCB. The module totally has nine pins and one RF antenna pedestal ANT1, and their definitions are as shown in the table below: Pin Definition I/O direction Note 1 VCC Power supply input, DC3.2V-5.5V, with load capacity not less than 200mA.
SEEED WWW. SEEEDSTUDIO.
SEEED WWW. SEEEDSTUDIO.COM Wired MCU, PC and other device MCU, PC and other device Half-duplex Module replaces wire and becomes wireless communication MCU, PC and other device HC-12 module HC-12 module MCU, PC and other device As shown in the above figure, HC-12 module is used in physical wiring when replacing half duplex communication.
SEEED WWW. SEEEDSTUDIO.COM 16mA. In this mode, the module can automatically adjust the baud rate of wireless transmission in the air according to serial port baud rate, and the corresponding relationship is as shown in the table below: Seri al port bau d rate Bau d rate in the air 1,200b ps 2,400b ps 5,000bps 4,800b ps 9,600b ps 19,200b 38,400b ps ps 57,600b 115,200b ps ps 58,000bps 236,000bps 15,000bps To get the farthest communication distance, the serial port baud rate can be set to be low.
WWW. SEEEDSTUDIO.COM SEEED Meanwhile, when the module is set to be FU2 mode in FU1 and FU3 mode, the baud rate exceeding 4,800bps will be automatically reduced to be 4,800bps. In FU2 mode, the sending time interval of data package cannot be too short; otherwise, the data will be lost. It is suggested that the sending time interval of data package should not be less than 1sec. The following gives some characteristics reference values of various modes: Mode FU1 FU2 FU3 Remark Idle current 3.
WWW. SEEEDSTUDIO.COM SEEED e.g.: Send “AT” command to module, and the module returns “OK”. ②AT+Bxxxx Change the serial port baud rate. The baud rate can be set to be 1,200bps, 2,400bps, 4,800bps, 9,600bps, 19,200bps, 38,400bps, 57,600bps, and 115,200bps. The default value is 9,600bps. e.g.: To set serial port baud rate of module to be 19,200bps, first send “AT+B19200” command to module, and the module returns “OK+B19200”.
WWW. SEEEDSTUDIO.COM SEEED The default value is 8, and the higher the transmitting power is, the farther the communication distance is. When the transmitting power level is set to be 1, the transmitting power is the minimum. Generally speaking, every time the transmitting power is reduced by 6dB, the communication distance will be reduced by half. e.g.: Send “AT+P5” command to module, and the module returns “OK+P5”. After exiting from the command code, the transmitting power of module is +11dBm.
WWW. SEEEDSTUDIO.COM SEEED ⑩AT+SLEEP After receiving the command, the module enters sleep mode after exiting from AT, the working current is about 22μA, and this mode doesn’t allow serial port data transmission. Then enter AT setting state again, and the module will exit from sleep mode automatically. e.g.: When wireless data transmission is not needed, to save power, send “AT+SLEEP” command to module, and the module returns “OK+SLEEP”.