Document On Digital Dice
Document On Digital Dice
BY
Mr. P. PRANEETH (22UK1A0451)
Mr. N. SHIVANI (22UK1A0443)
Mr. M. SHASHI KUMAR (22UK1A0440)
Mr. M. SAI KIRAN (22UK1A0442)
2022 - 2026
CERTIFICATE
This is to certify that the project was entitled “
DESIGNING OF A DIGITAL DICE GAME USING
IC4017 ”
is a bonafide work carried out by Mr. P. PRANEETH (22UK1A0451), Ms.
N. SHIVANI (22UK1A0443), Mr. M. SHASHI KUMAR(22UK1A0440),
Mr. M. SAIKIRAN(22UK1A0442)
in partial fulfilment of the requirements for the award of degree of
bachelor of technology in electronics and communication
engineering from Vaagdevi engineering college(autonomous), during
the academic year 2022-2026.
EXTERNAL EXAMINER
DECLARATION
We declare that the work reported in the project entitled “ DESIGNING OF A
DIGITAL DICE GAME USING IC4017 ” is a record of work done by us in the
partial fulfillment for the award of the degree of Bachelor of Technology in
Electronics
& Communication Engineering, VAAGDEVI ENGINEERING COLLEGE
(An Autonomous Institution & Affiliated to JNTU Hyderabad)
Accredited by
Delhi, Bollikunta,
Mr. P. PRANEETH
(22UK1A0451)
Mr. N. SHIVANI
(22UK1A0443)
Mr. M. SHASHI KUMAR
(22UK1A0440)
Mr. M. SAI KIRAN
(22UK1A0442)
ACKNOWLEDGEMENT
The development of the project though it was an arduous task, it has been made
by the help of many people. We are pleased to express our thanks to the people
whose suggestions, comments, criticisms greatly encouraged us in betterment of the
project.
Finally, we would like to take this opportunity to thank my family for their
support through the work. We sincerely acknowledge and thank all those who gave
directly or indirectly their support in completion of this work.
Mr. P. PRANEETH
(22UK1A0451)
Mr. N. SHIVANI
(22UK1A0443)
Mr. M. SHASHI KUMAR
(22UK1A0440)
Mr. M. SAI KIRAN
(22UK1A0442)
CONTENTS
Abstract i
List of figures ii
CHAPTER - 1
INTRODUCTION OF DIGITAL DICE 1
CHAPTER - 2
EXECUTIVE SUMMARY
CHAPTER - 3
OBJECTIVES
4.1. Ic4017
4.2. Ic555
4.3. Battery
4.4. Passive components
1. Resisters
2. Capacitors
3. Led’s
CHAPTER - 5
WORKING
CHAPTER - 7
ADVANTAGES
CHAPTER - 8
APPLICATIONS
CHAPTER – 9
CONCLUSION
REFERENCES
ABSTRACT
In this project, I will show you how to make a simple Unbiased Electronic Dice
with LEDs. This project consists of 6 LEDs, a 555 Timer IC and a 4017 Decade
Counter IC and produces a random number between 1 and 6 by lighting up the
corresponding LED. Playing with dice is an age-old game. We all love to play with it
too. Playing with dice needs us to pick up a dice and make sure that it is unbiased.
Making a block as a dice and cutting it clearly to make sure that it is unbiased is all an
old story. The dice becomes biased if the shape is not cut well. Also, the dice can
become biased due to deformations. If it is a wooden die, it can deform due to
dampness in the atmosphere or due to mechanical stress. To solve all these problems
which we have with a conventional dice, we have made a dice circuit which solves all
the problems of a conventional dice.
Now we are going to show you an electronic LED dice which is nearly unbiased.
There is no chance to cheat as the circuit operates at such a high speed that the circuit
is almost imperceptible to the human eye. There is also little maintenance and there is
hardly any impact on aging of the circuit.
The frequency may vary a bit with change in power supply voltage, aging of the
active and passive components but still the randomness will be preserved without any
trouble.
LIST OF FIGURES
A digital dice using the IC 4017 is an electronic project designed to simulate the
rolling of a traditional six-sided die. The IC 4017 is a decade counter, which means it
can count from 0 to 9, and it is commonly used in various digital counting
applications. By combining this IC with a clock pulse generator, such as a 555 timer,
and a display mechanism (like LEDs or a seven-segment display), we can create a
digital dice that generates random numbers between 1 and 6.
Creating a digital dice using the IC 4017 offers a practical application of digital
electronics, blending simplicity with functionality. The IC 4017 is a decade counter
capable of sequentially cycling through ten outputs (Q0 to Q9) with each clock pulse
received. Typically driven by a 555 timer configured in astable mode to generate
continuous clock pulses, this setup forms the core mechanism for simulating the
rolling of a traditional six-sided die.
In operation, a push button initiates the process, triggering the 555 timer to start
generating clock pulses. These pulses drive the IC 4017, incrementing its count from
1 to 6 sequentially. Outputs Q0 to Q5 correspond to the numbers 1 through 6 and can
be connected to a display such as a seven-segment display or individual LEDs
arranged to resemble a die face. Upon reaching the sixth count, the IC 4017 resets
itself back to zero, ensuring continuous and random generation of numbers akin to
rolling a die.
This project serves as an effective educational tool, offering insights into fundamental
concepts of digital electronics including counters, clock generation, and display
interfacing. It is particularly suited for hobbyists and beginners keen on hands-on
learning. Beyond educational use, this digital dice can find practical application in
electronic board games or standalone gaming devices, demonstrating the versatility
and utility of the IC 4017 in simple yet engaging electronic projects.
CHAPTER – 2
OBJECTIVES
1. component understanding: Gain knowledge about IC 4017 and 555 Timer IC.
2. Circuit Design: Create a functional circuit layout using selected components.
3. Assembly and Testing: Construct the circuit on a breadboard, ensuring accuracy and
reliability.
4. Application Exploration: Identify practical uses in gaming and education, and
consider potential enhancements.
KEY COMPONENTS
IC 4017 Decade Counter: Used for counting and generating sequential output.
555 Timer IC: Configured to provide clock pulses for the IC 4017.
LEDs, Resistors, Capacitors: Essential for display and circuit stability.
Power Supply and Push Button: To power the circuit and simulate dice rolling.
SYSTEM DESIGN
The system is designed to simulate dice rolling by generating a clock pulse through
the 555 Timer IC, which drives the IC 4017 to count and output the result through
LEDs. This design ensures randomness and mimics the behavior of a physical die.
APPLICATIONS
Digital dice can be used in various applications such as electronic games, educational
tools, and simulations, offering advantages like durability, customization, and
integration with other digital systems.
FUTURE ENCHANCEMENT
CONCLUSION
The digital dice project bridges traditional gaming mechanisms with modern
electronics, providing a comprehensive learning experience in digital circuit design. It
reinforces theoretical knowledge with practical application, fostering skills in
electronic assembly and troubleshooting, while also highlighting the potential for
further innovation and enhancement in digital gaming tools.
CHAPTER – 3
OBJECTIVES
Test and validate the circuit to ensure reliable and accurate operation.
Ensure that the digital dice produce random and unbiased results akin to
physical dice.
By achieving these objectives, learners and hobbyists can build a functional digital
dice, gain a deeper understanding of digital electronics, and develop practical skills in
circuit design and implementation.
PCB Design and Fabrication: Learn the basics of designing a PCB for the
digital dice circuit, using software like Eagle or KiCad, and understand the
PCB fabrication process.
Microcontroller Integration: Explore the possibility of integrating a
microcontroller (e.g., Arduino) to add more features, such as sound effects or
multiple dice configurations.
Power Management: Understand different power management techniques to
make the circuit more efficient, such as using batteries or voltage regulators
Share and Collaborate: Share your project with the electronics and maker
community to get feedback and suggestions for improvement.
Iterative Improvement: Use feedback to iteratively improve the design and
functionality of your digital dice project.
CHAPTER - 4
HARDWARE COMPONTS
4.1. IC4017
Clock (Pin 14): This pin receives the clock signal. On each clock pulse, the
counter advances one count.
Reset (Pin 15): This pin resets the counter to zero when a high signal is
applied.
Enable (Pin 13): This pin enables the counter to advance when low. If high,
the counter will not count the clock pulses.
Carry Out (Pin 12): This pin outputs a pulse after every 10 clock pulses,
useful for cascading multiple IC4017s for counting beyond 10.
These pins represent the decoded output states (0-9) of the counter. Only one of these
pins is high at any given time, corresponding to the current count.
This configuration allows the IC4017 to be used in various counting and sequencing
applications, making it a versatile component in digital electronics.
Features:
4.2. IC555
FEATURES:
• It can be operated in +5V, can withstand up to +18V.
• The source and sink current of the output pin is near about 200mA.
• Trigger Voltage is 1.6 when operating at +5V.
• Operating Temperature is near about 70 degrees Celsius.
• It is available in 8-pin PDIP, SOIC, and VSSOP packages.
• The duty cycle of the 555 timers can be variable as per user need.
4.3. BATTERY
A resistor is a passive electrical component that limits the flow of electric current
in a circuit, ensuring proper voltage and current levels.
Fig: 4.4.1 RESISTERS
Function and Importance
Resistors control current, protect components, and ensure the proper operation of
electronic devices.
Types of Resistors
Fixed Resistors: Have a constant resistance value.
Carbon Composition: Inexpensive, less precise.
Film (Carbon, Metal, Metal Oxide): More accurate and stable.
Wirewound: High precision, used for high-power applications.
Variable Resistors: Allow adjustable resistance.
Potentiometers: Used for adjusting levels like volume.
Rheostats: Used for current adjustment in light dimmers, motor controls.
Special Resistors:
Thermistors: Resistance varies with temperature.
Photoresistors: Resistance varies with light intensity.
2.CAPACITOR:
Capacitors store electrical energy temporarily and release it when needed. They are
essential for smoothing out electrical signals, filtering noise, and maintaining power
supply stability.
Types of Capacitors
A Light Emitting Diode (LED) is a semiconductor device that emits light when an
electric current passes through it. LEDs are widely used in various applications due to
their efficiency and longevity.
FUNCTION AND IMPORTANCE
LEDs convert electrical energy directly into light, making them energy-efficient light
sources. They are important for providing illumination, indicators, and displays in
many devices and systems.
TYPES OF LEDS
Standard LEDs: Used as indicators and in display panels.
High-Brightness LEDs: Provide intense light for illumination purposes.
RGB LEDs: Combine red, green, and blue LEDs to create a wide range of colors.
Infrared LEDs: Emit infrared light, used in remote controls and night-vision
equipment
CHARACTERISTICS
Forward Voltage (V): Voltage required to forward bias the LED, typically
between 2-3V
WORKING
The digital dice circuit uses the IC 4017 decade counter and the 555 timer IC to
simulate a traditional six-sided die. Here’s a detailed explanation of the circuit
diagram and its components:
Components
IC 4017 Decade Counter: A digital counter IC that counts from 0 to 9 and has 10
output pins (Q0 to Q9). For the digital dice, only the first six outputs (Q0 to Q5) are
used.
555 Timer IC: Configured in astable mode to generate clock pulses. These pulses
drive the IC 4017, causing it to cycle through its outputs.
LEDs: Six LEDs represent the numbers on a traditional die. Each LED is connected
to one of the first six outputs of the IC 4017.
Resistors: Used to limit the current to the LEDs, protecting them from damage.
Capacitors: Used in the 555 timer circuit to control the timing of the clock pulses.
Push Button: Used to trigger the 555 timer and simulate the rolling of the die.
Power Supply: Provides the necessary voltage to the circuit, typically 9V.
Circuit Connections
555 Timer IC Configuration:
Pin 1: Ground.
Pin 2: Trigger, connected to Pin 6 (threshold).
Pin 3: Output, connected to the clock input of the IC 4017 (Pin 14).
Pin 4: Reset, connected to the positive voltage (Vcc) to enable the 555 timer.
Pin 5: Control voltage, often connected to a capacitor to ground.
Pin 6: Threshold, connected to Pin 2.
Pin 7: Discharge, connected to a resistor that goes to Pin 6.
Pin 8: Vcc, connected to the positive voltage supply.
IC 4017 Decade Counter:
Pin 8: Ground.
Pin 16: Vcc, connected to the positive voltage supply.
Pin 13: Disable, connected to ground to enable counting.
Pin 15: Reset, connected to a push button. When pressed, it resets the counter to Q0.
Pin 14: Clock input, connected to the output of the 555 timer (Pin 3).
LED Connections:
Each of the first six outputs of the IC 4017 (Q0 to Q5) is connected to the anode of an
LED through a current-limiting resistor 1k ohms.
The cathodes of all LEDs are connected to ground.
o The circuit is in standby mode with the IC 4017 reset to Q0, and LEDs are
off.
2. Triggering the Dice Roll:
o Pressing the push button triggers the 555 timer to start generating clock
pulses.
o These pulses are fed into the clock input (Pin 14) of the IC 4017.
3. Counting Sequence:
o With each clock pulse received, the IC 4017 advances to the next output
state.
o The outputs Q0 to Q5 sequentially activate, lighting up the corresponding
LEDs.
4. Displaying the Result:
o As the IC 4017 counts, LEDs light up one after another to simulate the rolling
action of a die.
o The sequence ends after output Q5, which represents the number 6 on the die.
5. Instantaneous Response:
o To minimize lag or delay, ensure that the 555 timer circuit generates clock
pulses at an appropriate frequency.
o Faster clock pulse rates (within the operational limits of the ICs used) can
provide a more responsive and immediate simulation of dice rolling.
Clock Pulse Frequency: Adjust the timing components (resistors and capacitors) in
the 555 timer circuit to generate clock pulses at a frequency that allows smooth and
quick transitions between IC 4017 outputs.
Debouncing Push Button: Implement debounce techniques to ensure the push button
press is registered accurately without causing multiple triggering events.
Testing and Calibration: Test the circuit thoroughly to identify any potential delays
or inconsistencies in LED activation. Adjust component values or circuit layout as
needed to achieve optimal performance.
By carefully designing and calibrating the digital dice circuit using these principles, you can
create a responsive and lag-free electronic dice simulator that effectively mimics the
randomness and immediacy of traditional dice rolls in games and other applications.
CHAPTER – 6
RESULT
The digital dice project utilizing the IC 4017 decade counter and associated
components has been successfully completed, achieving the objectives set forth at the
beginning of the project. Here are the key results and findings from the
implementation:
Here when we implemented after designing the digital dice the output as follows:
Step 1. The output when we attached to the battery and we got no.6 is shown fig:6.1
Fig: 6.1
Step 2: The out when we press the push button and achieved no.5 is shown in Fig: 6.2
Fig:6.2
Step 3: we repeated the process again and we achieved no.5 is shown in fig: 6.3
Fig: 6.3
Step 5 : A last we tried for the last time and we got no.1 as shown in fig:6.5
Educational Value:
Practical Utility:
Platform for Exploration: Serves as a platform for exploring new ideas and
applications in digital electronics and interactive devices.
APPLICATIONS
The digital dice project using the IC 4017 and 555 timer IC has several practical
applications, ranging from educational tools to gaming enhancements and beyond.
Here are some of the primary applications:
Electronic Games: Integration into electronic game systems where physical dice are
impractical or where digital interaction is preferred.
Custom Games: Used in custom-built electronic games where digital dice rolling is
an essential component of gameplay.
2. Educational Tools
Learning Electronics: Serves as a hands-on project for students and hobbyists to
learn about digital electronics, sequential circuits, and the functioning of integrated
circuits like the IC 4017 and 555 timer.
3. Interactive Displays
Museum Exhibits: Incorporated into interactive exhibits in museums and science
centers to demonstrate digital technology and randomness.
Interactive Voting: Incorporated into systems where users need to make random
selections or decisions, adding an element of randomness to the process.
5. Teaching Aids
Instructor Demonstrations: Used by instructors to demonstrate digital circuit
design, component functionality, and system integration in a classroom or lab setting.
Project Kits: Included in electronics project kits for students and enthusiasts,
providing a structured project that helps in learning and experimentation.
Innovative Devices: Basis for creating innovative devices that require random
number generation or interactive digital displays.
CONCLUSION
The Digital Dice Project using the IC 4017 has successfully demonstrated the
practical application of digital electronics and integrated circuits in creating a simple
yet effective random number generator. The project showcases the versatility and
functionality of the IC 4017, a decade counter, in generating numbers from 1 to 6,
emulating the roll of a traditional dice.
In conclusion, the Digital Dice Project using the IC 4017 not only achieved its
primary goal of creating a digital dice but also provided valuable insights into digital
electronics and integrated circuits. It stands as a testament to the power of simple
digital components in creating functional and educational electronic projects.
REFERENCES
1. Datasheet of IC 4017:
o Texas Instruments. "CD4017B Decade Counter/Divider." Datasheet.
o Fairchild Semiconductor. "CD4017BC Decade Counter/Divider with
10 Decoded Outputs." Datasheet.
2. Understanding Decade Counters:
o Malvino, A. P., & Brown, J. A. "Digital Computer Electronics."
McGraw-Hill Education, 1993.
o Tocci, R. J., Widmer, N. S., & Moss, G. L. "Digital Systems:
Principles and Applications." Pearson, 2010.
3. Project Tutorials and Guides:
o Make Electronics. "Digital Dice Circuit Using IC 4017." Make
Electronics.
o Electronics Hub. "Digital Dice Circuit using CD4017." Electronics
Hub.
4. Clock Pulse Generation:
o Tocci, R. J., & Widmer, N. S. "Digital Systems: Principles and
Applications." Pearson, 2010.
o Horowitz, P., & Hill, W. "The Art of Electronics." Cambridge
University Press, 2015.
5. Random Number Generation in Digital Circuits:
o Tietze, U., & Schenk, C. "Electronic Circuits: Handbook for Design
and Application." Springer, 2008.
o Wakerly, J. F. "Digital Design: Principles and Practices." Prentice
Hall, 2005.
These references provide a comprehensive foundation for understanding the
principles and components involved in the Digital Dice Project using the IC 4017.
They cover datasheets, theoretical concepts, practical guides, and tutorials essential
for the project's success.