Upload
jkorolas372
View
153
Download
1
Embed Size (px)
Citation preview
123456789101112131415161718192021222324252627282930
123456789101112131415161718192021222324252627282930
A B C D E F G H I J
A B C D E F G H I J
red
bluegreencom +
270ohm
to pin 5
to pin 3
to pin 6
red
bluegreencom +
270ohm
to pin 10
to pin 9
to pin 11
analogone
analogone
analogone
analogtwo
analogtwo
analogtwo
red
bluegreencom +
270ohm to analog 0digital
onedigital
onedigital
one
CIRC-16Multi-Color Lights
(RGB LED’s)
to 5v
to Gnd
to analog 1
to analog 2
Multi-Color LED Fun(RGB LEDs)
RGB LED
x3(common anode)
270 ohm Resistor
x9(red-purple-brown)
The Pieces The Theory & Code
The Circuit
.: print out, cut out, get making :..: for more details visit: http://tinyurl.com/ :.
Instructions:
mzh3w5
The Layout Sheet
red
gre
en
blu
e
analog0 (14)
resistor(270ohm)
pin 9
pin 10
pin 11
pin 3
pin 5
pin 6
+5 volts
The Schematic
red
gre
en
blu
e
red
gre
en
blu
e
analog1 (15)
analog2 (16)
redColour Truth Table
blue
yellow
cyan
magenta
white
ON ON OFF
OFF ON ONON
ON OFF ONON
ON ON ONON
greenm
agen
tared
green
cyan
blue
yellow
mag
enta
red
green
cyan
blue
yellow
Colour Wheelsdigital analog
common anode
red cathode
green cathode
blue cathode
(viewed from top)
RGB LED
cmn5nh
Testing
Digital Test Code
n36zql
Analog Test Code
nmmd89nnxbau
An RGB LED is actually three single color LEDs (Red, Green and Blue) combined
into a single package. Because of this controlling it is very similar to controlling a
single color LED. The one difference is the 3 LEDs share a common anode (long
lead (+))..: A quick refresher on LED control can be found here tinyurl.com/ :.
Plug the LED into the breadboard then connect the common anode to +5 volts
(5V). Connect a current limiting resistor to the remaining 3 pins. Connect these
resistors to ground (Gnd) to test each color..: IMPORTANT: always use a current limiting resistor with the 3 cathodes :.
Controlling the RGB LED digitally 7 colors are achievable (see the color truth table
below)..: Download a demo program from http://tinyurl.com/ :.
Controlling the RGB LED using the Arduinos PWM pins allows for almost infinite
control of color. For a helping hand see the analog color wheel below..: Download a demo program from http://tinyurl.com/
.: For More details visit http://tinyurl.com/ :.
.: For more details visit http://tinyurl.com/ :.
:.
mcwl73
The Pin-out