Project Report
Project Report
DIGITAL DICE
PROJECT REPORT
SUBMITTED BY:
Aysha Tariq 191 Umber Saleem 216
SUBMISSION DATE:
3rd Jun, 2011
TABLE OF CONTENTS
Topic..Page no
Introduction.. 3 Work Distribution. 4 Block Diagram............................. 5 Design Steps............................. 6 7 8 ICs Used........................................... 9 10 11 Schematic Diagram. .. 12 13 Explanation.... 14 15
INTRODUCTION
The electronic dice, throws up a random number from one to six each time the switch is pressed. It has no bias and can never roll on the floor and get lost. The project could be developed fairly easily into a double dice. Also, it provides an interesting introduction to a range of digital circuits - oscillator, counter and logic gates.
All the work is done equally by us like: Buying of circuit components Circuit patching Testing of ICs Made the circuit working Presentation Project Report
The diagram below shows the general arrangement. The pulse generator runs continually at a high speed. When the switch is pressed, this drives the counter, which cycles continually from 1 to 6. When the switch is released the number displayed is effectively random because the counter is running so fast.
DESIGN STEPS
The pulse generator generates the clock pulse and sends the input to the binary counter which starts counting till the time switch is pressed. When we release the switch the 5
counter stops counting and sends it input to the series of logic gates through which the final output is produced that we display using LEDs. The seven LEDs shown in block diagram can be divided into 4 groups labeled L, M, and Q.
1 L= B + C
FOR M:
BA 0 1 M= A + C 1 1 1 X 0 X 11 0 1 C 10 00 01
FOR P:
BA 0 0 P= A.C 0 1 0 X 0 X 11 0 1 C 10 00 01
FOR Q:
BA C 1 1 Q= A 0 0 0 X 1 X 11 0 1 10 00 01
Another AND gate is also required to reset the counter on a cycle of six.
ICs USED:
555 timer IC NE555 4516B Cmos IC binary up-down counter 4071B Cmos IC quad 2-input OR gate 4081B Cmos IC quad 2-input AND gate 7404 Hex Inverter
NE 555:
The NE555 monolithic timing circuit is a highly stable controller capable of producing accurate time delays or oscillation. In the time delay mode of operation, the time is precisely controlled by one external resistor and capacitor. For a stable operation as an oscillator, the free running frequency and the duty cycle are both accurately controlled with two external resistors and one capacitor. The circuit may be triggered and reset on falling waveforms, and the output structure can source or sink up to 200mA. Pin connections are shown below:
The 4071B is a positive logic quadruple 2-input OR gate. The outputs are fully buffered for highest noise immunity and pattern insensitivity of output impedance.
4081B Quadruple 2-input AND Gate provides the positive quadruple 2-input AND function. The outputs are fully buffered for highest noise immunity and pattern insensitivity of output impedance.
HEX INVERTOR:
11
SCHEMETIC DIAGRAM:
12
13
Led Board: R1 - 4 R5 - 7 R8 - 1 D1 - 7 TR1 - 3 TR4 - 1 Push Button - 1 10k 2.4k 3.3k 3mm red led, low current, pitch 2.5mm BC547B BC557B
We have patched the circuit on two bread boards. Logic board LED board
14
Logic board contains all the ICs. When the switch is pressed NE 555 generates the clock pulse which we have fed into pin 15 of the binary up/down counter. Counter produces its outputs to at pin 2, 6, 11 and 14, where pin number 2 represents the least significant bit and 14 is the most significant bit. In our project, we have only used pin 6, 11 and 14, reason being that we only have to count 6 on the counter. When the counter counts 6, we reset the counter. When the switch is released counter stops counting and produces its output at pin 6, 11 and 14. These outputs are further fed into logic gates which cause LEDs to glow patched on LED board.
The major problems faced in obtaining the output were in ne555 and counter. The pulse generating ne555 was not generating the output wave when we tested it through oscilloscope, thus for testing the circuit initially we used function generator to provide input pulse. Later on we arranged a new IC . The up/down counter also didnt work properly. In our project we had to show output on a dice consisting of 7 LEDs, and the counter was required to count up to 6. The output terminal of IC that we had to use were 6, 11 and 14.14th pin is the most significant bit and 6th is the least significant. When we started working either 14th or 6th pin was not working properly and therefore the combinational logic to display the output was not generating proper results. Thus we had to change the IC, and that caused delay in obtaining the final results. The project helped us to learn the working of different components and gave us a deep insight.
16
17