GPIO 4 flickering on reset

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ssd
Normal user
Posts: 53
Joined: 19 Aug 2020, 12:04

GPIO 4 flickering on reset

#1 Post by ssd » 23 Oct 2020, 07:30

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??

User avatar
Ath
Normal user
Posts: 3515
Joined: 10 Jun 2018, 12:06
Location: NL

Re: GPIO 4 flickering on reset

#2 Post by Ath » 23 Oct 2020, 08:05

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?
/Ton (PayPal.me)

Micha_he
Normal user
Posts: 372
Joined: 07 Feb 2018, 19:14
Location: Helmstedt, Germany

Re: GPIO 4 flickering on reset

#3 Post by Micha_he » 23 Oct 2020, 08:48

Maybe... ?
i2c.jpg
i2c.jpg (18.58 KiB) Viewed 13095 times

ssd
Normal user
Posts: 53
Joined: 19 Aug 2020, 12:04

Re: GPIO 4 flickering on reset

#4 Post by ssd » 26 Oct 2020, 05:29

Ath wrote: 23 Oct 2020, 08:05 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?
I have not configured the De-bounce value...Gpio does have a physical pull-down resistor installed...the length of the wire is 5cm.

ssd
Normal user
Posts: 53
Joined: 19 Aug 2020, 12:04

Re: GPIO 4 flickering on reset

#5 Post by ssd » 26 Oct 2020, 05:29

Micha_he wrote: 23 Oct 2020, 08:48 Maybe... ?

i2c.jpg
Nope...I have changed this configuration.

TD-er
Core team member
Posts: 8752
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: GPIO 4 flickering on reset

#6 Post by TD-er » 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.

ssd
Normal user
Posts: 53
Joined: 19 Aug 2020, 12:04

Re: GPIO 4 flickering on reset

#7 Post by ssd » 09 Nov 2020, 13:22

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.
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.

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 89 guests