Hello,
I am currently using ESP8266 for controlling 4 relays along with ESPeasy and Raspberry Pi. But every time I reset the ESP8266-NodeMCU the GPIO4 starts flickering and I need to reset it 2-4 times to make it stable. Input is taken from a manual switch at GPIO5 with the same IDX as GPIO4 to control the relay connected at GPIO 4.
Configuration:-
Hardware -
GPIO4:- Output low
GPIO5:- Input pullup
Can you help me resolve this issue??
GPIO 4 flickering on reset
Moderators: grovkillen, Stuntteam, TD-er
Re: GPIO 4 flickering on reset
Have you configured a de-bounce value for the input? (50 - 100 msec), and does that GPIO have a physical pull-up resistor installed? (~4k7-10k, the internal pull-up is ~80-100k so a bit 'weak').
What length are the wires that connects the input to GPIO5?
What length are the wires that connects the input to GPIO5?
/Ton (PayPal.me)
Re: GPIO 4 flickering on reset
Maybe... ?
Re: GPIO 4 flickering on reset
I have not configured the De-bounce value...Gpio does have a physical pull-down resistor installed...the length of the wire is 5cm.
Re: GPIO 4 flickering on reset
GPIO 4 & 5 should be the most 'stable' ones during boot.
See also: https://rabbithole.wwwdotorg.org/2017/0 ... -gpio.html
But you're writing about a "pull down" resistor.
Why a pull-down resistor?
It is more common to have a pull-up resistor and use the switch to pull the signal down.
See also: https://rabbithole.wwwdotorg.org/2017/0 ... -gpio.html
But you're writing about a "pull down" resistor.
Why a pull-down resistor?
It is more common to have a pull-up resistor and use the switch to pull the signal down.
Re: GPIO 4 flickering on reset
Sorry for the late reply.....I have used a pull-down resistor to avoid floating of the GPIO which occurs when domotics sends signal low while the manual switch is 1.TD-er wrote: ↑26 Oct 2020, 09:10 GPIO 4 & 5 should be the most 'stable' ones during boot.
See also: https://rabbithole.wwwdotorg.org/2017/0 ... -gpio.html
But you're writing about a "pull down" resistor.
Why a pull-down resistor?
It is more common to have a pull-up resistor and use the switch to pull the signal down.
Actually, the version I am uploading has a different hardware section where a GPIO has the following dropdown option: 1) default 2)output high 3) output low 4) input pull up. So in order to configure the GPIO as input, I have to set it as pulled up forcefully while the PCB has a pull-down resistor connected to the same GPIO. I guess that's the issue.
Who is online
Users browsing this forum: No registered users and 89 guests