When power is connected, the solenoid momentarily actuates ON and back OFF (unwanted behavior).
Afterwards everything works normally, and I can open/close the solenoid from the website hosted on the ESP01.
The behavior at boot is unwanted, but I am not sure why it is happening.
R5 is the pull up resistor on GPIO0 which in my understanding should prevent this from happening.
I have attached the circuit schematic, and an oscilloscope reading of the voltage on GPIO0 when the power is turned on.
Can anyone identify what I'm doing wrong?
Thank you!