I recently moved my Raspberry Pi setup to an ESP32 with wled installed.
Everything works great. Also love that there is a homebridge integration for HomeKit
But sometimes after a night or a while not using the setup, wled or the esp can’t trigger the Relais anymore. (It can’t change the Pin to Low/0V)
The pin always stays high and I can measure voltage on the pin.
The Relais I am using has a optocoupleur (read that’s important). (Here more info)
And the cable between Relais and ESP is about 1.2 meters long.
I also had a problem where the esp32 wouldn’t even boot while the „data“ cable of the Relais was connected. I mitigated it with using the same 61 Ohm resistor, I used on my data cable for the LEDs.
Could it be that I need a larger resistor? Or do you have any other ideas?
Asking for the complete connections because we don’t know if you drive the optocoupler LED to ground, from what high side, or if you instead supply it with the ESP pin etc…
Also what pins are used on the ESP, some have caveats