Home > Other >Special Application Circuits > Share a board game electronic dice circuit

Share a board game electronic dice circuit

Source: InternetPublisher:司马缸砸光 Keywords: Electric dice Updated: 2025/01/03

Electronic dice can be a good and fun alternative to traditional dice when enjoying our board games. We have designed an electronic dice circuit that will generate random numbers from 0 to 6. The feature of this circuit is that the results are highly unpredictable due to a special modulated clock that drives the number generation.

Working principle of electronic dice circuit:

This circuit uses a 4-bit counter to generate a random number between 1 and 6, for this we have created a modulated PWM using 2 timers 555 and a VCO. This will allow us to tell the counter to count numbers from 0 to 7 in a semi-random manner and block the numbers 0 and 7 from appearing.

1) Clock signal generator:

poYBAGRfMN2AezjWAAFa7qWvjJM736.png

The first part of the circuit generates the signal input to the counter. We need the counter to count from 1 to 6, but not constantly, we should try to do it in a semi-random way, we can make it so that the counter advances the numbers faster for some of the time, and slows down the rest of the "cycles". This can be achieved by using the PWM signal that the counter needs, but in a modulated way.

For this we need a PWM signal and a sinusoidal signal. For this we use a 555 timer in monostable mode and a VCO based on the chip MC1648LP as a sinusoidal signal generator. We input these 2 signals to another 555 acting as a modulator. The result is a PWM signal modulated by the sinusoidal signal and it will have two time periods "PWM and Sine. This results in one period of time when the pulse is shorter and one period of time when the pulse is longer.

2) Counter:

pYYBAGRfMNiAIePkAAFbOb2NzZw495.png

The modulating signal is fed as input to the counter portion of this circuit. If we feed this signal into a 4-bit counter, this will count from 0 to 15 in a semi-random fashion. The count will increase with each pulse, but the timing of this increment will vary depending on the modulating PWM signal input.

We need to limit the counter to count from 0 to 7, so bit 4 will be used as a reset signal. Switch button S1 will tell the counter to count when pressed. What we have done so far is allow the counter to count from 0 to 7 in a semi-random manner, but we need it to count from 1 to 6. To do this we pass the signal to two comparator chips 7485N, which will tell us whether the number we generated is 0 or 7.

When this condition is true, we force the display to show either 1 or 6. This operation is performed using gates OR and AND. After making this restriction, we send the resulting signal to the 74LS47N chip which converts the BCD signal to a signal which the 7-seg display interprets to show the corresponding number.

Parts Required:

Battery – 12V

C1, C2, C3, C4, C5, C6, C7 – 0.01u, 0.15u, 0.02u, 0.1u, 0.1u, 0.01u, 0.1u

D1

IC1, IC2 – 555 (2)

IC3 – MC1648LP

IC4 – 74LVC1G04DCK

IC5-74AC11D

IC6 – 74AC32D

IC7 – 74LS47N

L – 100uH

R1- 5k, R2 & R3 – 3k

Push button switch – S1

V1 74160N

V2 7485AN

V3 7485AN

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号