Instructables
loading
loading
Picture of PIC 3x3x3 LED cube
PA220937.JPG
0.gif
PA210936.JPG
PA210935.JPG


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!
 
 
 
Remove these adsRemove these ads by Signing Up

Step 1: Materials

Picture of Materials
P5110048.jpg
P4030375.jpg
P5110040.jpg
PA210924.JPG
PA210933.JPG
P4030364.jpg
P5110039.jpg
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

Picture of The controller
3x3x3 LED cube copia copia.jpg
P4030377.jpg
3x3x3 LED cube copia pcb.jpg
P4030380.jpg
P4030379.jpg
P5080010.jpg
Captura3 copia.jpg
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

Picture of The cube
P5080012.jpg
P5080016.jpg
P5080017.jpg
P5080022.jpg
P5080023.jpg
P5080024.jpg
P5080025.jpg
P5080026.jpg
P5100028.jpg
P5100030.jpg
P5100031.jpg
P5100032.jpg
P5100033.jpg
P5100034.jpg
P5100035.jpg
P5100036.jpg
P5100037.jpg
P5100038.jpg
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.
Hambito made it!4 days 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

IMG_20150420_194414_1.jpg
pinomelean (author)  Hambito3 days 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)  Hambito3 days 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.

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

pinomelean (author)  mhack.camano28 days 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.
CK1014 months ago
What is a 16v 100uf
pinomelean (author)  CK1014 months ago

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

CK1014 months ago
What plug do I need and hot sink
CK1014 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 :-)