In this example I used LASER-cut plywood with a veneer layer and bend cuts.
Feel free to use any kind of material and technique for your housing.
The BCD coding uses 4 LEDs for the second digit and 3 LEDs for the first digit. In the 12-hour configuration. The hours are also displayed with 4 LEDs.
For 24-hour configuration the hours are also used 2 digits as minutes/seconds.
The layout can be horizontal (like this example) or vertical. The second digit LEDs can be aligned in a row or between the first digit LEDs. Feel free to experiment with your design.
Solder all cathodes (short leg, minus) of the LEDs together and connect them to GND. Solder the anodes (long leg, plus) of the LEDs to the corresponding pin on the RPi (see pinout). Resistors are not necessary.
Pins 11 to 38 should be used for the clock LEDs.
Pins 39 to 40 is reserved for an option button.
Pins 1 to 10 are free for optional I²C devices, 1-Wire devices, serial adapter and other GPIO stuff.
Note: The LED to GPIO mapping can be easily changed in source code
5RPi Software Configuration
See detail description on GitHub Wiki
- Setup network/WiFi
- Disable SPI
- Install linux packages 'python3' and 'pigpio'
- Install python modules 'argparse' and 'pigpio'
- Enable deamon 'pigpiod'
- Download source from GitHub
- Autostart '~/piClock/bcd.py' at boot time
Linux experts will configure the RPi in no-time. Less experienced users (like me) needed more time for configuring than for wood-working and soldering.