arduino mood lighting
TRANSCRIPT
http://www.instructables.com/id/Arduino-mood-lighting/
Home Sign Up! Browse Community Submit
All Art Craft Food Games Green Home Kids Life Music Offbeat Outdoors Pets Photo Ride Science Tech
Arduino mood lightingby sapc on November 22, 2010
Table of Contents
Arduino mood lighting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Intro: Arduino mood lighting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Step 1: Parts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Step 2: The circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Step 3: Program . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
File Downloads . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Step 4: Add-Ons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
http://www.instructables.com/id/Arduino-mood-lighting/
Intro: Arduino mood lightingThis instructable will show you who to build a rgb lighting system with an arduino. You can also control it with an ipod/iphone/ipad using touchOSC. In my previousinstructable I showed how to control one rgb led in this you can control heaps with a single chip the ULN2003A.
Step 1: PartsYou will need
ArduinoULN2003A ic or equivilentcommon cathode RGB LED's(- + - -)jumper wiresbreadboard or perfboardResistors based on your led(I used one per channel)Cable for linking RGB LED's around your home(optional)
Image Notes1. arduino2. resistors I used 100R3. ULN2003A IC4. RGB LED's5. jumper wires6. breadboard
http://www.instructables.com/id/Arduino-mood-lighting/
Step 2: The circuitRed to pin 9green to pin 10blue to pin 11
http://www.instructables.com/id/Arduino-mood-lighting/
http://www.instructables.com/id/Arduino-mood-lighting/
http://www.instructables.com/id/Arduino-mood-lighting/
Step 3: ProgramUse the code below for your system
There are two sets of code bellow one is a simple flash red, flash green, flash blue and is my code.The other is ipod controlled with aduino IDE and processing code itrequires the oscpc5 processing library and is ipod/iphone/ipad controlled using touchOSC.
File Downloads
Processing osc_rgb.pde (7 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'Processing osc_rgb.pde']
arduino_osc.pde (763 bytes)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'arduino_osc.pde']
oscP5-0.9.6.zip (279 KB)[NOTE: When saving, if you see .tmp as the file ext, rename it to 'oscP5-0.9.6.zip']
Step 4: Add-OnsThis was a brief instructable showing you how to build an arduino mood lighting system. You could add switches to each channel or add activity lights to each channel oradd more channels. There is the new ULN2803 which is 8 channel not seven but is use this chip because you can have several channels and a common anode orcathode and have it run down 8-core wire.
Related Instructables
Assembling theMini Mood Lightv1 Kit byrobert.fitzsimons
Skyline RGBLED Lamp(video) byearthshine
RGB LEDMoodlight in 10minutes! byWattSekunde
Arduino LilypadInteractivePassionSensing Scarfby ArduinoFun
Interactive,Open SourceMood Light bymortaldoom780
LED Mood Jar!by joejoerowley
http://www.instructables.com/id/Arduino-mood-lighting/
Comments
5 comments Add Comment
d77uk says: Jan 30, 2011. 12:01 PM REPLYJust wondering what the purpose of the IC is? Can't you just do this with PWM direct from the arduino?
sapc says: Feb 8, 2011. 2:01 AM REPLYthe chip is used for driving heaps of leds for large scale purposes if you aren't using to many led's you can just use the pins straight off.
hightekrednek2396 says: Dec 15, 2010. 8:44 PM REPLYwhats the maximum amount of leds you can control with the 1 chip
sapc says: Jan 12, 2011. 5:59 PM REPLYi am not quite sure but i can control 25 rgb leds without any problems:)
hightekrednek2396 says: Jan 12, 2011. 6:17 PM REPLYthanks