با استفاده از ماژول رله با قابلیت کنترل از طریق وای فای می توان هر وسیله الکترونیکی را از طریق گوشی های هوشمند و یا هر دستگاه مجهز به وای فای کنترل نمود.
IN +, IN-: 12V power input;
TX, RX: UART serial port pins;
5V / 12V, GND, SWIM, NRST: STM8S microcontroller program download port
Button S1: mode switch, the default is mode 1
Button S2: Restore factory settings
LED D2 and D4 (red light): relay working indicator, light when open
LED D7 (red light): Mode 1 indicator
LED D5 (blue light): Mode 2 indicator
LED D6 (green light): working status indicator, described as follows:
(1) When off, it means that it is self-configuring or loses connection with the router;
(2) When flashing at 0.5S, it means waiting for the APP to configure a WIFI account for the ESP-01 module
(3) When the 2S flashes slowly, it means the configuration is completed, waiting for the establishment of a TCP connection with the mobile phone;
(4) Steady light indicates successful establishment of TCP connection with mobile phone.
Two reserved jumper caps: please plug them into the bottom end (that is, RX connected to RX1, TX connected to TX1) during normal use, if you want to use the USB to TTL serial port module to debug the ESP-01 module, please insert it to the top ( Otherwise there may be interference).
COM1: public terminal;
NC1: normally closed end, the relay is short-circuited with COM1 before pull-in, and hangs up after pull-in
N01: Normally open, the relay hangs before closing, and shorted to COM1 after closing.
COM2: public terminal;
NC2: Normally closed end, the relay is short-circuited with COM2 before pull-in, and hangs up after pull-in;
N02: Normally open, the relay hangs before closing, and shorted to COM2 after closing.
Relay control command (hex hex format):
Turn on the first relay: AO 01 01 A 2
Close the first relay: A 0 01 00 A 1
Turn on the second relay: A 0 02 01 A 3
Close the second relay: A 0 02 00 A 2