Hi everyone.
I’ve tried almost everything, and the only thing that has worked for me is declaring the board in this way:
esp8266:
board: d1_mini
early_pin_init: false
It’s the only way I’ve found to avoid the “blinking” during boot-ups.
Even with capacitors, it still happened.
I’ve tried on both old and new D1 Mini boards (Chinese clones), and it has worked in both cases.
I know the issue is solved on this thread, but for future, I have the same issue, but I have a level shifter between my ESP32 and the relay. Which means the input of the relay is pulled high to 3.3V.
The relay triggers for a pulse when 3.3V turns on, before the ESP32 boots. That’s the race condition.
I am adding a transistor on the GND pin of the relay input, which will turn on when the ESP is initialized. That way, even if the pull up is active, the GND is not connected and the input to the relay board is off.
Anyone try this before?