Hi guys,
I have connected 8 port relay board with ESP8266 with EASYESP 108, everything is working fine except that the system doesn't remember status after reboot. Do you have any trick or help?
Thanks
8 port relay
Moderators: grovkillen, Stuntteam, TD-er
Re: 8 port relay
Hi Hasanpb,hasanpb wrote:Hi guys,
I have connected 8 port relay board with ESP8266 with EASYESP 108, everything is working fine except that the system doesn't remember status after reboot. Do you have any trick or help?
Thanks
If you drive the relay with a PCF8574 port expander instead of using ESP GPIO then the current relay state will survive a reboot. You can use ESPEasy to set the default GPIO data direction and set a default state under the Hardware tab. You could also use rules to set some boot states but there is no way to remember the last known state currently other than the PCF8574. The other port expander that has direct support is the MCP23017 chip. It gives you 16 IO instead of the 8 with the PCF8574 but it does have a reset pin that when toggled it clears all IO and sets the GPIO to inputs.
There are a number of PCF8574 boards available for cheap (like this one: https://www.amazon.com/Expansion-PCF857 ... B00DUO17J6). They connect I2C so you only need 4 wires.
Regards
Dave
Who is online
Users browsing this forum: Google [Bot] and 96 guests