Introduction: Magnetic Table Lamp

I wanted a new table lamp, but found a regular table lamp rather uninteresting. I wanted to create a lamp with which it is possible to readjust the shape and size.

The table lamp exists out of eight cubes, with which you can build different shapes. Each cube has four bright 0.5 watt straw hat LEDs inside.

This lamp was easy to make, but consumes a lot of your time.

The light output depends on the total amount of cubes that you use. If you use just one cube you have little light (for example as a night light), if you use all the cubes you have more than enough light to light up a room.

The overall cost of this project was low, except for the neodymium magnets (40 $), which seem to have risen in price the last year.

Step 1: Materials and Tools


  • 40   0,5W straw hat LEDs 
  • 8 bridge rectifiers
  • 8   6.8 Uf  > 12v capacitors
  • 16   39 Ohm 1W resistors
  • Perfboard
  • Conductive silver
  • White acrylic sheet
  • 192 nails
  • 192  6 mm by 5 mm round neodymium magnets
  • 12v power supply 2 amp
  • Toggle switch
  • Wooden board (9 mm thick)


  • Wood glue
  • Super glue
  • Jig saw
  • Miter saw
  • Sand paper
  • Wood clamps
  • Drill
  • Drill bit  3 mm, 6 mm
  • Hole saw 67 mm,  74 mm
  • Solder
  • Solder iron

Step 2: Sawing, Drilling and Gluing

Saw 48 squares of 10 cm by 10 cm out of the wooden board.

Saw a 45 degree corner off each side of each cube.

Draw a cross in each square and make a mark 1.3 cm from each corner. Drill a 3 mm hole in each mark, and drill a 6 mm hole 3 mm deep on top of that.

Drill a 67 mm circle in the middle of each square.

Use wood glue to glue five pieces together so that you get cubes with one side missing.

Step 3: Drilling Acrylic Circles

Saw 48  74 mm circles out of white acrylic using a hole saw. 

Use super glue to glue the white acrylic circles on the inside of each cube and on the eight remaining squares.

Step 4: Making Connections

Put nails in each 3 mm hole. Solder them together on the inside of the cubes.

Each nail of each side represents a negative or positive connection. Starting from the upper left corner you've got positive, on the upper right corner you've got negative, on the lower right corner you've got positive and on the lower left corner negative. Use electrical wires, solder and a solder iron to connect the positive corners together and to connect the negative corners together.

Step 5: Circuit

The source voltage is 12 v. Each cube has four 0.5 watt LEDs inside. To drive the LEDs in each cube, I made a circuit containing the following components: bridge rectifier, a 6.8 Uf capacitor and two 39 Ohm 1w resistors. Schematics are shown in the above picture.

Solder the circuit to the LEDs. Solder this to a positive and negative connection inside the cube.

I used a bridge rectifier so you can place the cubes on each other in whichever way you want, the LEDs will always turn on. 

Use wood glue to attach the remaining squares onto the cubes.

Step 6: Magnets

Use super glue to attach the magnets into the holes in each corner of the squares (on top of the nails). Use conductive silver between the nail and the magnet for better conductivity.

Glue the magnets in the same pattern as you made the electrical connections. For example upper left corner south, upper right corner north, lower right corner south, lower left corner north. 

Repeat this process for each side of the cube.

Step 7: Base of the Lamp

Saw two 14 cm by 14 cm pieces out of the wooden board.

Saw four 14 cm by 4 cm pieces out of the wood. Saw a 45 degree corner off the short side of each piece. Glue these pieces together on top of a 14 cm by 14 cm to create a box, leaving the top aside for the moment.

Drill a 6 mm hole in the middle of the front and the back of the box.

Draw a cross on the remaining 14 cm by 14 cm piece (the top) and make a mark 4 cm from each corner. Drill a 3 mm hole in each mark, and drill a 6 mm hole 3 mm deep on top of that.

For stability of the base I glued some iron bars inside the box.

Step 8: The Base Part 2

Put the cable from the 12v power supply through the hole of the back of the box.

Put a switch through the hole on the front of the box.

Solder the positive end of the power supply to a terminal of the switch.

Solder a wire to the other terminal of the switch.

Put nails in each 3 mm hole. Each nail represents a negative or positive connection. For example, starting from the upper left corner you've got positive, on the upper right corner you've got negative, on the lower right corner you've got positive and on the lower left corner negative. Use electrical wires, solder and a solder iron to connect the two positive corners together and to connect the two negative corners together.

Solder the positive and negative wires of the power supply to the positive and negative connections on the top of the box.

Use wood glue to glue the top onto the box.

