Goal: create a table with an 12 x 12
LED grid.
WS2812b
, 5 meters, 30 LED / m (Total: 150 LED on it, we will use 144 = 12 x 12
LEDs).55 x 55 cm
)Need to test to make small images to load.
12 strips of 12 RGB LEDs.
Basic soldering station.
First add some tin on the led strip.
Then, attach the wires.
Wires with clip will facilitate the full assembly / replacement if any issue.
Pros:
Cons:
Test that the welding are okay and the strip work correctly.
Protect the wire.
Cut a middle square to keep the border table and avoid the table legs.
5cm from the edge, so you get a square of size 45 x 45 cm
.
(Above the table legs, there is hardwood that cannot be cut with a cutter).
Remove all the cardboard within the table.
Then, cut strip of cardboard that are of the size of the removed square.
Cut the cardboard to create notches.
If you have a laser cutting available, this would save you time ! You can use wood in that case.
Assemble the matrix.
Try to put it in the square and adjust the edges if necessary.
Draw parallel lines on the wood. As we have 30 LED / m, two LEDs are spaced by 3.3 cm. So are the lines.
Fix the LEDs with glue or use the rubber of the LED if available. Be careful to alternate the LED strip direction, so you get male connected to a female connector.
You need to drill a hole to take out the first connector to supply with current and data.
Cut the plexiglas a little bit larger than the square. Drill one hole on each edge to fix it on the table corner.
Cut the cooking paper. Use scotch to join to pieces as it is very likely that you will not have the correct width. It changes the opacity of the box, avoiding to see directly the LED light.
Fix everything.
The Pi is scotched bellow the table.
You need to configure a raspy (an Arduino Mega is okay, but you cannot add very large fancy programs or add controllers).
You need to connect correctly the wires. The Pi cannot supply everything.
For the connections:
What | White / Ground | Green / Data | Red / 5V |
---|---|---|---|
Pi | x | x | |
External Supply | x | x |
144 LED, each requiring between 30-60mA. Traditional power supply are 3A and 5V
\[144 \times 30\text{mA} = 4320 = 4.3 \text{A}\]This is when LED have their maximal brightness. So you can accept to have a lower supply.
The basic LED strip library GitHub, where the basic command turn on pixel by giving a tuple (position, (r,g,b))
.
For the zigzag matrix, the only thing to do is to build a class of higher level which turn on/off pixels by taking a tuple ((row, col), (r,g,b))
that call the lower level API by converting (row, col)
into position
.
The maths are easy ! Just draw on the paper.
If you want help to reproduce the project, I can help by giving you the specific dimensions.
A point to consider is for power supply. You cannot supply 144 LEDs with the Pi (or Arduino). You need to use an external supply for the LEDs and connect the data and ground to the Pi (by memory, please check).
More LEDs per meter are not recommended (larger power supply, more cardboard, …)
>> You can subscribe to my mailing list here for a monthly update. <<