8 port relay

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
hasanpb
New user
Posts: 6
Joined: 19 Apr 2016, 10:48

8 port relay

#1 Post by hasanpb » 15 Jul 2016, 11:02

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

dduley
Normal user
Posts: 93
Joined: 06 Feb 2016, 17:56

Re: 8 port relay

#2 Post by dduley » 15 Jul 2016, 19:17

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
Hi Hasanpb,

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

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 96 guests