We have seen a coin is tossed before beginning a football match. This electronic version of it comes with a row of 7 LEDs – the middle one is green, and the rest are red.
When you press reset, the probability of the red LEDs next to the green LED to light are the same for all the red LEDs. Thence, a left or right decision is conducted by the circuit based on complete randomness.
How the Circuit Works
The operation is simple. Button S1 can be activated at any time to preset the counter IC1.
This component returns a binary value of 0 at Q0, Q1 and Q2 outputs. As a result, the BCD-to-decimal decoder, IC2, converts the bits to the corresponding green LED (D4) in the middle of the row.
You can preset the initial state of the circuit by activating P6 to P3 while they are connected to the ground. This signals IC1 to load 0000 as the initiating binary digits when button S1 is pushed.
When you press the button S2, switching of N1 and N2 happens. As a result, a single pulse transition develops at the clock input of IC1. Based on the logic at the UP/DOWN input of IC1, the 1/8 decoder will light up D5 (on the right) or D3 (on the left).
This tallies with the counting up sequence from 0000 to the next binary number, 0001. On the other hand, if counting is downwards, a value of 1111 is delivered. When the value is counted down, IC2 will let D3 light up at the output of Q7. This happens because the most significant input bit of D is connected to the ground.
Toss Results are 100% Random
The randomness of the toss-up circuit is guaranteed by the speed of the pulse applied to the counter UP/DOWN input by oscillator N3-N4. In theory, the odds are personalised and cannot be tampered with.
7 active-high outputs of IC2 are attached to their related LEDs. At the same time, Q4 aids to impede the counter through the CARRY IN terminal. You may notice the counter limitation happens automatically as IC1 counts up from the state 3 output. If state 5 is concerned, the IC counts down. Both these situations allow Q4 and the CARRY IN to go HIGH. As a result, the counting will not continue as long as the reset button is not pressed.
In the end, if you continuously press the S2 button without resetting the circuit, any random LED will illuminate. This is useful when you are playing any other random-based game.
Leave a Reply