-
Notifications
You must be signed in to change notification settings - Fork 40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relay fires when power is applied #28
Comments
I think this has something to do with certain pins on the NodeMCU being pulled high or low during boot. I am running into this exact issue myself with a NodeMCU and 2 relay module while automating my doorbell (essentially the same thing as this project). Are you using D0 (GPIO 16)? See here for more information. |
have not tried D0, but tried many of the other 'safe' pins, and it still
fires on power up. Ofcourse , we can't have that for a garage door as if
we lose power, say while we are away, the garage door would open
…On Mon, Nov 12, 2018 at 10:42 AM Mike1082 ***@***.***> wrote:
I think this has something to do with certain pins on the NodeMCU being
pulled high or low during boot. I am running into this exact issue myself
with a NodeMCU and 2 relay module while automating my doorbell (essentially
the same thing as this project). Are you using D0 (GPIO 16)? See here for
more information
<https://github.com/thehookup/Wireless_MQTT_Doorbell/blob/master/GPIO_Limitations_ESP8266_NodeMCU.jpg>
.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#28 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ADKWFcyuL3tci_yFufLt9EFv16pagxtIks5uuZbjgaJpZM4YV1kF>
.
--
"Go serve your King" https://www.wretched.org/dontstubyourtoe/
|
Ok I was just able to get around this on my doorbell sketch. I don't know if this is a preferred method, or if there is a better way, but my relays are no longer firing on bootup (using D0 and D2 on NodeMCU). I did a digitalWrite to HIGH before setting the pinMode in the void setup() function. I found the solution here.
If this is bad, and someone knows a better way, please let me know. |
Mark,
I am trying to use this code very simply with a nodemcu and a 4-relay board. I power the relay from a separate 5V line from the same usb power source. Have common grounds between them. Anyway, everything works great except the power up sequence, which fires the relay. This is not good as you know for when I have a power outage, the garage will open when power is restored.
I have tried setting active high and active low. Do you have any ideas how I can stop the triggering on power up? Thanks
The text was updated successfully, but these errors were encountered: