Led strip doesn't work

Hey guys,

just a short question.
I have an led strip with 300 leds, all of them need 0.6 ma, so i have a 100W traffo connected to it (5v 20amps).

Parts:
strip: http://www.amazon.de/gp/product/B00XKXUIG?psc=1&redirect=true&ref_=oh_aui_detailpage_o02_s00
traffo: http://www.amazon.de/gp/product/B00RMWZ2IO?psc=1&redirect=true&ref_=oh_aui_detailpage_o01_s00

my problem is that when i connect the strip to the power supply, the first leds lights up nothing else and if i connect then my arduino uno to it and run this code( which should leed to let a light wander up and down the strip the whole strip just starts falshing in different colors.

#include "FastLED.h"

#define NUM_LEDS 1
#define DATA_PIN 3
#define CLOCK_PIN 13

CRGB leds[NUM_LEDS];

void setup() { 
      FastLED.addLeds<WS2812B, 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);
}

So my question : Is my strip broken ? :frowning:

Hi,
The first link doesn't work, the second one does.

Tom...... :slight_smile:

The code you posted only blinks the first led of a 1 led-string (red/black).

#define NUM_LEDS 1
....
  leds[0] = CRGB::Red;

Whandall:
The code you posted only blinks the first led of a 1 led-string (red/black).

#define NUM_LEDS 1

....
  leds[0] = CRGB::White;

sorry im an idiot i ment this sketch

#include "FastLED.h"

#define NUM_LEDS 300
#define DATA_PIN 6
#define CLOCK_PIN 13

CRGB leds[NUM_LEDS];

void setup() { 
      FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);
}

void loop() { 


  for(int i = 0; i < NUM_LEDS; i++)
  {
    
    leds[i] = CRGB::White;
    FastLED.show();
    delay(500);
    leds[i] = CRGB::Black;
    delay(500);
  }
  
  for(int i = NUM_LEDS; i > 0 ; i++)
  {
    leds[i] = CRGB::White;
    FastLED.show();
    delay(500);
    leds[i] = CRGB::Black;
    delay(500);
  }
  
}

And tomgeorge sry this is the right link: http://www.amazon.de/gp/product/B00XKXUIG0?psc=1&redirect=true&ref_=oh_aui_detailpage_o02_s00

The white led is sometimes at the right place but in addition to it some leds in the strip are flashing in various colors...

There is no led set to white in your sketch, back does not work.

I tried this (with 60 leds) and it sends a single green led much faster back and forth.

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

CRGB leds[NUM_LEDS];

void setup() {
  FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);
}
void loop() {
  for (int i = 0; i < NUM_LEDS; i++)
  {
    leds[i] = CRGB::Red;
    FastLED.show();
    delay(50);
    leds[i] = CRGB::Black;
  }
  for (int i = NUM_LEDS; i > 0 ; i--)
  {
    leds[i] = CRGB::Red;
    FastLED.show();
    delay(50);
    leds[i] = CRGB::Black;
  }
}

Whandall:
There is no led set to white in your sketch, back does not work.

I tried this (with 60 leds) and it sends a single green led much faster back and forth.

#include "FastLED.h"

#define NUM_LEDS 300
#define DATA_PIN 6

CRGB leds[NUM_LEDS];

void setup() {
  FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);
}
void loop() {
  for (int i = 0; i < NUM_LEDS; i++)
  {
    leds[i] = CRGB::Red;
    FastLED.show();
    delay(50);
    leds[i] = CRGB::Black;
  }
  for (int i = NUM_LEDS; i > 0 ; i--)
  {
    leds[i] = CRGB::Red;
    FastLED.show();
    delay(50);
    leds[i] = CRGB::Black;
  }
}

yeah i know i changed it in my posting after a few secs but you where too fast... ._. but at my strip my whole led strip i flashing in different colors if there were 1 led wander up and down i would be happy ... but like i said the whole strip is flashing ... :frowning: (ps i think your strip is flashing green because you have GRB or GBR as led setup...

I know. its GRB what works with my ws2812.

You connected both GNDs, didn't you?

no should i ? :o

Definitely.

Probably this is your problem.

Wandall you are my hero thank you !!!!! and don't know how you knew it but thanks ! :smiley:

So I wish you much fun and a bright time with your strip. :wink: