Picture of LED Cube 3x3x3 with ATMEGA8
An interesting project and already much discussed in the forums and also in videos.
Although it appears complex,it is a simple idea and fun very purpose.

Mounting material:

- 27 LEDs matte
- Microprocessor ATmega8
- Electrolytic capacitor 47UF 16V
- Veroboard
- Small wood board at the minimum 10x10cm
- 50 cm wire tinned

(excuse me, I'm portuguese and my english is not very famous :p)   

Step 1: Theory of operation of the array of LEDs

Picture of Theory of operation of the array of LEDs
The array of LEDs is comprised of 3x9, where three levels are horizontal, and 9 are the vertical rows.
Each LED is turned on a level with a common cathode and each vertical line is connected with a common anode.
So if we want to illuminate a particular LED, just put the level of the 0V line and gave a positive voltage.

To be able to generate an effect of several LEDs on, they have to be powered by multiplexing, a relatively high speed does not seem to be blinking and have a softer light.

As the ATmega8 supports connection of LEDs directly to its pins with a good current, there is no need to put limitation resistors or  transistors driver.


heyyy can you send me the schematics , the hex file and the board diagram in my email because i have to make a project Email-kanishk.kanishk.gupta@gmail.com

thank you very much

valexa1 year ago

I woud like to have the hex file for 3x3x3 cube led with atmega8.How much does it cost?What is the method of payment for the acquisition of the hex file?

Thank you!

G7Electronica.NET (author)  valexa6 months ago

sorry the delay..

you can buy the atmega with the code here:


thank you for your share. i will try to make led cube based you shared.

matur suwun kang mas.

valexa1 year ago

I have 10 years old and please send the program hex.Thank you!

himansh1 year ago

can you give me hex for this only?

Is here any program for ATmega8 like showed here: http://www.instructables.com/id/3x3x3-LED-Cube/?ALLSTEPS

JenangKa2 years ago
cool, but with more IO ports, this project become awesome, thanks for the tutorial
BIGDOG19712 years ago
Very nice.. cool!
Great Job.
Could you share your code effects with me, please?

azharz3 years ago
Very nice project I loved it
can u plz send the code fo the program?
domdomgin4 years ago
please can you send me a hex file and schematics as i have a project..my email id is domdomgin@yahoo.com..thanks/..
G7Electronica.NET (author)  domdomgin4 years ago
Sorry, but we can not provide the HEX file because it is a prototype, the final version is only available for sale.
A lot of work to develop this project and we can only "give" this micro programmed, if you're interested.
ok how do i purchase
zgr95 domdomgin4 years ago
dont bother buying it theres other instructables giving out the code
where do i buy the programmed ic from
Hugu domdomgin4 years ago
spata4 years ago
this project is very hard. please give another preoject without programming or giving any thing.
Hi! G7Electronica.NET
How you programm ground for layers?
domdomgin4 years ago
can anyone give me the hex file as i need it very urgent for my project..Please help..My email add is domdomgin@yahoo.com
cllzzrd4 years ago
How large are the holes that you drilled in the board? I know they are LED sized, but how wide is that? I would like to know so my LED's dont slide around in the hole when i am trying to solder them.
G7Electronica.NET (author)  cllzzrd4 years ago
I usually make the holes for component leads to 0.8mm in diameter, despite being a Veroboard this assembly, the default is always the same and 0.6mm might be too small.
Spydamonky4 years ago
You should combine this with this: http://www.instructables.com/id/DIY-3D-Controller/.

and play O's and X's with 2 color led's!! would be very nice
G7Electronica.NET (author) 4 years ago
I spent several weeks making a visual basic program to simulate the effects before sending to the firmware, the code was all done in pure AVR and has 800 lines.
Indippy4 years ago
Very nice!!! Well done!!!!! ;-))
G7Electronica.NET (author)  Indippy4 years ago
Obrigado! ;)
forte19944 years ago
You know i already did an instructable on a 4x4x4 cube already in this contest.
not fair...
G7Electronica.NET (author)  forte19944 years ago
And I did a 3x3x3 cube with 50 effects...
Sorry if you think it is unfair!..Where is your fairplay?!.. ?:/
Dropes4 years ago
Good description of the manufacture.
I've been watching the video and is amazing, never seen so many effects together in a cube of leds and with so few components

Good job, 5 stars
G7Electronica.NET (author) 4 years ago
At a level where the cathode of the LEDs have to be all together, bend these terminals to connect to an LED near, as there are only 9 LEDs per level, you can not make connections so that it is uniform. In the 1st photo you can see there are 12 horizontal links, not all are the terminals of the LEDs, but wires.
cllzzrd4 years ago
Wow! I really want to make one of these!

Can you explain what you meant when you said this?
"As the terminals of the LEDs are not sufficient to make the 12 connections, you can use one wire tinned in order to be more esthetic final result."
Hugu4 years ago
Very cool project! One of the best Led cube 3x3x3 I've seen out there!

Your video is magnificent and the effects are many and beautiful! :)