ChibiCube hardware explained
In this article
By this article, we will show schematic of ChibiCube in order to understand how it works and hot it has been designed.
Toward ChibiCube schematic
As mentioned in the previous article, ChibiCube addresses all its LEDs through the combination of anode and cathode signals. Each floor of the cube is configured as common anode, while the various cathode signals are separately connected to the outputs of the Shift Register. Setting the anode voltage to a value equal or greater than the high logical threshold of our SR, for the same principle illustrated in the tutorial Meeting SPI, we can address single LEDs of the floor. To make it simple, consider a cube 4x4x4: the diagram of a single floor would appear as in Fig.1.
This schematic is different from the one shown in SPI tutorial in some points:
- The SR is a 16 bit one and is a LED driver. Output current is fixed choosing R-EXT and we don’t need for a resistor on each LED;
- To make schematic simple, LEDs are oriented as a 4×4 matrix;
- The common anode is addressed by MCU thought a P-MOS, instead being connected directly to power supply;
The pin that drives PMOS gate acts as a floor enabler. To achieve a 4x4x4 cube, the single plan must be vertically replicated, which means that four MOSFETs are needed and on a single output of the SR there are connected four LEDs (the four in the same vertical column). For example in Fig.2 is shown the circuit of the fictitious cube with two floors.
Final schematic of ChibiCube include a cascade of four 16 bit SR (64 LEDs on each floor) and up to sixteen P-MOS. MOSFETs gates are connected to outputs of two 3 to 8 Decoders in order to reduce wire connections between MCU and cube. On board, there are two linear DC-DC converter (With output:5V and 3,3V). The circuit part interested by signals could be powered with 3,3V or 5V (Selectable through jumper), power part is powered by 5V. Ten wire connections are required: four wires for the SPI, four wires for the two decoders and two wires for microcontroller power supply.
ChibiCube has up to sixteen MOSFET because it has been designed in a modular way: the SRs are in daisy chain connection and we can open the chain connecting more cube as a cascade. By cascading four cubes and building sixteen floors we can build a unique 16x16x16 cube.
The cube is refreshed with typically in 40 or less ms avoiding flickers. Refresh cycle is performed following these steps:
- nth floor is enabled and the nth – 1 disabled;
- Data is clocked to nth floor;
- nth + 1 floor is enabled and the nth disabled;
This schematic has been designed in January 2014 by Antonio Galano and Rocco Marco Guglielmi and supervised by Giovanni Di Sirio. It is distributed on a “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND and licensed under OHL hoping to be helpful. In case of damage to property or people we do not assume any responsibility.
Bill of Materials for a single ChibiCube
We report in the following, list of components required to assemble a single ChibiCube PCB without LEDs, small parts and welding tools