23
A PROJECT REPORT ON DIGITAL DICE SUBMITTED TO: Mr. Piyush Singh, Senior Lecturer, Department of ECE SUBMITTED BY: ANCHAL (ROLL NO. 0812831016) ANSHULIKA GARG (ROLL NO. 0812831020) HONEY TYAGI (ROLL NO. 0812831043) MANISH SHARMA(ROLL NO. 0812831051) Department of Electronics and Communication Engineering 1

Digital Dice

Embed Size (px)

Citation preview

Page 1: Digital Dice

 

A PROJECT REPORT

ON

 DIGITAL DICE

SUBMITTED TO:

Mr. Piyush Singh, Senior Lecturer, Department of ECE

SUBMITTED BY:

 ANCHAL (ROLL NO. 0812831016)

ANSHULIKA GARG (ROLL NO. 0812831020)

HONEY TYAGI (ROLL NO. 0812831043)

MANISH SHARMA(ROLL NO. 0812831051)

   

  

 Department of Electronics and Communication Engineering

Bharat Institute of TechnologyMeerut-250001 (India)

May, 2011

 

1

Page 2: Digital Dice

    

Acknowledgements

 

In the name of GOD, the most Gracious, the Most Merciful for giving me the

determination and will to complete this study.

We would like to express my gratitude towards the esteemed organisation BHARAT

INSTITUE OF TECHNOLOGY, Meerut for being such an enlightening source to me.

We would like to express our sincere gratitude and appreciation to our supervisor Mr.

Piyush Singh (Senior Lecturer, Department of Electronics And Communication

Engineering) for their inspiration, expert guidance and supervision during the research

work to complete the dissertation in time.

Our appreciation goes to all, who have directly or indirectly helped us in completing our

thesis. They will always have a place in our fond memories.

We would like to show our gratitude towards our respected faculty members of BIT, our

beloved parents and family members for their moral and emotional support. We would

like to share this moment of happiness with all of them.

ANCHAL

ANSHULIKA GARG

HONEY TYAGI

MANISH SHARMA

(EC 4th year)

 

2

Page 3: Digital Dice

ABSTRACT

The digital dice project is an interesting project that will display in random the number

from 1 to 6 on the 7 segment display. This is an alternative device that can be used to

replace the traditional dice when you are playing games such as snake ladder, monopoly

etc. The generation of clock is done by using a 555 timer which is connected in the

astable mode at a frequency of approximately 50 Hz. The outputs of decade counter are

connected to a BCD to 7 Segment Decoder which is used to drive a common anode 7

segment display.

It will Display a Random Result for the 6 faces of the Dice. This circuit works on +5V

power supply.

3

Page 4: Digital Dice

List Of Figures

NAME PAGE NO

1. General dice 5

2. 555 clock pulse generator 6

3. 7490 decade counter 8

4. 7483 4- bit adder 8

5. 7447 BCD to 7- segment decoder 9

6. 7- segment display 10

7. Circuit diagram of Digital Dice 11

4

Page 5: Digital Dice

List Of Tables

NAME PAGE NO

1. Parts list of digital dice project 8

2. Pin description for IC 555 timer DIP package 9

3. Sequence of count for IC 7490 decade counter 10

4. Pin description for IC 7483 4- bit adder 11

5. Pin description for 7447 BCD to 7- segment decoder 12

5

Page 6: Digital Dice

Table Of Contents

S. NO. NAME OF TOPIC PAGE NO.

1 INTRODUCTION 6

2 COMPONENTS LIST 7

3 IC 555TIMER 11

4 IC 7490 DECADE COUNTER 11

5 IC 7483 4- BIT ADDER 12

6 IC 7447 BCD TO 7- SEGMENT DECODER 13

7 7- SEGMENT DISPLAY 14

8 WORKING OF DEVICE AND COMPLETE 15

CIRCUIT DIAGRAM

