Available from:
Banggood.com
Aliexpress.com
Manufacturer:
Blitzwolf.com
GPIO # | Component |
---|---|
GPIO00 | Led2i |
GPIO01 | CSE7766 Tx |
GPIO02 | Led1i |
GPIO03 | CSE7766 Rx |
GPIO04 | None |
GPIO05 | Relay2 |
GPIO09 | None |
GPIO10 | None |
GPIO12 | None |
GPIO13 | None |
GPIO14 | Relay1 |
GPIO15 | None |
GPIO16 | Button1 |
FLAG | None |
{"NAME":"SHP5","GPIO":[57,145,56,146,0,22,0,0,0,0,21,0,17],"FLAG":0,"BASE":18}
Disassembly to flash the module is not trivial, please follow online tutorials. Flashing with a 3.3V programmer seems to work, even though the low-voltage part of the module operates with 5V.
The hardware button switches socket power by a single press and USB power by a double press.
If inversion is desired, execute command SetOption11 1
.
Be aware that the HLW8032 power measurement component reports invalid readings for values lower than 5W.
To discard low values and report 0W instead, execute command SetOption39 1
.
You might wish to keep USB power active at all times.
Check out the command ButtonRetain 1
for MQTT based retention.
Furthermore, the red LED to indicate the power status of the module will be illuminated as long as any of the two relays are active.
To ignore USB power and indicate socket power state only, execute command LedMask 1
.
Important: it is possible that your device will enter a bootloop due to a conflict with UART/serial logging. Fix this using: SerialLog 0