試す 金 - 無料
TOUCH TO ROLL: A Decoder-Based Dice
Electronics For You
|April 2025
Electronic dice, or e-dice, are widely used today, but creating a design replicating the anticipation and randomness of a physical dice roll comes with its challenges.
This device achieves that effect by generating a rolling motion that lasts approximately four seconds, though the duration can be adjusted by modifying the rolling steps.
A 3-to-8 decoder (IC 74LS138) displays a valid dice face, with combinational AOI logic (AND, OR, and INVERT gates) ensuring only valid outputs. Seven individual LEDs, arranged to represent numbers 1 through 6, replicate the appearance of a traditional dice. The ESP32 microcontroller brings the design to life, handling random number selection and creating a realistic rolling effect, making this an excellent case study in digital circuit design.
Fig. 1 shows the prototype with the rolling clock, while Fig. 2 presents a block diagram of the system. Table 1 lists the components required to build this device.
The main components of this device are the ESP32 board and the ICs 74LS138, 74LS260, 74LS04, and CD4075. The truth table for the decoder IC 74LS138 is provided in Table 2.The ESP32 board is the core of the device. It is used for the following tasks:
Detecting the closure of the path that activates the dice roll.
Introducing a rolling step of a few seconds (four seconds in this case).
Generating a 3-bit random number.
このストーリーは、Electronics For You の April 2025 版からのものです。
Magzter GOLD を購読すると、厳選された何千ものプレミアム記事や、10,000 以上の雑誌や新聞にアクセスできます。
すでに購読者ですか? サインイン
Electronics For You からのその他のストーリー
Electronics For You
SMART SPEED MONITORING SYSTEM For Road Safety
Advances in embedded systems and sensors have enabled efficient, intelligent surveillance solutions that improve safety and control in transportation and automation applications.
3 mins
March 2026
Electronics For You
REAL-TIME FACE TRACKING Using Raspberry Pi 4 Versus Raspberry Pi 5 With Hailo-8L
Real-time face tracking has evolved from a research novelty into a practical tool for interactive robotics, surveillance, and automation.
7 mins
March 2026
Electronics For You
LED BAR DISPLAY Showing Audio Signal Level
This is a simple audio-signal-based LED indicator built around the LM3914 display driver IC.
3 mins
March 2026
Electronics For You
Simple Tricks To Pack MORE 5G ANTENNAS
Can compact isolation structures enable denser 5G antennas? PCB-friendly isolation techniques make it possible to place more antennas into tight layouts without sacrificing isolation, gain, or efficiency.
5 mins
March 2026
Electronics For You
Deploying GENERATIVE AI MODELS Efficiently
Enterprise deployment of Generative AI depends on the seamless optimisation of hardware and software, driving higher performance at lower cost. It highlights the purpose-built hardware powering GenAl and the software methods that help enterprises extract maximum efficiency.
5 mins
March 2026
Electronics For You
Alexa-Enabled Smart IoT ELECTRICITY METER SWITCH BOARD
Imagine tracking power-line voltage, frequency, current draw, and appliance power consumption through a smart switch plug.
5 mins
March 2026
Electronics For You
Making Responsible AI THE STANDARD
With hallucinations, bias, opaque decisions, and even CO2 costs adding up, it is clear that AI needs discipline and responsibility built in from the start.
5 mins
March 2026
Electronics For You
BATTERYLESS MICROCONTROLLER Operation Using Supercapacitor
Imagine a world where microcontrollers (MCUs) and development boards operate without batteries.
5 mins
March 2026
Electronics For You
Gujarat Is Becoming The 'Taiwan Of India'
In conversation with EFY’s Nitisha Dubey, Jatin Chudasama of Allnyx Technologies discusses Gujarat’s electronics ecosystem, policy landscape, market opportunities, and workforce challenges, while outlining the company’s scaling and long-term growth plans.
2 mins
March 2026
Electronics For You
FROM TIER-1 TO TIER-0.5: The Rise Of Intelligent Parts And Micro-Interactions
What if the smartest part of a product is not the product itself but the tiny subsystem quietly making decisions and talking back? Designing the future becomes an exercise in coordinating many small, purposeful minds rather than relying on one central core.
12 mins
March 2026
Listen
Translate
Change font size

