-
Notifications
You must be signed in to change notification settings - Fork 636
Home
The BCM2835 in the Raspberry Pi has a PWM module that is well suited to driving individually controllable WS281X LEDs. Using the DMA, PWM FIFO, and serial mode in the PWM controller, this library can be used to control almost any number of WS281X LEDs in a chain connected to the PWM output pin.
Please see the NeoPixels on Raspberry Pi documentation from Adafruit. Thanks to Tony DiCola for this great write-up.
-
Does the library support WS2811s?
Yes. Please make sure your LED signals are connected with a properly configured level shifter. Bad signalling causes almost all reported problems. Please double check your signalling before submitting issues. -
Which GPIOs can I use to connect the LEDs?
Channel 0 - 12, 18
Channel 1 - 13, 19 (only available on B+)Note: You can only connect 2 strings of LEDs, one on each channel. You must make sure to configure the channel properly in software, otherwise it will not work. Changing the pin number alone in the examples are not enough.
-
What signal frequencies are supported?
Right now, 800kHz is the best frequency to use though others have been known to work. The signal must be relatively clean, so please use a level shifter and small resistor to clean the signal. See the Adafruit write-up for more information. -
How many LEDs can be driven per channel?
Any number of LEDs can be driven, but the refresh rate goes down as the number of LEDs go up. Users have reported successfully driving several thousand LEDs per channel. A rough estimate can be calculated with:
Frame Rate = 800000 / 24 / Number of LEDs
Please e-mail me if you would like your project included in this list.