How to simulate the 'rolling' of an electronic die?

  • Thread starter Thread starter mememe653
  • Start date Start date
  • Tags Tags
    Electronic Rolling
Click For Summary
SUMMARY

The forum discussion centers on enhancing an electronic die project that generates pseudo-random numbers from 1 to 6 using a push-button and a display of 7 LEDs. The current setup employs a shift register and a ripple counter powered by a 9V battery. The user seeks assistance in implementing two features: a timed display shut-off after a few seconds and a gradual slowdown of the count to simulate the rolling effect before revealing the final number. The user is encouraged to consider using an Arduino for these enhancements.

PREREQUISITES
  • Understanding of basic electronics, including circuits and components.
  • Familiarity with Arduino programming and its environment.
  • Knowledge of digital logic gates and their applications.
  • Experience with LED displays and their control mechanisms.
NEXT STEPS
  • Research Arduino libraries for controlling LED displays.
  • Learn about implementing timers in Arduino to manage display shut-off.
  • Explore techniques for creating a countdown effect in programming.
  • Investigate shift registers and ripple counters in more detail for potential circuit optimizations.
USEFUL FOR

Electronics enthusiasts, hobbyists working on Arduino projects, and anyone interested in enhancing interactive electronic devices.

mememe653
Messages
5
Reaction score
0
Hi,

So I've built an electronic die that generates a pseudo-random number from 1 to 6 each time a push-button is let go of. I use 7 LEDs as a display, representing the dots on the faces of a die. A shift register connected to an oscillator results in a ripple counter that counts from 1 to 6 in binary, with this signal then being converted via digital logic gates to a meaningful representation representation on the display. A push-button is then connected to the circuit so that when it is pushed, the ripple counter cycles through the count quickly and when it is released, the display at the point of release stays lit up until the button is pressed again. The circuit is powered by a 9V battery.

Now, I'm unsure if this information was necessary in what I need help with, and I'm not sure if it is specific enough to be able to acquire help from you, but basically I need help in implementing 2 features I want to add to my die.

I want the display to turn off after a few seconds of displaying the number generated from 'rolling' the die. Also, as my title tries to suggest, I want to simulate the 'rolling' of the die. By this, I mean that after the push-button is released, instead of immediately displaying the result, I want the count to slow down until eventually the final result is reached and displayed and then held on the display until the next time the button is pressed, building suspense on what the generated number will be.

So if you could please help me in adding either of these features to my project, that would be much appreciated. By the way, I'm new to electronics so please provide answers which are as specific as possible, thanks.
 
Engineering news on Phys.org
I would approach that problem with an Arduino or similar hobby computer, plus software.

You could do it with just circuitry, but the circuits could be elaborate. We can't design it for you here. But if you post your proposed design, we may be able to offer comments.
 

Similar threads

  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 25 ·
Replies
25
Views
5K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
2
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
Replies
17
Views
10K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 26 ·
Replies
26
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K