digital clock project

24
ACKNOWLEDGEMENTS: I would like to give gratitude to my parents, Mr. & Mrs. Mtunzi firstly for supporting me to make this project a success, secondly my colleagues, Tatenda Muringa, Marvelous Tshuma, Leon Murefu & Ambrose Moyana for working with me during my design. Last but not least my supervisor Mrs. S.A BEBOVA for her guidance and all those who instilled the importance of design to make this world a better place. 1 | Page

Upload: menzeli-mtunzi

Post on 17-Oct-2014

508 views

Category:

Documents


5 download

TRANSCRIPT

Page 1: Digital Clock Project

ACKNOWLEDGEMENTS:

I would like to give gratitude to my parents, Mr. & Mrs. Mtunzi firstly for supporting me to make this project a success, secondly my colleagues, Tatenda Muringa, Marvelous Tshuma, Leon Murefu & Ambrose Moyana for working with me during my design. Last but not least my supervisor Mrs. S.A BEBOVA for her guidance and all those who instilled the importance of design to make this world a better place.

1 | P a g e

Page 2: Digital Clock Project

ABSTRACT:

Contents of this report show the algorithm on how to design a digital clock using a pulse generator with asynchronous counters and binary to seven segment decoders. The clock counts up to sixty seconds (1 minute), simulations displayed in the experimental results were done using circuit maker.

2 | P a g e

Page 3: Digital Clock Project

TABLE OF CONTENTS:

1. INTRODUCTION………………………………………………P a g e | 4

2. THEORY

Digital clock block diagram……………………………...P a g e |5

a) DESCRIPTION OF COMPONENTS

i. Common anode seven segment display…….........P a g e | 6

ii. 7447 IC Decoder ……………………………...P a g e |7

iii. 7490 IC Counter ………………………………P a g e |8

iv. 7400 Quad 2 input NAND gate………………....P a g e |9

b) DESIGNING THE PULSE GENERATOR……………....P a g e |10

c) PROGRAMMING THE 7490………………………….... P a g e | 11

3. EXPERIMENTAL METHOD & RESULTS

a) EXPERIMENT 1: Output waveform……………………..P a g e |12

b) EXPERIMENT 2:Breadboard circuit setup results……….P a g e |13

4. DISCUSSION………………………………………………….... P a g e | 14

5. CONCLUSION……………………………………….. ………. P a g e |15

6. REFERENCES……………………………………….. ………....P a g e | 16

7. APPENDIX………………………………………………………. P a g e |17

3 | P a g e

Page 4: Digital Clock Project

INTRODUCTION:

This report helps you to understand how to apply the functionality of asynchronous counters and their implementation together with decoders in designing a digital clock. It gets you to familiarize with circuits that can be used to produce square wave pulses with certain frequencies and voltages, and this was a way of showing my step by step process that I took to come up with the whole digital clock circuit.

4 | P a g e

Page 5: Digital Clock Project

THEORY:

Required components:

I. A source of power to run the clock.II. An accurate time base (pulse generator).

-it ticks at some known and accurate rate; it’s the heartbeat of the clock.III. 7490 asynchronous counters

- a way to gear down time base to extract different components of time (hours, minutes, seconds)

IV. Seven segment displays-A way to display time

V. 7447 IC decoders-these take the binary outputs from the 7490 counters to the seven segment displays

VI. 7400 Quad two input nand gate IC,470k resistor, variable resistor,10uF capacitor,LEDs,connecting wires,Breadboard

Figure 1.0 shows the general block diagram of the digital clock counting 60 seconds.

Fig 1.0(obtained from www.howstuff works.com)

5 | P a g e

Page 6: Digital Clock Project

DESCRIPTION OF COMPONENTS:

a) Common anode seven segment display

Figure 1.1

Fig. 1.2 (7 segment display circuit connection with a 7447 decoder)

6 | P a g e

Page 7: Digital Clock Project

b) 7447 Decoder pin layout

Fig. 1.3

Pin names Description-Input A and D(pin 7 & 6 respectively)

-BCD inputs

-Blank input(active low), pin 5

-Ripple blanking input(active low signal)

-display test(active low),pin 3

-also known as lamp test input

-blank output(pin 4) -ripple blanking output or blanking input

-pin 9 to 15 -segment outputs

Table 0.1

7 | P a g e

Page 8: Digital Clock Project

c) 7490 Counter

Fig. 1.4

Output

Count QD QC QB QA

0 0 0 0 0

1 0 0 0 12 0 0 1 0

3 0 0 1 1

4 0 1 0 0

5 0 1 0 1

6 0 1 1 07 0 1 1 18 1 0 0 09 1 0 0 1

Table 0.2 Function table of the counter

8 | P a g e

Page 9: Digital Clock Project

Fig 1.45

9 | P a g e

Page 10: Digital Clock Project

DESIGNING THE PULSE GENERATOR: The square waveform generator that was implemented consists of two NAND gates and an RC network.

Fig. 1.5

a) Functionality: The RC network is formed resistor R1 and the capacitor, C with this RC network being controlled by the output of the first NAND gate. The output from this R1C network is fed back to the input of the first NAND gate via the resistor, R2 and when the charging voltage across the capacitor reaches the upper threshold level of the first NAND gate, the NAND gate changes state causing the second NAND gate to follow it, thereby change state and producing a change in the output level.Voltage across R1C is now reversed and the capacitor begins to discharge through the resistor until it reaches the lower threshold level of the first NAND gate causing the two gates to change state once again.

b) Calculations

i. Frequency of Oscillation =1/2.2R1C 1=1/2.2R1.*8.2*10-6F R1=47KΩ

ii. R2=10R1

R2=470KΩ

10 | P a g e

Page 11: Digital Clock Project

PROGRAMMING THE 7490:

To create a mode 10 counter:Using fig 1.4 follow the steps bellow

1) Connect pins 5 to +5V and pin 10 to ground to power the chip.2) Connect pin 12 to pin 1and ground pins 2, 3, 6, and 7.3) You run input clock signal (from pulse generator) in pin 14.4) Use pin 11 to connect next stage.

To create a mode 6 counter:Using the same diagram as above

1) Connect pin 5 to +5V and pin 10 to ground to power the IC.2) Connect pin 12 to 1 and ground pins 6 and 7.3) Connect pin 2 to 9 and pin 3 to pin 8.4) Run input clock signal into pin 14.5) Use pin 8 to connect to next stage.

Now connecting the counters to the 7447 decoder you simply have to use the pin layouts shown in the previous section (component description) also same applies to the 7447 to seven segment display connections.

11 | P a g e

Page 12: Digital Clock Project

EXPERIMENTAL METHOD AND RESULTS

The pulse generator circuit was tested first using circuit maker and simulations were very successful using the calculated values. The results/output waveforms of the pulse generator that I obtained were as shown below.

Output waveform

Figure 1.6(experiment 1)

c-d shows the pick voltage i.e. 5V as required in my testing.a-b measures the frequency which is shown as 1.169Hz

12 | P a g e

Page 13: Digital Clock Project

Experiment 2:

The next step I had to take after being satisfied with the pulse generator frequency output and testing was assembling the whole circuit on breadboard following the steps mentioned in previous chapters (programming the 7490) altogether with the help of the pin layouts (description of equipment section). Fig. 1.7 shows the whole of the digital clock assembled on breadboard

Figure 1.7 (Experiment 2 results)

13 | P a g e

Page 14: Digital Clock Project

DISCUSSION:

During the testing of the pulse generator in experiment 1 it was difficult to obtain a stable 1Hz signal with exact values of resistance, so with the help of a variable resistor within the RC network I could control the signal’s frequency which finally made the whole testing successful .Possible errors that i came across with were exceeding the required calculated resistor value in adjusting it during signal stabilization and short circuiting the connecting wires.On testing the whole digital clock it could count from 0 to 9 for the mode 10 counter and 0 to 5 for the mode 6, so it could count up to 60 seconds, but with time the circuit running it could start skipping values. to resolve this I had to connect some conductor to the variable resistor to stabilize the count. Short circuiting the wires was the most possible error!

14 | P a g e

Page 15: Digital Clock Project

CONLUSION:

The digital clock designed could properly count sixty seconds but I could not resolve the problem of it leading the standard time with six seconds. The objective of getting to know the applications of asynchronous counters in the real world devices that are still being used was met and getting to know how much effect capacitors have on clock signals.

15 | P a g e

Page 16: Digital Clock Project

REFERENCES:

1) Antil K.Maini, John Wiley & sons.”Digital Electronics” Principles ,devices and applications. 2007 page 411

2) http://www.howstuffworks.com

3) http://www.electronics-tutorials.com

4) http://www.datacatalogue.com

5) Landon Johnson “Digital electronics” electronics technology (counter power point notes).

16 | P a g e

Page 17: Digital Clock Project

APPENDIX:

17 | P a g e

Page 18: Digital Clock Project

18 | P a g e

Page 19: Digital Clock Project

19 | P a g e

Page 20: Digital Clock Project

20 | P a g e