3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

LED Cube 8x8x8

Step 47Test the cube

Test the cube
The test code you programmed in the previous step will let you confirm that everything is wired up correctly.

It will start by drawing a plane along one axis, then moving it along all 8 positions of that axis. (by plane we mean a flat surface, not an airplane :p) The test code will traverse a plane through all three axis.

After that, it will light the LEDs in a layer one by one, starting at the bottom layer.

If any of the layers or columns seem to light up in the wrong order, you have probably soldered the wrong wire to the wrong layer or column. We had one mistake in our cube ;)

If you find anything that is out of order, just de-solder the wires and solder them back in the right order. You could of course make a workaround in software, but that would eat CPU cycles every time the interrupt routine runs.

You can compare your cube to the test video below:


« Previous StepDownload PDFView All StepsNext Step »
5 comments
Dec 27, 2011. 11:22 AMpkrouse says:
I got mine to this point and had the debug lights flash with no other output, just like brucesallen and tarpancake. Pushing the reset button did no good. How-EV-er, pushing the rs232 button started the whole sequence off just as stated. I don't know if that was the button that brucesallen was talking about, but YAY! I have 2 columns that won't light, so the debug has done its job. So many hours of work, finally paying off!
Oct 4, 2011. 11:10 PMtarPancake says:
I got the pcb from Croy9000, and used all the components on his parts list. but the cube will not light up. when i send the test code to the chip, everything looks fine as seen here...

 C:\>avrdude -c usbtiny -p m32 -B 1 -U flash:w:test.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.03s
avrdude: Device signature = 0x1e9502
avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip
avrdude: reading input file "test.hex"
avrdude: input file test.hex auto detected as Intel Hex
avrdude: writing flash (5426 bytes):
Writing | ################################################## | 100% 1.31s
avrdude: 5426 bytes of flash written
avrdude: verifying flash memory against test.hex:
avrdude: load data flash data from input file test.hex:
avrdude: input file test.hex auto detected as Intel Hex
avrdude: input file test.hex contains 5426 bytes
avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 0.94s
avrdude: verifying ...
avrdude: 5426 bytes of flash verified
avrdude: safemode: Fuses OK
avrdude done.  Thank you.
C:\>



the debug lights on the pcb flash, and the power led comes on too, but none of the cube led's come on at all. does anyone have any ideas on how to troubleshoot this. thank you in advance.
Nov 17, 2011. 7:53 AMbrucesallen says:
I also have the same result. Both debug leds blinking. Oscilloscope shows that no other atmega outputs ar on. This Test.hex must not be as advertised.
Help?
Nov 17, 2011. 10:23 AMbrucesallen says:
Whoa! I unplugged the usbtiny programmer then pressed the button AND THE WHOLE THING WORKED! Cube runs through all the programs! I am using pcbs from ROel Mulder.
May 23, 2011. 5:05 PMpglica says:
i make this project, i maked all untill this step, i programed uC with test.hex , and i have question does uC should start with program after programming ? what currents should have on portA 0-7 and portB 0-3 ?

Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
651
Followers
7
Author:chr
I like microcontrollers and LEDs :D