LED Cubular - LED Desktop Cube

Arduino based; 6 PCBs all with 64 LEDs on the outer face to form a
li-po powered cube of 384 LED coolness!

Similar projects worth following
This project is completely open source, from the schematics to the eventual Arduino code. The LED Cubular is made up of 6 PCB boards which come in 3 different designs. The top, the bottom and the sides. The sides and top are simplified to basic components for running the LEDs.

The bottom board will contain an Arduino Uno ATMega328p as well as; an IMU for tracking orientation and battery charging and boosting circuits. The goal is to have a completely clean "Cube" only made up of SMD LEDs. I'm placing pads on the bottom PCB that can be interfaced to with Pogo Pins. I plan to design and 3d print a desktop "docking station" that the cube will sit in nicely and can be used for charging and reprogramming.

Total size will be 42x42x42mm with 384 + 1 internal LEDs

I put together a concept animation to show the clean design I'm aiming for;

I am trying to achieve the following design criteria in no particular order;

  • 2 Layer PCBs; So that all PCBs can be produced together.
  • Bottom PCB is a self contained "brains" module; So that all major components are contained in 1 PCB, it also means that the bottom pcb can be a standalone display.
  • Low Cost
  • Self assemblable (is that a word?); Trying to keep in mind that self assembly is required for prototyping so using larger 0603 or 0805 and no BGA components where possible
  • Attempt to achieve modularity so that in the future the LED Cubular may be expanded to different shapes and sizes
  • Arduino Compatible
  • Battery Powered
  • Only LEDs are shown on the external of the cube; no through hole components.

This is a really useful guide that I'm following to handle the LED matrix using the Max7219 (64 leds managed by 1 chip!) -

LED Desktop Cube - Combined.csv

BoM For electronics

ms-excel - 7.44 kB - 03/27/2019 at 14:30


  • When reality kicks your design in the nuts!

    Jack Flynn06/19/2019 at 08:22 0 comments

    Design to win

    So online competitions there's a game to be played. A lot of the time a pretty mock up or design can do better than a more basic working model. Unfortunately when you try to make that pretty design in the real world the reality of manufacture and cost can really kick it in the nuts! With the LED Cubular the design was about meeting the criteria of lower cost but I also have very specific ascetics that I'm trying to achieve. Now that I'm trying to get the first prototypes made I'm finding the "low cost" aspect needs more focus and stock levels really do matter.

    Low Stock - Design Change Required

    The part - MMT-104-01-L-DH - is a small 2mm pitch 2 row 8 pin surface mount header that looks great in the design and fits in perfect but the stock level is a big fat "0". Like 0 everywhere, so that sucks. I'm going to have to adjust the design and use a more traditional 2.54mm pitch when then increases the overall footprint of the connector and may have further knock on effects. Damn.

    High Cost? Kind of..

    Looking at the cost factor for the bill of materials the MAX7219CWG+ is roughly £8 a piece and I need 6 per cube. Ouch. The annoying factor for me is that I looked online when making the decision and found a lot of cheap boards on ebay using the MAX7219 so I wrongly assumed it would be possible to pick it up cheaper. As always, getting into the higher quantities brings the cost down but that doesn't help me right now. I may need an alternative to this one...

  • #FR1Challenge - 2nd Place

    Jack Flynn06/05/2019 at 09:20 0 comments

    #FR1Challenge Results are In!

    Write Up Here

    The FR1Challenge from circuit maker was the reason I actually found the motivation to start the LED Cubular Project. I figured if I could get myself into the top 10 I had a good chance of possibly getting some PCB vouchers to be able to produce a project. The LED Cubular has been sitting in the back of my mind as a pipe dream for about 5 years now. I never thought it would prove to be as popular as it is and I'm really thankful for all of the positive feedback I've had from the hackaday and circuitmaker community. Turns out, my design got me a 2nd place in the competition! Super chuffed. 

    So with the competition finally complete there's the ability to use the prize winnings to actually produce the LED Cubular. That's amazing! Watch this space, I'm on a roll now...

  • Pedestal Platform

    Jack Flynn06/04/2019 at 11:11 2 comments

    Pedestal Mock Up

    One of the key ideas of the LED Cubular is that once it's assembled it should be chargeable and re-programmable without disassembly. This is why on the bottom board it has a number of exposed pads to allow for this. The pads will touch on pogo pins on a "pedestal" platform that interfaces with the cube. I put together a general mock up of the pedestal and I like the idea of including a neopixel-24 ring within it to give a nice RGB glow around the cube. The cut corner on the cube ensures we get the orientation correct once it's placed on the pedestal. The pedestal will require it's own microcontroller to ensure power is applied only when there's a good connection and should add a level of safety that prevents any damage, kind of like a mac book handshake when plugging in power. This built in microcontroller will also allow reprogramming the cube and manage the neopixel ring as well as some button inputs which may be used to change the active "mode" the cube is in or some other functions.

    Some mock up images of where my thoughts are at

    Anyone got a 3d printer to spare? :D

  • Power Considerations

    Jack Flynn03/29/2019 at 16:25 0 comments

    Power Requirements and Battery Selection

    In order to select a suitable battery, I needed to first estimate the overall power consumption of the LED Cubular. I started by going over the datasheet for the main active components and the Max7219 had a great section about estimating the current draw based on number of LEDs active and other factors. I combined this with my other estimations to give a rough total current draw and added an additional 10% for possible other loses; such as regulator efficiency. You can check out the results here;

    As you can see the tested values are for Brightness; Low, Medium, High and then ALL LEDs on and Half LEDs on. This gives us a peak value of ~750mA max draw when all of the LEDS are on (unlikely in normal usage) and at full brightness which I would expect to be rather blinding. I can prevent this situation in code by either maintaining a much lower max brightness or only allowing a max number of LEDs turned on at one time. Either way it gives us a rough estimate of what load a battery might be under. 

    I found 2 possible battery choices at 400mAH and 300mAH that would physically fit inside the cube. I estimated the liftime of the cube based on the capacity and draw for each battery which shows we should get at least half an hour with all of the LEDs on at a medium-high brightness. Which is well within my hopes and should give far more time under more animated lighting patterns.

    Battery Selection

    As mentioned, I found a 300mAH battery and there are a tonne of 400mAH drone batteries available but all of questionable specifications due to buying from ebay/amazon. The drone batteries would also require changing out the connector on either the board or the battery due to not using a standard JST connector. For now I'm considering this 400mAH Battery with dimensions of 26.5mm x 36.9mm x 5mm. Which you can see below will fit into the cube with a tight squeeze of space;

    The major problem I haven't solved is how do I secure the battery down? I was hoping there might be some kind of "cable tie smd mount" that would allow me to cable tie the battery in place. I found these SMT cable clips which can be used to hold down wiring so I thought I could maybe do something like this;

    Which would allow me to get 2 cable ties looped around the battery. Does anyone have a better idea?

  • Design Work Arounds - PCB Changes

    Jack Flynn03/26/2019 at 17:03 0 comments

    Black PCB Mock Up and some issues

    I like to visualise a a project with the big picture. I threw together the PCB steps files into "OnShape" which is a freebie 3d CAD package that also does assemblies. Viewing the cube as a "whole" allows me to check the physicality of the design and it's highlighted a few problems.

    You can check out some 3d views of the LED Cubular in the vid below;

    Highlighted Issue 1; Power Switch

    In order to shut down the battery powered LED Cubular I wanted to have a small slide switch for on/off. This allows for switching state without having to take the top panel off. However, it means I need a hole in the cube so that I can flick the switch. I don't want to have lots of cut outs on every board so I've decided to add a break-off tab on each of the side panels. That way the one that is placed next to the power switch can be broken off to reveal the switch and the rest can still be relatively solid.

    Highlighted Issue 2; Pad Alignment for Charging

    One of the further development pieces is to create a "pedestal" for the cube to sit on. This pedestal will provide charging power as well as allow for easy reprogramming of the Arduino within the cube. However, one of my concerns is that it will be difficult to place the cube on the pedestal and get to pads and pins to line up. To help this, I've removed a "keying" corner on the cube. By designing the pedestal with a matching key, it should allow me to ensure that there's a specific orientation of the cube that sits nicely on the pedestal without the risk of misalignment.

    Highlighted Issue 3; Connector legs

    So final issue I've spotted and was kind of aware of during the design process is that the legs for the connectors on the bottom and top PCBs will be protruding into the area where I want the side panels to be to create a closed cube. Common sense says that in the real world the Side panel PCBs will end up sitting on the legs and that ruins my closed cube ascetic;

    You can see in the image that the legs of the connector are right up the board edge which is where the side panels should be flush. In order to overcome this I'll need to plot out small cuts in the side panel design that gives clearance to each of the pin legs on the bottom and top PCB. Totally doable, just takes a bit of thinking ahead. 

  • PCB Layout - Side Panel - 64 LED Matrix

    Jack Flynn03/07/2019 at 10:39 0 comments

    I put together a short video of my pcb track layout for the 64 front LEDs on the side panel. I'm no video editor but I think it comes across well. As can be seen from the schematic, the LEDs are connected to the Max7219 in a matrix layout. 

    This daisy chains the LEDs together in columns and rows which initially makes it difficult on a 2 layer design to not end up getting your wires crossed and losing a tonne of space on the bottom layer. I came up with a way of interconnecting the columns and rows (8x8) by passing the 6 mil traces under the LEDs. I could fit 2 lines under each LED while maintaining a 6mil clearance. Something I note that the Bantam Tools CNC mill should be able to achieve. Check out the video to see how I pulled it off;

  • Concept - General Design Discussions

    Jack Flynn03/05/2019 at 18:42 1 comment

    Design Style

    My vision for this design is to have the final boards produced with a black PCB and to remove the silk screen from the top overlay. I think this should give the cube a really modern and clean look while really allowing the LEDs to shine. 

    My latest changes to the bottom PCB are purely for visual. I've tried to add clear text where possible to highlight the key input/outputs and for prototyping I've left the Top Overlay on so we can see the individual LED numbers and interface pads. 

    General Connections

    I've produced the following diagram in an effort to explain the general connection layout and functionality. 

    Each side panel and top panel have a max7219 for running the LEDs. These are daisy-chained through the bottom board as the data out of each max7219 is passed to the next board. Port 1 on the bottom panel can be used with an ICSP in order to burn the Arduino Bootloader to the ATMega328P as well as being used to drive the first side panel.

  • PCB Design - Side Panels & Top - Initial Design

    Jack Flynn03/04/2019 at 17:31 4 comments

    Side Panels

    The side panels for the LED Cubular are as simplistic as possible. Each one will have 64 LEDs on the front (no silk screen) and on the back is the connectors for the top and bottom and a max7219 which is a dedicated LED driver chip that can handle 64 LEDs in a matrix connection and communicates with the bottom PCB ATMega328P via a protocol similar to SPI. What's particularly nice is that the Max7219 can be daisy-chained together to allow for a single communication bus, requiring only 3 pins from the ATMega328P. 

    Top Panel

    The top panel mirrors the connectors of the bottom but matches the side panels in simplicity. Perhaps in the future this extra space could be used for adding bluetooth functionality or other expanded features? For now, it's a simple mimic with the Max7219 and the 64 LEDs.

  • PCB Design - Bottom PCB - Initial Design

    Jack Flynn03/04/2019 at 16:24 2 comments

    For the initial design of the Bottom PCB I restricted myself to a 2 layer PCB. It's quick and dirty and really it should be a 4 layer so that I can offload power and ground to the internal layers. However, for an initial design and prototype I think it'll work. The Bottom PCB is the "Brains" of the project. It has the following features;

    Arduino compatible ATMega328P

    4 x Panel Connectors for the side panels - 1 of these can be used with an ICSP programmer to burn the Arduino Bootloader to the ATMega328P.

    IMU - LSM9DS1TR - for orientation tracking i2c accelerometer, gyroscopes and magnetometer

    LiPo JST Battery connector with charging chip and 5v Boost - based on Adafruit 500 Powerboost

    Max 7219 LED Driver for 64 LEDs. Communication via an SPI-similar bus.

    And on the back side we have the 64 SMD 0805 LEDs and exposed pads for pogo pins to allow for charging and reprogramming.

