Introduction: Circuit Board Ceiling Lamp W/ Blinkenlights

Picture of Circuit Board Ceiling Lamp W/ Blinkenlights

The lamp itself I created quite a few years ago from a spare halogen lighting kit and several defective circuit boards plus other random junk. What was missing all that time were some totally gratuitous, but fancy, Blinkenlights. Since I learned a bit about Arduinos recently and acquired two of them in the process, the time had finally come to address this lack.

Step 1: The Lamp's Design

Picture of The Lamp's Design

Let me explain a few things about the idea and the making of the lamp first. You are of course free to see it as a spaceship about to land on the ceiling, but other interpretations have been offered. The circuit boards are merely used as raw material for the body of the lamp. They have only structural and no electric or electronic purpose. As you can see in the photos, they have been fastened using plain hardware store screws and nuts. In some cases I used the boards' mounting holes, in other cases I drilled new holes. The "neck" is a thin metal bar and the "head" is the chassis of an old cassette recorder.

For the halogen lights I used the standard 12 V power supply from the kit (it's even dimmable) - the white block on top. The three halogen spots are connected with insulated speaker cable. That's about it. You can still replace each of the halogen "bulbs" when they fail, but I found them surprisingly durable.

It took a moment to trim the whole thing such that it's balanced horizontally without extra weight when hung from one point. This mainly consisted in finding the proper spot for the transformer which is clearly the heaviest component.

Step 2: The Arduino

Picture of The Arduino

The Arduino is a "Diavolino" (little devil), which is an Arduino Duemillanove/ATmegaXX8 compatible board produced and sold by a company named Evil Mad Scientist Laboratories for a few bucks. It has several power supply options (USB, 9-12 V DC, 3 x 1,5 V batteries), but you have to solder the components to the board yourself.

Step 3: Six Orange LEDs

Picture of Six Orange LEDs

Now for the blinking orange LEDs. I just mail-ordered a pack of ten based on their specs (wavelength/color: 610nm, diffuse, 5 mm diameter, voltage: 1.8 - 2.3V, current: 20 - 30mA). The Arduino's output pins emit 5 V DC. I played around with a breadboard first, finding that putting pairs of two LEDs in line without extra resistor worked best, producing a bright orange blinking. At least as long as you intend only to have them blink intermittently.

I then put the LEDs in their corner spots on the lamp. This time I only used existing mounting holes in the boards. The LEDs are merely "stuck" in by bits of duct tape wrapped around their "legs", which conveniently also provides insulation. (Duct tape of course also scores on the McGyver scale :-)

Some of the connecting wires were soldered onto the LEDs "on the ground", but I also had to do some soldering in place i.e. on the lamp. The wires are from an old phone line and they fit precisely into the Arduino's upright input/output connectors.

Update: Slightly worried by rafununu's comments I did the tiniest bit of research on Arduinos, LEDs and resistors. Although I am the proud owner of a digital multimeter I resolved at least to try to understand the physics first. I found this post the most helpful http://electronics.stackexchange.com/questions/32...

My Diavolino board has an ATmega328P-PU microcontroller and I run it at 5 V. The graph in its datasheet for the internal resistance of the controller's outputs looks quite similar to that in the post, so I assumed 25 Ω here, too.

My LEDs take 1.8 - 2.3 V, which reduces the output's 5 V to 1.4 to 0.4 V as I have put two LEDs in line. According to U = R * I or rather I = U / R that would result in a current from 1.4 V/25 Ω to 0.6 V/25 Ω. Thats a range from 56 mA to 16 mA. If we assume 2 V voltage drop per LED this results in 40 mA.

Since the maximum current specified is 30 mA for the LEDs and 40 mA for the Arduino, there is indeed a risk of damaging either without adding an extra resistor.

Now for the practical part: The multimeter gives me only about 4.7 V on an ouput pin and 28 mA with two LEDs in line. Without any voltage spikes on behalf of the controller - which I found nothing about - this should be well in the range of what all components can handle.

I might still go ahead and add tiny - say 20 Ω - resistors just to be on the safe side, but it does not seem a terribly urgent matter. Remember, my LEDs only blink a few times every 15 minutes. So lots of time to recover from thermic stress.

On the other hand, it looks like you should definitely add a resistor when hooking up LEDs, which consume less than 4 V, to Arduino ouputs at 5 V. Please correct me if I'm still wrong somewhere, but that's my current understanding.

Note: There are lots of free LED resistor calculators online, e.g. this one: http://www.ledcalc.net

Step 4: Arduino Power Supply

Picture of Arduino Power Supply

The power supply for the Arduino is through the 220 V AC power line, a plug, an old iPhone power supply with an USB plug. Instead of the standard battery pack I cut an old USB cable and soldered it's power and ground lines onto the Arduino. So currently the blinking only happens, while the lamp is on. But with the power supply through USB I guess I could hook up a power bank to act as a battery buffer, such that the LEDs could blink all day.

Step 5: Conclusion and Outlook

Picture of Conclusion and Outlook

I played around with some blinking patterns and ended up with the morse code for my daughter's name (the lamp's currently in her room) once every quarter hour. Obvoiusly, the Arduino could do much more complicated things, but for a start, I'm quite content with the effect.

If I ever get to add another level, it would probably be some sort of remote control. Fit the Diavolino with a Bluetooth or WiFi shield and let it blink out messages you write or patterns you define on your phone or something along those lines. We'll see ;-)

Comments

rafununu (author)2015-12-16

Nice item, really.

Regarding LEDs, you must add a resistor unless Arduino outputs are constant current, which they are not. It works for now, but you risk the destruction of the outputs on a longer term.

Virtualista (author)rafununu2015-12-16

Thanks for the hint! With "destruction of the outputs" you mean damage to the Arduino's outlets or frying the LEDs? In the latter case I'd probably solder in a resistor when the time comes to replace a defective LED.

rafununu (author)Virtualista2015-12-17

I mean burning the Arduino's output drivers. Even a small resistor can fit moreover it will "absorb" the voltage changes, if you don't know how to calculate it let me know.
Regards

Virtualista (author)rafununu2015-12-17

OK, understood. I'm sure I can figure out the resistance value required, but if for you it's merely the effort of writing it down, I'll be grateful for your advice. Do you need more data regarding the LEDs than given in my description?

rafununu (author)Virtualista2015-12-18

No thanks. I love your idea of creating a lamp looking like a space ship. The new Lego starship costs 150€ ! (without any electronics) Even if yours hasn't the same "almost perfect" look, I prefer it thousands times. And, as I've got lots of old PC boards, LED strips and power LEDs, I'm gonna make one myself. Thanks again.

Virtualista (author)rafununu2015-12-24

Thanks again. Looking forward to your results - pls. post pics here! Btw. I got a big box of old Lego, too. That might be good for something... :-)

rpotts2 (author)2015-12-15

That's cool, but I would suggest learning about using barebones arduinos (or get the Shenzen specials on ebay). I have a couple full boards for testing things, but when I build an actual circuit, there's no way I'm going to toss a $25 board in the mix.

Virtualista (author)rpotts22015-12-17

Thank you and totally agreed. But since I had the Diavolinos anyway, I figured why not use one of them. I may follow your advice and replace it with a more basic board if other use cases come up with other projects. Time is actually a limiting factor, here :-/

rpotts2 (author)Virtualista2015-12-17

Totally understand. My current Xmas light controller is a retail board, because I just haven't had time to use one of the 25 bare mcus I bought.

DIY Hacks and How Tos (author)2015-12-15

Awesome lamp design. I love the look of the raw circuit boards.

Thank you!

About This Instructable

2,032views

23favorites

License:

More by Virtualista:Circuit Board Ceiling Lamp w/ Blinkenlights
Add instructable to: