Logic Unit
We have three inputs of the user health status for our logic circuit, whether or not the user's blood oxygen level is low(A), whether or not the user is coughing(B), whether or not the user's body temperature is low(C). If none of the inputs is true, the circuit will indicate green light, if one of the input is true, the circuit will indicate yellow light, if two of the inputs are true, the circuit will indicate red light, and if all three inputs are true, then the circuit will activate an alarm sound. The picture on the left is our initial sketch for our simulation
Flip-Flops
A flip-flop is a component used to store data in computer electronics. It stores binary data which are the numbers 0 and 1. A flip-flop does not instantly update user data input. It runs on a clock system which goes from low to high and high to low at regular intervals. The data is outputted whenever the clock goes from low to high; however, the input can occur at any time.
A JK flip-flop is similar to an SR flip-flop however, it eliminates the invalid state. A D flip-flop allows for the input value to be outputted smoothly on the edge of the clock pulse. Finally, A T flip-flop is a simplified version of the JK flip-flop J and K inputs are tied together.
Alarm Circuit