Multicolor Knight Rider With RGB PL9823 LED + Arduino UNO

by masteruan in Circuits > Arduino

25727 Views, 20 Favorites, 0 Comments

Multicolor Knight Rider With RGB PL9823 LED + Arduino UNO

IMG_0346.jpg

If you know the famous leds WS1012 you don't ignore this tutorial.
The PL9823 the cheapest led that use the same protocol of the WS1012 led. You can use this led for make a ledstrip or also a led matrix. PIX (http://www.0lab.it/portfolio/pix-rgb-led-matrix/) is a led matrix made with WS1012 matrix. This matrix use 64 WS1012 leds. But in this tutorial we go to create a simple and efficience "knight ride" with PL9823 leds and Arduino UNO.

Materials

14791366487_b8572b973b.jpg

All the materials are:

If you want make a PL9823 strip board, you can have also

Downloads

Assembly the Circuit

Schermata 2015-11-25 alle 00.07.45.png
PL9823.png
Knignt Rider + Arduino + PL9823
IMG_0345.jpg

You can see in the image the circuit. Pay attention to PL9823 led's model. If you use a F-8 model (see the image) you can use the long one pin like GND. If you use the F-5 model the GND is the second one long pin.
Take care and pay attention to VCC pin and GND pin. You can burn and broke the led immediately if you connect the pin GND to VCC and vice versa. After this you can connect the communication pin. Use DIN for Arduino UNO signal, and DO to pass the signal to other PL9823 led.

You can use thousand of leds.

Library and Code

The first one ting is import the Adafruit neopixel library. See the Adafruit GitHub page: https://github.com/adafruit/Adafruit_NeoPixel

or Adafruit site page to direct download and installation info:

https://learn.adafruit.com/adafruit-neopixel-uberg...

Put the library in the library folder in the Arduino project folder.

After download the PL9823 file and upload to the Arduino UNO.

As you can see by the code the most important thing is the line:

Adafruit_NeoPixel strip = Adafruit_NeoPixel(NUM_PIXELS, PIN, NEO_RGB + NEO_KHZ400);

The "NEO_GBR" is for the WS2812b leds model, the NEO_RGB is for this model. The velocity of communication is NEO_KHZ400 for the WS2812 is 800.

Downloads

Final Result

2015-11-28 19.58.04.jpg
Knignt Rider + Arduino + PL9823

Now you have a multicolor Knight Ride. You can solder the leds on the perfboard like in the photo.