Word Clock
Introduction
The word clock is a clock where the time is spelled out in five minute increments. The letters are illuminated by my Charlieplexed RGB Shield. The LEDs are driven by an Arduino Uno. Because the shield is charliplexed, each LED is individually controlable.
Background
The basics of charlieplexing–which is the method I am using to individually control each LED–is found in this video:
Charlieplexing with Red Green and Blue (RGB) LEDs adds another level of complexity to the process. More information can be found in this video :
Assembly
Parts List
- 1 Hammes Hacks Charlieplexed RGB Shield for Arduino Uno
- 1 Arduino Uno
- 1 Laser cut case
- 16 110 ohm resistors
- 80 common cathode RGB LEDs
- 1 button
- Pin headers
- USB cable
- Wood glue or white glue
- Soldering iron
Soldering the Shield
- Solder all 16 resistors onto the PCB
- Solder 1 pin on each LED to the board
- Align the LEDS so that they are straight
- Solder all other pins on the LEDS
- Using a bright light shine light through the PCB to visually check all the solder joints on the LEDs for shorts. To do this, place the plastic part of the LED toward the light and look at each solder joint. Each LEDs solder joints should look like a rectangle, next to three ovals. If you can see light through the oval or the rectangle then add a little solder to that joint. If two of the joints are shorted (soldered together) then remove a little solder until the solder joints are distinct. This is a time consuming process.
- (optional) add button/wires/switch for time setting
- Add pin headers
Gluing the Case
Glue together the case using standard wood glue or white glue. While doing so, note the following:
- One side of the case may have marks or soot from the laser cutting process. Put these on the inside of the case.
- Make sure that the back of the case and the front of the case are in the correct places: the X should be on the bottom right of the case and the part of the back piece which is missing teeth should be just behind it.
- Do not glue the side of the box where the USB cables come out (it is the side with Hammes Hacks on it). This will allow you to get into the electronics later. Additionally, it is often helpful to hold the box together with rubber bands while it is drying.
Uploading Code
Once you are done soldering, it is time to upload the test code. Play with the delays to check each LED.
Debugging
Before uploading the word clock code, it is best to upload the test code. This code will make one pin high and another low so that only 1 LED will light up either red, green or blue at a given time. Most likely, even though we optically checked for shorts, there will still be one on the board. To repair them do the following:
- If multiple LEDs do not light up, check the resistors. When a resistor is not soldered, then all the LEDs connected to that pin will not work.
- If 2 LEDs are lighting up at the same time, two pins are shorted somewhere. Look for the LED that does not light up, that is probably where the short is. For example, a short between red and ground on LED 32 is a short between pin 6 and 3. This will cause LED 21 to not light up green. It will also cause many diodes pairs such as 1 and 17 (both red), and 3 and 19 (green and red respectively) to be on at the same time.
- If you remove all the delays in the test code, all the LEDs should light up a white-ish color.
Uploading Final Code
Once the shield is debugged, upload the word clock code.
Whats Inside the PCB?
This is the schematic of the PCB, showing how all the components are connected.
Above is a transparent view of the 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.