LC Technology 5V 4 Channel Relay Board (LC-ESP01-4R-5V)
Available from:
Aliexpress.com
Amazon.com
Mediarath.de
Manufacturer:
Chinalctech.com
GPIO # | Component |
---|---|
GPIO00 | Led1 |
GPIO01 | User |
GPIO02 | Button1 |
GPIO03 | User |
GPIO04 | None |
GPIO05 | None |
GPIO09 | None |
GPIO10 | None |
GPIO12 | Relay1 |
GPIO13 | Relay2 |
GPIO14 | Relay3 |
GPIO15 | Relay4 |
GPIO16 | None |
FLAG | None |
Configuration (old format, will be converted to new template when applied)
{"NAME":"LC-Tech_4CH ","GPIO":[52,255,17,255,0,0,0,0,21,22,23,24,0],"FLAG":0,"BASE":18}
Flashing
Remove ESP01 from the relay PCB and connect it to your USB-to-serial adapter according to the image and flash Tasmota on it.
You need to configure these rules to control the relays. The ones defined in the template are just virtual relays!
Rule1
on Power1#State=1 do SerialSend5 A00101A2 endon on Power1#State=0 do SerialSend5 A00100A1 endon on Power2#State=1 do SerialSend5 A00201A3 endon on Power2#State=0 do SerialSend5 A00200A2 endon on Power3#State=1 do SerialSend5 A00301A4 endon on Power3#State=0 do SerialSend5 A00300A3 endon on Power4#State=1 do SerialSend5 A00401A5 endon on Power4#State=0 do SerialSend5 A00400A4 endon
Make sure to enable the rule:
Rule1 1
If relays still don’t switch try BaudRate 9600