- Wed May 10, 2023 6:21 pm
#96401
I realize this is an old post but it never got a good answer and while the OP may have resolved his issue, others may have the same question.
The "ets Jan 8 2013, rst cause: 4, boot mode: (3,6)" is a watchdog reset but I didn't see anything in your code that enables the watchdog. But here's some thoughts:
The R2 on those v1.0 boards is a design flaw. Remove it and then the ESP-01 will boot properly and won't need to be disconnected and then connected after boot.
Next, try running the whole thing for quite some time without anything actually connected on the relay. Act as if there is by sending commands to turn it on, off, reboot the board, etc and see if you can force a glitch. If it's OK, then try driving a pure resistive load such as a halogen lamp of 500W or so. If still no glitches, then try a load again that has a motor (a fan or such.) If it now glitches, I'd look at a dirty power-supply, even if it seems good.
If you have the parts, hook the relay to a power-bank for the G/5V lines. Then try driving the load on the relay that was having issues and see if it glitches (the 5v will be totally removed from the A/C at this point, where-as a mains-powered 5v source is not totally isolated.) If it runs fine, then that shows there IS some spikes or brown-outs on the regular supply that's causing the issue.
And as a side note to pangolin, please research your answers. A search for ESP8266 Relay v1.0 board finds this:
https://tasmota.github.io/docs/devices/ ... ngle-relayOP was putting the ESP-01 onto a separate breadboard and jumpering back to the 2x4 socket, possibly so he could avoid the "won't boot issue." As mentioned, removal of the R2 will stop that,