7-Segment LED
7-Segment LED
4
5V
Approximately 10mA
Up to 120 degrees
High
TM1637
5-pin (CLK, DIO, VCC, GND)
-20C to 70C
-30C to 85C
Applications
| The TM1637 4 Digit 7 Segment LED Display is suitable for various IoT and embedded system applications, including |
Arduino and Raspberry Pi projects
Weather stations
Clocks and timers
Industrial control systems
Home automation systems
Robotics and automation projects
Medical devices
Consumer electronics
In summary, the TM1637 4 Digit 7 Segment LED Display is a compact, low-power, and easy-to-use display module suitable for various applications that require a numerical display. Its simple interface, low power consumption, and high brightness make it an ideal choice for IoT and embedded system projects.
TM1637 4 Digit 7 Segment LED Display DocumentationOverviewThe TM1637 4 Digit 7 Segment LED Display is a compact, high-brightness display module designed for use in a wide range of applications, including IoT projects, robots, and home automation systems. This display module is based on the TM1637 IC, which provides a simple and efficient way to drive a 4-digit 7-segment LED display.PinoutThe TM1637 4 Digit 7 Segment LED Display module typically has the following pinout:| Pin | Function |
| --- | --- |
| VCC | Power supply (5V) |
| GND | Ground |
| CLK | Clock signal |
| DIO | Data signal |
| STB | Strobe signal |Connecting to a MicrocontrollerTo use the TM1637 4 Digit 7 Segment LED Display module, you'll need to connect it to a microcontroller, such as an Arduino or Raspberry Pi. The following diagram shows a typical connection:```
+---------------+
| Microcontroller |
+---------------+
|
|
v
+---------------+
| TM1637 Module |
| (4 Digit 7-Seg) |
+---------------+
|
|
v
+---------------+
| VCC | 5V |
| GND | GND |
| CLK | Digital Pin |
| DIO | Digital Pin |
| STB | Digital Pin |
+---------------+
```Code Examples### Example 1: Arduino - Displaying a Static NumberThis example demonstrates how to use the TM1637 4 Digit 7 Segment LED Display module with an Arduino board to display a static number:
```c
#include <TM1637.h>#define CLK 2 // Clock signal pin
#define DIO 3 // Data signal pin
#define STB 4 // Strobe signal pinTM1637 tm1637(CLK, DIO, STB);void setup() {
tm1637.init();
tm1637.setBrightness(5); // Set brightness to 5 (out of 7)
}void loop() {
tm1637.display(1234); // Display the number 1234
delay(1000); // Wait 1 second
}
```### Example 2: Raspberry Pi - Displaying a Dynamic CounterThis example demonstrates how to use the TM1637 4 Digit 7 Segment LED Display module with a Raspberry Pi to display a dynamic counter:
```python
import RPi.GPIO as GPIO
import time# Define the pins
CLK = 17
DIO = 23
STB = 24# Set up GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(CLK, GPIO.OUT)
GPIO.setup(DIO, GPIO.OUT)
GPIO.setup(STB, GPIO.OUT)# Initialize the display
GPIO.output(STB, GPIO.LOW)
GPIO.output(CLK, GPIO.LOW)
GPIO.output(DIO, GPIO.LOW)counter = 0
while True:
# Display the counter value
GPIO.output(STB, GPIO.LOW)
for digit in str(counter).zfill(4):
GPIO.output(DIO, int(digit))
GPIO.output(CLK, GPIO.HIGH)
GPIO.output(CLK, GPIO.LOW)
GPIO.output(STB, GPIO.HIGH)# Increment the counter
counter += 1
counter %= 10000 # Reset to 0 at 10000# Wait 1 second
time.sleep(1)
```Note: These examples are just a starting point, and you'll need to adjust the pin connections and code to suit your specific project requirements. Additionally, make sure to consult the datasheet for the TM1637 IC and the module's documentation for more information on using the display module.