-->
Page 1 of 3

Problem: GPIO initialization on ESP-8266-01

PostPosted: Mon Jan 03, 2022 1:58 pm
by ChrisO
Hi

I have a ESP-8266-01 sitting in a relay-board. The relay is controlled by GPIO0.
The default level of this pin is HIGH, given by the HW design.
With the factory firmware this pin just gets to 5V.
However, when programmed with Arduino's IDE there is a kind of "initialization" and GPIO0 is pulled down.
And this level toggle triggers the relay and makes this board useless for serious usage like controllig
garage door.

Any idea where to look for a way to disable this?
Thanks
ChrisO

Re: Problem: GPIO initialization on ESP-8266-01

PostPosted: Tue Jan 04, 2022 6:33 am
by rpiloverbd
Hello, can't remember any such initialization. I think it will be more helpful if you share link of the board and a screenshot of the message that you are seeing at the time of uploading the code. Hopefully, those will bring you more responses here.

Re: Problem: GPIO initialization on ESP-8266-01

PostPosted: Tue Jan 04, 2022 3:18 pm
by ChrisO
I was partially wrong. I've just realized that the relay on my relay-board where the ESP8266-01 is sitting is LOW triggered. My bad. That means when the ESP8266-01 boots before GPIO0 goes, as designed, to 5V it is for a very short time LOW. That closes the relay and then GPIO0 goes HIGH and my relay opens.
I was thinking it was the other way round.
That means it has nothing to do with Arduinos sketches etc. I received today two brand new ESP8266-01, with just AT firmware and observed what I described above.
Sorry for the noise.
Regards
ChrisO

Re: Problem: GPIO initialization on ESP-8266-01

PostPosted: Wed Jan 05, 2022 6:54 am
by rpiloverbd
Glad that you fixed the problem. All the best with your project.