Tsukure Mad Labs Random Number Generator

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.

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, it will start from the Q0 again. So it creates sequential ON and OFF of all the 10 OUTPUT PINs.

Explanation

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. We have connected 6 LEDs to the output Q0 to Q5, and the seventh output Q6 is connected back to the RESET PIN 15. So that after LED 6 it starts from the First LED at Q0.

To apply the clock pulse at PIN 14 of 4017 IC, we have used 555 timer IC in Astable 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. We can control the speed of flashing LEDs by using the potentiometer (RV1), rotating the potentiometer knob will change oscillation frequency of 555 timer, hence the rate of clock pulse. The frequency of the 555 can be calculated using this formula:

F=1.44/((R1+2*RV1)*C1)

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. You can increase frequency according to you, by rotating the potentiometer.

 

Let's Get Started!

Below you will find a list of bits to gather before hand, followed by a detailed schematic. Using a breadboard lay out the components and connect them together as shown. Alternatively you can purchase this module from our shop and simply solder the components in the places indicated on the quality assured printed circuit boards provided.


What You Need...


1 9V Black Battery Holder Clip Snap On Connector Cable Battery / Battery Holder
1 10uF Capacitor (Polarized)
1 555 Timer Integrated Circuit (IC)
1 CD4017 Integrated Circuit (IC)
6 5mm Blue (Diffused) LED
2 1K
[ Brown, Black, Black, Brown ]
Resistor (0.25 Watt)
1 10K (103) Resistor (Trim Potentiometer)
1 Momentary Tactile Push Button (5mm) Switch

NB: Any resistor colour codes specified relate to 5 band resistor codes, the 5th band has not been shown intentionally. The 5th band indicates the resistor tolerence, we use only the highest tolerence resistors in our products.

Take a Closer Look!



Sharing is Caring!

If you like this project, or maybe, know someone else that might, why not click the buttons below to share the experience!


Get Involved!

We are building an international community of engineers, programmers, builders, makers, nerds and geeks, join in below. Ask questions about this module or perhaps share your projects and show others how you have used this information to do something kool!


Tsukure Mad Labs STEM Categories





Tsukure TV

We will be launching the Tsukure TV YouTube Channel very soon! Subscribe now so that you don't miss out on the BIG LAUNCH!


Just An Idea!

This project is currently just an idea, a prototype! This is how we begin our journey of discovery and welcome you to join us.

Why not have a go at making this idea into a working project.

CLICK IMAGES TO ENLARGE!

STEM Ranges



Additional Resources


GitHub

Our team of engineers and coders have been busy building our own resources to allow us to improve our workflow. You too can have these resources at your disposal.

Go!

Useful Links