Component guide · Beginner · 3 min read
TM1637 4-digit display

Pinout, Wiring and Code
By Geekobot Learning Team · Updated 29 Oct 2026
On this page
The TM1637 module is a 4-digit 7-segment LED display with a centre colon, driven by the TM1637 chip over two wires: CLK and DIO. It handles multiplexing and brightness itself, so your code just sends numbers. It runs on 3.3 to 5 V and is the quickest way to show a clock, timer, counter or sensor value.
Key specs at a glance
- Digits
- 4 x 7-segment, 0.36 inch, with centre colon
- Driver
- TM1637 (handles multiplexing and keyscan)
- Interface
- 2-wire (CLK, DIO), I2C-like but not I2C
- Brightness
- 8 levels
- Supply
- 3.3 to 5 V
- Current
- About 30 to 80 mA depending on brightness
What the TM1637 4-digit display is
A 7-segment display needs many pins if you drive it directly. The TM1637 chip on this module refreshes all four digits by itself and listens on a simple two-wire bus, so only two microcontroller pins are needed.
The protocol looks like I2C but has no address, so it cannot share the I2C bus. Any two digital pins work.
TM1637 4-digit display pinout
The pins on the TM1637 4-digit display and what each one does.
| Pin | Function |
|---|---|
| CLK | Clock |
| DIO | Data |
| VCC | 3.3 to 5 V |
| GND | Ground |
- CLK
- Clock
- DIO
- Data
- VCC
- 3.3 to 5 V
- GND
- Ground
Wiring the TM1637 4-digit display
Any two digital pins work. Several modules can share CLK if each has its own DIO pin.
| TM1637 4-digit display pin | Arduino Uno | ESP32 |
|---|---|---|
| CLK | D2 | GPIO 18 |
| DIO | D3 | GPIO 19 |
| VCC | 5V | 3V3 |
| GND | GND | GND |
- CLK
- Arduino Uno:
- D2
- ESP32:
- GPIO 18
- DIO
- Arduino Uno:
- D3
- ESP32:
- GPIO 19
- VCC
- Arduino Uno:
- 5V
- ESP32:
- 3V3
- GND
- Arduino Uno:
- GND
- ESP32:
- GND
Example code
Install the TM1637 library by Avishay Orpaz. showNumberDecEx with the 0b01000000 mask turns the colon on.
#include <TM1637Display.h>
TM1637Display disp(2, 3); // CLK, DIO
void setup() {
disp.setBrightness(4); // 0-7
}
void loop() {
for (int m = 0; m < 60; m++) { // fake mm:ss counter
for (int s = 0; s < 60; s++) {
uint8_t colon = (s % 2) ? 0b01000000 : 0;
disp.showNumberDecEx(m * 100 + s, colon, true); // leading zeros
delay(1000);
}
}
}Setup and tuning
add a DS3231 RTC so the time survives power loss.
level 2 to 4 is readable indoors and saves current.
segments can show a few letters (A, b, C, d, E, F) using setSegments.
most TM1637 clock modules wire only the colon, not decimal points.
What you need
Shop this list3 of 4 found in our store · ₹120
TM1637 4-digit 7-segment display module: the display this guide coversTM1637 4-Digit 7-Segment Display Module₹55- Uno R3 development board: the controller used in the wiring tableFind this part
RTC IC (DS1307 / DS3231): to keep real timeRTC IC (DS1307 / DS3231)₹16
Dupont jumper wires: for the connectionsDupont Jumper Wires (40 pcs)₹49Closest match, check the specs
Alternatives and when to choose them
- MAX7219: 8 digits or dot-matrix, SPI.
- 16x2 LCD: text and numbers together.
- OLED SSD1306: graphics and small text.
Try it: 7-segment and LED matrix current calculator (multiplexing)
Change the values and the diagram and results update as you type.
Common mistakes to avoid
- Connecting it to the I2C pins and expecting an I2C address.
- Expecting decimal points on a clock module.
- Running at full brightness from a weak supply.
- Forgetting leading zeros in clock displays.
Frequently asked questions
Is TM1637 I2C?
No. It uses a similar two-wire protocol without addresses. Use any two digital pins.
Does it work with ESP32?
Yes, at 3.3 V on any two GPIO pins.
Can I show letters?
Some letters, using setSegments with segment patterns.
How do I turn on the colon?
Use showNumberDecEx with the colon bit (0b01000000).
How many can I connect?
Several, each with its own DIO pin; CLK can be shared.
Why are digits flickering?
Usually a weak supply or long wires. Shorten wires and power from a stable 5 V.
Parts for this guide
Projects that use it
Put this into practice: 71 step-by-step builds in our project library use parts from this guide.
Keep learning
Sources
- TM1637 LED drive control special circuit datasheet (Titan Micro Electronics)
- TM1637Display Arduino library
Written by the Geekobot team from manufacturer datasheets. Always check the datasheet for the exact part and variant you buy.

