• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Hire Me | Contact | Calculators-online
You are here: Home / Arduino Projects / Make this 7 Segment Digital Clock with Beep Alert Circuit

Make this 7 Segment Digital Clock with Beep Alert Circuit

Last Updated on May 14, 2026 by Swagatam 58 Comments

Table of Contents
  • How the Circuits Works
  • The Design:
    • Pin configuration of IC 4026:
    • The beeper circuit:
    • Program Code:
      • How to set time:

In this post I will show how to construct a digital clock using 7 segment LED display with Arduino controlled design.

How the Circuits Works

The proposed 7 segment clock circuit is inexpensive and even beginner in Arduino can accomplish it with ease. This clock consists of four 7 segment displays, two for hours and two for minutes.

The display is paired with IC 4026 which is designed for driving 7 segment displays. Each IC 4026 is controlled by Arduino.

This clock has beep alert function, which beeps every beginning of the hour, giving a rough idea about time without looking at the clock. This clock does not have alarm function.

The Arduino code doesn’t need any special library for compile the program. The clock has very minimalist design, just four displays and two LEDs for AM/PM indicator and no fancy functions other than beeping every hour.

Author’s prototype:

Test Result of 7 Segment Digital Clock

Here is a completed prototype using cardboard and scrap materials:

The Design:

The circuit consists of four IC 4026 for controlling four 7 segment displays and the brain of the clock arduino. Two pull down resistors are connected to reset pin of IC 4026 to avoid accidental reset due to static charge. AM/PM indicator connected to arduino in combination with 330 ohm current limiting resistor.

Note: 220 ohm to 330 ohm resistor should be connected each segments of display. 

7 Segment Digital Clock with Beep Alert Circuit

Pin configuration of IC 4026:

Pin configuration of IC 4026

The beeper circuit:

The beeper circuit is just a monostable multivibrator designed using IC555. When a negative pulse is fed to pin #2 of IC555, it beeps roughly for one second. This audio alert helps the user to keep a rough idea about the time. The pin #2 of IC555 should be connected to pin # 10 of arduino.

IC 555 buzzer circuit

Program Code:

//---------Program developed by R.Girish---------------//
int mint=13;
int hrs=11;
int beep=10;
int rst=8; // reset to mint ic.
int rsth=9; //reset to hrs ic.
int am=7;
int pm=6;
int y=0;
int t=0;
int x=0;
void setup()
{
pinMode(beep,OUTPUT);
pinMode(hrs,OUTPUT);
pinMode(am,OUTPUT);
pinMode(pm,OUTPUT);
pinMode(mint,OUTPUT);
pinMode(rst,OUTPUT);
pinMode(rsth,OUTPUT);
}
void loop()
{
digitalWrite(beep,1);
digitalWrite(13,0);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
digitalWrite(13,1);
t=t+1;
if(t==60)
{
digitalWrite(rst,1);
digitalWrite(rst,0);
digitalWrite(hrs,1);
digitalWrite(hrs,0);
digitalWrite(beep,0);
digitalWrite(beep,1);
x=x+1;
y=y+1;
t=0;
delay(2000);  // error fixing (varies with temperature)
}
if(x==13)  // display 1'O clock after 12'O clock.
{
digitalWrite(rsth,1);
digitalWrite(rsth,0);
digitalWrite(hrs,1);
digitalWrite(hrs,0);
x=1;
}
if(y<12)
{
digitalWrite(am,1);
digitalWrite(pm,0);
}
if(y>=12)
{
digitalWrite(pm,1);
digitalWrite(am,0);
}
if(y==24) y=0;
}
//---------Program developed by R.Girish---------------//

How to set time:

Being very minimalist design the “reset button” can be used to set time. But the user has to set the time with the help of reference clock. The user has to reset the arduino at exactly 12’O clock. One this is done the clock updates the time on its own.

Note: Since the above explained 7 segment digital clock using Arduino does not have “real time clock chip”, for maintaining accurate time, there is possibility that the time may lead/lag due to change in the ambient temperature.

