Multiple WS2811 strips

Posted on
  • I've been using a single strip of 50 LEDs for years, but now I've connected a second string of 50 to the first set.

    I've got a problem where green doesn't work on the second set, but red and blue work fine...

    I tried the second set on their own and all colours were fine...

    I'm using my EspWiFi for this.

  • That's a bit strange - not sure what to suggest to be honest. It could be the new strip is a different type and the timings are subtly different so they can't be chained.

    On the WS2811 once the signal goes into the first led I believe it's reformed by it - so the issue probably can't be fixed by anything on the Espruino side (but maybe putting the new strip first would fix it?).

    On the WiFi you should be able to use any SPIx_MOSI pin, so could you connect the second strip to its own pin?

  • Oh that's an idea, I'll try the second strip at the beginning...

    When you say to use a different pin for the second set, how would this work in code? Would I just keep an index and switch the pin number when I'm in the range of that strip?

    Finally, do you have any ideas when new products are being launched as I think the WiFi is getting updated correct?

  • Something like this? Assuming 10 LEDs in the first string:

    var rgb = new Uint8ClampedArray(25*3);
    
     require("neopixel").write(B15, new Uint8Array(rgb.buffer, 0, 10*3));
     require("neopixel").write(other_pin, new Uint8Array(rgb.buffer, 10*3)); 
    
    
  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Multiple WS2811 strips

Posted by Avatar for Coder2012 @Coder2012

Actions