RGB LEDs

From Mech
Revision as of 17:59, 27 March 2015 by JaneMiller (talk | contribs)
Jump to navigationJump to search

WS2812 Addressable RGB LEDs (NeoPixels)


Install the NeoPixels Library

  • Download ZIP of all library files here
  • Unzip the ZIP file when it's done downloading
  • Put all of the files from the folder into a new folder called "Adafruit_NeoPixels"
  • Put this new folder into your Adruino Libraries folder (usually located at (home folder)/Documents/Arduino/Libraries)
    • If you don't have a "Libraries" folder in Arduino/Libraries, create one and put the Adafruit_NeoPixels folder in it
  • Restart the Arduino IDE if it's already running
  • Open up a new Arduino sketch (program) and check to see if the Adafruit NeoPixels library is installed by going to
Sketch-->Import Library and seeing if the NeoPixels library is listed.


Wire Up Your LEDs

Wiring up Two LEDs


  • The pinout for one of our RGB LEDs is as shown to the right
  • When creating a circuit with RGB LEDs, make sure to have a 300-500 ohm resistor on the data input for the first LED
  • The next diagram down to the right shows how to wire up two RGB LEDs in a chain to an Arduino Uno.
The signal for the second LED will travel through the first one. 





  • Write code
  • Applications