Hey Beto If they are WS2811 you should have no issues. Connect your 12v pos and neg correctly.
The DI wires are Digital In if you look up the strip you will see that DI will connect to the IC and then to DO or Digital Out.
Your DIs will go to the nodemcu, you just have to work out which is that data wire and which is the clock, uncomment the correct line in the sketch (WS2811) and it should work.
If you are just wanting to get the lights working, i recommend using an arduino with the FASTled library and a power supply and see how you go
Wow! It has been 1 year already? Strip and same setup still working!
I had same troubles as you have, since we are using same led strip (WS2812B), you have to modify this line:
#define COLOR_ORDER BRG
with:
#define COLOR_ORDER GRB
Try out different color orders too, meybe something is different with your strip (RGB, RBG, etc… Til you get colors right.
About ON/OFF trouble, you could alway try creating a scene for the strip.
Try adding this in your scenes.yaml:
Also remember to replace light.rgb_traka with your entity name.
But even without that you should be able to turn on the strip with latest effect/brightness.
1 thing that I don’t understand in your config… You say that it works when connected to a PC… How do you supply power to nodeMCU when not connected to PC? Via microUSB or gpio? You need to supply power to nodemcu too.
It should work, but you have to have common ground in that case with psu powering led strip. (connect ground from power strip PSU to nodemcu ground pin)
Wow! Thanks a lot. That made it. Have been struggeling with libraries and RBG,GRP etc but after disconnecting from my computer and connecting the GRD to the 5v adapter it just worked!
By the way. Are you using the animation speed that he described. Could not really understand what it was for first. Now I tried to modify the speed but that is the only thing that does not work. Have tried some different things without success. I also do not get what the automatisation has to do with this.
Using the BRUH arduino code for LED strip and a HASS MQTT light…
I think something is wrong with how the arduino code is sending commands to the LED strip.
In “solid” mode, all the LEDs are not the same color, and definitely not the color that the RGB picker is sending to the ESP. The MQTT PUB channel seems to report the correct thing:
Ok, got it working. It didn’t like the ESP powered by the USB port and the LEDs powered by a separate supply. Once I got the ESP powered directly from the LED power supply, it works correctly.
What also should work is connecting both grounds to each other. There should be a ground pin on the Arduino; connect a wire from the led strips power supply directly to it and it will start working.
Hi Guyz!
Im trying to run Bruh’s automation for Ledstrip…i have moved it so far so far so good…but my plane crashed in the Light,Slider automations that have to be appearing in HassIO menu.