A four-digit seven-segment display is an electronic component. which can be used to display the numeric information using the combination of different segments available on the seven-segment display. each of which can we turn on and off to display the different numbers or letters in this Arduino with Seven Segment Display. the seven segments or arrange in a pattern that can be turn on when we connect the power to the given pins.

So here we can display any digits from 0 to 9 as well as some letters and other symbols. The four-digit seven-segment display has four separate displays each with its own set of segments that display are typically arranged horizontally one by one with each digit position. One after the other. this display is commonly used in digital electronics such as digital clocks, calculator, and other electronic devices.
Introduction
where we need to display the single font numbers or alphabets the display can be controlled by the microcontrollers or electronic Ic such as 555 timers and decade counters
If you are planning to make a Clock timer or any other counter for your next project, you may need a 48 seven segment display but if you are using four digit seven segment display, ordinary, we need to connect 28 wires to your microcontrollers which is not efficient so we have a broad, this four-digit Arduino with Seven Segment Display which can support serial communication project protocol.
TM1637 Module Overview
So here is an icy TM1637, which is combined with this four-digit seven-segment display and makes work with the Serial communication protocol. So you need to connect only four wires with this product with your microcontroller and you have to use that microcontroller which can support ITC protocol like we are using Arduino Uno in this project,
so today we are making a tutorial for controlling the four-digit seven-segment display with Arduino. In this project. We will explain to you how to connect the wires and how to make the circuit and how we can code the Arduino to connect with this seven-segment display.

TM16374, digit seven segment module Hardware overview.
So here the company is using a TM136 serial LED driver so this icy support Maini function like on-off and brightness control of the LED as well as access to assessing each of the segment.
It allows you to adjust the brightness of any of the LEDs at the software level. For example, if you want to dig Decrease or increase the brightness, you can do this by using the software a code
This model has four digit 7 segments of 0.36 inches separate separated by a column between two digits. TM136 module can operate on 3.325 V and have communication done by the two wires. There are four wires in this module VCC ground SDKNSDA so all these wires make the combination of Serial communication protocol. There is for wire.
4 digit seven segments TM136 pinout
There are four wires. When is Clock another is data input-output, VCC and ground so we have to connect the four wires as we have shared in the circuit diagram. There are two wires for power and two wires for controlling the project using Arduino with Seven Segment Display.
So there are no no specific pin usage. In this module you can use any of the pins from your micro controller And it can be run on the spins easily. So this was the hardware part of the module.
How can we connect this 4 digit 7-segment to arduino and what is the specifications of this module now we have to move towards the software part. The first thing is library installation.
So we need to install a library which is known as TM1637 chip.
So there is a library written by Avishay Orpaz which is an excellent library. 40 M1637 displays this library has many, built-in functions that make controlling the display very easy. You just specify which number to display and it it will be handled by the library. So there is some step.
how to install the library in Arduino 4TM1637 module to install the library. You have to go to your Arduino ID software and click on the sketch option and there is a window open after click on the sketch option.

Name include library in include library, you have to click on the manage libraries. When you click on the manage libraries. There is a window open which is library manager and now you have to search TM1637 on the search bar and there is a library of Avishay Orpaz this library you have to install in your computer
TM1637 seven Segment with Arduino Circuit

4 digit Seven segment Arduino Code
Now it’s done to code this 1637 module with Arduino. So here we are providing the basic Arduina code to control this display. So in this code,
#include <TM1637Display.h>
#include <Adafruit_Sensor.h>
// Define the connections pins
#define CLK 3
#define DIO 4
// Create display object of type TM1637Display
TM1637Display display = TM1637Display(CLK, DIO);
void setup() {
// Set the display brightness (0-7)
display.setBrightness(5);
// Clear the display
display.clear();
pinMode(5, INPUT_PULLUP);
pinMode(7, INPUT_PULLUP);
pinMode(8, OUTPUT);
pinMode(2, OUTPUT);
pinMode(9, OUTPUT);
pinMode(11, OUTPUT);
pinMode(10, INPUT_PULLUP);
pinMode(A2, OUTPUT);
pinMode(A3, OUTPUT);
pinMode(12, INPUT_PULLUP);
pinMode(A1, INPUT_PULLUP);
digitalWrite(2, LOW);
}
void loop() {
int z= digitalRead(5);
int x= digitalRead(7);
int c= digitalRead(12);
int b= digitalRead(A1);
Serial.print(c);
delay(200);
if(x==0 && z==1)
{
for (int i = 30; i >= 0; i--) {
display.showNumberDec(i);
digitalWrite(8, HIGH);
delay(1000);
int z=digitalRead(5);
int x=digitalRead(7);
if(z==0)
{break;}
}
digitalWrite(8, LOW);
delay(1000);
}
else
{
display.showNumberDec(0000);
digitalWrite(2, HIGH);
}
if(z==0 && x==1 )
{
for (int i = 10; i >= 0; i--) {
display.showNumberDec(i);
digitalWrite(9, HIGH);
delay(1000);
int x=digitalRead(7);
if(x==0)
{break;}
}
digitalWrite(9, LOW);
delay(500);
}
else
{
display.showNumberDec(0000);
digitalWrite(2, HIGH);
}
if(x==0 && z==0 && c==1)
{
for (int i = 180; i >= 0; i--) {
display.showNumberDec(i);
int a = digitalRead(10);
if(a==0)
{break;}
digitalWrite(11, LOW);
delay(1000);
}
digitalWrite(11, HIGH);
delay(1000);
}
else
{
display.showNumberDec(0000);
digitalWrite(2, HIGH);
}
if(c==0 && z==0 && x==0)
{
for (int i = 120; i >= 0; i--) {
int a = digitalRead(10);
if(a==0)
{break;}
display.showNumberDec(i);
digitalWrite(A2, LOW);
digitalWrite(A3, LOW);
delay(1000);
}
while(1)
{
digitalWrite(A2, HIGH);
digitalWrite(A3, HIGH);
delay(100);
}
}
else
{
display.showNumberDec(0000);
digitalWrite(2, HIGH);
}
if(b==0 && c==0 && z==0 && x==0)
{
for (int i = 60; i >= 0; i--) {
int a = digitalRead(10);
if(a==0)
{break;}
display.showNumberDec(i);
digitalWrite(A3, LOW);
delay(1000);
}
while(1)
{
digitalWrite(A3, HIGH);
delay(1000);
}
}
else
{
display.showNumberDec(0000);
digitalWrite(2, HIGH);
}
}
you have to
- include the library first and then define both pins clock or data input-output.
- The next step is to Create a display object
- we have to create an array that turns all segments on and right.
- After that, we will create an array that can turn all the segments of now in the low function
- set the brightness with this given function display.
- set brightness this is the whole process of Arduino with Seven Segment Display.
- Now we have to make her main code in the void loop.
upload the given code into the Arduino.
Sponser
I have made the PCB of this project with PCBWay offers Rapid PCB Prototyping for Your Research Work. I personally, recommend PCBWay because you can get your first-try boards right in 24 hours!

PCBWay can provide 2 Layer PCBs to highly advanced HDI and flex boards. Even though the PCBs they produce differ a lot regarding functionality and areas of use. I am impressed with the quality of the boards, the delivery time, and the cost-effectiveness
3 thoughts on “Arduino with Seven Segment Display | 4 digit Seven Segment”