Recently, I discovered six 2.3-inch red 7 segment displays in my collection that I bought from Rapid Electronics during their clearance of non-RoHS stock. Due to the absence of a clock at my work bench, I opted to create one using prototyping pad board, a Microchip PIC18F26K20 microcontroller, and a Dallas DS32KHZ temperature compensated 32.768kHz crystal.
The displays I used are SA23-12SRWA, which don’t appear to be available from Rapid any more, the closest is SA23-12EWA, however, Farnell and the other usual distributors sell them.
I wanted this to be a fairly quick project to complete, so the schematic is fairly simplistic. The schematic diagram of the clock is shown below:
The 7 segment displays are displays with common anodes, featuring segments made up of four red LEDs in a row and decimal points made up of two red LEDs in a row. Different techniques, like multiplexing, shift registers, or dedicated display drivers, can be employed to decrease the amount of GPIO necessary to operate the display. I’ve opted for simple display multiplexing, needing one GPIO for each digit’s common anode and one GPIO for every segment. This results in 7 common anodes and 8 cathodes, with the decimal points and colons linked together. There are numerous techniques available to decrease the required number of GPIOs even more, however, the selected microcontroller has an ample supply of GPIO for this particular task.
The segments have a slightly elevated forward voltage range according to the datasheet, which is indicated to be between 7.4V and 10V. Due to this factor, the anode drivers for the displays need to carry out voltage translation and supply sufficient current for the displays.
FOr More Details: 6 Digit LED Clock