Saturday, July 28, 2012

24Hr Digital Clock and Alarm Circuit Using Logic ICs - CD4017 CD4026

Views:

This is my first clock project, and used logic IC such as 4017, 4026 to build this clock circuit. Its include Date, Day, and Hourly alarm.See below picture.

Logic clock preview
Preview

It’s very complicated at first sight. But it is not. First of all you can build main circuit and check it work or not.If the circuit work fine, then add other parts step by step to the circuit.

If it’s not work check all component and connections are correct and also check Seven Segment Displays. In my circuit I used LEDs but it is possible to use Seven Segment Displays.
Add &transistors if you use LED or big Seven Segment Displays because this logic ICs can not handle large current. I connect this circuit with 6v backup battery to prevent time lost when the power is fail. In power failure displays are turned off but time is running using battery power.

Logic clock circuit
Full Circuit Diagram

1Hz Signal Generators

To generate 1Hz clock pulse for this circuit here I used circuit of a ordinary clock machine. you can buy a clock machine very cheap price at electronic shops or you can get it from old clock. In below picture you can see most common circuits of clock circuits. By giving power to this circuit we can able to get 1Hz output across the pins that are connected to coil (motor). (But actually we can get only 0.5Hz pulse in one pin. So get 1Hz we need to connect those pins by two diodes. you can see that in the diagram).

1hz signal generator circuit
Clock circuits

4017 decade counter (1-of-10)

CD4017 pin The count advances as the clock input becomes high (on the rising-edge). Each output Q0-Q9 goes high in turn as counting advances. For some functions (such as flash sequences) outputs may be combined using diodes.

 The reset input should be low (0V) for normal operation (counting 0-9). When high it resets the count to zero (Q0 high). This can be done manually with a switch between reset and +Vs and a 10k resistor between reset and 0V. Counting to less than 9 is achieved by connecting the relevant output (Q0-Q9) to reset, for example to count 0,1,2,3 connect Q4 to reset.

 The disable input should be low (0V) for normal operation. When high it disables counting so that clock pulses are ignored and the count is kept constant.

 The ÷10 output is high for counts 0-4 and low for 5-9, so it provides an output at 1/10 of the clock frequency. It can be used to drive the clock input of another 4017 (to count the tens).

4026 decade counter and 7-segment display driver

CD4026 pin The count advances as the clock input becomes high (on the rising-edge). The outputs a-g go high to light the appropriate segments of a common-cathode 7-segment display as the count advances. The maximum output current is about 1mA with a 4.5V supply and 4mA with a 9V supply. This is sufficient to directly drive many 7-segment LED displays. The table below shows the segment sequence in detail.

 The reset input should be low (0V) for normal operation (counting 0-9). When high it resets the count to zero.

 The disable clock input should be low (0V) for normal operation. When high it disables counting so that clock pulses are ignored and the count is kept constant.

 The enable display input should be high (+Vs) for normal operation. When low it makes outputs a-g low, giving a blank display. The enable out follows this input but with a brief delay.

 The ÷10 output (h in table) is high for counts 0-4 and low for 5-9, so it provides an output at 1/10 of the clock frequency. It can be used to drive the clock input of another 4026 to provide multi digit counting.

cd4026 display chart
4026 display chart

CD4073 triple 3-input AND Gate

CD4073 internal
CD4073 pin

The 4073 has three separate 3-input AND gates which you can use independently.

Truth table

The truth table of each individual gate is:
C B A Output
0 0 0
0 0 1 0
0 1 0 0
0 1 1    0
0    0
1 0 0
1 1 0    0
1 1   1 1

where '0' represents a LOW voltage, and '1' represents a HIGH voltage.

Basic operation

You can investigate the behavior of a single 3-input AND gate using this circuit:

3-input AND gate operation
The inputs of the gate must be connected, either to LOW or to HIGH, and must not be left open circuit. This is the function of the input switches with their pull-down resistors. To avoid loading the output of the gate, a transistor switch indicator circuit should be used. It is good practice with CMOS circuits to insert a decoupling capacitor, 47µF or 100µF, across the power supply. (This helps to prevent the transfer of spikes along the power supply rails.)

UM348X

UM348X  pin
The UM348X series is a mask-ROM-programmed multi instruction melody generator, implemented in the CMOS technology. They are designed to play the melody according to the previously programmed information and capable of generating 16 songs with 3 instrument sounds, the piano, the origin and the mandolin.

The devices also included a per-amplifier which provide simple interface to the driver circuit. The UM348X series is intended for applications such as toys, door bells, music boxes, melody clock/timers and telephones

Posted By :

Please Note: All contents provided on this blog are for non-commercial purposes only.
Any question..? Feel Free to Ask!

Drop your Comments below. Please report broken links to here
  1. how the hell download the file

    ReplyDelete
    Replies
    1. Register -> check your inbox for confirmation email -> activate account by clicking link -> Login -> Download

      Delete
    2. Where do I register to download the file?
      I need for my work of digital electronics
      From: Brazil

      Delete
    3. You can able to download files without registering

      Delete
  2. The seconds display continues to count up to 99 then starts again to 0. Should it be counting up to 60 then back to 0. The minute display is not counting. Just to make sure, is the circuit correct or I have miss somewhere in the connections. Please help

    ReplyDelete
    Replies
    1. Seconds should be counting up to 59 then back to 0. Check reset pin (15) of U2 and connection of 4073.

      Delete
  3. What software this circuit simulated on?

    ReplyDelete
    Replies
    1. I used Proteus to simulate this circuit

      Delete
  4. How to modified 24 hr to 12hr ? And which display use for day date

    ReplyDelete
    Replies
    1. 4017 and leds are used to indicate day and U8 and U9 shows date.

      Delete
  5. How to modified 24 hr to 12hr?? Pls help

    ReplyDelete
    Replies
    1. U5:C reset the hours. if all the inputs are 1(5v) then output is 1, so 4026 will reset. in this clock it's 24. And if you want to use this as a 12hr clock you have to another things to do. because if U7 and U6 are reset, it start to count from zero. but in 12hr mode it must be one. so you have to give additional clock signal when both U7 and U6 are zero. Use your knowledge about gates. it is not a hard task.

      Delete
  6. Sir I have comlate circuit but some problem
    1) after 23 59 59 clock reseted and hr display direct 04 hr
    2) and clock make using 555 but it is not accurate pls guide me for perfect 1 htz

    ReplyDelete
    Replies
    1. 1) Check reset pin(15) of U6
      2) I used circuit of ordinary clock machine

      Delete
  7. Hi there! Quick question that's totally off topic. Do you
    know how to make your site mobile friendly? My site looks weird when browsing from my apple iphone.
    I'm trying to find a theme or plugin that might be able
    to correct this issue. If you have any suggestions, please share.
    Thanks!

    ReplyDelete
    Replies
    1. Go to your dashboard and click theme.

      Delete
  8. Awesome blog! Is your theme custom made or did you
    download it from somewhere? A design like yours with a few simple tweeks would really make my blog jump out.
    Please let me know where you got your design. Cheers

    ReplyDelete
    Replies
    1. It is download from internet and customize. try google to search template.

      Delete

 

on line

Labels

Recent comment

Visitors

Free counters!
Copyright © 2012 - Scorpionz™.,All rights reserved | Powered by Blogger