GPIO Default for Relay
Posted: Wed May 04, 2016 7:55 am
I'm using Huzzah and SainSmart relay with NodeMCU. If I turn on the relay with gpio.write(2,1), it will stay on - even across a reset. This could be disastrous for me if there was a malfunction such that the software could never start.
I know this has internal pullups but I tried a 10k resistor between GPIO and 3.3V but that did not make any difference and a reset still left the relay ON.
If I remove power then supply power, the relay defaults to off as it should but can anyone tell me how to make the relay default off for a software/firmware problem? (Hope that's clear.)
I know this has internal pullups but I tried a 10k resistor between GPIO and 3.3V but that did not make any difference and a reset still left the relay ON.
If I remove power then supply power, the relay defaults to off as it should but can anyone tell me how to make the relay default off for a software/firmware problem? (Hope that's clear.)