يحاول ذهب - حر

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

Low-power, reliable transmitter chip

Researchers at MIT (United States) have developed a compact transmitter chip that reduces signal errors by a factor of four and extends battery life for IoT devices.

time to read

1 min

September 2025

Electronics For You

Electronics For You

Leading Suppliers of MICROSCOPES FOR OC OF ELECTRONICS

Who are India's Leading Suppliers of Microscopes for Quality Control of Electronics? Here is the list...

time to read

5 mins

September 2025

Electronics For You

Electronics For You

Compact swarm-level AI drones navigation using neural network

Researchers at Shanghai Jiao Tong University (Shanghai, China) have developed a compact AI navigation system for drones.

time to read

1 min

September 2025

Electronics For You

Electronics For You

ML-based wireless power transfer

Researchers at Chiba University (Chiba, Japan) have developed a machine learning-based method to design wireless power transfer (WPT) systems that stay efficient and stable across varying loads.

time to read

1 min

September 2025

Electronics For You

Wi-Fi that knows who you are

WhoFi, developed at La Sapienza University (Rome, Italy), is a Wi-Fi-based surveillance system that identifies individuals by how their bodies disrupt wireless signals; no cameras, contact, or consent is needed.

time to read

1 min

September 2025

Electronics For You

Electronics For You

3mm-thick holographic display that delivers lifelike 3D visuals

Stanford researchers (California) have unveiled a 3mm-thick holographic display that delivers lifelike 3D visuals using true holography, not stereoscopy.

time to read

1 min

September 2025

Electronics For You

Electronics For You

Smart Trolley Robot 'TROLL.E 1.0'

Robots now play a vital role across modern society, often described as human-like due to their growing presence in social and commercial environments.

time to read

3 mins

September 2025

Electronics For You

Compact metal-free thin-film supercapacitor delivers 200V

GDUT (Guangzhou, China )researchers have developed a metal-free thin-film supercapacitor (TFSC) stack that delivers 200V in just 3.8cm³.

time to read

1 min

September 2025

Electronics For You

Electronics For You

Al-powered self-driving lab tests materials 10x faster

Researchers at NC State (Raleigh, North Carolina) have developed an Al-powered self-driving lab that uses dynamicstate flow and real-time data to test materials 10x faster than traditional labs.

time to read

1 min

September 2025

Electronics For You

Electronics For You

Breakthrough in co-packaging photonic and electronic chips

The MIT (United States) FUTUR-IC team has developed a breakthrough chip packaging method that co-integrates electronics and photonics using passive alignment.

time to read

1 min

September 2025

Listen

Translate

Share

-
+

Change font size