Control non addressable led strip

Hi, I have a non addressable led strip WS2811 powered with a 12v supply. How can I control it with my Arduino Nano? I tried the FastLED library but I don't understand how dows it work. Thanks.

led.jpg

What makes you say it's non addressable? or what makes you say it's WS2811?

led.jpg

If it's WS2811, it's addressable.

If it's non-addressable, it's not WS2811.

It is WS2811 because i bought it on Amazon, I think that is non addressable because it is cuttable every 3 leds but I'm not sure of that. But when I try to use a simply code using fast led library it doesn't work how I want. What can I try for you? (sorry for my poor English but I'm italian)

It's addressable. It starts at 0 and addresses go to however many there are. Your code, which you have not shown and most likely have not configured correctly, has a field for number of LEDs.

Aliens12:
It is WS2811 because i bought it on Amazon

Please provide a link to the item on Amazon. That way we can help you clear up the confusion on what you have.

it doesn't work how I want.

This is not enough.
Post your code (use the code tags </> button)
Tell us what it does do.
Tell us how this differs from what you expect it to do.

Hi, thank you for your reply! i bought it at https://www.amazon.it/gp/product/B01M3TWBY7/ref=oh_aui_detailpage_o02_s00?ie=UTF8&psc=1. I'm only trying to make the first led blink to learn hiw to use this type of code because it is my first time!

#include "FastLED.h"
#define NUM_LEDS 12
#define DATA_PIN 6

CRGB leds[NUM_LEDS];

void setup() {

  FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
  
}

void loop(){
  // Turn the LED on, then pause
  leds[0] = CRGB::Red;
  FastLED.show();
  delay(500);
  // Now turn the LED off, then pause
  leds[0] = CRGB::Black;
  FastLED.show();
  delay(500);
}

Good information.
We now see the product. Good.
We see your code. Good.
We understand your expectations (blink first led). Good.

The only less than good part is a missing description of the actual results. What does it actually do?
My usual actual results include nothing, catch on fire or behavior different than expected. But we need to know so that we can focus on likely causes.

The leds become of random colors that rapidly changes. When I touch the 3 contact for the wire with my finger the first 3 led assume a static color but all the other continue their fast color changing. Thank for your response!

You need to show how you have it hooked up. What's powering what, what's hooked up where, etc.

As power supply for the led strip I used this https://www.amazon.it/gp/aw/d/B00IFZHLUY/ref=yo_ii_img?ie=UTF8&psc=1. For the Arduino nano I have only tried connecting it to my pc. Can is the leds power supply the problem?

You haven't explained how you hooked it up but I'm guessing you don't have GND from strip connected to GND on Arduino.

Right I connect the 2 cable of power to the supply and only the data cable to a pin of Arduino because the led strip ok powered with 12v and Arduino 5v. How I have to connect it?

INTP:
You haven't explained how you hooked it up but I'm guessing you don't have GND from strip connected to GND on Arduino.

If you read carefully, you can figure out that I told you what to do.

Thank you! I connected the GND of the strip to arduino and now it perfectly works! Thanks!

Glad it's working now.

The reason you need to connect the GNDs is because the signal (which is electricity) that is sent from the Arduino to the strip needs a path to return to the Arduino. It needs the complete circuit. It's why you need two wires going to a bulb instead of just one, for example.