Help change 6-sided dice circuit to 20-sided

In summary: Then you can connect the second shift register to the 20th input and the first output to the first LED. Now the LED will light up whenever the number 20 is rolled. There is also a third output for a carry, but I'm not sure what you would use it for.
Engineering news on Phys.org
  • #2
mishima said:
I'm looking for input as to how I could modify this:

http://www.electronicdesignworks.com/circuits/electronic_dice/electronic_dice.htm

so that it does a 20-sided dice instead of a 6. Thanks.

Do you understand how the 4017 is being used as a random number generator?

Do you have experience programming microcontrollers? Using a PIC might be the easiest way to generate 20-bit random numbers...
 
  • #3
Well I guess 20 bits will not be necessary... The circuit consists of two parts an oscillator producing 0 and 1 (high and low voltage) really fast, and a Johnson counter that is running in circles by this oscillation, and it stops when you release the button. The Johnson counter would normally run from 0 to 9, but it is folded back onto itself so it resets to 0 when reaching 6. I hope you understand the circuit this far. The problem is, that going above 9 is not straight forward as the counter will restart at 0. The two ways to get to 20 easily that I see:

1) I think the counter is made for chaining. So you can connect a second counter to the carry output that counts tens. You would connect the third output of the counter for tens to both reset inputs and reset the counter once it reaches 20. The die would then count from 0 to 19. Another disadvantage of this setup is that the diode for tens turns on and off slower then the one for ones and depending on the oscillator speed it might be too slow and you might be able to manipulate the output by good timing.

2) the second way to do it are shift registers. They are very similar to Johnson counters, but they don't loop back. If you put one bit in at the first input it moves on every cycle and you can loop it back from the last chip to the first so it runs in a circle. The most tricky part is getting the first bit in. If you are lazy you can just say that the rolled number is the number of LEDs that are on. Put the input of the first shift register on high and let the 20th output reset the shift registers.
 

1. How do I modify a 6-sided dice circuit to work for a 20-sided dice?

To modify a 6-sided dice circuit to work for a 20-sided dice, you will need to add additional components such as resistors and capacitors to increase the number of possible outcomes. Additionally, you will need to reprogram the circuit to generate numbers between 1 and 20 instead of just 1 to 6.

2. Can I use the same circuit design for both 6-sided and 20-sided dice?

Technically, you can use the same circuit design for both 6-sided and 20-sided dice. However, you will need to make significant modifications to the circuit to accommodate the different number of sides and increase the range of possible outcomes.

3. What components do I need to change to make the circuit work for a 20-sided dice?

You will need to add additional resistors and capacitors to the circuit to increase the number of possible outcomes. You may also need to change the programming of the circuit to generate numbers between 1 and 20.

4. Is it possible to modify a 6-sided dice circuit without changing the programming?

No, it is not possible to modify a 6-sided dice circuit to work for a 20-sided dice without changing the programming. The circuit will need to be reprogrammed to generate numbers between 1 and 20 instead of just 1 to 6.

5. Are there any tutorials or resources available to help me modify a 6-sided dice circuit to work for a 20-sided dice?

Yes, there are many tutorials and resources available online that can guide you through the process of modifying a 6-sided dice circuit to work for a 20-sided dice. Make sure to do thorough research and carefully follow the instructions to ensure your circuit works correctly.

Similar threads

  • Precalculus Mathematics Homework Help
2
Replies
53
Views
5K
  • Set Theory, Logic, Probability, Statistics
Replies
16
Views
2K
  • Set Theory, Logic, Probability, Statistics
Replies
6
Views
1K
  • Electrical Engineering
Replies
2
Views
1K
  • Electrical Engineering
2
Replies
41
Views
3K
Replies
8
Views
4K
  • Electrical Engineering
Replies
20
Views
447
  • Set Theory, Logic, Probability, Statistics
2
Replies
41
Views
3K
  • Electrical Engineering
Replies
27
Views
1K
  • Electrical Engineering
Replies
6
Views
985
Back
Top