Skip to content

Control a relay with WLED

Raoul Teeuwen edited this page Apr 25, 2020 · 6 revisions

LED strips still use power when seemingly switched off. In case you want to prevent that, you have several ways of totally switching off power (including manually switching off the power), one of which is adding a relay to your circuit. Pin D6 is toggled by WLED when WLED is turned on/off (in the UI, or through other interfaces). This lets you control a relay through your WLED flashed controller.

When you decide you want WLED to control a relay, make sure you buy the right relay. Check what voltage you can supply from your controller (free 3V pin, 5V pin etc), and make sure the relay is suitable to be controlled by the voltage you can supply (3V, 5V or something else). Note, some relays come with a jumper that lets you configure whether the relay switches at high or low signal, giving you maximum flexibility.

This page gives a clear description using a light bulb instead of a LED strip. And instead of the D1 mentioned in that story, with WLED, you use D6.

Clone this wiki locally