loading


Here´s my 3x3x3 LED cube, it's controlled by a PIC16F628A microcontroller.
This is my first microcontroller project that finally works, so i suppose is not that difficult to make for beginners.

I hope you'll enjoy that instructable and even make your own LED cube!
 
 

Step 1: Materials

The PIC drives the cube without external IC's and with very few extra components.
To make your own LED cube you'll need:

-A PIC16F628A Microchip microcontroller ($2 ebay)

-27 diffused LEDs ($3.50 50pcs ebay)

-7805 voltage regulator ($0.99 3pcs ebay)

-9 330ohm resistors ($1.14 ebay)

-12 male + 12 female headers ($2.59 ebay)

-18 pin DIP IC socket ($0.99 10pcs ebay)

-Controller and cube circuit boards (make them yourself)

-16v 100uF electrolytic capacitor (recycled from old boards)

-100nF ceramic capacitor (recycled from old boards)

-Plug and small heatsink (recycled from old boards)

Step 2: The Controller

First, make the controller board (instructions here), drill the holes and tin the pads carefully.
Place all the components as shown in the picture and solder them in place.

Step 3: The Cube

Mark a 3x3 1 inch grid in a corck and hole the places for the LEDs, this will keep them aligned while you bend and solder the leads.
Place them diagonally so the leads won't touch, solder the cathodes to one side and then bend the anodes above the cathodes. Solder the anodes 90º away from the cathodes.

Repeat the process to make two more grids and place them on each other making anodes and cathodes be in the same side.
Bend the 9 protuding cathodes down and solder them in 3 columns.

I've bent the 9 anodes so they came arranged in three groups of three, you can simply solder a ribbon cable, but it won't hold the cube up as a structure.

Use the pictures to guide you.

Step 4: The Base

To plug the cube in the controller i made a base board.
It's useful for unplugging the whole cube from the controller board so you can access to the microcontroller and stract it for re-programming.

Use the circuit stencil to make your own board.

If you prepared you cube like mine, you have to solder the heathers, insert the cube in the PCB holes and solder it from upside.

Make sure the cube module fits in the controller board.

Step 5: Programming

Time to program the microcontroller!

Open your favourite programming program,
plug your PIC into the programmer,
choose the file ''LED cube HEX'' and upload it,
configure the right fuses
and program your microcontroller.

More programs can be made for different light patterns, but i don't know how to do easily.
If you know how to do it, how make your own patterns, please, tell me.

Step 6: Final Details

As finishing details i added four PCB mounting bolts to make it stand on them, that will avoid short-circuits if the cube is placed on a metal surface.
You'll also need to connect the cube to a power supply so solder a plug cable in the input pads.

I noticed that the lm7805 i trimmed off was overheating when i use a 12v power supply due to the input and output voltage difference.
It couldn't sink all that heat with the small surface i let, so i cutted a small piece of aluminium heatsink and i thermally-glued it to the voltage regulator.

Step 7: Enjoy It


The cube is finished and working, it looks great and does not overheat at all.
There may be bigger, more coloured and brighter cubes, but i'm proud of how my first LED cube looks and works.

I hope you enjoyed that instructable and even made your own cube.

IF you liked this project, please vote it for the make it glow and microcontroller contests

And don't forget to ask your doubts!

<p>pls mail hex file, schematic and if possible pcb layout pdf to <a href="mailto:amitbandekar78@gmail.com" rel="nofollow">amitbandekar78@gmail.com</a> thank you</p>
<p>I made it! Very good instructable, except I think your cathodes and anodes are mixed up, my animation looks more correct when I turn it on:</p><p>https://youtu.be/llCNM3N2xgE</p>
Very cool!
<p>Hey this is great! Can you send me the,schematic the source codes and hex to my email? hama.lama1997@gmail.com</p><p>Thanks!</p>
<p>Bonjour Est-il possible de travail LED sous la forme de lettres (A , B , N , M ...... ) s'il vous pla&icirc;t envoyer</p>
<p>Hi I little speak English</p><p> please send to good circuit, schematic,program </p><p>janekd69@gmail.com</p>
<p>good</p>
<p> send to davidotaku1@gmail.com pls</p>
<p>send to ivanctr8@gmail.com pls</p>
<p>hy send me .lay file my email: kriszrap@gmail.com</p><p>big thx</p>
<p>or eagle file :)</p>
<p>I made the circuit using photoshop, all i got is the image file. Sorry.</p>
<p>Hello, about the circuit for this proj, I noticed a difference in your schematic and the control board you made. I assume that the resistors are in order and in your schematic R5 is connected to PIN10 but in the control board as shown in the photo R5 is connected to PIN11 and R6 in PIN 10. Are your R5 and R6 interchanged in the board? thanks :D</p>
<p>You're probably right, i designed the PCB with photoshop long before i started using eagle, it's pretty easy that i made a mistake designing the PCB manually.</p>
But it works this way right(the one in your pcb design)? If so i should connect R5 to pin11 and R6 to pin10 right? or should i follow the schematic?
<p>You should follow the schematic. In my cube, a row of LEDs apears to not light up, so it's probably because of the PCB and not the program</p>
<p>Thank you, thank you so much! I'll make sure to post what I did once I've finished :D</p>
<p>also, would I need a heat sink if I'm only using a 9volt source? :D</p>
<p>I'm using a 7v supply and the little heatsink only warms up, but it doesn't feel that hot.</p><p>For 9v, you could use a heatsink a little larger or improve airflow.</p>
<p>Hi, very good instructions, I did it in the protoboard but the first row of LED lights not.(this is a wire mess, but then I&acute;ll pass to the final plate hahaha). So, do you have the code in C language ? Or do you know what is the problem? Thanks </p>
<p>I picked the code from a webpage a long time ago, it was just a Hex file and they didn't provide an asm file. If you don't like the animation or want to change it, you'll have to make a new progam.</p>
<p>I loved the animation , however when I turn on, the first row of LED lights not. Do you have any idea of what can be ?</p>
<p>Check if you have a signal output in the right row pin at the PIC. If you have something, you've connected something wrong. If there's no signal, probably the code was made they way.</p>
<p>hi very nice instructions but it is possible to run this program using superBRIGHT LIGHTS LED ?? TIA :)</p>
If you want to use LEDs that consume more than 10mA, You need to put a transistor buffer in each output of the microcontroller.
What is a 16v 100uf
<p>It's an electrolytic capcitor rated for a maximun voltage of 16v and a capacity od 100 micro farads.</p>
What plug do I need and hot sink
100nf and
<p>I made it but I have to join the 10K resistor connects together with Pin4-MCRL and +5V supply.</p>
<p>Use the I made it! button and ad some photos!</p>
Hey, What is programmer called that you pluged the microcontroller into?
Is the PIC K150
If I run this on 5V off of a USB port do I still need a 7805 regulator?
If you use a 5v power supply you won't need the 7805, you can solder the wires to the capacitor traces.
One of your best instructables so far! Keep amazing us with your projects!
very very nice :)
Great step by step Instructable! And I love your assembly line :-)

About This Instructable

39,101views

127favorites

License:

Bio: I love electronics and all about DIY.
More by pinomelean:IN-12 nixie clock Li-ion battery charging Mini line tracer 
Add instructable to: