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 33Build the controller: Power terminal and filtering capacitors

Build the controller: Power terminal and filtering capacitors
«
  • IMG_1514.JPG
  • IMG_1516.JPG
  • IMG_6097.JPG
The cube is complete, now all that remains is a monster circuit to control the thing.

Let's start with the easiest part, the "power supply".

The power supply consists of a screw terminal where you connect the GND and VCC wires, some filtering capacitors, a switch and a an LED to indicate power on.

Initially, we had designed an on-board power supply using an LM7805 step down voltage regulator. However, this turned out to be a big fail.

We used this with a 12V wall wart. But as you may already know, most wall warts output higher voltages than the ones specified on the label. Ours outputted something like 14 volts. The LM7805 isn't a very sophisticated voltage regulator, it just uses resistance to step down the voltage. To get 5 volts output from 14 volts input means that the LM7805 has to drop 9 volts. The excess energy is dispersed as heat. Even with the heat sink that you see in the picture, it became very very hot. Way to hot to touch! In addition to that, the performance wasn't great either. It wasn't able to supply the necessary current to run the cube at full brightness.

The LM7805 was later removed, and a wire was soldered between the input and output pins. Instead we used an external 5V power source, as covered in a previous step.

Why so many capacitors?

The LED cube is going to be switching about 500mA on and off several hundred times per second. The moment the 500mA load is switched on, the voltage is going to drop across the entire circuit. Many things contribute to this. Resistance in the wires leading to the power supply, slowness in the power supply to compensate for the increase in load, and probably some other things that we didn't know about ;)

By adding capacitors, you create a buffer between the circuit and the power supply. When the 500mA load is switched on, the required current can be drawn from the capacitors during the time it takes the power supply to compensate for the increase in load.

Large capacitors can supply larger currents for longer periods of time, whereas smaller capacitors can supply small but quick bursts of energy.

We placed a 1000uF capacitor just after the main power switch. This works as our main power buffer. After that, there is a 100uF capacitor. It is common practice to have a large capacitor at the input pin of an LM7805 and a smaller capacitor at it's output pin. The 100uF capacitor probably isn't necessary, but we think capacitors make your circuit look cooler!

The LED is connected to VCC just after the main power switch, via a resistor.
« Previous StepDownload PDFView All StepsNext Step »
9 comments
Jul 31, 2011. 12:06 PMmnpumar says:
Where is the circuit diagram for this? I'm a little lost...
Aug 12, 2011. 1:05 PMTechNotes says:
May 15, 2011. 12:53 PMcmutzel says:
I have built a cube very similar to this but modified the design in some ways. One major difference is that I am using an arduino for ease of implimentation. I am now trying to make it a stand-alone unit but am wondering about the best options for power supplies.

In each LED I am running about 30ma. So at any point if the whole cube is "on", I will be using 30ma x 64 leds (one horizontal plane) ~2 amps at a minimum, plus the power for all other electronics. As you noted about, a 7805 is out of the question. They cannot reasonably provide more than .5 amps ...http://www.national.com/mpf/LM/LM78M05.html#Overview. Are there cheap regulated voltage supplies at 5v and roughly 3 amps?

Until now I have been using a 5v 3amp power supply in my lab but it is much to beafy for my project since it includes other options as well.

Any help would be appreciated.
May 20, 2011. 2:23 AMmartyvonx says:
I built an LED cube and recently got it to all fit on one board and use a standard wall power supply. Just buy one like this: http://www.allelectronics.com/make-a-store/item/PS-541/5-VDC-4A-SWITCHING-POWER-SUPPLY/1.html, find one on eBay or from some piece of equipment you don't use anymore. Put some electrolytic capacitors in parallel with the switching power supply and you're good to go. Just make sure you get a regulated switching supply and not an old fashioned transformer brick- those probably won't give you a reliable constant voltage.
May 24, 2011. 6:18 AMAnEcho says:
ok so i have planned out everything ( built the led matrix rest is waiting for me to print the pcb ) and was wondering if a computer psu would work. It has 5v pins and is newish ( bought it a year ago ) also if it is usable do i need to add the capacitors ? since it is meant to supply a lot of power i dont know if i will need them.
May 24, 2011. 1:01 PMmartyvonx says:
Yeah, a computer PSU would definitely have enough power, and you wouldn't need capacitors. I just went with the wall supply to avoid the extra bulk.
May 24, 2011. 1:09 PMAnEcho says:
one more question. For the flip flops what is the OE ( with a line over it ) ? i got 771-74HC574D-T
datasheet here:
http://pdf1.alldatasheet.com/datasheet-pdf/view/27940/TI/SN74HC574DBR.html
2-9 are inputs while 10 is gnd 11 is vcc 12-19 are outputs and 20 goes to the demultiplexor. Thats what i have setup is it right? because i cant figure out what the OE thing is.
May 26, 2011. 10:59 PMmartyvonx says:
OE is output enable. The line over it means it means 'active low', meaning that that pin must be held low for the outputs to be enabled. So you probably want to hardwire that to ground. I didn't use the latches and decoder for my cube, I used 74HC595 shift registers. But looking at the datasheet, pin 20 is VCC, and pin 11 is the CP pin that latches the input to the output. So it seems you would connect pin 11 to an output of your decoder chip so you can switch which latch you're activating. BTW I'm referencing this datasheet: http://www.datasheetcatalog.com/datasheets_pdf/7/4/H/C/74HC574D.shtml, since I couldn't open your link. If you haven't bought parts yet, I would go with the 595 shift registers, and IRF110 transistors. Using 595s requires only 3 output lines from the microcontroller, and the IRF110s can handle all the current for a layer so you don't need two per.
May 5, 2011. 8:35 AMnavyaj says:
what is the resister size for the status led 210k or 240ohm i cant see all the colors?
Apr 14, 2011. 4:30 PMhatschel says:
a few more pictures of the layout and the solder would be better, especially for beginners
Jan 7, 2011. 1:48 PMHelder4u says:
It may be overkill:
- But if stuck, here follows a cheap and usually effective way to enhance stability in hard-working power supplies. :)

As I remember - with higher frequency (as in this switching square wave) it is also appropriate to use up to four different capacitors in parallel.

This helps stabilizing the power rail at different phases in the switch, easing the supply and helping to deliver fast stable current within a square wave.

You should use different types like a big electrolyte, a medium Tantalus, a small polycarbonate and a smaller ceramic one for best performance - all coupled in parallel between +5 an 0 Volts.

Size differences should be between 3 - to 1000 times per step/type of capacitor typically a factor 100 depending of what You have at home or find - this is not critical.

God luck - with Your great project!



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