To rectify this here are the steps:

•    If your clock leads the time of reference clock by few seconds it need to be slow down, note down the difference and enter the value in the program in milliseconds.

delay(2000);  // error fixing (varies with temperature)  This will slow down few seconds every hour.

•    Replace 2000 with your value.

•    If you clock lags set the “delay(0); //error fixing(varies with time)” and make the following changes in the program:

delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
to
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(10000);
delay(9700);

Replace “delay(9700);” with your value to speed up the time every minute.

These steps do not guarantee that time will be always accurate, but it helps to maintain the time with minimal inaccuracy. The proposed design is 12 hour clock.

You'll also like:

  • P 20160813 150716Arduino Digital Clock Using RTC Module
  • Robot armHow to Make a Wireless Robotic Arm using Arduino
  • L298NMobile Phone Controlled Robot Car Using DTMF Module
  • incubator layoutIncubator Using Arduino with Automatic Temperature and Humidity control

Filed Under: Arduino Projects Tagged With: Alert, Beep, Clock, Digital, Segment

About Swagatam

I am an electronics engineer and doing practical hands-on work from more than 15 years now. Building real circuits, testing them and also making PCB layouts by myself. I really love doing all these things like inventing something new, designing electronics and also helping other people like hobby guys who want to make their own cool circuits at home.

And that is the main reason why I started this website homemade-circuits.com, to share different types of circuit ideas..

If you are having any kind of doubt or question related to circuits then just write down your question in the comment box below, I am like always checking, so I guarantee I will reply you for sure!



Previous Post: « Battery Full Charge Indicator Circuit using Two Transistors
Next Post: Corona Effect Generator Circuit »

Reader Interactions

Questions & Answers

Total Posts: 58
Newest Oldest
Naina
July 9, 2025 • 1 year ago #184269

Sir ? Please help me I have to make 7 segment display project using ic 7447 I know it’s a basic one but I couldn’t get the circuit diagram so it’s difficult for me !

Reply
SwagatamAdmin
July 9, 2025 • 1 year ago #184276

Hello Naina, you can try the following circuit:
7447 counter circuit e1752050316964

Reply
Naina
July 9, 2025 • 1 year ago #184279

And can I add push botton instead of dip switchs because 7490 can count for me ! If yeah then how to add ?

Reply
SwagatamAdmin
July 9, 2025 • 1 year ago #184285

You can try the circuit from the following article, with SPDT switches:
electronics-formulas.com/explained-7-segment-display-counter-circuits/

Reply
Naina
July 10, 2025 • 1 year ago #184319

Sir I got it Understanding the Single Digit 7-segment Display Counter is this one which have push button function but circuit diagram of it is a bit confusing for me ! Can you make a simplified version of this single digit 7 segment display? For me please 🥺 one with more simplified connections ! And I’m beginner and it’s my collage assignment so please help me sir

Reply
SwagatamAdmin
July 10, 2025 • 1 year ago #184322

Naina, you can try the previous diagram with a push button attached:
7447 LED driver circuit using push button

Reply
Naina
July 11, 2025 • 1 year ago #184361

Okay that’s means I have to use 220ohm resistors! Okay 👍🏻

Reply
SwagatamAdmin
July 11, 2025 • 1 year ago #184364

Correct, you got it 👍🏻!

Reply
Naina
July 11, 2025 • 1 year ago #184359

Sir resistors value ? And pinouts of the display!

Reply
SwagatamAdmin
July 11, 2025 • 1 year ago #184360

Naina, please check this diagram, all the details are given in it:
Single Digit 7 segment Display Counter circuit 1024&

Reply
Naina
July 10, 2025 • 1 year ago #184324

What’s the resistance value of the R1 to r7 ? And at which pin should I connect them at display? There’s no mention of the displays connection and pinout !

Reply
Naina
July 9, 2025 • 1 year ago #184277

Sir displays connection is a bit confusing can you simplify it ? And what’s u2(cka) ? And did I have to use 2 ic ?

