Closed SkullKill closed 3 years ago
Hi @SkullKill - Thank you for your addition! When I find some spare time I will have a look at your code and merge it into the repository. I have some bare TM1638 chips and LED displays laying around so I can make a module to test your code.
Interesting board! It seems very versatile with plenty expansion headers and powering options. Using an ESP32 may seem as overkill for a clock, but it leaves a lot of room for project extensions and to support additional modules connected to the various headers. Some time ago I made an ESP8266 clock and added a 24x16 LED-matrix based on three TM1640 chips and the TM16xxMatrixGFX class. For that LED-matrix I made a port of the DotKlok project, showing time in various interesting ways. I also added a YouTube subscriber counter and used my MML music library to play various tunes on the piezo buzzer. In this video you can see a demo of that clock.
Hi @maxint-rd , not a problem, had to modify it for my project anyway, might as well share the changes so everyone can enjoy.
Thank you for making/posting your library in the first place!
The wife was complaining that the time of the old clock was drifting quite quickly. so the main feature that i was after was something with network connectivity. i.e wifi with WPA2 enterprise with peap-mschapv2 authentication (with radius). so that it can sync the time with NTP.
Also, something i can configure via a webpage, and get the data (temp/humidity) via SNMP so that i can graph it in PRTG/MRTG.
the ESP32 module are like $2.80 each. https://lcsc.com/product-detail/WIFI-Modules_Espressif-Systems-ESP32-WROOM-32D_C473012.html
the other option would have been a pi zero w. but that would have been even more over kill, and more expensive. was there something more cost effective that you would suggest?
p.s have not design a 3d printable case for it yet. and have not done the light intensity / OLED expansion etc for it yet.... not even using the RTC at the moment.
i like your accelerated video of you soldering the pins of the module!!! :)
Hello @SkullKill ,
Today I've merged your pull-request. Thank you for your contribution! I have not tested your addition yet. When I find the time I will. Perhaps I will make small changes in a future version, such as replacing tabs for spaces to improve readability in Github. I also want to look into integration with other common anode related parts of the library, such as the TM1638QYF files and using common anode connections on a TM1640 for 15-segment displays. Unfortunately I don't have much spare time at the moment...
Hi @maxint-rd no problem and thanks.
been running this on my clock for 6 month without restarting and have not seen any issues with it yet. i should probably upload the code that i use for the clock when i have some time as well.
Cool! When you have the time, feel free to add your code as an example that other people can use to make a similar clock. Please use a descriptive name and make sure to properly document project specifics, such as dependencies and pinouts. Thank you for your contributions!
TM1638 in Common Anode mode, 10 Digits, 8 Segment
for schematics of 1st digit connected to SEG1, 2nd digit connected to SEG2 of TM1638 etc....
Schemathics of Anode connection available here https://github.com/SkullKill/ESP32-Wall-Clock-PCB and https://github.com/SkullKill/ESP32-Wall-Clock-PCB/wiki
did not modify the TM1638QYF.h module because, it looks like this has an inverted connection for the digits , i.e 1st digit connected to SEG8, 2nd digit connected to SEG7 etc...