Facebook Pixel {العنوان: سلسلة} | {اسم المغناطيس: سلسلة} - {الفئة: سلسلة} - اقرأ هذه القصة على Magzter.com
استمتع بـUnlimited مع Magzter GOLD

استمتع بـUnlimited مع Magzter GOLD

احصل على وصول غير محدود إلى أكثر من 9000 مجلة وصحيفة وقصة مميزة مقابل

$149.99
 
$74.99/سنة

يحاول ذهب - حر

TOUCH TO ROLL: A Decoder-Based Dice

April 2025

|

Electronics For You

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.

- DR GEETALI SAHA AND PRIYANSHU PATEL

TOUCH TO ROLL: A Decoder-Based Dice

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.

imageThe 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

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.

time to read

3 mins

March 2026

Electronics For You

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.

time to read

7 mins

March 2026

Electronics For You

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.

time to read

3 mins

March 2026

Electronics For You

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.

time to read

5 mins

March 2026

Electronics For You

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.

time to read

5 mins

March 2026

Electronics For You

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.

time to read

5 mins

March 2026

Electronics For You

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.

time to read

5 mins

March 2026

Electronics For You

Electronics For You

BATTERYLESS MICROCONTROLLER Operation Using Supercapacitor

Imagine a world where microcontrollers (MCUs) and development boards operate without batteries.

time to read

5 mins

March 2026

Electronics For You

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.

time to read

2 mins

March 2026

Electronics For You

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.

time to read

12 mins

March 2026

Listen

Translate

Share

-
+

Change font size