Skip to content

WS2811S chipset Support #459

Closed
Closed

Description

@nicolalopatriello

I've a strip led with WS2811S (note the "S"). Is the chipset supported from the library?
With the following code (blink.ino)

`
#include "FastLED.h"

// How many leds in your strip?
#define NUM_LEDS 60

// For led chips like Neopixels, which have a data line, ground, and power, you just
// need to define DATA_PIN. For led chipsets that are SPI based (four wires - data, clock,
// ground, and power), like the LPD8806 define both DATA_PIN and CLOCK_PIN
#define DATA_PIN 13

// Define the array of leds
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);
}
`

the strip led now work (random colors)

Thanks

Activity

  1. focalintent commented on May 31, 2017

    @focalintent
    Contributor

    I haven’t done anything explicit to support it - and a quick search for a data sheet to get the timing isn’t turning anything up. If you can find a data sheet for it (that isn’t the WS2811 data sheet) then I can add support for it.

  2. nicolalopatriello commented on May 31, 2017

    @nicolalopatriello
    Author
  3. focalintent commented on May 31, 2017

    @focalintent
    Contributor

    Also what hardware are you testing this on?

  4. jasoncoon commented on May 31, 2017

    @jasoncoon
    Member

    The WS2811S seems to be the same chip (and protocol), just in a SOP-8 (small outline package), as opposed to DIP-8 (dual in-line package).

  5. nicolalopatriello commented on May 31, 2017

    @nicolalopatriello
    Author

    With a Arduino Uno. Data pin connected to PIN 13.

  6. focalintent commented on May 31, 2017

    @focalintent
    Contributor

    What happens if you try a different pin? (Pin 13 is attached to the onboard led - I wonder if that is messing with signal timing)

  7. focalintent commented on May 31, 2017

    @focalintent
    Contributor

    Also what version of arduino are you using?

  8. nicolalopatriello commented on Jun 1, 2017

    @nicolalopatriello
    Author

    So, i connected the DATA Pin of strip LED to pin 8 of arduino and the problem is the same. Arduino version is the "Arduino UNO". But it is a not original version. It is possible that the problem is this?

  9. marmilicious commented on Jun 1, 2017

    @marmilicious
    Contributor

    No, what version of the Arduino IDE. 1.8.0, 1.6.8, etc.?

  10. nicolalopatriello commented on Jun 1, 2017

    @nicolalopatriello
    Author

    This:

    arduino_v

  11. focalintent commented on Jun 1, 2017

    @focalintent
    Contributor

    This is not a version of arduino that I have tested with - it is possible that they have made compiler changes that are interfering with the asm code for the WS2811. Try going back to 1.6.x or 1.8

  12. electrokean commented on Jun 1, 2017

    @electrokean

    @focalintent @nik1990 I believe that is Arduino 1.0.5 packaged for Debian Linux - pretty old, but Arduino don't allow third party distribution of newer versions so you have to download and install a newer version from arduino website, not via the Linux package manager

  13. focalintent commented on Jun 1, 2017

    @focalintent
    Contributor

    Ah I misread, looked like it was 2.0.5 - that said
    Arduiono 1.0.x hasn’t been tested/supported in a long time. Try getting 1.6.x or 1.8.x (the readme for the library even explicitly states this)

  14. nicolalopatriello commented on Jun 1, 2017

    @nicolalopatriello
    Author

    I have just tried Arduino 1.6.0 under windows and the problem is the same. Same sketch only changed the pin (12 to 4).

  15. MFornander commented on Jun 1, 2017

    @MFornander

    Could you connect a normal WS2811 or WS2812 strand in the exact same place so we can see if it's hardware or software?

  16. nicolalopatriello commented on Jun 1, 2017

    @nicolalopatriello
    Author

    Just tried also Arduino IDE 1.8.1. Same problem. And no, i don't have WS2811 or WS 2812. Only 5m of this chipset strip led.

  17. electrokean commented on Jun 1, 2017

    @electrokean

    @nik1990 It is possible the WS2811S that you have are 400kHz version - can you try an LED type of WS2811_400
    In other words, change your setup code to:
    FastLED.addLeds<WS2811_400, DATA_PIN, RGB>(leds, NUM_LEDS);

    As you don't have any other strips to test, you could instead do some testing using the Adafruit NeoPixel library and see if they work with that, either as NEO_KHZ800 or NEO_KHZ400

  18. nicolalopatriello commented on Jun 1, 2017

    @nicolalopatriello
    Author

    @electrokean Nothing, i tried WS2811_400 and Adafruit NeoPixel library. Same problem.

  19. electrokean commented on Jun 1, 2017

    @electrokean

    Hmmm... Maybe your LED strip is faulty - or at least the first chip/LED, which I've seen happen before.
    Can you desolder or cut the strip into 1m sections and test the separately?

  20. focalintent commented on Jun 1, 2017

    @focalintent
    Contributor

    How do you have things wired up? This is beginning to sound like either a problem with you led hardware or your wiring.

  21. nicolalopatriello commented on Jun 1, 2017

    @nicolalopatriello
    Author

    whatsapp image 2017-06-01 at 14 59 17

    For debug i cutted only 3 led (1 chip) connected to 12v 3A power supply. All library seems to show random colors with simple code. I also tried a 5v 2A power supply and only red led switch on. Tried also the @electrokean suggest of test other first chipset of strip and the problem is the same.

  22. Blink515 commented on Jun 1, 2017

    @Blink515
  23. focalintent commented on Jun 1, 2017

    @focalintent
    Contributor

    You need to also connect ground on the led strip to ground on the arduino - it's not enough to just connect the data line.

  24. nicolalopatriello commented on Jun 2, 2017

    @nicolalopatriello
    Author

    Thanks boys :D. Two days for a wire, problem solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions