WS2811 + Arduino Uno

  • Hallo,

    ich habe ein Arduino Uno + 5M WS2811. Ich habe gestern das Strip mit 5V angeschlossen und die Datenleitung auf
    PIN7 gelegt. Alles hat soweit funktiniert. Jedoch bekomme ich es jetzt nicht mehr zum laufen (alles bleibt Dunkel) . Spannung liegt an.
    Kann mir jemand ein Tip geben wie ich das am besten herausfinde?

    Spoiler anzeigen

    [code#include "FastLED.h"

    ////////////////////////////////////////////////////////////////////////////////////////////////////
    //
    // RGB Calibration code
    //
    // Use this sketch to determine what the RGB ordering for your chipset should be. Steps for setting up to use:

    // * Uncomment the line in setup that corresponds to the LED chipset that you are using. (Note that they
    // all explicitly specify the RGB order as RGB)
    // * Define DATA_PIN to the pin that data is connected to.
    // * (Optional) if using software SPI for chipsets that are SPI based, define CLOCK_PIN to the clock pin
    // * Compile/upload/run the sketch

    // You should see six leds on. If the RGB ordering is correct, you should see 1 red led, 2 green
    // leds, and 3 blue leds. If you see different colors, the count of each color tells you what the
    // position for that color in the rgb orering should be. So, for example, if you see 1 Blue, and 2
    // Red, and 3 Green leds then the rgb ordering should be BRG (Blue, Red, Green).

    // You can then test this ordering by setting the RGB ordering in the addLeds line below to the new ordering
    // and it should come out correctly, 1 red, 2 green, and 3 blue.
    //
    //////////////////////////////////////////////////

    #define NUM_LEDS 300

    // Data pin that led data will be written out over
    #define DATA_PIN 7
    // Clock pin only needed for SPI based chipsets when not using hardware SPI
    //#define CLOCK_PIN 8

    CRGB leds[NUM_LEDS];

    void setup() {
    // sanity check delay - allows reprogramming if accidently blowing power w/leds
    delay(2000);

    // Uncomment one of the following lines for your leds arrangement.
    // FastLED.addLeds<TM1803, DATA_PIN, RGB>(leds, NUM_LEDS);
    // FastLED.addLeds<TM1804, DATA_PIN, RGB>(leds, NUM_LEDS);
    // FastLED.addLeds<TM1809, DATA_PIN, RGB>(leds, NUM_LEDS);
    FastLED.addLeds<WS2811, DATA_PIN, RGB>(leds, NUM_LEDS);
    // FastLED.addLeds<WS2812, DATA_PIN, RGB>(leds, NUM_LEDS);
    // FastLED.addLeds<WS2812B, DATA_PIN, RGB>(leds, NUM_LEDS);
    // FastLED.addLeds<UCS1903, DATA_PIN, RGB>(leds, NUM_LEDS);

    // FastLED.addLeds<WS2801, RGB>(leds, NUM_LEDS);
    // FastLED.addLeds<SM16716, RGB>(leds, NUM_LEDS);
    // FastLED.addLeds<LPD8806, RGB>(leds, NUM_LEDS);

    // FastLED.addLeds<WS2801, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
    // FastLED.addLeds<SM16716, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
    // FastLED.addLeds<LPD8806, DATA_PIN, CLOCK_PIN, RGB>(leds, NUM_LEDS);
    }

    void loop() {
    leds[0] = CRGB::Red;
    leds[1] = CRGB::Green;
    leds[2] = CRGB::Green;
    leds[3] = CRGB::Blue;
    leds[4] = CRGB::Blue;
    leds[5] = CRGB::Blue;
    FastLED.show();
    delay(1000);
    }][/code]

  • wenn man mal ging und nun nichtmehr hast du vllt die erste LED abeschossen... da ist mir auch schon paar mal passiert
    kannst du die ersten paar leds überspringen und die Daten- und Strom-leitung neu verbinden?

    Projekte:
    Arduino basteleien
    LED-Matrix

  • Danke erstmal für die beiden Antworten.
    Das Ardunino habe ich direkt an USB angeschlossen und die Stripe versorge ich mit 5V von einem Computernetzteil.
    Vom Netzteil zum Strip die +5V und Masse. Und vom Arduino nur die Datenleitung...
    kann da eventuell schon der Fehler liegen?
    Wenn ich das Netzteil einschalte flashen die LED´s kurz auf.

  • ooh garnicht mitbekommen das es hier weiter ging sry ^^

    auf jedenfall die Arduino masse mit der vom netzteil verbinden (muss ich zumindest sonst flackerts nur)

    das mit dem flashen scheint normal zu sein, aber falls dir auffällt das die erten leds nie mit flashen, dann sollten du die ersten paar leds überspringen und die Daten- und Strom-leitung neu verbinden
    (falls die ersten leds doch mitflashen trotzdem ;) )

    Projekte:
    Arduino basteleien
    LED-Matrix

  • Hallo,

    bei mir das gleiche Problem. Bekomme den Stripe (2m, 120 LED´s, 3 Wire-Anschluss) einfach nicht zum laufen.
    Hab schon etliche Beispiele getestet. Entweder leuchtet gar nichts oder es leuchten willkürlich irgendwelche LED´s.
    Habe schon die FastLED und Adafruit Libary getestet, bisher alles ohne Erfolg.
    Hat jemand vielleicht ein einfaches Beispiel mit Libary parat um mal eine LED von dem Stripe anzusteuern?

    Gruß