Main Menu

Secondary Menu

MagicBall Rainbow Light

Introduction: MagicBall Rainbow Light

I see Halloween as something creepy, or something like ... "Magic".

This rainbow lamp can be used as a night lamp or bring it on Halloween party and show some magic to your friends and kids. It is powered by an Arduino and the trick is on the light dependent resistor to turn on/off the light. It also plays random rainbow colors which is controlled in the Arduino Sketch.

Tool you need is basically a solder iron and some adhesive tape or double sided tape.

Step 2: Wiring

For wiring up your Arduino see the wiring schematic above. Here I use Arduino Uno (Sparkfun RedBoard) and a mini breadboard for testing. Then to fit in the ball lamp, I switch to Arduino Pro Mini 5V which has nothing to change in the code/sketch. Changing to Pro Mini also eliminating the jumper wires which will give a bad shadow inside the ball lamp.

Step 3: Soldering

Going Pro, everything is soldered to the board directly. So you need to place your components well forming a compact size to fit on the bottom of the ball lamp. The RGB LED is placed in the middle and slightly higher. There I put a piece of transparent plastic on the LED to diffuse the light, otherwise there will be a red, green and blue rings on the lamp shade surface. In the photo you can see a bunch of electronic parts, which I will explain more on next step.

Step 4: The Drill (Optional)

We should put the LDR outside of the lamp. Here I drill a small hole to let the LDR leads get in the lamp. Remember to put heat shrink tube or electrical tape on one lead to avoid short. You can skip this step because LDR leads are thin enough and can be stick at the bottom of the lamp shade with the LDR sensor facing outside.

Step 5: Voltage Regulator (Optional)

Leaving my solder iron for too long takes away my skill soldering on tiny spaces like Arduino Pro Mini. Somehow I broke the solder pad on "RAW" pin. Then I couldn't plug my 7.4V battery directly on board. I need a 7805 voltage regulator and a 1N7004 diode. With the 7805 flat surface facing us, connect the left lead to Arduino 5V (VCC). Connect the middle lead to Arduino GND and also Battery negative terminal. Connect the Battery positive terminal to diode and then diode to 7805 right lead with the diode arrow (grey band) facing the 7805.

Step 7: Let the Show Begin

Now you can put it in your room as a night lamp or bring it on Halloween to show your magic to the kids.

"Let there be light ... so I can see your future ... "

I put a flashlight near the LDR, so when my hand moves and block the LDR from the light, it will toggle the LED on or off. When I use it as a night lamp in my room, it will start turning on when I turn off the light in the room.

When you use it in Halloween Party, play your hands over and around the ball and it will light up when your hand moving near the LDR and block some light goes to it.