Picture of PIC 3x3x3 LED cube

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)
KrisztiánT2 months ago

hy send me .lay file my email: kriszrap@gmail.com

big thx

or eagle file :)

pinomelean (author)  KrisztiánT2 months ago

I made the circuit using photoshop, all i got is the image file. Sorry.

EuniceSaldi3 months ago

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

pinomelean (author)  EuniceSaldi3 months ago

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.

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?
pinomelean (author)  EuniceSaldi3 months ago

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

Thank you, thank you so much! I'll make sure to post what I did once I've finished :D

also, would I need a heat sink if I'm only using a 9volt source? :D

pinomelean (author)  EuniceSaldi3 months ago

I'm using a 7v supply and the little heatsink only warms up, but it doesn't feel that hot.

For 9v, you could use a heatsink a little larger or improve airflow.

Hambito made it!4 months ago

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´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

pinomelean (author)  Hambito4 months ago

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.

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 ?

pinomelean (author)  Hambito4 months ago

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.

mhack.camano5 months ago

hi very nice instructions but it is possible to run this program using superBRIGHT LIGHTS LED ?? TIA :)

pinomelean (author)  mhack.camano5 months ago
If you want to use LEDs that consume more than 10mA, You need to put a transistor buffer in each output of the microcontroller.
CK1018 months ago
What is a 16v 100uf
pinomelean (author)  CK1018 months ago

It's an electrolytic capcitor rated for a maximun voltage of 16v and a capacity od 100 micro farads.

CK1018 months ago
What plug do I need and hot sink
CK1018 months ago
100nf and
soemoe1 year ago

I made it but I have to join the 10K resistor connects together with Pin4-MCRL and +5V supply.

pinomelean (author)  soemoe1 year ago

Use the I made it! button and ad some photos!

asimobot1 year ago
Hey, What is programmer called that you pluged the microcontroller into?
pinomelean (author)  asimobot1 year ago
Is the PIC K150
If I run this on 5V off of a USB port do I still need a 7805 regulator?
pinomelean (author)  I_build_cool_stuff1 year ago
If you use a 5v power supply you won't need the 7805, you can solder the wires to the capacitor traces.
Ini Cepero1 year ago
One of your best instructables so far! Keep amazing us with your projects!
pedramd71 year ago
very very nice :)
Great step by step Instructable! And I love your assembly line :-)