






Учись благодаря многочисленным ресурсам, которые есть на Docsity
Заработай баллы, помогая другим студентам, или приобретай их по тарифом Премиум
Эта страница недоступна для предварительного просмотра
Не пропусти важные части!







LED Cube Kit Includes:
Qty. Part Description Mfr. Part No. 1 Prototyping Board PCB- 1 Atmel AVR Atmega16 Microcontroller ATMEGA16-16PU 64 Blue Diffused 3mm LEDs UT63B1-41-URC 18 220 Ω Resistors CF1/4W221JRC 1 Red LED UT1871-81-M1-R 1 Green LED LG 1 10kΩ Resistor CF1/4W103JRC 4 2.2kΩ Resistor CF1/4W222JRC 4 BC337 Transistor BC 3 0.1μF Capacitor SR215C104KAA-VP 2 22pF Capacitor DC 1 14.7456MHz Crystal TQR49U14M7456A 2 SPST Buttons KRS-1273B-R 1 40-Pin IC Socket 6000-40DW-R 1 10-Pin Header 7110-10SG-R 1 ISP Programmer 46. 1 USB Cable 10U2-02206-BK 1 Hook-Up Wire 9313-LB 1 Coin Cell Battery CR
LED cubes rely on an optical phenomenon called persistence of vision or POV. If you flash an LED really fast, the image stays on your retina for a little while after the LED turns off. By flashing each layer of the cube one after another really fast, it gives the illusion of a 3D image, this is also called multiplexing.
The LED cube is made up of columns and layers. Each of the 16 (anode) columns and the four (cathode) layers are connected to the controller board with a separate wire and can be controlled individually.
Anode (red) and cathode (blue) layers.
You will need a lot of time to solder together 64 LEDs.
Soldering grids of 4x4 LEDs freehand would look terrible. To get even-looking 4x4 LED grids, we'll use a template to hold them in place. Also, to minimize adding or cutting wire, we'll use the LED legs to connect the LEDs together.
Cube template (the easy way): Find a piece of pegboard that already has a 4x4 grid pre- drilled with 1" spacing between holes. Double fold a piece of aluminum foil over the board and tape it down. The foil will hold the LEDs in place and protect the board while soldering. Use one LED to punch an LED-sized hole through the foil for each hole.
Cube template (the not as easy way): Find a piece of wood large enough to make a 1" 4x4 grid (leave a little extra room). Draw up a 4x4 grid of lines with a spacing of 1". Make dents at the intersect points with a center punch. Drill 16 holes small enough so that the LED will stay firmly in place and big enough so that the LED can easily be pulled out (without bending the wires).
Place your LEDs in the template to be sure they are properly spaced.
Pegboard/Foil Template
Wood Template
For obvious reasons, it is vital to have functioning LEDs. I found out the hard way that it's much easier to test the individual LEDs before you solder them together. Sticking an iron to desolder a damaged LED in the middle of your cube is as tough as it sounds. Take the time to test them.
You can hook the LEDs up to a 3 volt power supply and briefly powering on, use an LED Tester, or simply use a coin cell battery. Hold the coin cell between the legs of the LED and then squeeze the legs. You don't need a resistor since the coin cell runs at 3V and you are only touching it for couple seconds.
Leave the corner leg – you'll use it later.
Assembled Layers
Take your time while building the layers. The quality and look of your final cube depends on the layers be built neatly and evenly.
Select your best layer piece and put it back in the template. This will be the top layer.
It can get tricky holding one layer above the other while soldering. You can use a third hand or I used a 9V battery, which is the perfect size to help create the correct spacing.
Warning: Tape over the battery poles to avoid accidentally overloading the LEDs while soldering.
Carefully align the layers and solder the corner LEDs. Next, solder all the LEDs around the edge of the cube, moving the 9V batteries along as you go around ensuring that the layers are soldered in parallel. Then move a 9V battery to the middle of the cube, sliding it in from one of the sides, and solder a couple of the LEDs in the middle.
Your cube should be fairly stable now, so you can continue soldering the rest of the LEDs without using any extra support. When you have soldered all the columns, it is time to test the LEDs again. Remember that tab sticking out from the upper right corner of the layer? Now it's time to use it to test your LEDS.
I used my own benchtop power supply but feel free to use other 3V sources for testing. I recommend fixing two wires on a 3V battery with tape and using that to test. Touch the negative wire to the layer you want to test and touch the positive wire to the column you want to test. You should see an individual LED light up. Continue touching each column in each layer to be sure they are all functioning.
Testing the LEDS
Solder and test the remaining layers. Congratulations, you're half way there!
The circuit controlling the LED cube is shown in the schematic image below. I modified the original schematic to reduce clutter and confusion. Take the time to read and fully understand this schematic. I found the construction of the controller to be the most time consuming and trickiest part of the project.
shows a trick for soldering when wires become messy.
To reduce your chances of error, use different colored wire and keep your layout compact, on one side of the board and neat. Use flux when soldering.
Layout the board compactly and neatly.
Time to wire up the cube. Carefully fit the cube onto the board and solder the corners, followed by the edges and then center.
A neat board layout minimizes messy wiring.
Next, we'll make a ground connection for each layer. This can be done by making wire hook connections to each layer as shown in the pictures below (use the same hookup wire but strip the plastic coating off and straighten the wire).
L-R: Close-up ground connections and all together.
After the cathodes have been connected to ground, the anodes need to be connected to the ATmega16. The picture below shows how to connect the 16 resistors and 16 anodes in the right order.
Pin Connection Diagram for LED Cube
You now have an LED cube. To make use of its coolness, it needs a program! I have attached a driver for rendering a 3D data space on the cube and functions to display some cool visual effects on the cube. You can use my code, write your own or build on the code to create endless effects.
To compile the program, open a command prompt, enter the directory with the source code
LED Cube 4x4x4 in Action