• Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors
HomeArduinoShieldsGet Started with Addressable Sealed WS2812 RGB LED ...
Previous Next

Get Started with Addressable Sealed WS2812 RGB LED Strip

Posted by: admin , November 30, 2014

You will be able to control each LED RGB individually  with Addressable Sealed WS2812 RGB LED Strip. This opens up a lot of interesting applications, such as the ability to create cool lighting effects for your car, fish tank, or perhaps under cabinet lighting in your kitchen!

addressable_RGB_LED_60

 

There are two models of the addressable RGB LED strip, 30 LEDs per meter, and 60 LEDs per meter. From the programming point of view, they are same. We just need to provide enough current for the strip.  These LED strips can be cut, and connected in serial to form a long strip as long as we provide enough current to power them up.

 

addressable_RGB_LED_cut

 

Features:

  • Each LED is individually addressed.
  • 24 bit color control
  • Controlled by single wire digital communication
  • Working voltage: 5V
  • Sealed to protect water and it has IP65 rating.
  • The length can be cut and glued

 

Parts List:

In this tutorial, we will use an Arduino Uno to control this addressable RGB LED strip. The required hardware items are below:

  1. 1 x Arduino Uno
  2.  1 x  USB cable
  3. Several male to female jumper wires
  4. LED strip
  5.  Optional: 5V power supply that can deliver large current

 

Wiring Instruction:

ledstripheader

 

The headers of the LED strip is shown above. The green line is the data communication wire (DAT). The two red wires are for 5V power, and the two white wires are for ground. The extra set of power wires are needed in case extra currents are needed.

The LED strip is connect to Arduino Uno in the following way:

  • DAT of LED Strip –>   D6 of Arduino
  • 5V of LED Strip  –>   5V of Arduino
  • GND of LED Strip –>   GND of Arduino

 

arduino_ledstrip

 

Script:

The Arduino script can be downloaded from https://github.com/adafruit/Adafruit_NeoPixel, and unzip to a directory under Arduino IDE.

arduino_lib_path

 

 

Run the script:

To run the script, launch Arduino IDE and navigate   “File -> Examples -> Adafruit_NeoPiexel -> strand test”:

sample_path

 

The number 60 in the code needs to be revised to reflect the actual number of LEDs in the whole strip:

samplecode

 

Click ‘upload’ to compile and loaded into Arduino Uno.  The final LED show is below:

http://www.youtube.com/watch?v=UWmVWXWVHW4

 

Share!
Tweet

admin

About the author

Leave a Reply Cancel reply

You must be logged in to post a comment.

Category

  • Home
  • pcDuino
  • WiKi
  • Store
  • Distributors