Same-day dispatch before 2 PM · Free delivery over ₹999 · GST invoices Get the appPrices incl. GST
Geekobot
Snap & SendNEWGeeko AIWhere's myOrder
Log in
Products
  • Projects
    • Component guidesHow parts work, with code you can run
    • Learning pathsFrom your first LED to your first robot
    • Workshops & eventsOnline sessions for makers and classes
    • ElectrolarkFree guided builds, simulator and certificates
    • Students & teachersStudent discount and classroom help
    • CommunityShare builds and ask other makers
    • CalculatorsOhm's law, LED resistor, 555 and 100+ more
    • Circuit builderWire parts and run the circuit, powered by Electrolark
    • Geeko AIAsk what to buy or how to wire it
    • Snap & SendPhotograph a part or list, we find it
    • Part finderAnswer a few questions, get the right part
    • Compatibility checkWill these two parts work together?
    • Compare partsSpecs side by side
    • Business & bulk ordersGST invoices, credit and volume prices
    • Request a quotationSend your list, get a quote
    • Classroom kitsPer-student kits and lab bundles
    • Gift cardsFor students, teams and events
  • Atal Tinkering Lab
BOM to cart
Geekobot

Components, kits and know-how for makers, students, engineers, labs and businesses across India.

Ask Geeko AIOrders, parts and projects, any timeEmail supportReply within 1 working dayGet the Geekobot appAdd it to your home screen, free

Follow us

Shop

  • Boards & SBCs
  • Sensors & Modules
  • IoT & Wireless
  • Drone & FPV
  • 3D Printing
  • Filaments & Resins
  • Motors & Drivers
  • Power & Batteries
  • Semiconductors
  • Passive
  • Displays & LEDs
  • Switches & Relays
  • Wires & Cables
  • Prototyping
  • Tools & Test
  • Robotics
  • STEM Kits
  • Atal Tinkering Lab
  • Mechanical Parts
  • Audio

Orders

  • Track your order
  • Help & support
  • Shipping and delivery
  • Refunds and cancellation
  • Contact us

Learn

  • Projects
  • Geeko AI project assistant
  • Learning paths
  • Guides
  • Calculators
  • Electrolark: free guided builds

Part tools

  • Part finder
  • Compare parts
  • Will it work with my board?

Institutions

  • Classroom kits
  • Atal Tinkering Lab
  • Students & teachers
  • Workshops & Events

Business

  • Business & education
  • Request a quotation
  • BOM bulk upload
  • Quick order by SKU

Company

  • About Geekobot
  • Community
  • Gift cards
  • Terms & conditions
  • Privacy policy
  • Product directory
  • Sitemap

© 2026 Geekobot, a trade name of OLatus Systems Private Limited. All rights reserved.

20, 1st Floor, Neeladri Complex, 10th Cross, Sampige Rd, 2nd Main, Malleshwaram, Bengaluru, Karnataka 560003 · GSTIN 29AACCO0462F1ZM

+91 91810 15607 · connect@geekobot.in · Monday to Saturday, 10 AM to 2 PM IST

UPI · CARDS · NETBANKING · GST INVOICES

ShopProjectsGeeko AIGuides
Compare 0 parts →
Log in

Shop by category

Shop all components
  • Boards & SBCs1,910 products
    • Alternative Single Board Computers
    • Arduino Ecosystem
    • FPGA & Logic Boards
    • Microcontroller & Wireless Boards
    View all
  • Sensors & Modules4,701 products
    • Biomedical & Heart Rate
    • Current, Voltage & Power
    • Force, Weight & Pressure
    • Gas, Weather & Environmental
    View all
  • IoT & Wireless2,314 products
    • RF Modules
    • RFID & NFC
    • Antennas & RF Accessories
    • Cameras & Smart Vision
    View all
  • Drone & FPV3,558 products
    • Flight Control & Navigation
    • FPV Video & Optics
    • Frames & Structural Parts
    • Motors & Propulsion
    View all
  • 3D Printing2,204 products
    • 3D Printers
    • 3D Scanners & Digitizers
    • Laser Engravers & Cutters
    • Material Management & Upgrades
    View all
  • Filaments & Resins1,472 products
    • Filaments
    • Photopolymer Resins
    View all
  • Motors & Drivers463 products
    • BLDC Motor Drivers
    • DC & Geared Motors
    • DC Motor Drivers
    • Linear Actuators & Solenoids
    View all
  • Power & Batteries557 products
    • Battery Holders & Connectors
    • Breadboard Power
    • Chargers & BMS
    • DC-DC Converters
    View all
  • Semiconductors295 products
    • Diodes & Rectifiers
    • Interface & RF Encoder ICs
    • Logic ICs (74xx)
    • Logic ICs (CD4000)
    View all
  • Passive67 products
    • Capacitors
    • Circuit Protection
    • Crystals & Oscillators
    • Inductors
    View all
  • Displays & LEDs572 products
    • 7-Segment & Dot Matrix
    • Addressable LEDs
    • Character LCDs
    • Graphic LCDs
    View all
  • Switches & Relays184 products
    • Keypads & Touch
    • Push Buttons & Tactile
    • Relay Modules
    • Relays
    View all
  • Wires & Cables233 products
    • Board-to-Wire Connectors
    • Crimp & Splice
    • Headers & Dupont
    • Heat Shrink & Sleeving
    View all
  • Prototyping101 products
    • Breadboards
    • Interface Modules
    • PCBs & Perfboards
    View all
  • Tools & Test717 products
    • Bench Power Supplies
    • Hand Tools
    • Measuring Tools
    • Meters & Testers
    View all
  • Robotics180 products
    • Humanoid & Legged Robots
    • Robot Chassis & Platforms
    • Robotic Arms & Grippers
    • Wheels & Casters
    View all
  • STEM Kits268 products
    • Arduino Learning Kits
    • Coding & IoT Kits
    • Early Coding (Ages 3-8)
    • Invention Kits
    View all
  • Atal Tinkering Lab196 products
    • Package 1: Electronics, Robotics, IoT and Sensors
    • Package 2: Rapid Prototyping Tools
    • Package 3: Mechanical, Electrical and Measurement Tools
    • Package 4: Power Supply, Accessories and Safety Equipment
    View all
  • Mechanical Parts212 products
    • Bearings
    • Brackets & Mounts
    • Couplers
    • Fasteners & Standoffs
    View all
  • Audio109 products
    • Amplifier Modules
    • Buzzers & Sirens
    • Speakers
    View all
  1. Home
  2. ›Guides
  3. ›Displays & LEDs
  4. ›TM1637 4-digit display

