Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

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

  1. May 19, 2012 #1

    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.
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted