8x7 Charlieplexed LED Shield
The 8x7 Charlieplexed Shield contains 56 LEDs in a 8x7 matrix and plugs into 8 adjacent pins on a microcontroller such as an Arduino Pro Mini or an Arduino Nano. By controlling the state of the pins all LEDs can be individually turned on or off.
Soldering The Shield
- 8 resistors
- 56 LEDs
- 8 pin female pin header
To solder the shield follow these steps:
- Solder the resistors.
- Cut the leads on all of the LEDs to 2.5-3mm.
- Solder 1 side of each of the LEDs, making sure that the flat side of the LED matches the flat side on the silkscreen.
- Align the LEDs by remelting the solder and moving the LED into place.
- Once aligned, solder the other side of the LEDs.
- Solder the female pin header.
Note: Some people like to leave the leads long and bend them to hold them in place before soldering. Then they trim them after soldering. This is not recommended for this project because it makes alignment and replacement of LEDs difficult or impossible.
The Laser Cut Case
Soldering the Arduino Nano
- Solder the pin headers onto the Arduino Nano so that the pins point up on the same side as the USB.
Note: this is the opposite side to what is normally shown on the Internet.
Building the Case
- Glue the front and sides together leaving the back panel unglued. It is often useful to use the back to make sure all parts are aligned, but be very careful not to get glue on the back panel!
- Wait for glue to dry.
- Once glue is dry, place the offset angles into the case.
- Plug pins 2-9 of the Arduino into the shield.
- Place the shield and Arduino into the case.
- Assemble the T-shaped offset, and place it into the case.
- Close the case. Friction should hold the back in place.
Uploading Code for Snakes
- Download the Arduino software
- Select Arduino Nano under Tools > Baord in the Arduino software
- Select the correct comport under Tools > Port in the Arduino software
- Download the code from github and upload it to the Arduino.
Whats Inside the PCB?
This is the schematic of the PCB, showing how all the components are connected.
Above left is a transparent view of the 5mm LED PCB. Above right is a view of the 3mm LED PCB. Green lines are wires on one side and red lines are wires on the other side of the PCB. The text that will be printed on the board is in magenta on one side and teal on the other. The yellow line is the edge of the board. The gold circles are drilled through the board and have copper on both sides.