Posts: 12
Joined: Sun Jun 15, 2014 5:28 pm

4-Digit Display on TM1637

Sun Jun 15, 2014 5:34 pm

Hello all,

Did anybody connect this module to raspberry? It has VCC-Ground-CLK-DIO outputs. For Arduino libraries TimerOne and DigitalTube (this is especially for TM1637) are used - so is there a ready solution for Raspberry?


Posts: 1
Joined: Mon Dec 01, 2014 8:45 am

Re: 4-Digit Display on TM1637

Mon Dec 01, 2014 8:48 am


Have you any solution for this question?
I have the same hardware and problem with it.

Thanks in advice,

Posts: 12
Joined: Sun Jun 15, 2014 5:28 pm

Re: 4-Digit Display on TM1637

Tue Dec 02, 2014 2:25 am

Hello gagorski,

I've purchased TM1637 display after reading this Russsian article which states "this is a usual I2C" and gives links to library for Arduino and PDF in Chinese. PDF in English you can try here. So if you have time and knowledge to recompile it for RPi using all these - it will be great.

I still did not do it and gonna use this display from AdaFruit. It costs $10 - but it has 16 levels of brightness and a ready-to-use library. While TM1637 costs $2.31 on eBay, does not seem to allow brightness control (does it?) and needs unestimated time for library development. Whether it costs extra $7.70 - up to you.

Posts: 1
Joined: Sun Jun 14, 2015 6:27 am

Re: 4-Digit Display on TM1637

Sun Jun 14, 2015 7:54 am

This device has no DEVICE ADDRESS. The device is not I2C!
please see this german forum, there is even a python lib for this display for gpio bitbanging!

https://translate.google.com/translate? ... t=&act=url

original url:
http://www.forum-raspberrypi.de/Thread- ... 2c-display

User avatar
Forum Moderator
Forum Moderator
Posts: 5800
Joined: Mon Mar 04, 2013 6:12 pm
Location: Bristol, U.K.
Contact: Website

Re: 4-Digit Display on TM1637

Sun Jun 14, 2015 4:57 pm

tm1637 wrote:This device has no DEVICE ADDRESS. The device is not I2C!
That was my interpretation of the (untranslated) datasheets. I've also come across this Arduino blog:
http://blog.3d-logic.com/2015/01/21/ard ... t-display/
and, being a 'C' programmer, hope to adapt that code to bit-banged code for the Pi to drive the CATALEX TM1637-based displays shown here:
http://www.cpmspectrepi.webspace.virgin ... dules.html
(Currently I'm working on code for the other, 74HC595-based SPI (QIFEI) display also shown in the above page and related code for this "recycled" ex-DTV display and 2 x 74HC595-based interface board**:
http://www.cpmspectrepi.webspace.virgin ... splay.html )
I will re-post when I've made progress.
** that webpage is awaiting an update in the next day or so. has now been updated.
Still running Raspbian Jessie or Stretch on some older Pi's (an A, B1, 2xB2, B+, P2B, 3xP0, P0W, 2xP3A+, P3B+, P3B, B+, and a A+) but Buster on the P4B's. See: https://www.cpmspectrepi.uk/raspberry_pi/raspiidx.htm

Posts: 1
Joined: Tue Jul 28, 2015 9:22 am

Re: 4-Digit Display on TM1637

Tue Jul 28, 2015 9:30 am

anyone can tell me how to write code with 2 pcs 4 digit display? i am stuck at TM1637 display(CLK, DIO)...

Posts: 12
Joined: Wed Feb 04, 2015 7:34 am

Re: 4-Digit Display on TM1637

Wed Dec 30, 2015 10:24 am

Posts: 86
Joined: Sun Jul 22, 2012 7:00 pm

Re: 4-Digit Display on TM1637

Tue Nov 08, 2016 6:23 am

This is just odd... I also bought the "TM1637" segment display and I'm trying to make use of it. Prior the Adafruit's 0.56" 7Segment was sort of easy to grasp and the python was east top jump into.. but this one...

http://www.dx.com/p/hc-sr04-ultrasonic- ... CFtN8nzmg4

Posts: 6081
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: 4-Digit Display on TM1637

Tue Nov 08, 2016 9:21 am

I found this one easy to use, it works with any Pi, not just the Zero.
https://thepihut.com/collections/raspbe ... ts/zeroseg
I am sure the extra digits can be used for something!
It has memory and brightness control.

Posts: 1
Joined: Sat Feb 17, 2018 4:32 am

Re: 4-Digit Display on TM1637

Sat Feb 17, 2018 4:41 am

I got a cheap 4-digit display on TM1637 to work well on a Raspberry Pi as a simple clock using wiringPi and basing it off the code and instructions here:
http://learn.linksprite.com/raspberry-p ... spberrypi/

Did a few modifications to the example test code so it would actually display the current time, in the right format, not at a blinding brightness, and only update every minute (not a fan of blinking colons here). Here's my modified version:
https://gist.github.com/kentros/5c0d175 ... 50177c0f93

User avatar
Posts: 253
Joined: Sat Nov 07, 2015 8:01 am
Location: Sarasota, Florida
Contact: Website

Re: 4-Digit Display on TM1637

Sat Mar 17, 2018 11:16 pm

I also bought some of those inexpensive displays (68 cents each) and wrote my own library to make it easier to control them. I have an Arduino and Linux version:


The fastest code is none at all :)

Return to “General discussion”