CLICK HERE FOR THE UPDATED INSTRUCTABLE: http://www.instructables.com/id/IR-Rainbow-Cloud-ver-1/

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 
    -Pollyfill stuffing
    -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.

    -Hot Glue
    -Soldering iron (optional)
    -Wire cutter, strippers

Step 1: Circuit and Code

Install the IR remote library

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.
<p>Wow, this is amazing! I really love how it looks!</p><p>Perhaps you can improve it with sound and light effects (like lightning in a cloud + thunderstorm sound).</p>
I always thought it would be fun to add sound to this, maybe I will revisit it someday
<p>Nice 'ible :)</p><p>I only 've got a question... Could you change the pin number of your IR reciever?</p><p>I'm new in the big world of arduino ^^</p><p>sorry for my poor english.</p>
<p>is it possible to change colors without remote control?</p>
<p>I had a lot of fun making this! Thanks for the inspiration! </p>
<p>Sorry, leds without proper resistor will burn very soon</p>
Yea, was aware of this, but needed it to be as bright as possible because it was being displayed in a lit room.<br><br>The updated version has proper resistors<br>http://www.instructables.com/id/IR-Rainbow-Cloud-ver-1/<br>
<p>I have allways loved this idea. He was my inspiration to do a remix</p>
<p>That is really beautiful! I am just mesmerized by the different colors. </p>
Hi, this is simply amazing ! I am just wondering about the script, i would like to try recreate this but wiothout using a remote, possible using LDRs to contol when the lighting changes, I am a rooky at this kind of stuff and so was just looking for any advice? <br> <br>Thank you in advance
<p>Hi, Im sorry I missed this, Im sure it would be possable. I considered using them, but was afraid it wouldnt be reliable due to the light coming from the cloud itself.</p>
Also, when I use the IRrec demo, it gives me different numbers (like 4885BBD6 and 890). I assume this isn't supposed to happen.
Also, most remotes will give one code when the button is pressed, then another to when the button is being held. Is that what is happening?
i really dig this awsome project, <br>NEC protocol (results.value): <br>1=50167935 <br>2=50151615 <br>3=50184255 <br>4=50143455 <br>5=50176095 <br>6=50159775 <br>7=50192415 <br>8=50139375 <br>9=50172015 <br>0=50135295 <br> <br>:-)
Are you using DEC?
Well removing the second #include line allowed it to compile and upload correctly. I can tell the board is receiving signals from the remote and using a library from Adafruit it will decode the signals for each button I press but nothing is lighting up. The remote I'm using is based on NEC codes (https://www.adafruit.com/product/389).
Im not sure what NEC is. I was using DEC if that helps? Sorry, I dont know that much about coding. Send me your code and Ill try to take a look at it.
@romwhite im using the same NEC protocol remote.you can test the receiving signal using this sketch, just press 2 or 3 button to togle the pin13 Led on your Arduino: <br> <br> <br> <br>#include <br> <br>int RECV_PIN = 11; <br> <br>IRrecv irrecv(RECV_PIN); <br> <br>decode_results results; <br> <br>void setup() <br>{ <br> Serial.begin(9600); <br> irrecv.enableIRIn(); // Start the receiver <br>} <br> <br>void loop() { <br> if (irrecv.decode(&amp;results)) { <br> Serial.println(results.value, DEC); <br> irrecv.resume(); // Receive the next value <br> } <br> switch(results.value){ <br> <br> <br> case 50151615: <br> digitalWrite (13, HIGH); <br> break; <br>//red off <br> case 50184255: <br> digitalWrite (13, LOW); <br> break; <br> <br> <br> } <br>} <br> <br>@dablondeemu this is great instructables for basic IR remote bro!good work
just to let you know I did not forget this, code is almost finished ;-) The hardest part for me is building the cloud, though.. <br> <br>https://github.com/n3ko1/ledcloud <br> <br>sorry for the new reply, couldn't answer your last comment..
This looks awesome, When I get a chance Ill check it out!
This is ace. I'm terrified of Arduino though so do you reckon I could bodge a basic version by stuffing some christmas lights in there instead?
Yea, Check out the other comments for arduino free ideas too :]
So I've been trying to make this work for a little while now, and I'm SO close. I have all the lights plugged into the arduino, and I just need to get the IRremote to turn the lights/ on/off, but for the love of all that is good I can't get it to work. When I turn my battery on, the lights all turn on and stare at me in contempt for my work. What am I doing wrong?!
Send me your code and I'll try to take a look at it, but Im not that good at coding.
awsum dude!!!!!!
Great project and instructable. Did you use the remote from Adafruit? https://www.adafruit.com/products/389 <br>Thanks
I bought a kit similar to this one on ebay. http://b2cqshop.com/products/136-diy-starter-kit-lcd-ir-remote-kit-atmega328-for-arduino-uno.aspx <br>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&amp;hash=item2578f9bb84 <br> <br>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.
This looks amazing! I'll have a little more time in 2 weeks, then I'm definitely going to build this. I'm planning to add weather forecast via wifi and a sound mode where the clouds lightning matches the music playing in the room. Awesome project!
That's awesome! Please share if you do :]
Has anyone else built this? As my first instructable I'm trying to build this project but not having any luck with the IR library. I downloaded the library from the site posted at http://www.arcfn.com/2009/08/multi-protocol-infrared-remote-library.html and imported it as instructed but when I try to load the code for the cloud I get errors that appear to point to the IR library. I've attached a screen shot. Any help would be greatly appreciated.
Yea a few people have dont it, so it should work. &nbsp;It looks like you just have an extra line at the&nbsp;beginning.<br> <div style="margin-left: 40.0px;"> <br> #include &lt;IRremote.h&gt;<br> <strike>#include &lt;IRremoteInt.h&gt;</strike></div> <div style="margin-left: 40.0px;"> <br> int RECV_PIN = 11;</div> <div style="margin-left: 40.0px;"> <span style="font-size: 12.0px;">int ledr = 2;<br> etc...</span></div> <div> <br> <span style="font-size: 12.0px;">If it still doesnt work, make sure the&nbsp;</span>library is<span style="font-size: 12.0px;">&nbsp;installed correctly. Let me know if that fixes it! :]</span></div>
For non-electronic types... or us time constrained people. Can we just throw some of those Christmas Lights inside the plastic container?
yes! I forgot to mention than in the post. You could put a light, or christmas lights in it. Many craft or home stores have lamp kits as well. You could get a cheap extension cord from walmart (I think they have one for like 5 dollars). Make sure you use a type of light that doens't get hot, LEDS are best for that.
This project is really cool looking and what a great Idea! A++ <br> <br>Now can you figure out how to make Lighting Bolts shoot out of that too :)
A lot of people have been asking about how to do it more simply, you could try a light like this: <br>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&amp;hash=item25799978ad <br> <br>and get a lamp kit from a craft store.
It does have a &quot;lightning&quot; setting :]
In essence, yes you could...<br> <br> 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&nbsp;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&nbsp;pair of terminal blocks (<a href="http://www.amazon.co.uk/BLOCK-CONNECTOR-STRIP-jointing-cable/dp/B003ZWE7HW/ref=sr_1_1?ie=UTF8&qid=1357837787&sr=8-1" rel="nofollow">http://www.amazon.co.uk/BLOCK-CONNECTOR-STRIP-jointing-cable/dp/B003ZWE7HW/ref=sr_1_1?ie=UTF8&amp;qid=1357837787&amp;sr=8-1</a> for example)&nbsp;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.<br> <br> A second issue could be the number and brightness of your lights&nbsp;- you'd have to experiment to find an acceptable compromise.
Very nice! First I thought that it's kind of an airswimmer (http://airswimmers.com/), maybe you can come up with something like this :) You may need to loose some weight from the cloud
I wish! Ill have to see if anyone's built something like that on here.
oh that is awesome.. have you seen those mini helium filled blimps with simple swarming characterisitcs. if you could combine those with your illuminated cloud idea you could have a flock clouds that float across your room to their own rhythms
That would be awesome!
That's epic. Have you ever thought of making it mobile? Like with motors? Or maybe being synced up to a weather forcast?
I was thinking of adding a motor that makes it float up and down by a few inches. Sync to weather would be really cool!
What a great project!
VERY cool! My continued efforts to make my room's ceiling more sky-like will be greatly enhanced by this. Thank you!
Thanks! Id love to see it if you make it!
VERY impressive!!! Thank you for sharing! I'm going to build this. This is a really new idea for me, and I can use it in my photography services. Again, thanks for posting!
Thanks! Id love to see pictures if you do. One thing you might want to consider is doing something to help defuse the light a bit, because sometimes, when I was photographing you could see the individual bulbs through the cloud (even though you dont really see it when just looking at it.) For <a href="http://www.instructables.com/id/Magic-Light-Capacitance-Sensor-first-ardino-proj/" rel="nofollow">this project</a>&nbsp;I&nbsp;decoupaged&nbsp;tissue paper onto the inside of the glass and it helped, so&nbsp;that's&nbsp;something&nbsp;you might want to consider.
This would be good also with a light sensor set outside to auto adjust your output on your cloud.
Also another thought is to use some rgb leds like the 4 wire ones instead of descreate colors. It would give a more even color shade to the cloud as a whole. Thanks for the ideas..

About This Instructable


617 favorites


More by dablondeemu: IR Rainbow Cloud ver 1.1 Magic Light (Capacitance Sensor, First Arduino Project) IR Remote Controlled Color Changing Cloud (Arduino)
Add instructable to: