Skip to main content

24h /12h Digital clock with alarm using ic555 ,7490 decade counters and 7447 bcd-7seg decoders tutorial (2/2)



Hello again! in the first part we've seen how the basic 24h clock works (the hour coulmn counts to 24 and then resets to 00). It was quite easy and there were no problems, but let's extend the idea a little bit.
What if we want to design a 12h clock?  well.. it's the same idea but there was a little problem which is: when the hours reachs 12 and counts to the end of the hour 12.59 we don't want it to reach 13, we rather want it to reset to...? 01 not 00 so i had to make a small trick you'll see later.


How the circuit works?

It's the same circuit as the first part  but we've to edit the hours coulmn so it resets to 00 when it reachs 13 and then clocks the first coulmn of hours so it becomes 01 .. simple!

So that's how i made it , the two AND gates U9 and U10 detect the case when the hours coulmn is 13 and their output(A) then will be 1. 

Output A has two jobs to do :

- The first is to reset the boths hours coulmn so it's connected directly to both reset pins of the counters
- The second is to colck the first counter of hours so we connected it to the clock of the first counter through an OR gae because there's another clock signal from the previous stage(B).

So.. what's left?

We want to design a circuit that have both modes using a switch to move between them. The idea is just to use a switch to change the connection of one case to another.

here's the 2 cases  :

24h:




12h:

:




The final circuit with the switch:



Both cases of the switch just for clarification : 




Which are the both cases above. Finally!
The push-buttons set the hours and minutes by clocking their counters' clocks.

the vido of the full circuit working :





hope you enjoyed it.. have a nice time :)

Edit


If you want to add an alarm that make a sound every hour you could use this concept:

You can use 555 timer to generate one shot pulse whenever the hours clock get a clock pulse.
here you can find some details about the 555 in the monostable configuration (one shot).

Here's how you can do it in the clock circuit:




The output of the OR gate is always zero except for the times the hours recieves a clock pulse, it goes 1 then back to 0(because of the reset mechansim).

The NOT gate will make the output of the OR gate always 1 exept for the clock time it goes to 0 which exactly what we need for the monostable configuration.

Of course we replaced the push-button with our signal from the NOT gate and the led for the speaker. 
I didn't try this idea on a breadboard or something but it works well on simulation and should work well practically. (you may want to drive the speaker with a transistor to provide it with enough current.)

Sorry for the mess but I made it on hurry because the lack of time.. you know :D.

Enjoy...


Comments

  1. Thank you so much!

    ReplyDelete
    Replies
    1. Hi! Can I ask what is the connection of the 7segment anode to the other components? Sorry it's my first time using proteus :)

      Delete
    2. can i have the file that has an alarm inserted on the circuit? Please :)

      Delete
    3. Usually you don't conncet power pins in proteus, the program connects them automatically..

      Delete
    4. it's kinda a mess but here's it anyway :D :
      https://files.fm/u/8mj252kn

      Delete
    5. Thank you so much! Sorry i have many questions, how can i put reset and stop switch on the circuit?

      Delete
    6. I think the easiest way is to put the switch in series with circuit power supply. This circuit resets everytime the power supply is unplugged.

      You can use the resets of the chips but it's more complicated and not necessary.

      Delete
  2. Hi! I have a doubt. How do I insert the tenths of seconds into the 24-hour clock? To stay like this: 23:59:59:99

    ReplyDelete
  3. Hey sorry im from latin america, How can u to put a light that indicates AM or PM

    ReplyDelete
  4. can i have the file that has an alarm inserted on the circuit? Please :)

    ReplyDelete

Post a Comment

Popular posts from this blog

24h /12h Digital clock using ic555 ,7490 decade counters and 7447 bcd-7seg decoders tutorial (1/2)

This photo is from this instructables project here There are many stuff on the internet about this project, but we are gonna add something or two. This circuit was a school project and it was a 24h clock, but i decided to extend it to 12h and 24h with the transferring between them using a switch so you can choose whatever mode you want. Anyway, i made this circuit just for fun so i just simulated it on proteus, i.e we're not going into pcb design. The final project First of all we're going to divide this tuorial into 3 parts: - How it works in the 24h mode. - How it works in the 12h mode. - How to transfer between them using simple switch. So... let's get started with the first one..

A deep look at the internals of arduino IR library; how it works and how to implement one by yourself

Introduction Last few days, I have been interested in IR remotes and how they work and whether I can write a code that sends a command to my crappy Chinese receiver. I had no idea about IR remotes or how the protocol works so I had to learn a few things about it first then learn what is the exact protocol used by my receiver. This isn't an IR tutorial, there are many good tutorials that explains the concept very well out there, So I will just go quickly through it, then try to understand how some existing codes work. How does IR remote works? When you press a button on your remote control, it emits an infrared light with a specific pattern that contain information to tell your commanded device what to do. When I say pattern, I mean "Protocol", the protocol tells us how to send a specific information to a specific device.These information usually are the command (volume up,down,OK...) and the address or the device these information are sent to. There are many IR protoc