Adafruit LED Ring

GermainGermain Posts: 1New Member

I'm trying to use an Adafruit 12 LED NeoPixel ring (LED Ring)) connected to GPIO but I have some difficulties to drive it on the UP Board.

I found a GITHUB project (Drunkar/NeoPixel-edison-mraa) that able to drive it on an edison card under ubilinux using mraaa library, so I tested it on the Up Board, but I can't set colors correctly, and animations are broken.

I guess there is a problem with WS2812 LED coding and data transfer time, but I don't know how to resolve it...

Could you help me please?


  • Nicola LunghiNicola Lunghi Posts: 131Emutex mod
    edited November 2017
    have a look here
    Nicola Lunghi
  • Nicola LunghiNicola Lunghi Posts: 131Emutex mod
    the neopixel required a strict GPIO timing so its very difficult to use it from an up board.
    read here
    It could be better to use led driver that use I2C or SPI as control interfaces.
    Nicola Lunghi
  • npurtschertnpurtschert Posts: 6New Member

    but there is this library in node-red for the raspberry-pi which uses PWM to control the LEDs:
    With this library the WS2812 LEDs are working fine.
    Now I am using an UP squared box with linux to control a strip of 8 WS2812 LEDs without any I2C or SPI interface and I am not having success on using the libraries mentioned above.

    Would you please help me?

  • JaneDoJaneDo Posts: 1New Member

    @npurtschert , I also try to control a strip LEDs (ws2811) with the upsquared, and I don't manage to use neoPixel.
    I work on Ubuntu 16.
    Did you, or anyone, find a solution ?

    Otherwise, how could I use I2C or SPI protocol to control this strip ? All of this is new to me...

    Thank you,

  • nukularnukular Posts: 68New Member ✭✭✭

    I have never used these LEDs on a Pi or an UP board, so I can't give you a solution, but generally speaking, you will have to look at the libraries for the Pi and modify them to correctly use the PWM on the UP2.

    You can't use I2C or SPI to control WS2811/2812B LEDs. As Nicola Lunghi said, they require rather specific timing to work properly. Here is an interesting post about that:

    Overall it is not that easy to use these LEDs on the UP2, I would suggest you get a different LED strip instead that uses either WS2801, APA102 or LDP8806 LEDs. These have 2 inputs: Data and Clock. They are much easier to control because they don't require a specific timing on the data pin that is hard to achieve for a board running Linux.

Sign In or Register to comment.