I have an Espressif ESP32 running a lighting circuit.
When I switch the circuit on the ESP gets power and the ESP is programmed to switch on a relay (connected to a light) in the setup routine.
The relay switch-on is practically the first command after initializing the GPIO pins in the setup routine.
My problem is that on some occasions the relay switches on within 500ms of the circuit being powered (which is acceptable) and other times there is a delay of about 20-30 seconds before the relay is activated.
What would cause this and how can I fix it?
Erratic Boot times in ESP32
Share