ESP32 erratic boot times

TCC-ESP32
Posts: 9
Joined: Wed May 13, 2020 12:32 pm

ESP32 erratic boot times

Postby TCC-ESP32 » Wed Jun 22, 2022 1:49 pm

Hi,
I have an 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?
Thanks.

Who is online

Users browsing this forum: No registered users and 73 guests