Nano not controlling LEDs

Parts:
Arduiino Nano: Nano V3.0 Board for Arduino CH340/ATmega328P, Nano V3.0 Compatible 2 Pack Without USB Cable
Lights: BTF-LIGHTING WS2811 Diffused Digital RGB LED Pixel String Light 12mm Individually Addressable Round LED Module 50pcs/String IP68 Waterproof DC 5V
Software: FastLED

Number of LEDs as indicated in program turn on but nothing else happens; do not turn off or change color.

I have tried different digital ouput pins and no change.

I have tried different LED types and no change.

I have added a resistor to the data line and no change.

I have changed the power wires on the LED and then it does not go on so I am certain the power wires are correct.

I attached a separate power supply to the lights and connected - to Nano ground and no change.
image

#include <FastLED.h>
// How many leds in your strip?
#define NUM_LEDS 2
#define DATA_PIN 7
CRGB leds[NUM_LEDS];

void setup() { 
   FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
}
void loop() { 
  FastLED.setBrightness(128);
  leds[0] = CRGB::Red;
  FastLED.show();
  delay(1000);
  // Now turn the LED off, then pause
  leds[1] = CRGB(255,0,0);
  FastLED.show();
  delay(1000);
  // Now turn the LED off, then pause
  leds[0] = CRGB::White;
  FastLED.show();
  delay(1000);
  // Now change LED, then pause
  leds[1] = CRGB::Green;
  FastLED.show();
  delay(1000);
  // Now LED, then pause
  leds[0] = CRGB::Black;
  FastLED.show();
  delay(500);
  // Now turn the LED off, then pause
  leds[0] = CRGB::Black;
  FastLED.show();
  delay(1000);
}

Your diagram shows that you are trying to power this through your Arduino and its USB connection. Then, you changed it to it's own power supply, tell us about this power supply.

Is the nano still responding to the IDE?

Also, a picture of the connection would be helpful.

Check the specs for your particular WS2811 strip. I think the 2811 usually requires 12V. (with a "normal" 5V data signal).

12V strips are usually wired with 3 LEDs in series "sharing" the 12V so they are addressed in groups of 3.

You may be able to tell by looking at the strip if the LEDs are grouped in 3's.

Found this image on the forum... some ways to connect addressable LEDs.


First shows Nano connections clearly, second breadboard connections.

These LEDs are 5V and individually addressable.

The ad may have said that, but if they are ws2811, then they are indeed 12v.

Click through your order and post the listing that you purchased.

https://pdf1.alldatasheet.com/datasheet-pdf/download/1132633/WORLDSEMI/WS2811.html

Do you have a multimeter to check if you really have 5V at the LED strip? You may be getting a voltage drop. You can also use a multimeter to check the other connections.

USB can't provide enough current for 50 LEDs, although it might be OK depending on how many LEDs & colors are on at a time.

You can figure 20mA per-led, per-color, so worst case 60mA per RGB LED or 3 Amps for 50 LEDs. It's "good practice" to design for worst case even if you don't intend to run all LEDs at full-brightness white, but you can "fudge" a bit.

USB is good for about 1 Amp and you shouldn't run more than about 1A through a breadboard.

I think the 5V power also goes-through a chip on the Nano board, and that's probably limiting the current even more.

It's possible that the LED strip is simply defective. The data is serial so if the 1st chip/LED is bad it can kill the whole strip.

I connected a 12v 5a power supply to the lights and none of the LEDs light.

And the listing from which you purchased them?

BTF-LIGHTING WS2811 Diffused Digital RGB LED Pixel String Light 12mm Individually Addressable Round LED Module 50pcs/String IP68 Waterproof DC 5V - Amazon

Wayne Hywari

I saw that in the first post, but it contains contradictory information. So for the third time, can you please post a link?

My Alitove WS2811 are 5V.

[
51swzqlRZzL._SR600,315_PIWhiteStrip,BottomLeft,0,35_PIStarRatingFOURANDHALF,BottomLeft,360,-6_SR600,315_ZA138,445,290,400,400,AmazonEmberBold,12,4,0,0,5_SCLZZZZZZZ_FMpng_BG255,255,255.jpg

BTF-LIGHTING WS2811 Diffused Digital RGB LED Pixel String Light 12mm Individually Addressable Round LED Module 50pcs/String IP68 Waterproof DC 5V
amazon.com

](https://www.amazon.com/dp/B06XXCW65R?ref=ppx_yo2ov_dt_b_product_details&th=1)

Wayne Hywari

There's a socket on one end and a plug (pins in) at the other.
On mine, the data goes in the socket.
Do the circuit boards with yours have the big arrow like mine?

No, I have some of these and they are 5V.

Many WS2811 strips are 12V and these have groups of 3 RGB LEDs to one WS2811 chip and are not individually controllable.

But these LED "strings" have 1 WS2811 chip per RGB LED and are 5V.

You may have damaged the first LED in the string. Consider doing a return/exchange. Use a quality 5V >3A power supply. Hot to red, Ground to white and to Arduino ground, and green to Arduino data pin.

Use FastLED set up for ws2811, 50 leds

Maybe the data was in the wrong end.
12V probably didn't help.