Ardumotive Arduino Greek Playground
  • Home
    • Blog
    • About us
    • Contact
    • License
  • Events
    • Unboxing & Review
  • Tutorials
  • Workshop
  • RPi Tutorials
  • News
The 1st Arduino Playgroung in Greece - Open Source Hardware

One led, many colors!

Available Languages
Picture
Picture

Introduction 

Picture
An RGB LED has 4 pins, one for each color (Red, Green, Blue) and a common cathode. It has three different color-emitting diodes that can be combined to create all sorts of color! Any color is possible depending on how bright each diode is.

In this tutorial you will learn how to use an RGB LED with Arduino and create unique color combinations.

What you will need - Hardware

For this tutorial you will need:
  • Arduino uno
  • Breadboard
  • RGB LED
  • 3x 330Ohm resistors
Picture

The Circuit

Picture
The connections are pretty easy, see the image above with breadboard circuit schematic.
Picture

The code

We will use code from SparkFun Inventor's Kit - SIK Guide, Example sketch 03. This is the best sketch to learn how an RGB LED works. The code is pretty self-explanatory, and the comments do a better job than me explaining how it works.
​Download the code from here and open it with Arduino IDE.
rgb_led_tutorial.zip
File Size: 3 kb
File Type: zip
Download File

Well done!

Red
Green
Blue
You have successfully completed one more Arduino "How to" tutorial and you learned how to use an RGB LED with Arduino.
Picture

Search Engine

Licence 

Picture

Help us to grow up!

Picture


Donate us
About us
License
Cookies policy

Visit the biggest Arduino Shop in Greece!

Picture
find us on dwrean.net
find us on Codebender
find us on Instructables
Developed and designed by Vasilakis Michalis Copyright © 2013 Ardumotive All Rights Reserved
All trademarks referenced herein are properties of their
Powered by Create your own unique website with customizable templates.
Design by DivTag Templates