Robotics Lab / Interactive electronics
Arduino Seven-Segment Display Simulator
Explore an eight-digit TM1638 LED display, inspect the Arduino wiring, and run editable Arduino code examples. Yellow parameters control the live simulation.
● Beginner friendly01 SVG circuit & display
Live outputEight-digit seven-segment LED display
Stopped · display idle
--------
Arduino UNO → 3-wire control bus → TM1638
02 Arduino codes
Select a sketch. Edit the yellow-highlighted parameters below; the Arduino sketch and simulated display update together.
Yellow = editable parameter values
Understand the circuit
03 How does the TM1638 display work?
The TM1638 controls eight seven-segment digits, LEDs and key scanning through a three-signal interface. The Arduino sends character patterns to the driver instead of wiring every segment separately.
1 · Connect the bus
UNO D7 → STB, D8 → CLK, D9 → DIO. Connect 5V and GND to the module.
2 · Encode characters
Each character is converted into seven segment bits (a–g). Some alphabetic characters cannot be represented accurately.
3 · Update the display
Press Play to simulate the sketch. Static text stays fixed; scroll, counter and clock modes update over time.
Hardware note:
This browser page simulates the display; it does not execute C++ or communicate with a physical Arduino. The copied sketch uses the
TM1638plus
Arduino library (install it through Arduino IDE Library Manager). Many TM1638 boards use a 5V supply; confirm your particular module's pin labels before connecting it. Clock mode measures elapsed time since startup, not real-world time.