What Is the TM1638? LED&KEY Driver (Display + Buttons) and Uses
The TM1638 is a driver IC that both drives many LEDs/7-segment displays and scans keys. It is the chip of the popular 'LED&KEY' modules: an 8-digit display + 8 LEDs + 8 buttons on one module. One chip drives the display and reads keys (saving pins). It is like the MAX7219 but also scans buttons. Its interface is a custom 3-wire serial; a library is usually used.
The TM1638 is an LED driver and key-scan IC that both drives many LEDs/7-segment displays and scans keys (buttons). It is the chip of the popular "LED&KEY" modules: one module has an 8-digit display + 8 LEDs + 8 buttons. For the concept, see what is an LED driver.
What is the TM1638 used for?
Control panels needing 7-segment counters/clocks/displays, button input and status LEDs. Since one chip drives the display and reads keys, it saves the microcontroller's pins; it is like the MAX7219 but also scans buttons.
Specifications
| Parameter | Value |
|---|---|
| Type | LED/7-seg driver + key scanner |
| Interface | 3-wire serial (clock/data/strobe) |
| Supply | ~3.3 – 5 V |
| Module | 8 digits + 8 LEDs + 8 buttons (LED&KEY) |
Watch out
Its interface is not standard SPI (a custom 3-wire serial); a TM1638 library is usually used. Brightness is set by command. Different module types (QYF/JY-LKM1638) differ in button mapping; verify the key mapping in code against your module.
Equivalents
- MAX7219: 7-seg/matrix driver (no key scan).
- TM1637: a simpler 4-digit display driver.
- HT16K33: I²C LED matrix + key scan.
Find it in our catalog
Use the TM1638 search.