Use super glue to attach magnets in the pre-drilled3mm deep holes. Use conductive silver between the nail and the magnet for better conductivity.

Step 9: Enjoy!

Finish the  table lamp with bees wax or wood oil or ...

Enjoy the light and the different shapes of your table lamp.


mosmond made it! (author)2014-06-25

Fantastic project! I *really* love the modular design. It makes me wonder what other applications this could be used for, besides lighting. Speakers? Cooling fans? Drive motors? I'll be obsessing over this one for a while!

aschmidt13 made it! (author)2014-05-28


nerdtoob made it! (author)2014-03-03

Hey I noticed that you said a 6.8uf 12v resistor but on the picture it is a 6.8uf 35v resistor and I cant find a 6.8uf 12v resistor anywhere. could you post a link?

nerdtoob made it! (author)nerdtoob2014-03-05

Never mind figured it out it says greater than 12v

thebuckeyeguy made it! (author)2013-11-23

Very ambitious and well executed. Good Job!

decfootylad made it! (author)2013-02-23

i wondered where the wires from +ve and -ve corners go, on the mini pcb's inside each cube.

Kirgdeking made it! (author)2012-11-26

Hello, I have a question: instead of the acrylic sheet, can i just use a 2mm PVC sheet of plastic as i am on a low budget?

mganpate made it! (author)2012-11-09

its very nice project kindly send us pdf pls pls on

Saakaszwili made it! (author)2012-10-09

Your project is so awesome that i decided to take it, althought i have no experience in wood or elektronic work. I've got one question, what was the thicknes of the acrylic scheet ?
Thanks in advance

HHarry made it! (author)HHarry2012-10-16

The acrylic sheet is about 3 mm thick.

Cupofblack made it! (author)2012-05-09

This is pretty awesome. Sorry if this question seems obvious, I'm new to circuits:

Do the magnets have an effect on the current, and is that why you alternate them? And if they do, does it matter what how you orient them?

Stoffo made it! (author)2012-01-08

Hello! Thanks for your comment on the magnets, this has made things easier.
One question remains though: I'm having trouble finding the good LEDs required for this project. You said: "0,5W straw hat LEDs", but I'm finding many different LEDs with all different lighting strengths. Could you possible give a link or name of the type of LEDs you have used? Or maybe the amount of lumen emitted from these LEDs?

Thanks in advance,


HHarry made it! (author)HHarry2012-01-16

These are the LEDs i used: 

But feel free to use any kind of led you want (resistor value have to be recalculated).
I used these straw hat LEDs because of its wide angle and high output.  

mxmega made it! (author)2012-01-12

A question regarding the circuit.

I can't quite understand how it works.In the picture, i see only 2 legs of the rectifier in picture of step 5 whereas in the picture in step 1, the rectifier has 4 legs. Are 2 of the legs cut off?

Also, does the capacitor used needs to have polarity for it to work?
Are both the resistors connected to the one leg of capacitor, and if so, does the other leg of capacitor connect to the rectifier? Because I can't see where the the parts are connected together.
Finally, when soldering the circuit to the cube, are all 4 of the legs shown in diagram at step 5 connected somewhere? If so, where?

I'm a complete newb in electronics, and if you can clarify this I'd be forever grateful.

Btw, awesome ible :)
thanks in advance

curious youth made it! (author)2012-01-04

hi incredible ible !
im from aus and having trouble tracking down the magnets with the right dimensions. and suggestions for me as i really want to make this lamp. its great :)

curious youth made it! (author)curious youth2012-01-08

Cheers ! as soon as i get all the money togeth (im on a student budget) this will be the stand out in my room. im going to work on making it a standalone lamp that i dont need a desk for. ill post pictures when i finish (who knows when that will be though)

Stoffo made it! (author)2012-01-05

Hello! A very nice project indeed.
I'm planning to try this myself, but I have one question regarding the magnets. Is het neccessary to have this exact dimensions, or can you do with anything a big smaller or less tall?
With other words, do you know how strong the magnets have to be, so that all arrangments are possible and the cubes don't fall down?

Thanks in advance!

HHarry made it! (author)HHarry2012-01-08

You could change the magnet size. My magnets can hold 1,2 kg each. I find this necessary when you add more magnets to the sides.

jlundquist made it! (author)2012-01-05

what would this look like if the whole cube was made from the acrylic instead of wood? would the wires and circuits show through as shadows?

HHarry made it! (author)HHarry2012-01-08

Yes the shadows would shine through. But maybe you could put sticks in the corners pointing to the middle where the circuit and the leds could be, so the light is not obstructed by the wires.

