BRUH Led strip config

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

Thanks man. I will assembly the led this weekend hope it goes well.

Will this work with bruh sketch?

Hey, Bruh uses the FastLED library for the LEDs. http://fastled.io/

If you have a read through the docs it has a list of compatible LEDs, The WS2812 is in there so they should work!

The only thing might be the different is ESP boards. I haven’t used the 32 before but it should be pretty much the same

Thanks.
I order one. I will post for the results.

@INTEL Thanks for sharing. Pretty old post but started testing this today. Have followd bruhs guide as well but ended up with your sketch.Some strange things. Only works when nodemcu is connected to computer, colors are messed up.On off does not work. However the effects, changing colors and brightness works fine. Maybe someone can help me in the right direction. Am using this led. https://www.banggood.com/1M-WS2812B-5050-RGB-Non-Waterproof-60-LED-Strip-Light-Dream-Color-Changing-Individual-Addressable-DC-5V-p-998623.html?rmmds=myorder&ID=518492

Wow! It has been 1 year already? Strip and same setup still working! :confetti_ball: :wink:
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:

- name: Bright rgb
  entities:
    light.rgb_traka:
      state: on
      brightness: 255
      effect: solid
      rgb_color: [255,255,255]
      transition: 1

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.

Thanks, Will try. I was confused about the powering. Tried to power iy via micro usb but I suppose this wont work.

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!

Awsome, glad I could help!

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.

Solved it myself. I forgo to change the entity_id: input_number.led_animation_speed from the old input_slider.led_animation_speed

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:

{“state”:“ON”,“color”:{“r”:200,“g”:255,“b”:36},“brightness”:176,“effect”:“solid”}

But the LED strip is not turning this color. I have this 5m strip: https://smile.amazon.com/gp/product/B01CNL6FGQ/ref=oh_aui_detailpage_o02_s01?ie=UTF8&psc=1

It’s WS2811, with 150 LEDs, and each IC controls 3 LEDS.

This is my FastLED definitions in arduino:

#define NUM_LEDS 50

#define DATA_PIN 5

#define CHIPSET WS2811

#define COLOR_ORDER BRG

Do those look right? I’m not sure about the color order, I left this at default.

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.


Im receiving error that Slider_input could not be setup
also nothing else is showing up in Hassio Menu.

what changes i must make in order for this to work properly??
P.S im really new to this stuff

You should realy try Wled or Esphome, BRUH’s way for LED’s is not the way anymore.

Hi Friend! can you guide me through some of these stuff?