+ All Categories
Home > Documents > Build a Programmable LED Cube

Build a Programmable LED Cube

Date post: 05-Oct-2015
Category:
Upload: amitsahoo13-1
View: 219 times
Download: 0 times
Share this document with a friend
Description:
fest
8
 10/16/ 13 Bui l d a Programmabl e LED Cube w w w. j ameco.com/Jameco/w ork shop/ JamecoBui l ds/ 4x 4x 4l edcube. html 1/ 8 DIY LED Cube 4x4x4 Am azing 3D display with endless possibil ities By Ari Dubinsky and Brad Eckert Product Marketin g Ass istants Description:  Build an amazing 3D LED display Difficulty:  Intermediate-Advanced Time Required: 6 hours Knowl edge Required: Basic electronics and soldering skills, AVR microcontroller programming skills. 64 LEDs makes up this 4x4x4 cube, controlled by an Atmel  Atmega16 microcontroller. Each LED can be addressed individually in the software, enabling it to display amazing 3D animations!  Ari's Amazing 3D LED Display LED Cube Kit  (P/N 2146329) Kit includes:  (1) Prototyping Board PN 206594 (1) Atmel AVR At mega 16 Microcontroller- 323133  (64) Blue Diffused 3mm LEDs PN 333383 (18) 220 Ohm Resistors PN 690700 (1) Red LED PN 333973 (1) Green LED PN 34761 (1) 10k Ohm Resistor PN 691104 (4) 2.2k Ohm Resistor PN 690945 (4) BC337 Transistors PN 254810 (3) 0.1uF Capacitor PN 544921  (2) 22pF Capacitor PN 15405 (1) 14.7456MHz Crystal PN 324187 (2)  SPST Buttons PN 155380 (1) 40 Pin IC Socket PN 112311 (1) 10 Pin Header PN 67812 (1) ISP Programmer PN 2136788 (1) USB Cable PN 222010 (1) Hookup Wire PN 2152884 (1) Coin Cell Battery PN 2123784 Optional Material s :  (1) 10uF Capacitor PN 29891 (1) 1000uF Capacitor PN 330722  (1) 7805T Transistor- 51262 (1) Battery Clip PN 11280 (1) 9V Battery PN 198731 Tools list:  Wire Cutters PN 35482 Pliers PN 177608 63/37 Solder PN 151474 Solder Flux PN 2094258 Solder Wick PN 41082 25W S oldering Iro n PN 129040 Soldering Stand PN 36329 Sponge PN 134631 LED Tester PN 355805 Used to build optional circuit that will supply 5V of power with an 9V source. 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 4 (cathode) layers are connected to the controller board with a separate wire, and can be controlled individually.  Anode (red) & cathode (blue) layers Step 1 - Pick a good time You will need a lot of time to solder together 64 LEDs. Step 2 - Build your LED layers Shop by Product Category Batteries Computer Products Educat ion & Hobby Electromechanical Elect ronic Desi gn Fans & Cooling ICs & Semiconductors Interconnects LCD Products Opt o & Illumination Passive Component s Power Supplies & Wall  Adapters Robotics Security Products Test, T ools & Supplies Wire & Cable  SEARCH  Advanced Search Log i n | Shoppi ng car t | Customer Care 1-800-831-4242 Product Search:  HOME  PRODUCTS  ORDERING  CATALOG  WORKSHOP ABOUT US
