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 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.
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:
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.
Components used in this module...
Find out more about the components used in this STEM Module.
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||555 Timer||Integrated Circuit (IC)|
|1||CD4017||Integrated Circuit (IC)|
|6||5mm Blue (Diffused)||LED|
[ 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!
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!
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.
- Tsukure Mad Labs
- Tsukure Preppers
- Tsukure Smart Garden
- Tsukure Smart Home
- Tsukure Spy
- Tsukure Studio
- Tsukure Tactical
- Tsukure Worx
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!
- Ohm's Law Calculator
- Voltage Divider Calculator
- Resistor Color Codes
- LED Array Wizard
- LED Resistor Calculator
- Capacitor Code Calculator
- Capacitor Code Table
- Capacitor Conversion Chart
- Wire Gauge Reference Table
- Coil Inductance Tool
- Inductance Unit Convertor
- Passive Corss-Over Calculator
- 2-Way Audio Cross-Over Calculator
- 555 A-Stable Calculator
- 555 Mono-Stable Calculator
- Convert Image to XBitmap
- Make Boxes
- Make Rack Boxes
- GrabCAD 3D Models
- 3D Content Central
- Convert STEP to STL
- Autodesk Eagle Library Search
- SnapEDA Eagle Library Search
- Autodesk Library