1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Arduino Sketch for ws2811 required

Discussion in 'Hyperion General' started by Nik Raby, 19 February 2019.

  1. Nik Raby

    Nik Raby New Member

    Messages:
    10
    Hardware:
    RPi3, +Arduino
    Hey guys! I've recently setup my LEDs, run the tests and they work great. I've set up a hdmi selector build following this guy -

    His links were outdated so I installed libreelec on pi3 +b I'm using ws2811 LEDs but hypercon cannot find them as his Arduino sketch is tailored for his ws2812b strips. Hypercon data it has established a connection and is sending the data. I'm sure it's the last piece to my puzzle! Thanks guys
     
  2. John Jones

    John Jones New Member

    Messages:
    2
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    There is a sketch in this tutorial , used it instead of his, since I have ws2812b strips and tried his sketch and it didn't work for me either.
     
  3. Nik Raby

    Nik Raby New Member

    Messages:
    10
    Hardware:
    RPi3, +Arduino
    From research I beleive that ws2811/ws2812 and 12b's are all similar and should work on the same sketch.
    Did that code work for you then?
     
  4. John Jones

    John Jones New Member

    Messages:
    2
    Hardware:
    RPi1/Zero, RPi3, 32/64bit, +Arduino, +nodeMCU/ESP8266
    Yeah, the one from the tutorial worked perfectly. The thing I like about the tutorial sketch, is that they use fastLED library, which I've been messing around. The defining of what strip you have is so easy, unlike others that use NeoPixel and don't just have keywords to reference unique strips. Also about the ws2811 and 12s being the same, I've tried different sketches with ws2811 referenced instead of ws2812b and they worked fine on my lights, so it seems they are the same.

    One thing I would recommend adding is a delay on the setup function, between 8-12 seconds. Since the arduino will boot up around 2-3 times before the pi finally boots up.
     
  5. Nik Raby

    Nik Raby New Member

    Messages:
    10
    Hardware:
    RPi3, +Arduino
    I appreciate your help I have actually got them lighting now! Okay I'll add that code in as I have noticed them going mental before anything actually happens haha, cheers Johnny boy!