Posted in

Lights control extension

My daughter few weeks ago told me that I haven’t build something to show the time without going close to a screen. An old time clock?

In lights control project there is already an RTC module. So, why not employ it to make a clock?

I got from Ali a 4 digits time seven segments display, that is very easy to use. Check the price of one item and pack of five. I have four spare.

There is a circuitPython module for TM1637 thanks to mcauser. Very easy to use.

import time
import TM1637
import board

CLK = board.IO4
DIO = board.IO16
display = TM1637.TM1637(CLK, DIO)
display.hex(0xbeef)
time.sleep(5)
while True:
    t = time.localtime()
    display.numbers(t.tm_hour,t.tm_min)
    time.sleep(60-(t.tm_sec%60))

Connected the display with the lights control with an old telephone cable, build a small stand for it, and there it is!

Cyberpunk! Visible the colorful cable and the connector!