This project involves constructing a coin toss circuit that comprises three main sections: a square-wave oscillator, a JK flip-flop, and two LEDs (one red and one green). The circuit utilizes CMOS digital integrated circuits (ICs) and MOSFET transistors. The schematic does not depict power and ground connections for the ICs. When powered by a 9V battery, both LEDs illuminate. Upon pressing the switch, one LED turns off while the other remains lit, with an equal probability for either color. The square-wave oscillator is built using one gate from the CD4093 IC, which contains four 2-input NAND gates. The output of a gate alternates between high (+V) and low (0V) based on its inputs, with the behavior defined by a truth table. To facilitate assembly, IC sockets are recommended to avoid the difficulties of unsoldering components. The arrangement of parts on the board, including jumper wires, is illustrated in the referenced figures. The circuit requires some adjustments, such as drilling a hole for the battery clip and ensuring proper connections for the switch and ICs. The specific values for resistors and capacitors can be varied, but care must be taken to ensure the time constant does not exceed certain limits to maintain LED functionality. Before powering the circuit, thorough checks for shorts and correct component orientation are essential. Upon successful assembly and inspection, connecting a 9V battery should result in the immediate illumination of the LEDs, with the switch operation yielding a random selection of colors.
The coin toss circuit is designed to simulate a random selection process through the use of a square-wave oscillator and a JK flip-flop. The square-wave oscillator, implemented with a NAND gate from the CD4093, generates a continuous signal that toggles between high and low states. The frequency of this oscillation can be adjusted by changing the resistor (R1) and capacitor (C1) values; for instance, using a 100kΩ resistor and a 0.01µF capacitor yields a period of approximately 1ms, while a 0.001µF capacitor can achieve a faster oscillation of 0.1ms. This rapid toggling is essential for creating a visually dynamic indication through the LEDs.
The JK flip-flop, constructed using the CD4027 IC, takes the output from the oscillator as its clock input. The flip-flop's Q output will change state based on the clock signal, driving the LEDs. The connections to the flip-flop's pins are critical: pins 1 and 2 serve as the Q and Q' outputs, while pin 3 functions as the clock input. The reset (RST) and set (SET) pins are grounded, and the J and K inputs are tied to the positive supply voltage. This configuration allows the flip-flop to toggle its output with each clock pulse, resulting in one LED lighting up while the other turns off, thus simulating the randomness of a coin toss.
Proper assembly is crucial for the circuit's functionality. IC sockets should be used to facilitate easy replacement of the ICs if needed. The circuit board must be prepared with precise connections, ensuring that the battery clip wires are correctly soldered to the designated copper strips for power distribution. The switch must also be connected properly, as any misalignment can disrupt the circuit's operation. After assembly, a thorough inspection with an ohmmeter is recommended to check for shorts or incorrect connections before powering the circuit with a 9V battery.
Once powered, the circuit should exhibit the expected behavior: both LEDs light up initially, and pressing the switch will randomly toggle the states of the LEDs. This project serves as an excellent introduction to digital electronics, illustrating the principles of oscillation, state changes in flip-flops, and the use of basic components to create a functional electronic device.In this project you will build a coin toss circuit. It has three sections: a square-wave oscillator, a JK flip flop, and two LEDs (red & green). It uses CMOS digital ICs and MOSFET transistors. The schematic does not show the power and ground connections for the ICs. When powered from a 9V battery, both LEDs will light. When you press the switch, one LED shuts off and the other stays lit; but which one There`s a 50-50 chance for either color. The square-wave oscillator uses one gate in the CD4093 IC. The IC contains four 2-input NAND gates as shown in figure 2. Digital signals are either high (+V) or low (0V). The output of a gate will switch between high and low depending on its inputs. The input-output behavior of a gate is defined by its truth-table. Table 1 is the truth-table for a 2-input NAND gate where A and B are the inputs and X is the output. A 0 represents low (0V) while a 1 represents high (+V). Mistakes happen, and unsoldering an IC is tedious. So in this project we will use IC sockets. Refer to figure 6 to see how the parts are arranged on the board, including jumper wires. Figure 7 shows how the parts and jumpers are soldered. Note that the leads of the switch need to be adjusted slightly to fit the holes in the board. Figure 7 shows the two strips of copper that run along the top and bottom of the board. They are used for +9V (red wire on battery clip) and ground (black wire). Drill a 1/8 inch hole between the two existing holes. Then feed the battery clip wires through and make a small knot. Then feed the black and red wires through the other two holes as shown. In figure 6 you can see the red and black wires inserted into holes and soldered on the copper side. Note the bare-wire jumpers, including the one between the two ICs which brings +9V to pins 5 & 6 of the CD4027. Since I cut the board down, it turned out that the switch was connected to the same strips of copper as pins 4 and 7 of the CD4093.
So I had to cut two of the copper traces to isolate the switch from those pins. Be careful to insert the switch correctly. Use an ohmmeter to identify the normally open contacts. On the CD4093, input pins 1 & 2 and output pin 3 are used for the oscillator; pin 7 is ground and pin 14 is +9V. On the CD4027, pins 1 & 2 are used for Q & Q; pin 3 is the input (CLK); pins 4 & 7 (RST & SET) are connected to ground; pins 5 & 6 (K & J) are connected to +9V.
The circuit operates at 220 V AC using a C1 buck converter and a DW regulator. The VD ensures the entire stream is processed, and C2 provides a filtered output of 12 V DC for the voltage supply control...
The inquiry pertains to the connection of lights that flash when a phone rings. This feature is particularly beneficial in noisy environments, such as workshops, where hearing the phone may be difficult. A device designed for this purpose is...
Competition among relay contacts in contactor control systems often leads to significant issues that can be cumbersome to address. In some cases, this requires the addition of numerous components. However, utilizing a negative temperature coefficient thermistor (NTC) for delay...
This circuit is designed to detect incoming calls on a cellular phone, even when the phone's ringer is turned off, by utilizing a flashing LED. The device should be positioned a few centimeters away from the cellular phone, allowing...
The circuit provides a passband gain of 1 with a corner frequency of 10 kHz, designed to eliminate high-frequency noise such as hiss, ticking, and popping sounds.
This circuit operates as a low-pass filter, effectively attenuating frequencies above the specified...
Leo Esaki invented the tunnel diode in 1957 while working at Sony (then known as Tokyo Tsushin Kogyo). Tunnel diodes feature a very narrow, heavily doped p-n junction approximately 10 nm wide, which exhibits a broken bandgap. This configuration...
We use cookies to enhance your experience, analyze traffic, and serve personalized ads.
By clicking "Accept", you agree to our use of cookies.
Learn more