Help change 6-sided dice circuit to 20-sided

AI Thread Summary
To modify a 6-sided dice circuit to a 20-sided one, it is essential to understand the current use of the 4017 as a random number generator. The circuit features an oscillator and a Johnson counter, which resets at 6, making it challenging to extend to 20. Two potential solutions include chaining a second counter to handle the tens place or using shift registers that do not loop back. The first method may face timing issues due to slower diode response, while the second requires careful management of input to ensure accurate output. Implementing these changes will allow the circuit to count from 0 to 19 effectively.
Engineering news on Phys.org
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...
 
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.
 
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...
Back
Top