Reply
SwagatamAdmin
July 9, 2025 • 1 year ago #184284

You can try the following circuit instead of the previous one:
7447 LED driver using DIP switch

Reply
Naina
July 14, 2025 • 1 year ago #184476

Sir what’s the specifications of this circuit means should I have to use 1k resistors and dip switchs that’s all ?

Reply
SwagatamAdmin
July 15, 2025 • 1 year ago #184484

Naina, yes you can use 1k pull-up resistors in series with the DIP switches, as you change the switch connections, you will see the appropriate figure on the display.

Reply
Naina
July 15, 2025 • 1 year ago #184508

No sir it didn’t worked I have done all the connection rightly but still display didn’t light up ! Even I’m giving it 5v still nothing is happening I have connected 1led with dip switchs and resistors it worked but not the display I even changed ic !

Reply
SwagatamAdmin
July 16, 2025 • 1 year ago #184513

Please do the connections as per the following circuit, it will work 100%
the 74LS47 Decoder Circuit 1024&

Reply
Naina
July 16, 2025 • 1 year ago #184515

Oh no I have not added 220 ohm resistors between 7447 to display do I have to ?

Reply
SwagatamAdmin
July 16, 2025 • 1 year ago #184516

In this new diagram you have to add, but not in the earlier diagram, because the earlier diagram has a common R2 with the display negative supply…

Reply
Naina
July 16, 2025 • 1 year ago #184518

And should I add R1 resistor also ?

Reply
SwagatamAdmin
July 16, 2025 • 1 year ago #184522

Please do it exactly as given in the last diagram, which I suggested today.

Reply
Naina
July 16, 2025 • 1 year ago #184517

Then why shouldn’t I add R2 resistors but it’s not negetive it’s in the positive line and what’s the value of the R2 resistor ! It will be much more easier then adding bunch of 220 ohm resistors isn’t it ?

Reply
SwagatamAdmin
July 16, 2025 • 1 year ago #184521

If you add a single resistor then the display light will get weaker and weaker as more digits illuminate and thus the illumination of the digits will not be uniform…

Reply
Naina
July 16, 2025 • 1 year ago #184523

So instead of adding R2 resistor I have to add 220 ohm resistors between ic and display! That’s all nah ?

Reply
SwagatamAdmin
July 16, 2025 • 1 year ago #184524

Yes, that’s right, to ensure the display gets a uniform illumination for all digits…

Reply
Naina
July 19, 2025 • 1 year ago #184591

Nope sir I have added 220ohm resistors but still display didn’t light up why ?

SwagatamAdmin
July 20, 2025 • 1 year ago #184607

Naina, please check if your display is common-anode or not. If it is common-cathode then it will not work. You can put series LEDs with 220 ohm resistors to check if the outputs are producing the required voltages or not.

Naina
July 20, 2025 • 1 year ago #184614

I have checked the output voltage and its only 1.9 or .8 or .9 in all the pins without even switching dip switchs!

SwagatamAdmin
July 20, 2025 • 1 year ago #184615

Connect LEDs between positive supply and the the IC output pins through resistors, and then switch ON the switches and check the response…

Naina
July 20, 2025 • 1 year ago #184617

Yeah sir working but even if the switches is off leds are on there 4.8v and 3.8 v at some pin some leds are dim and some are fine how ? That’s means ic is faulty and display also ?

SwagatamAdmin
July 20, 2025 • 1 year ago #184618

If you have used 5V correctly for the IC, then the IC could be possibly faulty. You can check the display separately by connecting its common anodes to positive and then joining the other pins with ground through a 1k resistor. If the display lights up then the display is ok…

Naina
July 20, 2025 • 1 year ago #184636

Sir can I swap 7448 ic ? Because it’s a chathod one ! Do I have to change any pinouts ?

SwagatamAdmin
July 21, 2025 • 1 year ago #184648

