We created a device that detects if a subject has coronavirus based off of symptoms that the person exhibits. If the person exhibits none of the symptoms, then a green light will show. However, if one symptom is present, then a yellow light will show. If there are two symptoms present, a red light will show and if all of the symptoms are present, then an alarm will sound.
Our logic circuit makes use of 3 gates, and, not, and xor. For the green light, we not each symptom (switch) output, and send it into a cascading and so we can triple and all the switch outputs. This means that when all the switches are off, the green light will be on. The yellow light turns on if and only if one symptom exists, so we send each switch output into a cascading and and a cascading xor, both of which's outputs get sent into an xor gate for the output. The red light creates all possible 2 switch on scenario using and gates and those get sent into the same system used for the yellow light. Finally, for the alarm circuit, the inputs are sent into a cascading and, the output of which is sent to the alarm circuit
Unfortunately our detector did not end up working. We believe that there was faulty wiring in the logic circuit that ended up making it so that the lights were not connected to the switches. The exact problem was undiagnosable due to messy wiring and an overcomplicated circuit. The wiring was too delicate that when we would move one wire, the rest would also be removed. If we were to attempt this again, we would make a more concise and organized plan as well as organize the wiring more. In doing this, we would make better use of our materials. We would also use buttons instead of switches because we were struggling to tell where the ground, live, input, and output were on the switches. Buttons would also help us be able to test more because when we would attempt to test our work we would pill the wires out of our breadboard because they were too delicate.