9 CONCLUSIONS 16

10 REFERENCES 16

6

Page 7: Digital Dice

List Of abbreviations

Bit- Binary digit. It is the amount of information stored by a digital device or other

physical system that exists in one of two possible distinct states.

BCD- Binary Coded Decimal. In computing and electronic systems, binary-coded

decimal (BCD) is a digital encoding method for numbers using decimal notation, with

each decimal digit represented by its own binary sequence.

IC- Integrated Circuit. An integrated circuit or monolithic integrated circuit (also referred

to as IC, chip, or microchip) is an electronic circuit manufactured by the patterned

diffusion of trace elements into the surface of a thin substrate of semiconductor material.

PB- Push Button. A push-button (also spelled pushbutton) (press-button in the UK) or

simply button is a simple switch mechanism for controlling some aspect of a machine or

a process.

GND- Ground. low level (0 V).

TRIG- Trigger. OUT rises, and interval starts, when this input falls below 1/3 VCC.

CTRL- Control. Access to the internal voltage divider (by default, 2/3 VCC).

RST- Reset. A timing interval may be interrupted by driving this input to GND.

R- Resistor.

C- Capacitor.

7

Page 8: Digital Dice

1.INTRODUCTION

1.1Dice

A dice is a small throwable object with multiple resting positions, used for generating

random number. This makes dice suitable as gambling devices for games like craps, or

for use in non-gambling tabletop games.

A traditional die is an often rounded cube, with each of its six faces showing a different

number. The design as a whole is aimed at the die providing a randomly determined

integer from one to six, each of those values being equally likely. A variety of similar

devices are also described as dice; such specialized dice may have polyhedral or irregular

shapes and may have faces marked with symbols instead of numbers. They may be used

to produce results other than one through six. Loaded and crooked dice are designed to

favor some results over others for purposes of cheating or amusement.

Fig 1: General dice

8

Page 9: Digital Dice

1.2Digital Dice

Digital dice is a device that displays, in random, the numbers from 1 to 9 on the 7

segment display. This is an alternative device that can be used to replace the traditional

dice when you are playing games such as snake ladder, monopoly etc.

2.COMPONENTS LIST

Table 1: Parts list of digital dice project

3. IC 555 TIMER

The 555 timer IC is an integrated circuit (chip) used in a variety of timer, pulse

generation and oscillator applications. Here, it is used in astable mode to generate clock

pulse for the decade counter to count.

9

Page 10: Digital Dice

Fig 2: 555 clock pulse generator

Table 2: Pin description for IC 555 timer DIP package

Pin Name Purpose

1 GND Ground, low level (0 V)

2 TRIG OUT rises, and interval starts, when this input falls below 1/3 VCC.

3 OUT This output is driven to + V CC or GND.

4 RESET A timing interval may be interrupted by driving this input to GND.

5 CTRL"Control" access to the internal voltage divider (by default,

2/3 VCC).

6 THR The interval ends when the voltage at THR is greater than at

10

Page 11: Digital Dice

CTRL.

7 DISOpen collector output; may discharge a capacitor between

intervals.

8 V+, VCC Positive supply voltage is usually between 3 and 15 V.

4. IC 7490 DECADE COUNTER

The 7490 is a decade counter, meaning it is able to count from 0 to 9 cyclically, and that

is its natural mode. That is, QA, QB, QC and QD are 4 bits in a binary number, and these

pins cycle through 0 to 9.

Fig 3: 7490 decade counter

Table 3: Sequence of count for the decade counter

Decimal      Binary

0 0000

1        0001

2 0010

3 0011

4 0100

5 0101

6 0110

7 0111

11

Page 12: Digital Dice

8  1000

9        1001

5. IC 7483 4-Bit ADDER

It is a 4- bit binary adder integrated circuit and adds two 4 bit numbers.

Fig 4: 7483 4- bit adder

Table 4: Pin description for IC 7483 4- bit adder

Pin Description

Pin Number Description

1 A4 Input

2 Sum 3 Output

3 A3 Input

4 B3 Input

5 Vcc

6 Sum 2 Output

7 B2 Input

8 A2 Input

9 Sum1 Output

12

Page 13: Digital Dice

10 A1 Input

11 B1 Input

12 Ground

13 C0 Input

14 C4 Input

15 Sum4 Output

16 B4 Input

6. IC 7447 BCD TO SEVEN SEGMENT DECODER

The 7447 IC is a decoder that is connected to the seven segment display. Its function is

to light up the proper segments of the display when binary- coded- decimal numbers are

applied to its input leads.

Fig 5: 7447 BCD to 7- segment decoder

Table 4: Pin description for IC 7447 BCD to 7- segment decoder

Pin Description

Pin Number Description

1 BCD B Input

2 BCD C Input

3 Lamp Test

13

Page 14: Digital Dice

4 RB Output

5 RB Input

6 BCD D Input

7 BCD A Input

8 Ground

9 7-Segment e Output

10 7-Segment d Output

11 7-Segment c Output

12 7-Segment b Output

13 7-Segment a Output

14 7-Segment g Output

15 7-Segment f Output

16 Positive Supply

7. 7- SEGMENT DISPLAY

A seven-segment display (SSD), or seven-segment indicator, is a form of electronic

display device for displaying decimal numerals that is an alternative to the more

complex dot matrix displays. Seven-segment displays are widely used in digital clocks,

electronic meters, and other electronic devices for displaying numerical information.

14

Page 15: Digital Dice

Fig 6: 7- segment display8.WORKING OF DEVICE AND COMPLETE CIRCUIT DIAGRAM

Digital dice is a smarter way to play games such as snake ladder, monopoly etc

than the traditional dice.

The generation of clock is done by using a 555 timer which is connected in the

astable mode at a frequency of approximately 50 Hz.

This clock signal is fed into the decade counter outputs of which are connected to

4 bit binary adder which provides a binary output equivalent to binary input + 1.

The outputs are then connected to a BCD to 7 Segment Decoder which is used to

drive a common anode 7 segment display.

15

Page 16: Digital Dice

Fig 7: Circuit diagram of Digital Dice

As shown in the schematic above, when push button PB is pressed, a square

output will be generated from the 555 timer which gives a frequency of

approximately 50 Hz to the 7490 decade counter IC.

The frequency of the astable 555 timer is calculated by using the standard formula

of the timer.

f = 1.44/(1K + 2*1K)(0.01uF) = 48 Hz

9.Conclusions

An alternative device is obtained that can be used to replace the traditional dice

when you are playing games such as snake ladder, monopoly etc.

It can efficiently work on +5V power supply.

16

Page 17: Digital Dice

555 can generate pulse when connected in astable mode.

Circuit of digital dice is actually a cascaded connection of all ICs that are used.

Games turn out to be digital rather than manual as used to be earlier.

10.References

http://www.electronics-project-design.com/digitaldice.html

http://www.google.co.in/imgres?

q=7+segment+display&hl=en&biw=1024&bih=634&gbv=2&tbm=isch&tbnid=N

nlXOaMcEuLRvM:&imgrefurl

http://www.google.co.in/imgres?

q=7447+pin+configuration&hl=en&gbv=2&biw=1024&bih=634&tbm=isch&tbn

id=oDWj7xpGghmahM:&imgrefurl

http://www.google.co.in/imgres?

q=7483+pin+configuration&num=10&hl=en&gbv=2&biw=1024&bih=634&tbm

=isch&tbnid=CVukovTIEzRLBM:&imgrefurl

http://www.google.co.in/imgres?

q=7490+pin+configuration&hl=en&gbv=2&biw=1024&bih=634&tbm=isch&tbn

id=_xJXO_iR81qi4M:&imgrefurl

17