Introduction: Arduino Mega 8x8x8 RGB LED Cube

Picture of Arduino Mega 8x8x8 RGB LED Cube

"So, you want to build an 8x8x8 RGB LED Cube"

I've been playing around with electronics and Arduino's for a while now, including building a high amp switch controller for my car and a six lane Pinewood Derby Judge for our Scouts group.

So I was intrigued and then hooked when I found Kevin Darrah's great site with his detailed explanations and build video's.

However there were a couple of areas of his build I thought I could improve upon.

On the plus side:

  • Kevin's detailed explanations of the Arduino code required for this complex programme simplified the coding side of the build.
  • I support Kevin's use of individual transistors to drive each of the 192 cathodes. Whilst this requires a component rich hardware design it allows you to drive each LED hard without risking overloading a single driver chip managing 8 (or more) LEDs.

Areas I wanted to improve:

    • There must be a better way of building the cube itself plus there are over 2000 solder joints in a 8x8x8 RGB cub and if one were to fail/break in the middle it would be nigh on impossible to access and fix
    • All that wiring!!!! I've had some experience in designing PCB's in the past so aimed to build a single PCB to both host the significant number of components required and the cube itself

    Further searching revealed further cube designs from which I have taken other areas of inspiration.

    Nick Schulze has built a wonderful example of note albeit with a simpler STP16 hardware approach and a 32bit chipKIT UNO. I leveraged his cube design rather than Kevin's.

    SuperTech-IT has focused on simplifying the hardware side with a single PCB approach integrating and expanding both Kevin and Nick's programming approach with a focus on eliminating all wiring.

    So a plan was set. Using Kevin's schematic, Nick's Cube structure, design a single PCB and develop a solution to both simplify the build and strengthen the cube itself.

    Step 1: All Those LED's!

    Picture of All Those LED's!

    8x8x8 = 512 RGB LEDs. eBay is your friend here and I bought 1000 from a Chinese supplier.

    The design I chose uses 5mm Common Anode RGB LED's - so each LED has a Cathode (negative) wire for each of the three primary colours (Red/Green/Blue) and a single Anode (positive) wire that is common for each of the colours.

    Testing the LED's

    Whilst cheap I was a little concerned about quality. The last thing you want to to find a dud LED in the middle of your cube so I set about testing each of the 512 LED's I would use.

    To simplify the approach I designed a little breadboard and a simple Arduino program which would drive two LED's Red>Green>Blue individually and then all on for White on the press of a button.

    One LED would act as a common reference for all the others to ensure that all the LED's were of a common brightness.

    Once you get into the hang of pushing an LED into the breadboard, pressing the button, watching the LED flash through the colours it doesn't take too long to review all 512. As an aside I didn't find a single defect and was very pleased with the quality of LED's.

    Choosing current limiting resistor values

    While the breadboard is out it's a good time to test and validate the LED current limiting resistors you'll need to use. There are many calculators out there to help you choose the right value and it won't be the same for all the colours (Red will almost certainly have a different requirement from Green and Blue).

    One key area to look out for is the overall White colour the LED emits when all the RGB colours are on. You can balance the value of the resistors to produce a clean White colour within the current limits of the LED.

    Step 2: Simplifying the Cube Build

    Picture of Simplifying the Cube Build

    A jig to build each 8x8 slice

    Building a cube of this complexity is not to be taken on lightly. This will require a significant investment of your time.

    The approach I designed simplified the soldering of each 8x8 vertical "slice" of the cube in a single event, as opposed to building lines of 8 LEDs in turn and then soldering 8 of these together in a separate operation.

    You will require a jig for this approach and a little time invested here reaps huge benefits later.

    The picture above shows the simplicity of this design.

    • I used some 18mm x 12mm softwood sourced from a local hardware store.
    • Drilled 8 x 5mm holes in the middle of the 18mm side, 30mm apart on 8 lengths allowing for an extra 50mm length on each end.
    • Use two lengths of wood on each side and fix these 8 drilled sections ensuring they are parallel to each other and exactly 30mm apart.
    • I would advise to use some wood glue in addition to a nail/screw when fixing these together. You don't want this jig to flex.
    • At the top and bottom end of the jig I set another length and put three small nails/panel pins in file with each column of holes for the LED's. The centre one being exactly in line and the other two 5mm apart on each side. We will use these nails to secure the straight lengths of wire used to form the cube - more later.
    • You will notice on the pictures above another length of wood at a slight angle to the others. This one will be important later as we will cut our structural wires in line with this angle which will significantly simplify positioning each of these vertical slices into the PCB at a later date.

    Take your time in building this jig. The more accurate you are here the more accurate your final cube will be.

    Step 3: Preparing the LED's

    Picture of Preparing the LED's

    LED lead connections

    One of the concerns I had on previous examples I have read about was the use of simple butt joints when soldering the LED's to the framing wire. This would lead to two key issues

    • It is very difficult and time consuming to hold an LED lead in position next to the framing wire without it moving long enough to ensure you get a good solder joint.
    • Butt joints can break easily - something I wanted to avoid.

    So I designed a solution whereby each LED is prepared with a loop at the end of each lead, through which the framing wire passes which both holds the wires in position during soldering and also provides a mechanical connection in addition to the solder for increased strength.

    The downside of this was that preparation of each of the 512 LEDs took longer - I did this in batches of 64, a slice at a time, and got this down to around 3hrs per slice.

    On the plus side the actual soldering of the slice using the previous jig took just over an hour.

    LED bending jig

    I designed a jig to support the preparation of the LED's - picture above with key dimensions.

    • I took one of the previously used 18x12mm rails, drilled a 5mm hole through the centre of the 18mm side and then laid this rail down on a small panel of MDF (you could use any scrap piece of wood, this was just what I had to hand) and carried on the 5mm hole in the rail through to the centre of the MDF.
    • Using the drill bit to ensure both the hole in the rail and the MDF are aligned take a pencil and draw a line along both sides of the rail along the MDF.
    • Remove the drill and rail and you are left with a 5MM hole in the MDF and two parallel lines either side of it matching the rail dimensions (18mm apart).
    • Draw another line through the centre of the 5mm hole perpendicular to the rail lines.
    • I used 22swg tinned copper wire (a 500g roll was sufficient) which has a width of 0.711mm. I found online (eBay to the rescue again) some 0.8mm drill bits and used these as the formers around which I would bend the LED leads around to form a loop.
    • Drill three 0.8mm drill bits, the middle one on the centre line of the 5mm LED hole, the others 5mm apart and importantly just outside of the rail line away from the LED hole on the MDF board- not on the line but with one side of the drill just touching the rail line.
    • A fourth 0.8mm drill bit is then drilled again on the centre line of the 5mm LED hole on the other rail line and this time just inside of the rail line. The picture above should make this description a bit clearer.
    • Leave the drills in the wood with about 1-15mm of the drill shank protruding from the MDF.

    Now you need a tool - a good project is always one where you need to buy a special tool :-). You'll need a small pair of flat nose pliers (eBay again for £2 - £3). These have a straight parallel long nose and flat end - see picture.

    LED preperation

    Now comes the long task of preparing each of 512 LED's. I suggest you do them in batches. More details in the pictures above

    • Hold the LED in the pliers with the four leads pointing towards you.
    • IMPORTANT - The order and orientation of the leads is vital in this step. The Anode will be the longest lead second one in of the four leads. MAKE SURE THIS IS THE SECOND ONE IN FROM THE RIGHT. Get this wrong and your LED will fail to light up correctly as we test them later on - I know I made 2 errors out of 512.
    • Whilst holding the LED in the pliers put the LED bulb into the 5mm hole in the MDF board as shown in the picture above. You may need to clearance the 5mm hole a bit at the top to ensure the Pliers lay flat on the MDF.
    • Bend the LED leads around the drill bits in turn to form a loop. I found that if you back off the bend a shade when complete it opens up the loop a shade and helps to remove the loops from the drill bits when extracting the LED from the jig
    • Cut off the excess from the four leads close to the loop with a pair of small wire cutters.
    • Bend the Anode Loop, the one on its own, 90 degrees so the loop is facing upright towards the LED bulb
    • Put the finished LED down on a flat surface and make sure all the leads lie flat along the surface, a little pressure on the LED will align them all simply

    That's it.... now repeat 511 times :-)

    Step 4: Building the Slices

    Picture of Building the Slices

    Straightening the framing wire

    So we now have a jig to make our 8x8 slices and a bundle of tested and prepared LED's.

    All you need now is some framing wire. to hold all the LED's together. I used a 500g roll of 22swg tinned copper wire (again from eBay)

    Now of course you'll want to straighten the wire as it comes off the roll. An easy if yet another manual task. Cut of a section of wire to length and hold both ends in two pairs of pliers and gently pull and stretch the wire. If your good you'll feel the wire stretch and then you can stop, if your heavy handed the wire will break at the pliers when it's stretched enough. Both ways are fine and you'll end up not only straightening the wire but also hardening it a bit so it will hold its form.

    For each 8x8 frame you'll need 24 lengths long enough to run the full length of your jig with some spare at the ends to wrap around the panel pins to hold down whilst soldering. In addition you'll need 8 lengths for the perpendicular Anode wires just a bit wider than the width of the jig.

    Building an 8x8 slice

    Now wires straightened we get to the fun part.

    • With the jig sitting on its two vertical rails and the 8 drilled cross rails facing you push 8 LEDs into one column at a time with the three legs of the LEDs pointing towards you.
    • Now thread a straightened framing wire through the middle LED lead loops of all of the 8 LEDs and tie down each end by wrapping around the panel pins.
    • Repeat this for the two outer framing wires.
    • Then repeat the steps above for the other 7 columns.

    You'll now have 64 LED's threaded together with 24 vertical framing wires. Make sure all of the LEDs are sitting flush against the wooden rails and straighten out any LED legs to remove any inconsistencies.

    Now break out your soldering iron and fix down all the 192 connections between the LED loops and the framing wires. I'm not going to explain how to solder here, there are plenty of excellent tutorials to be found that explain this much better than I can.

    Finished? Take a moment to admire your handywork the flip the jig over. We still need to add in the Anode framing wires.

    Now you can see why we bent the anode lead loops 90 degrees.

    • Take your 8 straightened anode framing wires and again thread through each of the 8 LEDs in each row.
    • I cut the wire to the width of the jig but didn't attempt to fix these down to panel pins.
    • Once finished take a moment to straighten up any LEDs to ensure you have straight consistent runs and once again solder all of the 64 connection points.

    Testing the 8x8 slice

    One slice down but before you cut it out of the jig lets test it first. For this you'll need a 5v source (from your Arduino or your LED tester breadboard) and single resistor (anything around 100 ohms will do).

    • Connect one wire to Ground, this will be used across all of the 24 cathode framing wires.
    • Connect the other wire to 5v through the resistor.
    • Hold the 5v wire to one of the framing wires on the 8 anode levels
    • Run the Ground wire across each of the 24 cathode framing wires.
    • Check each LED lights up Red, Green and Blue for each of the 8 LED's connected to the same anode wire.
    • Now move the 5v wire onto the next level and run the check again until you have tested each level, each LED and each colour.

    If you find one LED does not work then you probably mixed up the anode lead on the LED when bending the LED leads. IF you find one not working then I suggest you cut out an remove the LED, take a spare prepared LED, open up the loops on the LED leads, push this new LED into the jig and bend back the loops around the framing wires as best you can.

    Once all tested you can now cut out the slide from the jig. To do this cut the framing wire on the top row close to the LED lead loops and cut the bottom framing wires along the slightly angled jig frame.

    Leave all the long ends of the framing wire for now, we'll tidy up those later when we build the cube.

    One down, 7 more to go.

    I belive I have met my first objective and developed a solution to simplify the build of the cube slices.

    Step 5: Onto the Electronics

    Picture of Onto the Electronics

    Designing the PCB

    My second objective was to remove all the wiring but still leave room for some flexibility.

    To that end I decided that I would:

    • Bring the 6 processor control wires off the board via a connector. Most cube drivers I have seen use an SPI derivative for data transfer which requires 4 inputs - Data, Clock, Output enable and Latch - plus I added 5v and Ground so we can power the processor from the same cable.
    • Leave open the serial in and serial out connections between the 74HC595 shift register chips so that you can define different loops between the chips.
      • Kevins schematic is for the anode driver first then all 8 chips driving a single colour next and then the next two colours sequentially for a total of 25 shift registers.
      • Nicks schematic has a separate loop back to the processor for each colour.
    • Allow for the anode layers to be driven by it's own shift register or directly from the processor with 8 separate connections.

    In addition I wanted to

    • Use through hole components (as that's what I am used to).
    • Limit myself to a two layer PCB board (again as within my experience).
    • Have all the components on one side of the PCB (the underside) and allow for the LED slices to be soldered directly to the top side of the PCB.

    So it was going to end up being a big board (270mm x 270mm) to support a cube with 30mm spacing between LED's - even so it was still a squeeze to fit in all the components and traces.

    I've used a couple of different PCB design software in the past with success.

    For ease of use Pad2Pad is great but you are locked into their expensive manufacturing costs as you can't export Gerber files. For this build I used DesignSpark (not as simple to use as Pad2Pad but can export gerber files) and have since been experimenting with Eagle (a very capable tool but I'm still going up the learning curve).

    I dare not add up the hours spent on the software design of the PCB, it took multiple attempts to get right but I am very pleased with the result. There are a couple of missing traces in my first version but they are simple to replace. For manufacturing a small batch of PCBs I used and would recommend SeeedStudio. Good response to questions, competitive pricing and fast service.

    I am since contemplating designing a SMD version which I could then have made with all the components already placed and soldered.

    Lots of components

    As for the components I used the following (aligning to Kevin's schematic)

    • 200 NPN 2N3904 transistors
    • 25 100nF capacitors
    • 8 100uF capacitors
    • 8 IRF9Z34N MOSFETS
    • 25 74HC595 shift registers
    • 128 82 Ohm 1/8W resistors (Red LED current limiting resistors)
    • 64 130 Ohm 1/8W resistors (Green & Blue LED current limiting resistors)
    • 250 1k Ohm 1/8W resistors (with some extras)
    • 250 10k Ohm 1/8W resistors (with some extras)
    • 1 5v 20A power supply (more than enough)
    • 1 Arduino Mega (or processor of your choice)
    • some single row header pins to connect to the Arduino
    • some jumper cable to create the serial in/out loops between the shift registers
    • a 6 pin header cable to board connector
    • a 240v power supply cable and plug

    I used and would recommend Farnell Components for ordering these in the UK, especially given their next day service and competitive pricing.

    Soldering... lots of soldering

    Then it was several hours of soldering all the components onto the board. I won't go through the details here but a couple of lessons I learnt were:

    • Keep a solder pump and solder wick to hand - you'll need it.
    • A flux pen really works although it's messy to clean up afterwards
    • Use a small diameter solder - I found the best to be a 0.5mm 60/40 Tin/Lead 2.5% flux solder.
    • A magnifying glass is handy to spot any solder bridges.
    • Take your time, do a batch at a time and inspect all joints before proceeding to the next area.
    • As always keep your soldering iron tip clean.

    Given the Red colour of the LED's will probably need a different resistor value to the Green and the Blue I marked up the current limiting resistors on the PCB A, B and C. Now is the time to define the final orientation of the slices in comparison to PCB to define which lead of the LED's relates to which current limiting resistor location.

    Once complete I cleaned the board with PCB cleaner, washed it down with soap and water and dried it thoroughly.

    Testing your finished PCB

    Before we put this to one side we need to test that it all works.

    I loaded up Kevin's Arduino code (for the mega you'll need to make some minor changes) and developed a simple test program that would flash all LEDs on and off continuously.

    To test:

    • I made an LED testing wire by taking a single colour LED, holding a 100 Ohm resistor to one of the leads and then adding a long wire to each of the open ends. A bit of electrical tape around the open leads to stop any shorts and marked up the positive (anode) wire from the LED.
    • Connect up your processor (in my case an Arduino mega) to the board with the 6 connectors
    • Connect up power to the board from the power supply
    • Connect the Anode test lead to a 5v source on the board
    • Then put the Cathode wire from the LED testing wire onto each of the PCB cube cathode connectors in turn.
    • All being well the LED on the testing lead should flash on and off, if so move onto the next one.
    • If it doesn't flash then your into fault finding. I'd first check your solder joints for any dry joints, outside of that I'd suggest you work in turn away from the shift registers checking a component at a time.

    Test all 192 cathodes then modify your code to test the anode layer drivers, swap over your LED test lead and connect it to ground and the test each of the 8 layer drivers.

    Once you have completed and tested the PCB the fun really starts - now to build the cube.

    Step 6: Building the Cube

    Picture of Building the Cube

    Preparing your Anode level connectors - another jig

    We have one more item to fabricate before we start to solder your 8x8 slices onto the PCB.

    As we add slices we will need to add braces to the outside of each slice joining the horizontal slices together.

    Given we connected all the LED's with loops to the framing wires lets not stop now.

    To build the anode cross braces:

    • Take another length of the wood you used for the rails and draw a line down the centre of the rail.
    • Make 8 marks along this line 30mm apart.
    • Take 8 of the 0.8mm drill bits and drill them into the wood, leaving the drill bit in the wood with the shank protruding about 10mm from the surface.
    • Cut off a length of framing wire and straighten it as before.
    • Wrap one end of the wire around the first drill bit forming a loop and then loop the wire around each subsequent drill bit forming a straight wire with 8 loops along its length.

    This takes some practice but try and manipulate the wire after forming all the loops to get the wire as straight as possible. Gently prise off the wire from the drill bits and then attempt to straighten it out completely.

    For the final cube you will need 16 lengths of wire each with 8 loops but during the construction process its handy to have a number of two and three loop lengths to hand to support each new slice with its neighbour.

    Finally we can build the cube

    We'll need to raise the PCB off the surface in order to align and lower each slice onto the PCB. I used a couple to small plastic boxes on either side of the PCB.

    Remembering your orientation of the slice chosen before when defining the location of the current limiting resistors you can now lower the first slice into the holes in the PCB at one end. I suggest you start with the furthest set of holes away from you and work towards yourself.

    This is where we see the advantage of cutting the cathode framing wires at an angle. This will allow you to locate each of the 24 cathode wires individually.

    To support the slice and define its vertical location I used the wooden rail we used to make the anode connectors and placed this along the PCB under the first set of LEDs. With a engineers square used to ensure the slice is perpendicular to the PCB and level from end to end you can now solder the cathode framing wires into the PCB.

    You can test this slice now but I found it best to put the first two slices onto the PCB and use short 2 loop anode connectors at a couple of places along the two slices before initial testing to make these first two slices more stable. After these first two test each slice in turn before adding the next.

    Testing the slices.

    The anode drivers are along one of the sides of the PCB and there are holes in the PCB where we will eventually connect up each layer to its driver. For now we'll use these with some log wires and 8 mini crocodile clips to attach to each layer in each slice in turn.

    With the cathodes soldered down onto the PCB and the anodes connected to the drivers with the wires and clips we can then test the slice by modifying the code we used to test the PCB with a new animation.

    • Write a simple animation to light up all the LEDs in your slice each colour at a time (all Red, then Green then Red then all on for White). You can define the slice number as a variable so you can amend this as you test each slice in turn.
    • Connect the processor and power to the PCB and turn on.
    • Check all LEDs light up in all colours.

    The only defect I have observed here was due to a dry joint on one of the vertical cathode framing wires.

    Solder and test each slice in turn.

    Were almost there. There are two more elements we need to add to the cube now we have soldered and tested all 8 of the slices.

    Anode layer connectors

    Now we can break out the anode connectors with the 8 loops you prepared earlier.

    Thread these across the slices joining the same layer in each slice on both slides. I moved mine until they were about 5mm away from the nearest LED cathode wire. Make sure they look straight and level before soldering all the loops and join each of the 8 anode layers together.

    Anode driver connectors

    Remove all the wires previously used to test the slices from the anode driver holes in the PCB and make sure the holes are clear of solder - solder wick is your friend here.

    Each of the 8 anode drivers on the PCB need to be connected to an individual layer on the PCB. The anode driver nearest the power connections on the PCB should be connected to the lowest level, then work back incrementally towards the rear of the PCB and the 8th layer.

    Bend a small right angle in a piece of straighten framing wire and lower the long side of the wire through the cube into the anode driver hole on the PCB. Make sure the wire is straight and level, not touching any other wire in the cube and then solder this onto the anode layer of the cube and onto the PCB

    Complete for all 8 anode drivers.

    Step 7: It's Complete

    Picture of It's Complete

    The build is over, your done.

    With all the preparation, building, testing you've done this bit is now simple.

    • Connect the power supply to the PCB
    • Connect the processor to the PCB.
    • Power on.
    • Load or enable the animations in your software, upload to the processor and let it do it's thing

    Making a case

    You'll want to protect your investment after putting in all these hours.

    We made a case out of some oak boards and a small sheet of ply and built a draw into the back where we could access the power supply and Arduino as well as fitting a USB plug onto the back of case to allow for easier access for reprogramming.

    Then we finished it off with an acrylic case from acrylicdisplaycases.co.uk. Very well recomended.

    Over to you

    There are now two things you can turn your mind to:

    • What kind of support/box you want to design and build to support the PCB and house the power supply and processor - I'll leave that to your imagination.
    • Get into the code and start to design and write your own animations. Kevin, Nick and SuperTech-IT have done some great work here to start you on your way.

    Step 8: Clip of Final Product in Action

    My thanks to Kevin and SuperTech-IT for animations plus a few of my own I've created to date

    Step 9: Animation - Snakes

    One of my own animations to share using Kevin Darrah's code

    Call the following in void Loop

    snakes(200); // Iterations

    Step 10: Once Your Into the Groove

    Picture of Once Your Into the Groove

    My brother and I have now built one each and we're working on a third :-)

    UPDATE - Third cube is now completed and we are going to put this one up for sale on eBay along with two spare PCB boards (and instructions).

    We'll be making some revisions to the PCB predominantly to support the development of our next project - a 16x16x16 RGB LED cube

    Step 11: Latest Version of My Arduino Mega Code

    Attached you will find here the latest version of my code.

    This is predominately taken from the solution developed by Kevin Darrah here but I have ported this over to the Arduino Mega and added to the animations either from other sources or developed myself.

    The pins on the Arduino Mega are:

    • Latch - pin 44
    • Blank - pin 45
    • Data - pin 51
    • Clock - pin 52

    Comments

    lakshan86 (author)2017-09-29

    Hi James, Love the work you have done. the indestructible is also in great detail and was very helpfull. i have read almost every 8x8x8x RGB cube projects and there are sooo many and I think this is the best cube project in here. Im planing to make one so can you please give the schematics of the circuit and the wiring diagram of the mega board to the PCB. contact me if you can. lakshanrd@gmail.com. Lots to learn from you. Keep up the great work. waiting for you next project also.

    jonathan.sterckx (author)2017-09-04

    Hi, very nice project! Is it possible to get the full schematic of the PCB so I can make my own? Thanks!

    Menno65 (author)2016-10-12

    Do you still have a PCB board for sale? I am working on a school project where i will be communicating with the Arduino/cube through IP-adressing. If I could use the PCB you have created that would help a lot, soldering isn't a problem for me.

    JamesP383 (author)Menno652016-10-12

    I don't have any more boards available currently.

    I am working on a revised PCB design which will make the board smaller (to support a 16^3 cube) and use SMD components but I am still a long way from finalizing this design and sending it out for manufacture.

    I'll post a comment on here when this revised design is available, probably with all the components already fitted and tested but this'll probably not be in time for your school project

    James

    hans.vaniersel (author)JamesP3832016-10-30

    Hello James,

    Is het posible to get a 8x8x8 PCB board?
    an 16^3 cube is toe big for me

    JamesP383 (author)hans.vaniersel2016-11-03

    I don't have anymore boards available at the moment. I had 5 made, sold one and I've just finished building my fourth 8x8x8 RGB cube (it gets a bit addictive :-)). Be interesting to know if there is anyone who has built more than one of these let alone 4.

    I still need to work on my next PCB revision. I'll post a message on here when/if these become available.

    The idea for the 16x16x16 cube is to use four 8x8x8 PCBs tiled together. - a single PCB to support a 16^3 cube would just be too big.

    backdrafter (author)JamesP3832017-06-03

    Hi james,

    Could i by any chance get the 8x8x8 pcb design i am working on a school project and wish to get the same board you made because it looks awesome.

    If you would be able to send the design to me i will get it made myself.

    Thnx in advance for any response

    NikolayG11 (author)2017-05-07

    If it possible to help me with pcb, my email is gospodinov.n@gmail.com

    Thank you

    NikolayG11 (author)2017-05-03

    Hello, do you have files for pcb PDF or etc. and well be possible to send me , thank you

    medic265 (author)2017-04-22

    I don't comment on many instructables but I gotta give you PROPS for this! I have now officially added this to my "I gotta build one of these" list....hehehe

    LuxxaL (author)2017-03-21

    Can you please tell me the height of the special tool?

    JamesP383 (author)LuxxaL2017-03-22

    Hi Luxxal

    If you mean the flat nose pliers I used to bend the LEDs then the width is about 5mm, You can get them very cheap from eBay - example link below

    http://www.ebay.co.uk/itm/Jewellery-Making-Pliers-Wire-Cutters-Round-Chain-Flat-Needle-Bent-Nose-etc-/292057860364?var=&hash=item440001490c:m:m_7rhXq8HbfhmxHBwxEM3nw

    WhittlinThom (author)2016-06-20

    Before I knew the difference I bought 600 common cathode RGB LEDs. By the time I found out that everyone used common anodes for the LED cubes, I forgot who I bought mine from on eBay. Is there a way to use the common cathode and where can I get the instructions to build it? Thank you, Thom Mulford

    JamesP383 (author)WhittlinThom2016-06-22

    There is an earlier question and feeback below on exactly this topic

    scratchndent (author)JamesP3832017-02-14

    would it be possible to get a 8x8x8 cube as any other size is to big or to small. soldering probably isnt an issue but please get back to me and i will have more info for you

    swallace7 (author)2017-01-22

    brillant. Been looking at doing this for a while. With Andreno

    Loads of kits on the bay but seem to be single colour " dumb" pre programed toys

    So

    Are you haveing more pcb manufactured? . Dont mind the soldering all part of the fun.! But developing a raw photo sensitive pcb. And all the messy chemicals is daunting to say the least

    HunterM31 (author)2016-09-03

    Awesome design, this was a great read. How's the progress on the 16x16x16 coming? I'm finishing up an 8x8x8 cube now using the PCB from supertech and already thinking about the next size up. Will you be selling PCBs for the 16? Anyway, thanks for the great instructable.

    JamesP383 (author)HunterM312016-09-08

    So far we have prepared 2000 of the 4096 LEDs required for a 16^3 cube. I am planning to redesign my current PCB so that I can tile four PCBs together to support this bigger design - I need to reduce every side of the board by 15mm to support this and I am exploring going with SMD components too.

    This project will take us a long time to complete - the hardware alone is a challenge and then we'll need to rework and upgrade the Arduino driver and code.

    JamesP383 (author)2016-01-16

    First one of my PCB's is now up for sale on eBay.co.uk

    http://www.ebay.co.uk/itm/Unique-PCB-Board-for-8x8x8-RGB-LED-cube-/111876947622?hash=item1a0c62bea6:g:CtYAAOSwL7VWmo2N

    JamesP383 (author)JamesP3832016-01-26

    Well that didn't sell. Guess I'll build another one then :-)

    iaitkenpic (author)JamesP3832016-02-18

    Bugger! I missed the eBay sale. I will buy the board if still available. A bit expensive and are you ok to ship it to Melbourne Australia? I have all the other parts. With the board in place the hardware 'packing list' will be complete but keen to have a look at the software side of things if available

    JamesP383 (author)iaitkenpic2016-02-21

    Hi iaitkenpic

    Let me look into finding a suitable packing box and postage costs and I'll send you a PM. I have attached the full code to my instructable for you to have a look in the meantime. I'll reach out to you soon.

    James

    iaitkenpic (author)JamesP3832016-02-26

    Thanks James, Much appreciated. My email address is: iaitkenpic@gmail.com

    JamesP383 (author)iaitkenpic2016-02-29

    I've sent you a mail. Excited to support another build on the other side of the world

    JamesP383 (author)2016-01-11

    Just an update on the third of our 8x8x8 cube builds.

    After a great day with my brother this weekend we have now almost completed our third cube. We finished testing the PCB I had previously populated (found one blown transistor and a couple of missed/bad solder joints), having come prearmed with 5 completed 8x8 slices we finished off the remaining three slices and then soldered and tested all eight slices on the PCB. Late last night I then added in all the anode level connectors.

    Tonight I'll connect the anode levels onto the PCB and then we should have completed our third cube - which we are now contemplating putting up for sale.

    Rather than continue to build 8x8x8 RGB cubes (as we're really getting into the groove on these and enjoying the process), we're now contemplating an even bigger challenge - take what we have learnt and the process we have developed to make a 16x16x16 RGB cube!!!!

    More on this later and I may build another Instructable on this one to keep track of progress as this is a HUGE undertaking - 8 times bigger in every aspect - and will keep our quiet times occupied for a while to come

    JamesP383 (author)2016-01-07

    I have two of my original PCB's available which I'm going to post on eBay. I'll drop a link here when available, I want to complete the instruction write up and BOM first.

    These two version 1 boards have 5 missing traces [4 earths to the IC filter capacitors - and 1 earth the the board switches which I haven't used yet] - nothing too concerning with a very simple workaround (I still used these boards :-))

    I am planning a run of version 2 boards - correcting these omissions and still using through hole components.

    Question to you is which colour PCB? I originally went for white but I'm leaning towards black.

    Place your vote now :-)

    WhittlinThom (author)2015-12-08

    James, I really like your RGB cube but I had already bought common cathode LEDs. is there a way to convert the build so I don't have to waste my LEDs?

    JamesP383 (author)WhittlinThom2015-12-08

    If your going to use the same schematic that Kevin Darrah developed then you would need to change the polarity of the transistors. The column transistors would need to supply +5v and the layer mosfets would need to switch to ground. Possible with a little experimentation. Suggest you have a play around on a breadboard to identify which transistors you'll need to use in both cases.

    WhittlinThom (author)JamesP3832016-01-02

    I guess I'll loose out then because I don't know enough to figure out polarities in the transistors and mosfets. I don't know what to do with the 500 cathode RGB LEDs now. Thank you,

    JamesP383 (author)WhittlinThom2016-01-07

    Can I suggest you get hold of a breadboard and some transistors and have a play. In this design using common anode LED's the RGB cathodes are sourced to ground by 2N3904 NPN transistors. To source a positive voltage to your RGB anodes you should look for some PNP transistors like 2N2222's. I think the challenge you'll have is finding a chip that will sink your common cathodes to ground. In this design we use a P-channel IRF9Z34N to source 5V on the common anodes, you'll need to find an N-channel Mosfet to sink your common cathodes - a quick search came up with this one - FQP30N06L.

    I do suggest however that you build a simple circuit on a breadboard to test this out. compared to building the cube itself building a simple test circuit should be straight forward

    nibirc (author)2015-12-12

    Hi, Do you have any plan to share the PCB design files and arduino code? want to make one for myself.

    JamesP383 (author)nibirc2015-12-12

    I am working on options - stay tuned

    bonnom (author)JamesP3832015-12-29

    Hopefully you can upload them soon! How much did the PCB manufacturing cost?

    ThomasVDD (author)2015-12-11

    Very nice and neat! I just made a simple 4x4x4, but this really is an whole other level :D

    PhxJim (author)2015-12-11

    Great cube instructions! Two things though. On the first page, the link to "Nick Schulze" is broken and points to "http://www.instructables.com/id/Arduino-Mega-8x8x8-RGB-LED-Cube/www.hownottoengineer.com/projects/lc.html".

    I see that others have asked if you have any plans on making the PCB available, either a finished board, source files for our own fabrication, PDF, etc? That would be great! But, if you can't, can you at least share a schematic if I dared to try to do my own board?

    JamesP383 (author)PhxJim2015-12-11

    Thanks for pointing out the link. Think I've fixed it now. I'm working on the PCBs - watch this space

    brucesallen (author)2015-12-10

    Wonderful use of jigs. I speak as one having made a mono 8x8x8, no jigs. MUst have taken me two months.

    JamesP383 (author)brucesallen2015-12-11

    It took me several attempts to define and refine the design. I made a stack of different jigs and 4x4 slices before I finally got all the details right.

    My brother is working on the slices for a third cube and he's now got it down to three hours per slice from LED preparation to a final, tested slice. Once you get going you can work this quite quickly

    TonyF12 (author)2015-12-10

    I can just say W O W !!!!!!!!!!!!

    *************************************

    You are a very clever GUY, since I can't find a better name or label for you my friend!

    My friend Hari, who demo your design Sunday, made me look you up and start PLANING my own cube. But I must admit that without your PCB and more details, I can't make it myself, I can't even attempt to think about it with big regret!

    I think you can help all of us by making the PCB (and if it is populated, like you talk about!) I would also love to purchase it!

    My friend Hari is making the "TINIEST RGB 4x4x4 cube" (his progress is here): Hari is ROTATING each RGB 90 degrees for the next RGB above the first one... (I understand that his way to control each RGB color is different design than yours. Can you elaborate on how you control each INDIVIDUAL RGB?

    Also, with the way you control the individual RGB, can you change later the Arduino sketch to use the cube as a "visual audio player", so the LED's are "dancing" to the song? Sorry for my imagination, it is going wild after seeing your project!!!

    I've look the Internet over many times for an a ARDUINO based RGB cube, but some are just one color, too small or the PCB is not without many problems.... and that is why I have not made my own RGB cube as of now. I would like to purchase the entire kit from you, but if I have to buy the PCB from you and little more info on the other parts; with few sketches for the Arduino, I should be able to make it.

    Please, let us all have a chance to make this cube all over the world!

    =================================================

    Thanks again! Tony

    JamesP383 (author)TonyF122015-12-11

    Hi Tony. Thanks for the comments.

    I am working on a revised PCB that can be prepopulated. The idea of a making a full kit available is interesting, there'll still be a lot of soldering to do on the cube. - watch this space.

    Have a look at some of the video's on Kevin's site "http://www.kevindarrah.com/?cat=99" where he goes into great detail on how we drive each LED individually.

    I've already started writing my own animations and frankly the only limit is your imagination.

    The code references each LED with a function where you define each LED within the three dimensions - Layer, Column, Row - and then define each of the three colours with a number - 0 = Off and then varying degrees of brightness up to 15 full on.

    I like your friends tiny cube. An interesting design.

    TonyF12 (author)TonyF122015-12-10

    I've tried Hari's video on the YouTube, but it did not work, I'll enter it here so it does not changes into a clickable video, but just the www address to look it up, if you or others are interested.

    It is on YouTube.com under:

    HariFun #121 - The World's Tiniest RGB LED Cube (part 1)

    TonyF12 (author)TonyF122015-12-10

    OK, Hari's progress now works!

    I do not know why it would not work in my first reply.

    PRIVATEGAMER (author)2015-12-10

    I wish I could make this =P

    jellmeister (author)2015-12-10

    It would be awesome to add a 3 axis controller and play 3D snake on this.

    jellmeister (author)2015-12-10

    It would be awesome to add a 3 axis controller and play 3D snake on this.

    Alx1280 (author)2015-12-10

    Awesome man, seriously, I want to build one.

    Can you please help with the PCBs' files or sell them? I prefer the thru-hole rather that smd components,

    Cheers,

    Alex

    Mr grapple (author)2015-12-08

    i love how people like you use lights and glass to make awesome creations like this.

    JamesP383 (author)Mr grapple2015-12-10

    Thanks for the comment. Believe me the video's don't do these cubes justice. They look so much better in real life

    Project Hero (author)2015-12-06

    I have been searching the Internet for hours and this is the best Jig and PCB yet. I would absolutely love if you posted the PCB files or made them available to buy. I'm willing to pay top dollar for a PCB board!

    JamesP383 (author)Project Hero2015-12-06

    Thanks for the feedback. I spent a lot of time developing the full build process and appreciate your comments. I've been thinking of redesigning the PCBs to use SMD components so I can get them prepopulated by the manufacturer. Let me look into this with a bit more vigour. I'll respond in these comments once I've made progress.

    About This Instructable

    46,285views

    464favorites

    More by JamesP383:Arduino Mega 8x8x8 RGB LED Cube
    Add instructable to: