I build circuit relay with the diagram:
I use the code esphttpd in the examples Espressif SDK to control GPIO 2.
Everything works great except for one problem:
When ESP8266 reboot then GPIO 2 keep in high voltage for 1 second, This will auto turn on the replay then turn off, The device connect to the replay would be damaged
This seems to be the default of ESP8266 at startup.
Is there a way to kill the high voltage of the GPIO 2 when restarting ?
Thanks.