TM16xx icon indicating copy to clipboard operation
TM16xx copied to clipboard

Another TM1652 device

Open kymodoke opened this issue 8 months ago • 2 comments

Hello, this is not an issue, but a message to report the usage of TM16xx library on a device.

The Xiaomi XIAO AI Smart Alarm Clock (product code: zimi.clock.myk01) features a nice 7-segments display with a TM1652 chip that drives it.

History:
I bought that alarm clock for 3€ on a flea market with the intention to hack/modify/replace the embedded linux sytem on its mainboard (ARM board). It has many fetaures I don't like: basically it's a black-box puppet computer controlled from mainland China's cloud with wifi, bluetooth gateway and microphone, AI assistant (like Google, Alexa) but that speaks chinese only, and it need a smartphone app to do anything else... I gave up the project to hack the mainboard, because no time nor brain slot available....

But the 7-segment display is really nice and I wanted to repurpose it. So I digged further this strange 1 pin controlled and found out the controller is TM1652, then a web search led me to this repository.

20231011_090610v2

Connections on the display are VDD - SDA - GND, connected on the mainboard to VCC - EN - GND. I measured working voltage to 4.6V.

So I reconnected the display to a tiny ESP32 board (Seeed Studio XIAO ESP32C3), and tested the display with "TM16xx_setSegments.ino" example. It does work, all segments are lighting up, except the middle colon.

20231012_102749v2

So now it's a repurposed as a simple NTP clock, without all the nasty stuff, and with a K.I.S.S. approach. It connects to wifi just at start up and then once a day to sync time to NTP, then switch the wifi off. Low luminosity between 21h and 8h. Perfect for my mother bedroom.

20231011_235605v2

Thanks for TM16xx and the addition of TM1652

kymodoke avatar Oct 12 '23 14:10 kymodoke