Transcript
  • 10/16/13 Build a Programmable LED Cube

    www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.html 1/8

    DIY LED Cube 4x4x4

    Amazing 3D display with endless possibilities

    By Ari Dubinsky and Brad Eckert Product Marketing Assistants

    Description: Build an amazing 3D LED display Difficulty: Intermediate-Advanced Time Required: 6 hours

    Knowledge Required: Basic electronics and solderingskills, AVR microcontroller programming skills.

    64 LEDs makes up this 4x4x4 cube, controlled by an AtmelAtmega16 microcontroller. Each LED can be addressedindividually in the software, enabling it to display amazing 3Danimations!

    Ari's Amazing 3D LED Display

    LED Cube Kit (P/N 2146329) Kit includes:

    (1) Prototyping Board PN 206594 (1) Atmel AVR Atmega 16 Microcontroller- 323133 (64) Blue Diffused 3mm LEDs PN 333383 (18) 220 Ohm Resistors PN 690700 (1) Red LED PN 333973 (1) Green LED PN 34761 (1) 10k Ohm Resistor PN 691104 (4) 2.2k Ohm Resistor PN 690945 (4) BC337 Transistors PN 254810 (3) 0.1uF Capacitor PN 544921 (2) 22pF Capacitor PN 15405 (1) 14.7456MHz Crystal PN 324187 (2) SPST Buttons PN 155380 (1) 40 Pin IC Socket PN 112311 (1) 10 Pin Header PN 67812 (1) ISP Programmer PN 2136788 (1) USB Cable PN 222010 (1) Hookup Wire PN 2152884 (1) Coin Cell Battery PN 2123784

    Optional Materials:

    (1) 10uF Capacitor PN 29891 (1) 1000uF Capacitor PN 330722 (1) 7805T Transistor- 51262 (1) Battery Clip PN 11280 (1) 9V Battery PN 198731

    Tools list: Wire Cutters PN 35482 Pliers PN 177608 63/37 Solder PN 151474 Solder Flux PN 2094258 Solder Wick PN 41082 25W Soldering Iron PN 129040 Soldering Stand PN 36329 Sponge PN 134631 LED Tester PN 355805

    Used to build optional circuit that willsupply 5V of power with an 9V source.

    LED cubes rely on an optical phenomenon called persistence of vision or POV. If you flash an LED really fast, the image stays onyour retina for a little while after the LED turns off. By flashing each layer of the cube one after another really fast, it gives theillusion 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 4 (cathode) layers are connected tothe controller board with a separate wire, and can be controlled individually.

    Anode (red) & cathode (blue) layers

    Step 1 - Pick a good time You will need a lot of time to solder together 64 LEDs.

    Step 2 - Build your LED layers

    Shop by Product Category

    Batteries

    Computer Products

    Education & Hobby

    Electromechanical

    Electronic Design

    Fans & Cooling

    ICs & Semiconductors

    Interconnects

    LCD Products

    Opto & Illumination

    Passive Components

    Power Supplies & Wall

    Adapters

    Robotics

    Security Products

    Test, Tools & Supplies

    Wire & Cable

    SEARCH

    Advanced Search

    Log in | Shopping cart |

    Customer Care1-800-831-4242

    Product Search:

    HOME PRODUCTS ORDERING CATALOG WORKSHOP ABOUT US

    http://www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.htmlhttp://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_2146329_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_206594_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_323133_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_333383_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_690700_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_333973_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_34761_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_691104_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_690945_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_254810_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_544921_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_15405_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_324187_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_155380_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_112311_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_67812_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_2136788_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_222010_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_2152884_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_2123784_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_29891_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_330722_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_51262_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_11280_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_198731_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_35482_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_177608_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_151474_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_2094258_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_41082_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_129040_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_36329_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_134631_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_355805_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_323133_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_36768_-1http://www.clubjameco.com/javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Batteries','category', '47', '?attr_value=47&');s.linkTrackVars='prop10';s.prop10='Batteries';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Computer Products','category', '50', '?attr_value=50&');s.linkTrackVars='prop10';s.prop10='Computer Products';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Education & Hobby','category', '70', '?attr_value=70&');s.linkTrackVars='prop10';s.prop10='Education & Hobby';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Electromechanical','category', '35', '?attr_value=35&');s.linkTrackVars='prop10';s.prop10='Electromechanical';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Electronic Design','category', '65', '?attr_value=65&');s.linkTrackVars='prop10';s.prop10='Electronic Design';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Fans & Cooling','category', '37', '?attr_value=37&');s.linkTrackVars='prop10';s.prop10='Fans & Cooling';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'ICs & Semiconductors','category', '10', '?attr_value=10&');s.linkTrackVars='prop10';s.prop10='ICs & Semiconductors';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Interconnects','category', '30', '?attr_value=30&');s.linkTrackVars='prop10';s.prop10='Interconnects';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'LCD Products','category', '40', '?attr_value=40&');s.linkTrackVars='prop10';s.prop10='LCD Products';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Opto & Illumination','category', '15', '?attr_value=15&');s.linkTrackVars='prop10';s.prop10='Opto & Illumination';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Passive Components','category', '20', '?attr_value=20&');s.linkTrackVars='prop10';s.prop10='Passive Components';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Power Supplies & Wall Adapters','category', '45', '?attr_value=45&');s.linkTrackVars='prop10';s.prop10='Power Supplies & Wall Adapters';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Robotics','category', '75', '?attr_value=75&');s.linkTrackVars='prop10';s.prop10='Robotics';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Security Products','category', '55', '?attr_value=55&');s.linkTrackVars='prop10';s.prop10='Security Products';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Test, Tools & Supplies','category', '60', '?attr_value=60&');s.linkTrackVars='prop10';s.prop10='Test, Tools & Supplies';s.tl(true,'o','Left navigation');javascript:performRootSearch('categoryName', 'category_root', 'subCategoryName', 'Wire & Cable','category', '25', '?attr_value=25&');s.linkTrackVars='prop10';s.prop10='Wire & Cable';s.tl(true,'o','Left navigation');http://www.jameco.com/webapp/wcs/stores/servlet/StoreCatalogDisplay?langId=-1&storeId=10001&catalogId=10001javascript:document.freeTextSearchForm.submit();http://www.jameco.com/webapp/wcs/stores/servlet/PageDisplayView?langId=-1&storeId=10001&catalogId=10001&content=advancedSearchhttp://www.jameco.com/webapp/wcs/stores/servlet/LogonForm?langId=-1&storeId=10001&catalogId=10001http://www.jameco.com/webapp/wcs/stores/servlet/OrderItemDisplay?langId=-1&storeId=10001&catalogId=10001&orderId=.http://www.jameco.com/webapp/wcs/stores/servlet/StoreCatalogDisplay?langId=-1&storeId=10001&catalogId=10001http://www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.html#http://www.jameco.com/Jameco/PressRoom/workshop.htmlhttp://www.jameco.com/webapp/wcs/stores/servlet/PageDisplayView?langId=-1&storeId=10001&catalogId=10001&content=about

  • 10/16/13 Build a Programmable LED Cube

    www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.html 2/8

    Soldering grids of 4x4 LEDs freehand would look terrible. To get even-looking 4x4 LED grids, we'll use a template to hold them inplace. Also, to minimize adding or cutting wire, we'll use the LED legs to connect the LEDs together.

    A1. Cube template (the easy way): -Find a piece of pegboard that already has a 4x4 grid pre-drilled with 1 inch spacing betweenholes -Double fold a piece of aluminum foil over the board and tape it down. The foil will hold the LEDs in place and protect theboard while soldering -Use one LED to punch an LED-sized hole through the foil for each hole

    A2. Cube template (the not as easy way): -Find a piece of wood large enough to make a 1inch 4x4 grid (leave a little extra room) -Draw up a 4x4 grid of lines with a spacing of 1 inch. -Make dents at the intersect points with a center punch -Drill 16 holes smallenough so that the LED will stay firmly in place, and big enough so that the LED can easily be pulled out (without bending thewires)

    B. Place your LEDs in the template to be sure they are properly spaced.

    Pegboard/foil template Wood template

    Step 3 - Test each LED For obvious reasons, it is vital to have functioning LEDs. I found out the hard way, it's much easier to test the individual LEDsbefore 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 3volts and you are only touching it for couple seconds.

    Step 4 - Soldering LED layers

    A. To make the cube's four layers of 4x4 LEDs, bend their cathodes (the shorter lead) and solder them together. You get to learnfrom my mistakes. Here are some soldering tips I have learned to follow.

    Soldering iron hygiene. Keep the soldering iron clean. That means wiping it on the sponge every time you use it or wheneveryou see the tip becoming dirty with flux or oxidization, even if you are in the middle of soldering. Having a clean soldering tipmakes it A LOT easier to transfer heat to the soldering target.

    Soldering speed. Get in and out quickly. Apply a tiny amount of solder to the iron tip. Touch the part you want to solder with theside of your iron where you just put a little solder. Let the target heat up for 0.5-1 seconds, and then touch the other side of thetarget you are soldering with the solder. Remove the soldering iron immediately after applying the solder.

    Mistakes and cool down. If you make a mistake, for example if the wires move before the solder hardens or you don't applyenough solder. Do not try again right away. The LED is already very hot, and applying more heat with the soldering iron will onlymake it hotter. Continue with the next LED and let it cool down for a minute, or blow on it to remove some heat.

    B. Create your layer: Place LEDs in template on two outer rows in an "L" shape (see picture below) and solder them together Continue to insert LEDs row by row and soldering them together (going one row at a time leaves you space to solder) until youcomplete the rows Add wire cross bracing in the front where the led rows are not connected (use the same hookup wire but strip the plastic coatingoff and straighten the wire).

    Straighten the upright LED legs Don't remove the tab from upper right LED - you'll use this later

    https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_35482_-1http://www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.htmlhttps://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_333383_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_160282_-1http://www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.htmlhttps://www.jameco.com/webapp/wcs/stores/servlet/JamecoSearch?langId=-1&storeId=10001&catalogId=10001&categoryName=cat_60&subCategoryName=Test%2C%20Tools%20%26%20Supplies%20%2F%20Soldering%20Equipment&category=6020&refine=1&position=1&history=hrky0i2m%7Csuhttps://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_129040_-1http://www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.htmlhttps://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_2123784_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_129040_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_134631_-1https://www.jameco.com/webapp/wcs/stores/servlet/JamecoSearch?langId=-1&storeId=10001&catalogId=10001&categoryName=cat_60&subCategoryName=Test%2C%20Tools%20%26%20Supplies%20%2F%20Soldering%20Equipment&category=6020&refine=1&position=1&history=v5jhv3bx%7Cfrhttps://www.jameco.com/webapp/wcs/stores/servlet/JamecoSearch?langId=-1&storeId=10001&catalogId=10001&freeText=tips&refine=1&history=nxrgy89x|subCategoryName~Test,+Tools+&+Supplies^category~60^categoryName~category_root^prodPage~15^https://www.jameco.com/webapp/wcs/stores/servlet/JamecoSearch?langId=-1&storeId=10001&catalogId=10001&freeText=tips&refine=1&history=nxrgy89x|subCategoryName~Test,+Tools+&+Supplies^category~60^categoryName~category_root^prodPage~15^https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_36768_-1

  • 10/16/13 Build a Programmable LED Cube

    www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.html 3/8

    Leave the corner leg you'll use it later

    Assembled layers

    Step 5 - Solder the layers together

    Take your time while building the layers. The quality and look of your final cube depends on the layers be built neatly and evenly.

    A. 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 theperfect size to help create the correct spacing.

    Warning: Tape over the battery poles to avoid accidentally overloading the LEDs while soldering.

    B. Carefully align the layers and solder the corner LEDs. Next, solder all the LEDs around the edge of the cube, moving the 9Vbatteries along as you go around ensuring that the layers are soldered in parallel. Then move a 9V battery to the middle of thecube, sliding it in from one of the sides and solder a couple of the LEDs in the middle.

    C. 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 rightcorner of the layer? Now it's time to use it to test your LEDS.

    I used my own bench top power supply but feel free to use other 3 volt sources for testing. I recommend fixing two wires on a 3volt battery with tape and using that to test. Touch the negative wire to the layer you want to test and touch the positive wire tothe column you want to test. You should see an individual LED light up. Continue touching each column in each layer to be surethey are all functioning.

    https://www.jameco.com/webapp/wcs/stores/servlet/JamecoSearch?langId=-1&storeId=10001&catalogId=10001&freeText=third%20hand&search_type=jamecoallhttps://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_198731_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_2123784_-1

  • 10/16/13 Build a Programmable LED Cube

    www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.html 4/8

    Testing the LEDS

    D. Solder and test the remaining layers. Congratulations, you're half way there!

    Step 6 - Building your cube's circuit

    The circuit controlling the LED cube is shown in the schematic image below. I modified the original schematic to reduce clutterand confusion. Take the time to read and fully understand this schematic. I found the construction of the controller to be the mosttime consuming and trickiest part of the project.

    Click image to enlarge

    I found it helpful to break this schematic into three parts: Connection, Power, and Miscellaneous.

    Connection: This is how we "link" the brains to the cube. Pins 22-29 and 33-40 are used to connect the 16 anode columns to theATmega16. Pins 18-21 connect to transistors controlling the power to each of the 4 cathode layers. It's important to considerwhich pins go to certain columns and layers, but we will revisit their physical connection in the next step.

    Power: Power should be supplied to the cube by means of "busing". With busing we can connect several terminals to each otherthrough common strips that run along the side of the board. These bus strips come in handy when wanting to supply powerbecause they localize all the power and ground connections to a single point so that you can reduce the number of wires runningunderneath your board. Mark off bus strips with a colored marker to help identify them.

    To power your cube, you can either attach the AVR programmer (jumper ON) to the 10-pin header, or use an external powersource. Using the programmer is really easy; attach the cube to the programmer and connect the programmer to a computer. Ifyour soldering is good and you have the correct drivers installed this little programmer should fully power your cube. Using anexternal power source, (9V battery), your cube is mobile, which requires building an annex to your circuit (found on the bottom leftcorner of the schematic).

    A. Now, let's build your circuit. Lay out all the components on the circuit board to minimize the amount of wires that rununderneath the board. Be sure to orient the transistors, status LEDs, and polarized capacitors correctly. Identify pin 1 on the chipand header, see some orientation tips here. This video shows a trick for soldering when wires become messy.

    B. 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.

    http://www.jameco.com/Jameco/Products/ProdDS/2146329Schematic.pdfhttps://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_323133_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_198731_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_36768_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_254810_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_544921_-1http://www.batsocks.co.uk/readme/isp_headers.htmhttp://www.youtube.com/watch?v=kROaQZOYNIw&feature=player_embeddedhttps://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_19290_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_2094258_-1

  • 10/16/13 Build a Programmable LED Cube

    www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.html 5/8

    Layout the board compactly and neatlyStep 7 - Wiring the board

    A. 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

    B. Next, we'll make a ground connection for each layer. This can be done by making wire hook connections to each layer asshown in the pictures below (use the same hookup wire but strip the plastic coating off and straighten the wire).

    Ground connections: close-up (L) and all together (R)

    C. After the cathodes have been connected to ground the anodes need to be connected to the ATmega16. The picture belowshows how to connect the 16 resistors and 16 anodes in the right order.

    Pin connection diagram for LED cube

    https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_36768_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_323133_-1https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_690700_-1

  • 10/16/13 Build a Programmable LED Cube

    www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.html 6/8

    Step 8 - Code and programming

    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 dataspace on the cube, and functions to display some cool visual effects on the cube. You can use my code, write your own or buildon the code to create endless effects.

    A. To compile the program, open a command prompt, enter the directory with the source code and type "make" on the commandline. You should now have a file named main.hex in the source directory. The next step will show you how to get that code intoyour cube.

    Click the icon to download files

    B. Time to program the microcontroller. First, download the latest version of AVRDUDE, available here.

    Be careful when completing the following this steps.

    If you get it wrong, you can permanently destroy your microcontroller!

    1. First off, let's just see if we can make contact with the AVR. Connect the programmer to your cube and your computer.

    Connect cube programmer to computer

    2. Open a command prompt. Enter the command "avrdude -c usbtiny -p m16", where -c specifies the programmer, and -p theAVR model. You can see the output in the images below.

    3. Now, upload the firmware: "avrdude -c usbtiny -p m16 -U flash:w:main.hex".

    By now, the cube should reboot and start doing stuff. It will be running at 1MHz (very slowly) using its internal oscillator. Some ofthe LEDs won't work because some GPIO ports are used for JTAG by default.

    4. To enable the external oscillator and disable JTAG, we need to program the fuse bytes: Run "avrdude -c usbtiny -p m16 -Ulfuse:w:0xef:m" Run "avrdude -c usbtiny -p m16 -U hfuse:w:0xc9:m".

    After writing the correct fuse bytes, the cube should reboot and start operating at regular speed with all LEDs operational.

    The screen shots below are what you should see if you have entered the commands properly.

    http://savannah.nongnu.org/projects/avrdude/https://www.jameco.com/webapp/wcs/stores/servlet/Product_10001_10001_323133_-1http://www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.htmlhttp://www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4_ledcube.zip

  • 10/16/13 Build a Programmable LED Cube

    www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.html 7/8

    5. Enjoy your new cube!

    Troubleshooting Issues: 1. Check the soldering job. Make sure solder leads don't touch each other. 2. Run a continuity test between each connection using a schematic printout 3. Run a continuity check between ground and power. 4. Make sure polarized components are oriented correctly on the board (e.g. IC, capacitors, and LEDs) 5. Are the header pins soldered correctly? 6. Check for damaged components 8. Does the green light come on when the programmer is connected? 9. The programmer should be supplying 5 volts to the cube with the jumper 'ON'. If not, then use a different power source to test the cube.

    Still need help? Double check the original 4x4x4 LED cube recipe on Instructables here.

  • 10/16/13 Build a Programmable LED Cube

    www.jameco.com/Jameco/workshop/JamecoBuilds/4x4x4ledcube.html 8/8

    HOME SITE MAP ABOUT US CONTACT US PRIVACY POLICY CAREERS FAQ/HELP TERMS & CONDITIONS

    Products by: Title Manufacturer Manufacturer Number Price Category

    Topsellers by: Title Manufacturer Manufacturer Number Price Popularity

    Popular Items by: Popularity Category Recommendations Title All-Around Favorites

    Copyright 2002 - 2013 Jameco. All Rights Reserved.

    For lots more LED cube fun, check out Instructables contributor page "chr" here.

    The options for entertainment and dazzlement are endless your LED cube.

    + You can used bigger LEDs for more brightness (be sure you use the correct value resistor) + Set your lights, uh, sights high, expand up to an 8x8x8 cube (you may need an additional IC or shift-registers) + What can you dream up?

    Find the original LED cube by Chr here?

    Check out a 3x3x3 LED cube build by a Jameco favorite, Joey Hudy here

    This project was assembled by Ari Dubinsky and Brad Eckert. Ari currently attends Cal Poly San Luis Obispo in pursuit of adegree in Electrical Engineering and has teamed up with Jameco to accelerate his learning as well as to lend a helping hand to amajor electronics distributor. His interests include shredding on the guitar, electronics, and music production.

    Brad grew up in Bay Area and now attends MIT. He wants to become an egineer and loves to make things and play with robots.

    Jameco welcomes the contributions of its customers. Frankly, we think what you write is more interesting than anything we couldwrite. Share your electronic component story, project, or challenge, and we'll share it with the world. Send your story [email protected]

    http://www.facebook.com/pages/Jameco-Electronic-Components/72165888915http://plus.google.com/u/0/b/109711866299142333188/109711866299142333188/postshttp://twitter.com/#!/JamecoOnlinehttp://www.jameco.com/webapp/wcs/stores/servlet/StoreCatalogDisplay?langId=-1&storeId=10001&catalogId=10001http://www.jameco.com/webapp/wcs/stores/servlet/PageDisplayView?langId=-1&storeId=10001&catalogId=10001&content=sitemaphttp://www.jameco.com/webapp/wcs/stores/servlet/PageDisplayView?langId=-1&storeId=10001&catalogId=10001&content=abouthttp://www.jameco.com/webapp/wcs/stores/servlet/PageDisplayView?langId=-1&storeId=10001&catalogId=10001&content=contacthttp://www.jameco.com/webapp/wcs/stores/servlet/PageDisplayView?langId=-1&storeId=10001&catalogId=10001&content=privacyhttp://www.jameco.com/webapp/wcs/stores/servlet/PageDisplayView?langId=-1&storeId=10001&catalogId=10001&content=careershttp://www.jameco.com/webapp/wcs/stores/servlet/PageDisplayView?langId=-1&storeId=10001&catalogId=10001&content=helphttp://www.jameco.com/webapp/wcs/stores/servlet/PageDisplayView?langId=-1&storeId=10001&catalogId=10001&content=termhttp://www.jameco.com/1/t1/index1.htmlhttp://www.jameco.com/1/t1/indexb1.htmlhttp://www.jameco.com/1/t1/indexc1.htmlhttp://www.jameco.com/1/t1/indexd1.htmlhttp://www.jameco.com/1/t1/indexe1.htmlhttp://www.jameco.com/1/t2/index1.htmlhttp://www.jameco.com/1/t2/indexb1.htmlhttp://www.jameco.com/1/t2/indexc1.htmlhttp://www.jameco.com/1/t2/indexd1.htmlhttp://www.jameco.com/1/t2/indexe1.htmlhttp://www.jameco.com/1/t3/index1.htmlhttp://www.jameco.com/1/t3/indexb1.htmlhttp://www.jameco.com/1/t3/indexc1.htmlhttp://www.jameco.com/1/t3/indexd1.htmlhttp://www.jameco.com/1/t3/indexe1.htmlhttp://www.instructables.com/member/chr/http://www.instructables.com/id/led-cube-4x4x4/http://lookwhatjoeysmaking.blogspot.com/p/3x3x3-led-cube-arduino-shield.htmlmailto:[email protected]


Recommended