Component guide · Beginner · 3 min read

TM1637 4-digit display

Pinout, Wiring and Code

By Geekobot Learning Team · Updated 29 Oct 2026

I'm using
Wiring, code and the Run it panels follow your board.
On this page
Short answerWhat the TM1637 4-digit display isTM1637 4-digit display pinoutWiring the TM1637 4-digit displayExample codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Short answer

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
01

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.

02

TM1637 4-digit display pinout

The pins on the TM1637 4-digit display and what each one does.

PinFunction
CLKClock
DIOData
VCC3.3 to 5 V
GNDGround
PinFunction
CLK
Clock
DIO
Data
VCC
3.3 to 5 V
GND
Ground
03

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 pinArduino UnoESP32
CLKD2GPIO 18
DIOD3GPIO 19
VCC5V3V3
GNDGNDGND
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
04

Example code

Install the TM1637 library by Avishay Orpaz. showNumberDecEx with the 0b01000000 mask turns the colon on.

Show a number and a blinking clock colon · Arduino C++Verify & upload in Electrolark
#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);
    }
  }
}
05

Setup and tuning

Real clock

add a DS3231 RTC so the time survives power loss.

Brightness

level 2 to 4 is readable indoors and saves current.

Letters

segments can show a few letters (A, b, C, d, E, F) using setSegments.

Decimal points

most TM1637 clock modules wire only the colon, not decimal points.

06

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
07

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.
08

Try it: 7-segment and LED matrix current calculator (multiplexing)

Change the values and the diagram and results update as you type.

09

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.
10

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

  • TM1637 4-Digit 7-Segment Display Module
    ₹55View
  • Uno R3 Development Board (No Cable)
    ₹359View
  • RTC IC (DS1307 / DS3231)
    ₹16View
  • Dupont Jumper Wires (40 pcs)
    ₹49View
Shop 7-Segment & Dot Matrix

Projects that use it

Put this into practice: 71 step-by-step builds in our project library use parts from this guide.

Beginner · 1 hourReaction timer gameView projectBeginner · 1 hourDigital clock with real-time clockView projectBeginner · 45 minutesBig-digit room thermometerView project
Browse all 71 projects

Keep learning

How-toBeginner7-Segment DisplaysA 7-segment display is seven LEDs (plus a decimal point) arranged as a figure 8.3 min read · Displays & LEDsComparisonBeginnerDS3231 vs DS1307 Real-Time Clock ModulesA real-time clock module keeps the date and time running from a coin cell while your project is off.3 min read · Semiconductors & ICsHow-toBeginnerMAX7219 LED Dot MatrixThe MAX7219 drives an 8x8 LED matrix (or eight 7-segment digits) using only three data pins, DIN, CS and CLK, and modules chain together by wiring each module's output to the next one's input.3 min read · Displays & LEDs

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.

On this page
Short answerWhat the TM1637 4-digit display isTM1637 4-digit display pinoutWiring the TM1637 4-digit displayExample codeSetup and tuningWhat you needAlternatives and when to choose themTry itCommon mistakesFAQsParts and next steps
Need a hand?Ask Geeko AI which part fits your project, or talk to the Geekobot team.Ask Geeko AIHelp & support

Parts for this guide2 items · ₹71

TM1637 4-Digit 7-Segment Display Module · RTC IC (DS1307 / DS3231)

Run itChange the inputs and watch the output
00 00

A simulation of the sketch above, so you know what to expect. Real readings vary with your parts and wiring.

Ask the Community

Ask a question