• 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 | Contact | Calculators-online
You are here: Home / Arduino Projects / Make this 7 Segment Digital Clock with Beep Alert Circuit

DIY Circuits | Learn Basics | Arduino Coding

Make this 7 Segment Digital Clock with Beep Alert Circuit

Last Updated on December 5, 2024 by Swagatam 58 Comments

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:

  • Smart Bathroom Exhaust Fan Controller Circuit with Sensors
  • speaker schemPlaying a Melody Using Arduino
  • Ammeter analogMake this Advanced Digital Ammeter using Arduino
  • schematic 1Color Detector Circuit with Arduino Code

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

Comments

Naina says:
July 9, 2025 at 10:20 am

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
Swagatam says:
July 9, 2025 at 2:09 pm

Hello Naina, you can try the following circuit:
https://www.homemade-circuits.com/wp-content/uploads/2025/07/7447-counter-circuit-e1752050316964.jpg

Reply
Naina says:
July 9, 2025 at 3:23 pm

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

Reply
Swagatam says:
July 9, 2025 at 5:28 pm

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

Reply
Naina says:
July 10, 2025 at 4:03 pm

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
Swagatam says:
July 10, 2025 at 5:37 pm

Naina, you can try the previous diagram with a push button attached:
https://www.homemade-circuits.com/wp-content/uploads/2025/07/7447-LED-driver-circuit-using-push-button.jpg

Reply
Naina says:
July 11, 2025 at 1:30 pm

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

Reply
Swagatam says:
July 11, 2025 at 3:04 pm

Correct, you got it 👍🏻!

Reply
Naina says:
July 11, 2025 at 10:35 am

Sir resistors value ? And pinouts of the display!

Reply
Swagatam says:
July 11, 2025 at 1:16 pm

Naina, please check this diagram, all the details are given in it:
https://electronics-formulas.com/wp-content/uploads/2025/01/Single-Digit-7-segment-Display-Counter-circuit-1024×374.jpg?v=1737462647

Reply
Naina says:
July 10, 2025 at 5:43 pm

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 says:
July 9, 2025 at 3:05 pm

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
Swagatam says:
July 9, 2025 at 5:26 pm

You can try the following circuit instead of the previous one:
https://www.homemade-circuits.com/wp-content/uploads/2025/07/7447-LED-driver-using-DIP-switch.jpg

Reply
Naina says:
July 14, 2025 at 7:50 pm

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

Reply
Swagatam says:
July 15, 2025 at 8:21 am

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 says:
July 15, 2025 at 9:12 pm

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
Swagatam says:
July 16, 2025 at 8:16 am

Please do the connections as per the following circuit, it will work 100%
https://electronics-formulas.com/wp-content/uploads/2025/01/the-74LS47-Decoder-Circuit-1024×426.jpg

Reply
Naina says:
July 16, 2025 at 9:01 am

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

Reply
Swagatam says:
July 16, 2025 at 9:28 am

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…

Naina says:
July 16, 2025 at 10:15 am

And should I add R1 resistor also ?

Swagatam says:
July 16, 2025 at 12:08 pm

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

Naina says:
July 16, 2025 at 10:14 am

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 ?

Swagatam says:
July 16, 2025 at 12:06 pm

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…

Naina says:
July 16, 2025 at 12:37 pm

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

Swagatam says:
July 16, 2025 at 1:35 pm

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

Naina says:
July 19, 2025 at 8:28 pm

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

Swagatam says:
July 20, 2025 at 8:00 am

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 says:
July 20, 2025 at 9:51 am

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

Swagatam says:
July 20, 2025 at 10:22 am

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

Naina says:
July 20, 2025 at 11:56 am

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 ?

Swagatam says:
July 20, 2025 at 12:18 pm

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 says:
July 20, 2025 at 9:31 pm

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

Swagatam says:
July 21, 2025 at 8:26 am

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 says:
July 20, 2025 at 9:23 pm

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 !

Swagatam says:
July 21, 2025 at 8:23 am

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 says:
July 15, 2025 at 9:32 am

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

Reply
Swagatam says:
July 15, 2025 at 10:47 am

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

Reply
Naina says:
July 15, 2025 at 9:28 am

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
Swagatam says:
July 15, 2025 at 10:47 am

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

Reply
Naina says:
July 10, 2025 at 5:51 pm

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
Swagatam says:
July 10, 2025 at 6:08 pm

You are most welcome Naina, glad it helped you!

Reply
Swagatam says:
July 10, 2025 at 6:07 pm

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 says:
July 10, 2025 at 6:47 pm

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
Swagatam says:
July 11, 2025 at 9:05 am

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
Swagatam says:
December 11, 2017 at 5:48 pm

No that won’t work…

Reply
kwintoy says:
December 11, 2017 at 3:18 pm

can we use the same code?

Reply
kwintoy says:
December 11, 2017 at 6:48 am

Sir, instead of 4026 IC, we got 4511. Is there a way we could use this IC instead of the 4026?
Thanks ^_^

Reply
kwintoy says:
December 11, 2017 at 6:03 am

okay, hope you can make it this week .
thanks..

Reply
Swagatam says:
December 11, 2017 at 7:47 am

Kwintoy, it is possible but the circuit configuration will be different

Reply
Swagatam says:
December 10, 2017 at 5:42 pm

If possible I’ll update the design soon

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

circuit simulator image

Subscribe to get New Circuits in your Email

Categories

  • Arduino Projects (95)
  • Audio and Amplifier Projects (133)
  • Automation Projects (18)
  • Automobile Electronics (103)
  • Battery Charger Circuits (87)
  • Datasheets and Components (109)
  • Electronics Theory (149)
  • Energy from Magnets (27)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (20)
  • Health related Projects (27)
  • Home Electrical Circuits (13)
  • Indicator Circuits (16)
  • Inverter Circuits (95)
  • Lamps and Lights (159)
  • Meters and Testers (71)
  • Mini Projects (28)
  • Motor Controller (68)
  • Oscillator Circuits (28)
  • Pets and Pests (15)
  • Power Supply Circuits (91)
  • Remote Control Circuits (50)
  • Renewable Energy (12)
  • Security and Alarm (64)
  • Sensors and Detectors (106)
  • SMPS and Converters (34)
  • Solar Controller Circuits (60)
  • Temperature Controllers (43)
  • Timer and Delay Relay (49)
  • Voltage Control and Protection (42)
  • Water Controller (37)
  • Wireless Circuits (31)

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 |

Social Profiles

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

Recent Comments

  • Swagatam on Simple Tone Control Circuits
  • Ken on Simple Tone Control Circuits
  • Swagatam on Circuit Projects for Beginners and School Students
  • Swagatam on 10 Watt Stereo Amplifier Circuit Diagram
  • Swagatam on Triac Battery Charger Circuit

© 2026 · Swagatam Innovations