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:
Supplies:
-Light weight, transparent container. example
-Mesh Spackle tape. example
-Pollyfill stuffing
-Fishing line or thread to hang
-Arduino
-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.
Tools:
-Hot Glue
-Soldering iron (optional)
-Wire cutter, strippers
Remove these ads by
Signing UpStep 1: Circuit and Code
http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html
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)
stop
and also on/off for each individual color.
IRrainbow.zip1 KB






































Visit Our Store »
Go Pro Today »




NEC protocol (results.value):
1=50167935
2=50151615
3=50184255
4=50143455
5=50176095
6=50159775
7=50192415
8=50139375
9=50172015
0=50135295
:-)
#include
int RECV_PIN = 11;
IRrecv irrecv(RECV_PIN);
decode_results results;
void setup()
{
Serial.begin(9600);
irrecv.enableIRIn(); // Start the receiver
}
void loop() {
if (irrecv.decode(&results)) {
Serial.println(results.value, DEC);
irrecv.resume(); // Receive the next value
}
switch(results.value){
case 50151615:
digitalWrite (13, HIGH);
break;
//red off
case 50184255:
digitalWrite (13, LOW);
break;
}
}
@dablondeemu this is great instructables for basic IR remote bro!good work
https://github.com/n3ko1/ledcloud
sorry for the new reply, couldn't answer your last comment..
Thanks
Just the reciever and the remote are pretty cheap by them selves http://www.ebay.com/itm/IR-Remote-Control-DIY-Kit-with-manual-and-sample-For-Arduino-MCU-PIC-Infrared-/160943422340?pt=LH_DefaultDomain_0&hash=item2578f9bb84
But with a IR reciever any remote will work. I was using my TV remote to test it,. I bet you could find a cheap remote used or at a dollar store even.
#include <IRremote.h>
#include <IRremoteInt.h>int RECV_PIN = 11;
etc...
If it still doesnt work, make sure the library is installed correctly. Let me know if that fixes it! :]
Now can you figure out how to make Lighting Bolts shoot out of that too :)
http://www.ebay.com/itm/3W-RGB-E27-led-bulb-Lamp-5w-Spot-light-16-Color-85-265V-24Key-IR-Remote-Control-/160953890989?pt=Lamps_US&hash=item25799978ad
and get a lamp kit from a craft store.
However - you'd lose the infra-red remote control aspect, so (assuming your lights have a flashing feature - or three) you'd need a way to access the controls. If you can/need to extend the lead between the control box and 1st LED somewhat, you should be able to have your cloud but keep the conrols at a more accessible point. So long as you don't cross-connect the wires, that shouldn't be an issue for the vast majority of people. And you wouldn't necessarily even need to solder the connections - a pair of terminal blocks (http://www.amazon.co.uk/BLOCK-CONNECTOR-STRIP-jointing-cable/dp/B003ZWE7HW/ref=sr_1_1?ie=UTF8&qid=1357837787&sr=8-1 for example) at each junction would work (they'd look ugly, but they'd work), but I don't know that they'd take the strain of hanging your likely-to-sway cloud.
A second issue could be the number and brightness of your lights - you'd have to experiment to find an acceptable compromise.