Sixty-four lights on one wire: design notes for a pixel display
An 8 × 8 grid of addressable LEDs needs one data pin and almost no code. What it needs a lot of is current: 3.8 A at full white. The film tours the board; the notes do the power arithmetic.
A small pixel display is one of the most satisfying first boards. It is a grid of lights, it sits on a desk, and it can show a clock, the weather, or a heart. The circuit is short. The part that catches people is power.
The board in the film was drawn for this article. It is a design sketch, not a product.
The LED that listens
Each light is an addressable RGB LED: a 5 mm package with red, green and blue inside, and a very small driver chip next to them. It has four pins: 5 V, ground, data in and data out.
The data works like a queue. The controller sends 24 bits for every LED, one after another. The first LED keeps the first 24 bits and passes everything after that to the next one. That LED does the same. So 64 LEDs need one pin on the controller, not 64.

- Each bit takes 1.25 µs. A full frame for 64 LEDs is 1,536 bits and takes about 2 ms.
- The chain runs back and forth across the grid, so every second row is counted backwards. The code that turns an (x, y) position into a place in the chain has to know that.
Power is the hard part
Each colour in each LED can take up to 20 mA. All three together make white, and take 60 mA.
| What is on | Current | |---|---| | All 64 LEDs dark | about 64 mA | | A typical colour pattern at a quarter brightness | about 0.3 A | | All white at a quarter brightness | about 1 A | | All white at full brightness | 3.8 A |

- Set a brightness limit in the code. A quarter of full is plenty indoors, and it keeps the board inside what an ordinary USB charger gives.
- Full white is also 19 W of heat on a board smaller than a postcard. That is another reason for the limit.
- Dark is not off. The driver chip in each LED draws about 1 mA all the time. On a battery, add a switch that cuts power to the whole grid.
- Carry power on wide copper. A thin trace that feeds 64 LEDs drops voltage along the way. The LEDs at the far end get less than 5 V, and white turns yellowish there. Use a filled copper area for 5 V and another for ground, and bring power in at more than one point if you can.
- Put a large capacitor where power enters. A few hundred µF absorbs the jump when many LEDs switch on at once.
For a version that runs without a cable, see [one cell in, five volts out](#/story/one-cell-five-volts).
One capacitor per LED
Each LED switches its three colours on and off many hundreds of times a second. A 100 nF capacitor next to each one supplies those short pulses locally, so they do not travel across the board and disturb the data.

Place it between 5 V and ground, as close to the LED as it will go.
3.3 V in, 5 V out
Most small controllers work at 3.3 V. An LED powered from 5 V expects a data signal of at least 3.5 V. A 3.3 V signal often works anyway, and sometimes produces flicker and wrong colours that are hard to trace.
- A small buffer chip between the controller and the first LED lifts the signal to 5 V.
- A resistor of about 330 Ω in the data line, close to the first LED, takes the sharp edge off the signal.
Checks before you order
- Count the bulk and the per-LED capacitors. There should be one small capacitor for every LED.
- Check the direction of every LED, row by row. On a back-and-forth chain, every second row is turned by 180 degrees. One LED the wrong way round stops everything after it.
- Check the width of the 5 V and ground copper against the current you chose as the limit.
- Leave mounting holes for a diffuser: a white sheet a few millimetres above the LEDs turns dots into pixels.
This board has 64 LEDs and 64 small capacitors before anything else. That is 128 parts to place by hand, or one assembly request. On EIN you upload the Gerber zip, the bill of materials and the placement file, and makers quote the boards with the parts fitted.