This is a project I created for a Digital Art and Installations class. The class covered basics of several types of programming, and our projects were meant to be an interactive cross between art and technology. This was a fun and easy project with really impressive results (if I do say so myself) . The same technology could be applied to many different types of types of projects. The technology is very easily altered as well, for example, I was considering using a distance sensor or a light sensor. I had everything on hand, so it cost nothing. This is my first instructable :] Sorry the photos don't really do it justice! Check out the video to see it in action:
-Light weight, transparent container. example
-Mesh Spackle tape. example
-Fishing line or thread to hang
-LEDs, Wires, Resistors, Infrared sensor and Remote
-Battery or power source for arduino
-Breadboard or blank circuit board, I used this one from Radio Shack.
-Soldering iron (optional)
-Wire cutter, strippers
Step 1: Circuit and Code
Set up the bread board with the attached schematic.
2 red leds to pin 2,
4 yellow leds to pin 3,
1 green to pin 4,
1 blue to pin 5,
1 pink/purple to pin 6,
2 white to pin 7,
1 RGB flashing to pin 8 (I had to use a resistor to dim it)
The reason I used multiple leds in parallel was so that the light would be dimmer from each individual one and be more defused
Connect the left leg on the IR sensor to 11, middle to ground, and right to 5 volts
Use the IRrecv Demo included with the examples to "configure" your remote. To do this run the sketch and open the serial monitor. Press buttons on the remote and note what numbers apear.
Open the attached IR Rainbow code and scroll down to each case statement Change the number after the word case to match the button you want to use.
My code has
sun (white and yellow)
rain (blue and white)
lightning (blue and purple with flashing white)
??? (RGB flashing led)
and also on/off for each individual color.