1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 A B C D E F G H I J A B C D E F G H I J red blue green com + 270ohm to pin 5 to pin 3 to pin 6 red blue green com + 270ohm to pin 10 to pin 9 to pin 11 analog one analog one analog one analog two analog two analog two red blue green com + 270ohm to analog 0 digital one digital one digital one CIRC-16 Multi-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 green blue analog 0 (14) resistor (270ohm) pin 9 pin 10 pin 11 pin 3 pin 5 pin 6 +5 volts The Schematic red green blue red green blue analog 1 (15) analog 2 (16) red Colour Truth Table blue yellow cyan magenta white ON ON OFF OFF ON ON ON ON OFF ON ON ON ON ON ON green magenta red green cyan blue yellow magenta red green cyan blue yellow Colour Wheels digital analog common anode red cathode green cathode blue cathode (viewed from top) RGB LED cmn5nh Testing Digital Test Code n36zql Analog Test Code nmmd89 nnxbau 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

Arduino Rgb Led

Embed Size (px)

Citation preview

Page 1: Arduino Rgb Led

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