IC 74LS47 and 7447 are one and the same and have exactly identical pinouts, only the supply range is different 74LS47 requires strict 5V to operate while 7447 can be used with voltages upto 15V. So no, that won’t work. Please change your display.

Naina
July 20, 2025 • 1 year ago #184635

Sir I have bought common chathod display 😥😢 what should I do now ? Because in the output pins of the ic I get signals in nagative line and this display works on postive line and com chathod !

SwagatamAdmin
July 21, 2025 • 1 year ago #184647

Naina, that’s what I told you in my previous comment, to check the display specs. Common cathode will not work here, it should be common anode. And that’s why your circuit is not working…

Naina
July 15, 2025 • 1 year ago #184491

And what’s the value of R1 and r0 is 1k ?

Reply
SwagatamAdmin
July 15, 2025 • 1 year ago #184495

R1 is not required, you can connect +5V directly to that point. R0 can be all 1k…

Reply
Naina
July 15, 2025 • 1 year ago #184490

Sir I’m using 10 switch dip switchs so can this work ? And if yeah then where to connect rest of the 6 switchs ? And I have to use normal 1k resistors to all the switches?

Reply
SwagatamAdmin
July 15, 2025 • 1 year ago #184493

You can keep the remaining switches unused and unconnected. Yes, use standard 1k 1/4 watt 5% resistors.

Reply
Naina
July 10, 2025 • 1 year ago #184325

Sir just like this in this circuit diagram you can easily point out which connection is made to which pin so that’s perfect can you make like this ? It’s the most simplified version I have ever see all we have to do is add 7490 and push botton! Thanks for helping sir 🥺

Reply
SwagatamAdmin
July 10, 2025 • 1 year ago #184327

You are most welcome Naina, glad it helped you!

Reply
SwagatamAdmin
July 10, 2025 • 1 year ago #184326

Naina, you can find all the details in the following article, in the 3rd diagram from top:
https://electronics-formulas.com/explained-7-segment-display-counter-circuits/

Reply
Naina
July 10, 2025 • 1 year ago #184329

Sir this is still confusing my mind is getting blasts I need to complete this project and submit it within 2 days can you please provide me completely mentioned connection and simplified version of this push botton function 7 segment display project? 😭😭😭😭😭 Please 🥺 🙏🏻

Reply
SwagatamAdmin
July 11, 2025 • 1 year ago #184353

Hello Naina,
The pin connections are clearly shown in the diagram, right? So you just have to follow the diagram and write it down as per the given connections.
You sound exactly like Mr. Neeraj, another avid reader of this blog 😀

Reply
View Older Comments

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

Your email address will not be published. Required fields are marked *

Primary Sidebar



Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (134)
  • Automation Projects (18)
  • Automobile Electronics (103)
  • Battery Charger Circuits (89)
  • Datasheets and Components (109)
  • Electronics Theory (150)
  • Energy from Magnets and Earth (40)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (100)
  • Lamps and Lights (163)
  • Meters and Testers (72)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (30)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Security and Alarm (65)
  • Sensors and Detectors (107)
  • SMPS and Converters (46)
  • Solar Controller Circuits (62)
  • Temperature Controllers (44)
  • Timer and Delay Relay (50)
  • Voltage Control and Protection (44)
  • Water Controller (37)
  • Wireless Circuits (31)



Circuit Simulator

circuit simulator image



Subscribe to get New Circuits in your Email



Other Links

  • Privacy Policy
  • Cookie Policy
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

People also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |



Recent Comments

  • Swagatam on 2 Cool 50 Watt Inverter Circuits for Students and Hobbyists
  • way on 2 Cool 50 Watt Inverter Circuits for Students and Hobbyists
  • Swagatam on 2 Cool 50 Watt Inverter Circuits for Students and Hobbyists
  • Swagatam on The Perfect FM Radio Circuit using TDA7000 IC
  • Swagatam on 9 Simple Sine Wave Generator Circuits Explored

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Stack Exchange
  • Linkedin

© 2026 · Swagatam Innovations