View all 9 project logs

Enjoy this project?



Nicolas Tremblay wrote 06/05/2019 at 20:05 point

Congrats on the 2nd place!

Your design is beautiful, it's the kind of thing that could do well in a kickstarter.

  Are you sure? yes | no

Jack Flynn wrote 06/05/2019 at 21:25 point

Shhhhh you'll give the game away!....

Cheers though. It would be awesome to do a successful kickstarter but that takes a lot of effort and a lot of luck. We'll see what the future holds. 

  Are you sure? yes | no

Christian W. wrote 04/26/2019 at 18:44 point

Hey Jack! Nice work! Would you mind sharing your power budget spreadsheet?

  Are you sure? yes | no

Richard Hogben wrote 03/11/2019 at 15:51 point

Nice cube

  Are you sure? yes | no

Sophi Kravitz wrote 03/05/2019 at 18:25 point

Nice looking design and documentation, what did you make the animation with?

  Are you sure? yes | no

Jack Flynn wrote 03/05/2019 at 18:44 point

Hi! Thanks for the kind words. The animation was done by a friend using Autodesk Inventor. I exported the step files for the boards through circuit maker which makes it really easy to get the 3d models for the designs.

  Are you sure? yes | no

Sophi Kravitz wrote 03/05/2019 at 18:46 point

thanks! I've been working on my first animation using Inventor. It's straightforward but hard to get it to look right... yours was excellent.

  Are you sure? yes | no

Jack Flynn wrote 03/05/2019 at 20:12 point

I grew up in school on inventor so I really like it but the animation isn't my strong suit. For the Cubular demo it was quite nice because instead of moving the Cubular we just moved the camera around it. It makes it look like the cube is spinning but really it's all camera tricks. Then it's using the constraints to create the explosion. It's no blender or 3d studio but really good for mechanical stuff 

(Not sure why I can't reply to your other message =S on mobile I guess.) 

  Are you sure? yes | no

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates