This is a very simple project that turns a Rainbow Cube Kit from Seeedstudio, into a digital rain cloud. It features a relaxing rain animation which is ruined by a not-so-relaxing yet somewhat realistic lightning effect. The animation has a very random pattern, and is quite satisfying to watch. The strategically placed cotton wool on the top of the cube makes all the difference to the project, and is sure to impress all of your friends. Luckily, I have done all of the hard work for you. You will find the full source code for the animation sequence below. You just have to provide the Rainbow Cube Kit and the cotton wool. Have fun !!
The Rainbow Cube Kit comes pre-configured with its own animation sequence. We will over-write this sequence with the Digital Rain Cloud sketch below, and use the Arduino IDE to re-program the Rainbow Cube Kit. While there are many Arduino IDE alternatives out there, I would recommend that you use the official Arduino IDE for this project. I used the official Arduino IDE app (v1.8.5) for Windows 10. Make sure to get the most up-to-date version for your operating system here.
Arduino IDE Setup (Libraries)
You will need to install a couple of libraries into your Arduino IDE before you upload the sketch to the Rainbow Cube Kit.
Once the code is uploaded, you will see a very random LED sequence. The top layer represents the clouds, and the 3 layers beneath represent the rain. Add a bit of cotton wool to cover the LEDs on the top layer and watch the light show begin.
While this may seem like a simple project, it actually took a little time to get the effect that I wanted. The cotton wool really brought the project to life, and if you don’t like the lightning, you can always delete that section in the program. If you would like to try some other animations on your LED cube, then feel free to look at the example folder on my GitHub page: https://github.com/ArduinoBasics/Rainbowduino_LEDcube Enjoy your new digital Rain cloud – I would love to see your versions.