![]() When i connect the plug to a power source, the Wemos boots, WLED starts, the red LED on the relay turns on (green is off) and the LED-strip behaves as expected (doing the sequence i configured in WLED). Afaik, i need gnd to run from the PSU to a) the LEDstrip, b) the Wemos, c) the relay (control side). I'm using a Wemos D1 mini, which has only 1 GND pin. I have, for me for the 1st time, tried to use a relay. Hope I was able to help and let me know how it goes or if you have more questions! Yes, D6 as relay pin is enabled by default in all recent binaries :) The relay operates automatically (turns on when LEDs are on and off a second after lights are fully off), but that is basically all you need, so there is no manual control of the relay possible at this point, it always depends on the WLED power state. I would use the former for safety reasons and since you don't need another power supply for the ESP. ![]() You can choose whether you want the relay to interrupt the LED 5V power line or the live wire to the LED power supply. Setting it up is quite easy, just get a generic Arduino relay shield like this one and connect its input to GPIO12 (D6).Īdvantages are definitely the reduced power consumption (+what you save by not running a second ESP or smart plug), disadvantages are that it only works up to ten amps (the relay rating). Yes, that's true, they use about a milliamp per LED when unlit, which can add up quickly when running more than 100 or so LEDs. How does the software side work? Do the standard bin-files have this option, or do you need to compile your own version to control the relay? How do you control the relay (MQTT-commands, GUI.)?ĭon't worry, using a relay in WLED is now fully supported and should offer a great replacement for your current setup, which isn't bad, but some simplification would indeed be nice! If it is recommended instead of my current config, can someone help me a little? Never used a relay: am i right i need to to run 5v and gnd to the relay, and connecting a pin from the NodeMCU/Wemos (D6) to the relay to switch/control the relay? And connect the LED-strip to the other side of the relay, running either gnd or live through the relay? Would it make more sense to connect a relay to the NodeMCU/Wemos, and use the relay to switch on/off power to the LED-strip? What are advantages/disadvantages? This works, but means for every LED strip i need 2 devices. So my automation from HA basically is: switch on the Sonoff/Tuya, wait a couple of seconds, send any commands to the WLED NodeMCU/Wemos. I read LED strips still consume power when 'off', so for now, i use a Sonoff Basic (on one strip) and a Tuya-kind of smart plug to totally switch off power to the strip and NodeMCU/Wemos. I currently have 2 strips, one with a NodeMCU, one with a Wemos D1 which both run WLED. I read a couple of tickets about using a relay, like #301.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |