Project Proposal
Digital Logic Design
Digital Dice Game
NAME: [Link] Najeeb
BSEE-02183108
Zeeshan Tayyab
BSEE-02183142
Section: B
Instructor: Sir Awais
UNIVERSITY OF LAHORE
LAB REPORT
TABLE OF CONTENTS
Abstract
Apparatus
Working Principle
Procedure
Software/Hardware
Description
Abstract
Dice is used to play many games like snake ladder, Ludo etc. Generally dice is made up of
wooden or plastic, which gets deformed with time and become biased. A Digital dice is a
good alternative of old fashioned dice, it can’t be biased or deformed. It operates at such high
speed that no one can cheat. To create this digital dice circuit, we have mainly used 555 timer
IC and 4017 IC.
Material Required:
• D4017 IC
• 555 Timer IC
• Resistor- 10k (3)
• Capacitor- 10µF,100µF
• ON/OFF Button
• Push Button
• 6 LEDs
• Battery - 9v
• Connecting wires
Working Principle:
In this digital dice circuit we have used 6 LEDs, each LED represent a number (1-6) of Dice.
LEDs start flashing as we press the Push button and stops when we release it. After release,
illuminated LED tells the numbers, you got on Dice. Like if fifth no. LED remains ON after
releasing the button, means you got 5 on Dice.
To apply the clock pulse at PIN 14 of 4017 IC, we have used 555 timer IC in Stable mode.
The oscillated output generated at PIN 3 of 555 has been applied to the PIN 14 of 4017, so that
output can be advanced with each clock pulse
In this digital dice circuit we have kept the oscillation frequency so high that no one can cheat.
LED flashing speed is directly proportional to oscillation frequency of 555, as High the
frequency, as high the speed of flashing.
Procedure:
Apply VCC to pin 16 of 4017 IC and connect pin 8 and 13 to ground.
Connect 100F capacitor parallel to 4017 IC.
Connect pin 5 to 15 and connect the common wire to 10k resistor and ground it.
Connect pin 14 to 10k resistor and ground it.
Connect push button between the pin 14 of 4017 IC and pin 3 of 555 IC.
Connect pin 4 and 8 of 555 IC to VCC.
Connect pin 1 of 555 IC to ground.
Connect 10k resistor at pin 7 of 555 IC to VCC.
Connect pin 7 to pin 6 and pin 6 to pin 2 of 555 IC.
Connect 10F capacitor to pin 2 and ground the other terminal of 555 IC.
Connect Pin 3 of 4017 IC to LED 1
Pin 2 of 4017 IC to LED 2
Pin 4 of 4017 IC to LED 3
Pin 7 of 4017 IC to LED 4
Pin 10 of 4017 IC to LED 5
Pin 1 of 4017 IC to LED 6
Connect positive terminal of battery to VCC and negative to ground.
Circuit Diagram:
Fig-1
Hardware:
Fig-2
Description:
4017 IC
4017 IC is a CMOS decade counter chip. It can produce output at the 10 pins (Q0 – Q9)
sequentially, means it produce output one by one at the 10 output pins. This output is controlled
through the clock pulse at PIN 14. At first, output at Q0 (PIN 3) is HIGH, then with each clock
pulse, output advance to the next PIN. Like one clock pulse makes the Q0 LOW and Q1 HIGH,
and then the next clock pulse makes the Q1 LOW and Q2 HIGH, and so on. After the Q9, will
start from the Q0 again. So it creates sequential ON and OFF of all the 10 OUTPUT PINs.
Below is the PIN diagram and PIN description of 4017:
PIN NO. PIN Name PIN Description
1 Q5 Output 5: Goes high in 5 clock pulse
2 Q1 Output 1: Goes high in 1 clock pulse
3 Q0 Output 0: Goes high at the beginning – 0 clock pulse
4 Q2 Output 2: Goes high in 2 clock pulse
5 Q6 Output 6: Goes high in 6 clock pulse
6 Q7 Output 7: Goes high in 7clock pulse
7 Q3 Output 3: Goes high in 3 clock pulse
8 GND Ground PIN
9 Q8 Output 8: Goes high in 8 clock pulse
10 Q4 Output 4: Goes high in 4 clock pulse
11 Q9 Output 9: Goes high in 9 clock pulse
12 CO –Carry Used to cascade another 4017 IC to makes it count upto 20, it is
out divide by 10 output PIN
13 CLOCK Clock enable pin, should kept LOW, keeping HIGH will freeze the
inhibit output.
14 CLOCK Clock input, for sequentially HIGH the output pins from PIN 3 TO
PIN 11
15 RESET Active high pin, should be LOW for normal operation, setting
HIGH will reset the IC (only Pin 3 remain HIGH)
16 VDD Power supply PIN (5-12v)
555 IC Timer:
Pin Name Purpose
1 GND Ground reference voltage, low level (0 V)
2 TRIG The OUT pin goes high and a timing interval starts when this input falls below 1/2 of CTRL
voltage (which is typically 1/3 Vcc, CTRL being 2/3 Vcc by default if CTRL is left open).
In other words, OUT is high as long as the trigger low. Output of the timer totally depends
upon the amplitude of the external trigger voltage applied to this pin.
3 OUT This output is driven to approximately 1.7 V below +Vcc, or to GND.
4 RESET A timing interval may be reset by driving this input to GND, but the timing does not begin
again until RESET rises above approximately 0.7 volts. Overrides TRIG which overrides
threshold.
5 CTRL Provides “control” access to the internal voltage divider (by default, 2/3 Vcc).
6 THR The timing (OUT high) interval ends when the voltage at threshold is greater than that at
CTRL (2/3 Vcc if CTRL is open).
7 DIS Open collector output which may discharge a capacitor between intervals. In phase with
output.
8 Vcc Positive supply voltage, which is usually between 3 and 15 V depending on the variation.
Digital Dice Project
M. Burhan BSEE-02183108
Zeeshan Tayab BSEE-02183142
1
2
3
4
5
6