Time Circuits Display assembly
Check parts · Print files · Solder the boards · Address and test · Housing and frame
Check that you have everything
- 15 LED segment displays
- 3 circuit boards (PCBs)
- 4 each red, green and yellow LEDs
- 3 HT16K33 ICs
- 3 capacitors, 2 resistors, 2 diodes
- 6 1x4 headers
- 4-channel I2C level shifter
- 18 #4 screws and 12 #6 screws
Print the solder template first
The 3D printed housing has close tolerances, so use the template to align the displays. Print Time Circuits Solder Template.stl from the downloads page. No file needs supports, and all should be printed solid (100% infill).
Solder the boards
Steps 1 to 7 build one row. Repeat them for each colour.
-
Place the displays
Place a set of displays on the PCB and watch the orientation:
- The front of the board is up.
- The text on the board is upright.
- All the displays are the same colour.
- The displays are upright: decimal points are at the bottom.
-
Fit the solder template
Before soldering, press the solder template onto the front of the displays.
-
Solder and trim the leads
-
Solder the two 1x4 headers
The headers go on the back of the board.
-
Solder the capacitor
Start by tinning (wetting) one of the pads. Hold the capacitor with tweezers and heat that pad to attach the first side. With the first side fixed, solder the other side.
-
Solder the IC
Pay attention to the direction of the PCB and the direction of the IC. Wet one of the pads, then use tweezers to line up the IC while heating that pin. Once aligned, the soldered pin holds it in place.
Be careful not to use too much solder.
-
Solder the AM, PM and colon LEDs
Use the solder template to set the correct height.
The LED silkscreen is backwards. Follow the photo, not the marking, to set each LED's direction.
Set the addresses and test
-
Give each board its address
Every board starts at I2C address 0x70. You can test them now: use the address for red. Boards connected in parallel at the same address all show the same thing.
Add a diode and resistor to A0 on the green board to make it 0x71, and to A1 on the yellow board to make it 0x72.
Row Address Add diode and resistor to Red 0x70 Nothing Green 0x71 A0 Yellow 0x72 A1 The silkscreen on the front is wrong. Follow the photos below.
-
Wire it to a microcontroller
Any microcontroller that speaks I2C will work.
5 V Arduino: wire it straight to the display.
3.3 V board (ESP32, ESP8266 and the like): you must use the included level shifter.5 V Arduino (Uno)
Wire Connects to Red 5V Orange (SCL) Arduino pin 19 (A5) Yellow (SDA) Arduino pin 18 (A4) Green Ground
3.3 V board, with the level shifter
Solder the two 6-pin headers to the level shifter, then wire it like this.
3.3 V board Shifter, LV side Shifter, HV side Display 3V3 LV 5V HV 5V SDA LV1 HV1 SDA SCL LV2 HV2 SCL GND GND GND GND LV3, LV4, HV3 and HV4 are not used and can be left unconnected. Unused pins will not float or cause problems.
-
Load the sample code
Get the date and time sample from the date and time demo page (or the downloads page) and open 01e_Display_DateTimeDemo.ino in the Arduino IDE. Select your board and port, then upload. Each row shows a different date and time.
In the code,
Ris 0x70,Gis 0x71 andYis 0x72. -
Pull-up resistors (recommended)
I2C calls for a pull-up resistor on both SCL and SDA. An Arduino Uno's internal pull-ups are often enough, but not guaranteed. To do it properly, or if nothing responds, add the two 1.8k resistors to one board. All three boards are in parallel, so one pair serves them all.
Put solder on one pad, attach one side of the resistor, then solder the other side.
Print and assemble the housing and frame
-
Print the housings
Print at 100% infill. A brim of 3 mm or more helps keep the part from warping. After printing, peel off the brim and smooth the edges with a deburring or scraping tool.
-
Print the frame
Peel the brim and clean the edges.
-
Put it together
Use the 18 #4 screws to attach the PCBs in the display housings. Use the 12 #6 screws to mount the housings to the frame.