anglerfish made it! (author)2012-01-05

This is a wonderful idea. Perfect gift for my college bound kid to use for his dorm room. I am going to try this one.

HHarry made it! (author)HHarry2012-01-08


Penolopy Bulnick made it! (author)2012-01-03

That's amazing!

HHarry made it! (author)HHarry2012-01-04

Thank you!

rock0911 made it! (author)2012-01-03

I don't know that why there is a bredge rectifier.
did you mine your connections have AC all the time?

HHarry made it! (author)HHarry2012-01-04

I used a DC power supply. The bridge rectifier is placed in the circuit to make sure it does not matter which way you place the cubes together.

Mr. Boo made it! (author)2012-01-03

What are the specs for the bridge rectifier? When I look them up online I see many different types.

HHarry made it! (author)HHarry2012-01-03

Almost any rectifier would be fine, but over 2 amp  is just overkill for this application. I used this one:

Mr. Boo made it! (author)Mr. Boo2012-01-03

OK, thanks for the info!

jlundquist made it! (author)2012-01-02

How do you make the sixth side power the cube?

HHarry made it! (author)HHarry2012-01-03

The sixth side is a bit tricky.
I used two methods:
The first method is soldering short wires to the nails inside the box and then to the single nails of the leftover square, finally glue the cover to the box. This is the best (recommended) method.
I started the second method after I finished five cubes. I call it the fast non-professional I just want this project to be done (not recommended) method. It goes like this: put the nails in the leftover square and glue it to the rest of the box. I was lucky to have a voltage on every nail.

jlundquist made it! (author)jlundquist2012-01-03

Thats what i had in mind. also ive decided to tackle this project. but its my first time doing circuit work. any pointers? i comprehend the rest of it all even the wiring but as far as making a circuit i dont know anything.

thanks for the great project!

lanternfish made it! (author)lanternfish2012-01-03

Hi jlunquist

If you look closely at the last image in Step 5 you will be able to make out how all the nails in one corner are soldered together and then connected to either +ve or -ve.

Does that help?


alexandrelandim made it! (author)2012-01-03

Very nice post, HHary. I live in Brazil and I like to read instructables, but never done one project. This´ll be the first one. Congratulations!

HHarry made it! (author)HHarry2012-01-03

Thank you and good luck!

xprosario made it! (author)2012-01-03

Very good project!
Sorry, but I know very little about electronics. I can ask a question: What is the task of the capacitor?
I did a simulation and the voltage drop is very evident in the brightness of the LED. What might that be?
Thank you very much.

HHarry made it! (author)HHarry2012-01-03

Thanks! The capacitor is not strictly necessary, i just put them in the circuit for smoothing out the voltage and to catch some voltage spikes.

xprosario made it! (author)xprosario2012-01-03

Thanks for your answer!
In what may be the voltage drop? Surely it is the bridge rectifiers.
I have to find a resistance that allows all LEDs glow like that, as from the fourth cube at a low light.

myyrhdyn made it! (author)2012-01-02

This is amazing, going to try it as soon as I can. Thank's

HHarry made it! (author)HHarry2012-01-03


profpat made it! (author)2012-01-02

very nicely done!!! great project!

HHarry made it! (author)HHarry2012-01-03


mxmega made it! (author)2012-01-03

So cool!
Love the design!
Makes perfect gift to someone

HHarry made it! (author)HHarry2012-01-03


lanternfish made it! (author)2012-01-03

Hi HHarry

You solved a problem that I was yet to tackle on a 'concept project' I am developing - how to power microcontrollers in stackable cubes. The AC part was a given; it was how to arrange the supply at the corners that was doing my head in.

Thanks for the solution and an excellent project.

HHarry made it! (author)HHarry2012-01-03

No thanks.

eggfriedrice made it! (author)2012-01-02

Great stuff! That's a nice idea well executed. It must have taken hours to cut and assemble all the bits!

I'm really tempted to do something similar. I've got access to a laser cutter which would be handy for most of the shapes and I've just bought 100 neodymium magnets on eBay...

HHarry made it! (author)HHarry2012-01-03

It took days to assemble, and I cursed many times.
A laser cutter would have come in handy.

Jamsandwich made it! (author)2012-01-02

Hey I'm very new to all of this so sorry if this is an ignorant question but as all of the connections are exposed are you in any danger of shocking yourself if you accidently touch the magnets while the lamp is still on or try to rearrange them while it's still on?
I ask because I think this would make an awesome present for someone.

About This Instructable




More by HHarry:Simple looking LED wall lightModern standing lampNest table lamp
Add instructable to: