TM1637 4-digit 7-segment display with ESP32
Supply 3.3-5 V
Bus GPIO
Pins and ESP32 wiring
| Pin | Role | ESP32 pin | Notes |
|---|---|---|---|
| CLK | Input (the ESP32 drives it) | D25 | Clock (not I2C, not SPI) |
| DIO | Input (the ESP32 drives it) | D26 | Data (not I2C) |
| GND | Ground | GND | |
| 5V | Power | 3V3 | Works at 3.3 V or 5 V |
Suggested wiring for the 30-pin ESP32 DevKit, avoiding flash, input-only and strapping pins. BoardPilot checks it for you as you wire.
Good to know
- CLK and DIO are not I2C: use a TM1637 library. Any two pins work. (Titan Micro TM1637 datasheet, Two-wire serial interface)
Sources
- Titan Micro TM1637 datasheet, Two-wire interface CLK / DIO (not I2C compatible)
Try it in 3D in BoardPilot
TM1637 4-digit 7-segment display on other boards: wiring and code
Arduino Mega 2560 R3 Arduino Nano Arduino Uno R3 WeAct Black Pill STM32F411CE ESP32-C3-DevKitM-1 ESP32-S3-DevKitC-1 Nordic nRF52840 DK NUCLEO-F401RE Raspberry Pi Pico 2 Raspberry Pi Pico W Raspberry Pi Pico Teensy 4.1
Learn the basics
Lesson: GPIO: pins in and out GPIO
Related parts
7-segment 4 digits 0.56" common cathode (12 pins)7-segment digit 0.56" common anode7-segment digit 0.56" common cathodeLCD 16x2 (parallel, 16 pins)LED bar graph 10 segmentsNeoPixel Stick 8 LEDs
Part data: CC BY 4.0, free to reuse with credit to BoardPilot.