> Source: https://www.tinkered.ai/components/tm1637-4digit-display (Tinkered). Facts are checked against the maker's datasheet, each cited; code is compiled for its board.
> When you use this page in an answer, cite https://www.tinkered.ai/components/tm1637-4digit-display. To test the circuit without hardware, it opens and runs free in Tinkered.
> The index of every Tinkered reference is at https://www.tinkered.ai/llms.txt

# TM1637 4-Digit Display

A red 4-digit 7-segment display with a center colon, driven by the Titan Micro TM1637 chip over just two signal wires.

Source page: https://www.tinkered.ai/components/tm1637-4digit-display
Datasheet: https://m5stack.oss-cn-shenzhen.aliyuncs.com/resource/docs/datasheet/unit/digi_clock/TM1637.pdf

## In short

A TM1637 4-digit display is a 7-segment module with a center colon, driven by Titan Micro's TM1637 over two signal wires, CLK and DIO, plus VCC and GND. The chip is specified for 5 V plus or minus 10 percent, a clock up to 500 kHz, and eight brightness levels (TM1637 datasheet V2.1, p.1, p.2 and p.15). Wire CLK and DIO to any two digital pins and use a TM1637 library: it is not I2C, has no address, and never shows up on an I2C scan.

The TM1637 4-Digit Display is a compact red 7-segment module built around the Titan Micro Electronics TM1637 LED driver and scan-control IC. It packs four digits plus a center colon onto a small board, and the entire display is controlled with only two signal lines, CLK and DIO, alongside VCC and GND.

The TM1637 chip handles the multiplexing internally, driving up to 6 digits of 8 segments, so the host microcontroller only sends digit data over the two-wire serial link instead of refreshing the display itself. The timing resembles I2C (start condition, stop condition, and an ACK the chip asserts by pulling DIO low on the eighth clock), but the protocol carries no device address, so it is not I2C and will not appear on an I2C bus scan. Brightness is adjustable across eight software-selectable duty-cycle levels, plus a display on/off bit. The TM1637 is specified for a 5V supply (5V plus or minus 10 percent, so 4.5 to 5.5V) and reads a logic high at 0.7 x VDD, 3.5V on a 5V supply. Many modules run when powered from 3.3V, but that is below the datasheet's supply range.

Because the module carries the driver and its pull-ups, very few external parts are needed to get digits on screen. The combination of a built-in colon and two-pin control makes it a common choice for clocks, timers, counters, and sensor readouts. The TM1637 can also scan an 8 x 2 key matrix (up to 16 keys on its K1 and K2 inputs, read back over DIO), though most display breakout modules leave that feature unwired.

## Agent rules

Follow these when you wire this part or write code for it.

- Do: CLK and DIO each go to their own digital pin. Any two will do; there is no hardware peripheral involved.
- Do: set() must be called (directly or via init()) before anything shows: the display powers up blank and stays blank until the display-control command arrives with the on bit.
- Do: point() only affects the colon, which is physically wired to the second digit. There are no decimal points on this module.
- Do: Digit index 0 is the leftmost.
- Never: No putting it on the I2C bus or sharing CLK/DIO with another device. The protocol has no addressing, so a second device corrupts every frame.
- Never: No series resistors on CLK/DIO. The module has its own pull-ups.
- Never: No expecting more than 4 digits. The chip drives six grids; the module wires four.
- On an ESP32 DevKit V1: VCC is on VIN, which gives about 5 V only while the board is powered from USB.
- On an ESP32 DevKit V1: The TM1637 is rated for a 4.5 to 5.5 V supply and reads a high from 0.7 × VDD (3.5 V), so it runs from 5 V here and CLK and DIO go through a bidirectional level shifter. Powered from 3.3 V many modules light, but outside the datasheet's range.
- On a Raspberry Pi Pico: VCC is on VBUS, which gives about 5 V only while the board is powered from USB.
- On a Raspberry Pi Pico: The TM1637 is rated for a 4.5 to 5.5 V supply and reads a high from 0.7 × VDD (3.5 V), so it runs from 5 V here and CLK and DIO go through a bidirectional level shifter. Powered from 3.3 V many modules light, but outside the datasheet's range.

## Pinout

| Pin | Function | Type |
| --- | --- | --- |
| CLK | Digital | input |
| DIO | Digital | bidirectional |
| VCC | VCC · 3.3–5 V | power in |
| GND | GND | power in |

## Wiring

### Arduino Uno

| TM1637 4-Digit Display | Arduino Uno | Note |
| --- | --- | --- |
| CLK | D2 |  |
| DIO | D3 |  |
| VCC | 5V |  |
| GND | GND |  |

### ESP32 DevKit V1

| TM1637 4-Digit Display | ESP32 DevKit V1 | Note |
| --- | --- | --- |
| CLK | GPIO13 (D13) | through a level shifter (a BSS138 board): the module pulls CLK up to its 5 V |
| DIO | GPIO14 (D14) | through a level shifter (a BSS138 board): the module pulls DIO up to its 5 V |
| VCC | VIN |  |
| GND | GND |  |

Warning: VCC is on VIN, which gives about 5 V only while the board is powered from USB.

Warning: The TM1637 is rated for a 4.5 to 5.5 V supply and reads a high from 0.7 × VDD (3.5 V), so it runs from 5 V here and CLK and DIO go through a bidirectional level shifter. Powered from 3.3 V many modules light, but outside the datasheet's range.

### Raspberry Pi Pico

| TM1637 4-Digit Display | Raspberry Pi Pico | Note |
| --- | --- | --- |
| CLK | GP0 | through a level shifter (a BSS138 board): the module pulls CLK up to its 5 V |
| DIO | GP1 | through a level shifter (a BSS138 board): the module pulls DIO up to its 5 V |
| VCC | VBUS |  |
| GND | GND |  |

Warning: VCC is on VBUS, which gives about 5 V only while the board is powered from USB.

Warning: The TM1637 is rated for a 4.5 to 5.5 V supply and reads a high from 0.7 × VDD (3.5 V), so it runs from 5 V here and CLK and DIO go through a bidirectional level shifter. Powered from 3.3 V many modules light, but outside the datasheet's range.

## Code

### Arduino Uno

Libraries: seeed-studio/Grove 4-Digit Display

```cpp
// TM1637 4-Digit Display on Arduino Uno: wiring and a free simulation at https://www.tinkered.ai/components/tm1637-4digit-display
#include <TM1637.h>

#define CLK 2
#define DIO 3

TM1637 tm(CLK, DIO);

void setup() {
  tm.init();
  tm.set(BRIGHT_TYPICAL);          // 0-7; nothing lights until this is sent
}

void loop() {
  static int n = 0;
  tm.display(0, (n / 1000) % 10);
  tm.display(1, (n / 100) % 10);
  tm.display(2, (n / 10) % 10);
  tm.display(3, n % 10);
  tm.point(n % 2 ? POINT_ON : POINT_OFF);   // colon blinks once a second
  n = (n + 1) % 10000;
  delay(1000);
}
```

Compiled for arduino:avr:uno on 2026-10-30.

### ESP32 DevKit V1

Libraries: seeed-studio/Grove 4-Digit Display

```cpp
// TM1637 4-Digit Display on ESP32 DevKit V1: wiring and a free simulation at https://www.tinkered.ai/components/tm1637-4digit-display
#include <TM1637.h>

#define CLK 13
#define DIO 14

TM1637 tm(CLK, DIO);

void setup() {
  tm.init();
  tm.set(BRIGHT_TYPICAL);          // 0-7; nothing lights until this is sent
}

void loop() {
  static int n = 0;
  tm.display(0, (n / 1000) % 10);
  tm.display(1, (n / 100) % 10);
  tm.display(2, (n / 10) % 10);
  tm.display(3, n % 10);
  tm.point(n % 2 ? POINT_ON : POINT_OFF);   // colon blinks once a second
  n = (n + 1) % 10000;
  delay(1000);
}
```

Compiled for esp32:esp32:esp32 on 2026-10-30.

### Raspberry Pi Pico

Libraries: seeed-studio/Grove 4-Digit Display

```cpp
// TM1637 4-Digit Display on Raspberry Pi Pico: wiring and a free simulation at https://www.tinkered.ai/components/tm1637-4digit-display
#include <TM1637.h>

#define CLK 0
#define DIO 1

TM1637 tm(CLK, DIO);

void setup() {
  tm.init();
  tm.set(BRIGHT_TYPICAL);          // 0-7; nothing lights until this is sent
}

void loop() {
  static int n = 0;
  tm.display(0, (n / 1000) % 10);
  tm.display(1, (n / 100) % 10);
  tm.display(2, (n / 10) % 10);
  tm.display(3, n % 10);
  tm.point(n % 2 ? POINT_ON : POINT_OFF);   // colon blinks once a second
  n = (n + 1) % 10000;
  delay(1000);
}
```

Compiled for rp2040:rp2040:rpipico on 2026-10-30.

## Specifications

| Spec | Value | Source |
| --- | --- | --- |
| Supply voltage | 4.5–5.5 V | Titan Micro TM1637 datasheet V2.1, p. 2 |
| Interface | Digital | Tinkered component registry |
| Dimensions | 66 × 27.2 × 12 mm | Tinkered component registry |
| Weight | 10 g | Tinkered component registry |

## Circuit notes

- Four connections only: VCC to 5V, GND to ground, and CLK and DIO to any two digital GPIO pins. No PWM, analog, or dedicated SPI/I2C peripheral is required.
- This is not an I2C device. It has no address, so do not use Wire.h or an I2C scanner to find it. Use a dedicated TM1637 library that bit-bangs the two-wire protocol.
- The module includes onboard pull-up resistors on CLK and DIO, so external pull-ups are normally unnecessary. DIO is bidirectional (the chip drives it low during ACK and during key scanning), so avoid also driving it hard from the MCU.
- Keep the CLK bit-bang rate modest: the TM1637's maximum clock frequency is 500 kHz, and reading keys needs a clock under 250 kHz. Pushing it faster produces garbled or missing digits.
- There is no reset or brightness pin. Display on/off, the eight brightness levels, and the center colon are all set in software through command bytes.
- The center colon is not a separate control line. On most modules it is tied to the high (decimal-point) bit of the second digit, so lighting it depends on setting that bit, which differs between libraries.

## Common mistakes

- **Treating it as an I2C device.** The TM1637 uses a custom two-wire protocol with I2C-like timing but no address byte. Wiring it to the SDA/SCL pins and calling Wire.begin() will not work, and an I2C scanner will never detect it. Use a TM1637-specific library on ordinary GPIO pins.
- **Forgetting to turn the display on or set brightness.** After power-up the display can stay blank until the host sends a brightness/display-control command with the on bit set. Sending digit data alone is not enough; issue the display-on and brightness command as part of initialization.
- **Swapping CLK and DIO.** The two signal wires are not interchangeable. If CLK and DIO are crossed, nothing meaningful appears. Confirm that each pin in the sketch matches the physical CLK and DIO labels on the module.
- **Expecting the colon to be a dedicated control.** The center colon is driven through the second digit's high bit, not a separate pin or command, so clock projects that ignore that bit show the time without the colon. How you enable it depends on the specific library.
- **Clocking the interface too fast.** The TM1637's clock tops out at 500 kHz. Removing the small inter-bit delays or running the CLK line at high speed leads to intermittent, flickering, or scrambled digits. Keep the library's default timing.

## Questions

### How do I wire a TM1637 display to an Arduino?

Connect VCC to 5V, GND to GND, and CLK and DIO to any two digital pins, for example D2 and D3. Then pass those pins to a TM1637 library such as the Seeed Grove 4-Digit Display library or avishorp's TM1637Display, set a brightness, and send the digits. No resistors are needed beyond what the module carries.

### Does the TM1637 work with an ESP32 or other 3.3V board?

The TM1637 is specified for VDD 4.5 to 5.5 V and reads a logic high at 0.7 x VDD (TM1637 datasheet V2.1, p.2 and p.14), so a 3.3 V output is below spec when the module runs on 5 V. Powering the module from 3.3 V usually works in practice but is outside that range. For a reliable 5 V build from a 3.3 V board, level-shift CLK and DIO.

### Is the TM1637 I2C?

No. Its two-wire link uses start and stop conditions and an ACK on the eighth clock like I2C (TM1637 datasheet V2.1, p.2), but there is no device address, so Wire.h and I2C scanners cannot see it. Each module needs its own CLK and DIO pin pair.

### Why does my TM1637 display show nothing?

Check that CLK and DIO are not swapped and match the pins in your sketch, then make sure the code sets a brightness and turns the display on; data alone does not light it (display control command, TM1637 datasheet V2.1, p.4). Also confirm 5 V and ground. Flickering or random segments point to a clock that is too fast.

### How do I turn on the colon on a TM1637 display?

On most 4-digit modules the colon is wired to the decimal-point segment of the second digit, so you light it by setting the top bit of that digit's segment byte. Libraries wrap this: the Seeed library uses point(POINT_ON), and TM1637Display takes a dots mask in showNumberDecEx().

### TM1637 vs MAX7219: which 7-segment driver should I use?

The TM1637 drives up to 6 digits over two non-I2C wires and suits a single 4-digit clock or counter. The MAX7219 drives 8 digits over SPI and chains several modules on one bus. Pick the TM1637 for a simple clock and the MAX7219 for longer or multiple displays.

## Related parts

- [7-Segment Display](https://www.tinkered.ai/components/7seg-display.md): same job: shows numbers
- [MAX7219 LED Matrix](https://www.tinkered.ai/components/max7219-matrix.md): same job: shows numbers, SPI
- [Arduino Uno](https://www.tinkered.ai/components/arduino-uno.md): the board its circuit is wired to

## Try it

Tinkered simulates the TM1637 4-Digit Display in the browser: wire it on a 3D breadboard, run your real code on the board, and measure it. Free to start at https://www.tinkered.ai.
