Skip to main content

Arduino : Controlling PL9823-F8 RGB LED

I have great passion about electronics since I was in middle school then high school. With some of my school friend that has same passion in electronics, we built radio transmitter so we can communicate each other at anytime. It was so cool back then. Thats why I took study on electrical Engineering. Instead of working on Electrical engineering field, I end up become web programmer. Something I found interesting when i was in college.

That's old story. But lately I get bored and try to get another hobby. I have many hobbies and creating electronics stuff is one of it.

So I bought my self Arduino Uno and few electronic components to get started learning Arduino programming. So my first project is controlling RGB Led. Here what you need:
  1. Arduino Uno with usb data cable and Arduino IDE
  2. Install Adafruit Neopixel library
  3. 3 PL9823 RGB led
  4. Breadboard
  5. Jumper cables (mostly male to male)
First you need to install Arduino IDE. You can download it here.  That would depend on your operating system. I have Mac OS X version installed. Here what we have after installation.


Install Adafruit Neopixel library. From Sketch > Include Library > Manage Libraries and click install then restart IDE. You will need internet connection to  do it.


For RGB led, I use PL9823. Download the datasheet here. Make sure you have correct pinout connected to each other and power source. If not you will burn your LED and not usable anymore. Below is correct pin according to datasheet.



Check the breadboard wiring below.





These RGB led are common cathode. Which mean the long led pin will be connected to ground. DIN first led connected to pin 6 Arduino digital output pin. Then DO will be connected to another DIN led and perform led strip. 

Power up your Arduino by inserting the USD cable data to the computer. Configure port and board type. Download my sketch for this here then run and upload to Arduino.


Here is the demo:


Interesting right! I'll upload and post another article of my learning on Arduino. Good luck and Happy hacking!

Comments

Popular posts from this blog

Read temperature and barometric pressure from GY BMP 280 using Arduino

This sensor based on BMP 280 digital pressure sensor made by Bosch. You can find the complete datasheet here. This small sensor is quite impressive with it's accuracy. It claimed to be ±1 hPa in measuring barometric pressure, ±1.0°C in temperature measurement and ±1 meter in altitude accuracy. Pretty impressive right ?

DS3231 RTC Module

This module is very useful if you want to create project with time related data such as data logging, alarm and clock. This module keep track the time even the system has been turned off. Thanks to small coin battery installed on this module. Once it has been set, module will keep track the time as long as battery is still life.