Arduino UNO interfacing with 7 segment 4 digit displays in proteus

Arduino UNO interfacing with 7 segment 4 digit displays in proteus

In this article we will learn how to interfacing arduino UNO with 7 segment 4 digit displays in proteus.
In the last post we will learn how to interfacing arduino UNO with traffic lights in proteus. You can visit our website,
I hope you appreciate my work, let’s discuss about today’s project.

Diagram of this project is below: 

Arduino UNO interfacing with 7 segment 4 digit displays in proteus
Arduino UNO interfacing with 7 segment 4 digit displays in proteus

Components which we use in this project are listed below:

  1. Arduino UNO
  2. IC (TM 1637)
  3. 4 digit display
  4. Jumper wires

Construction of arduino UNO interfacing with traffic lights in proteus:

  • Connect the point 2 of arduino UNO to the pin 18 of IC
  • Connect the point 3 of arduino UNO to the pin 17 of IC
  • Connect the pin 1 of IC to GND
  • Connect the pin 2 of IC to the point A of 4 digit display
  • Connect the pin 3 of IC to the point B of 4 digit display
  • Connect the pin 4 of IC to the point C of 4 digit display
  • Connect the pin 5 of IC to the point D of 4 digit display
  • Connect the pin 6 of IC to the point E of 4 digit display
  • Connect the pin 7 of IC to the point F of 4 digit display
  • Connect the pin 8 of IC to the point G of 4 digit display
  • Connect the pin 9 of IC to the point DP of 4 digit display
  • Connect the pin 16 of IC to the +ve
  • Connect the pin 12 of IC to the point 4 of 4 digit display
  • Connect the pin 13 of IC to the point 3 of 4 digit display
  • Connect the pin 14 of IC to the point 2 of 4 digit display
  • Connect the pin 15 of IC to the point 1 of 4 digit display

Working of Arduino UNO interfacing with 4 digit display in proteus

Interfacing a 4-digit 7-segment display with an arduino UNO involves using the pins of arduino to control the individuals segments of the display to show different numbers of characters.

Applications of Arduino UNO interfacing with 4-digit 7-segments display in proteus are listed below:

  1. Countdown timer
  2. Temperature display
  3. Simple calculator
  4. Scoreboard
  5. Alarm clock
  6. Digital clock

Advantages of Arduino UNO interfacing with 4-digit 7-segments display in proteus are listed below:

  1. Simple display output
  2. Easy to use
  3. Cost-effective
  4. Customization
  5. Educational tool

Program code of this project 

#include <TimerOne.h>
#include “TM1637.h”
#define ON 1
#define OFF 0

int8_t TimeDisp[] = {0x00,0x00,0x00,0x00};
unsigned char ClockPoint = 1;
unsigned char Update;
unsigned char halfsecond = 0;
unsigned char second;
unsigned char minute = 0;
unsigned char hour = 12;

#define CLK 2//pins definitions for TM1637 and can be changed to other ports
#define DIO 3
TM1637 tm1637(CLK,DIO);

void setup()
{
tm1637.set();
tm1637.init();
Timer1.initialize(500000);//timing for 500ms
Timer1.attachInterrupt(TimingISR);//declare the interrupt serve routine:TimingISR
}
void loop()
{
if(Update == ON)
{
TimeUpdate();
tm1637.display(TimeDisp);
}

}
void TimingISR()
{
halfsecond ++;
Update = ON;
if(halfsecond == 2){
second ++;
if(second == 60)
{
minute ++;
if(minute == 60)
{
hour ++;
if(hour == 24)hour = 0;
minute = 0;
}
second = 0;
}
halfsecond = 0;
}
// Serial.println(second);
ClockPoint = (~ClockPoint) & 0x01;
}
void TimeUpdate(void)
{
if(ClockPoint)tm1637.point(POINT_ON);
else tm1637.point(POINT_OFF);
TimeDisp[0] = hour / 10;
TimeDisp[1] = hour % 10;
TimeDisp[2] = minute / 10;
TimeDisp[3] = minute % 10;
Update = OFF;
}