ESP8266-01 locks up power-up when GPIO-2 connected 2 relay
Posted: Sun Apr 28, 2019 9:21 pm
I have bought recently some of those small relay boards that come with ESP8266-01S modules. The relay board has GPIO-0 used as the relay control (it goes to a transistor to control the relay). There is a youtube video that explains that using GPIO-0 is not good because transistor bias circuit can bring that line low and hence 8266 starts in program mode. The video shows how to fix these relay boards and make them work.
I have modified the board and connected the relay control to GPIO-2. I have also flashed the module with ESPEasy. The relay board is powered with 5V and has 3.3V regulator for 8266. When the board is powered up with 5V the relay seems to hum right away and the 8266 is not functional. If I power up but GPIO-2 is not connected to relay control then the 8266 powers up OK - I then connect GPIO-2 to the relay control line everything is still ok and I can turn the relay on and off. I have ESPEasy set the boot state of GPIO-2 to output low, but perhaps it is in an undetermined state first during power-up and hence it is causing relay to chatter and maybe VCC is noisy and 8266 crashes because of this?
I have modified the board and connected the relay control to GPIO-2. I have also flashed the module with ESPEasy. The relay board is powered with 5V and has 3.3V regulator for 8266. When the board is powered up with 5V the relay seems to hum right away and the 8266 is not functional. If I power up but GPIO-2 is not connected to relay control then the 8266 powers up OK - I then connect GPIO-2 to the relay control line everything is still ok and I can turn the relay on and off. I have ESPEasy set the boot state of GPIO-2 to output low, but perhaps it is in an undetermined state first during power-up and hence it is causing relay to chatter and maybe VCC is noisy and 8266 crashes because of this?