A security light has been installed. It turns on when it senses motion but only when it’s dark outside. The light can be turned on manually with a switch regardless of motion or light/dark. The switch does not control the overall power of the light. Even if the switch is off, the light can still come on if the other conditions are right. You come up with the truth table, sum-of-minterms, K-map and simplified expression, and the final optimized circuit in the steps below. You also express this circuit the 2nd way using all NAND gates. The first step has been completed.
Determine variables and assign meaning for each of the 3-inputs. (This step has been completed for you. Please use these variables as defined.)
• X = outside light; 0 for dark, 1 for light
• Y = motion detected; 0 for no motion, 1 for motion
• Z = manual switch; 0 for switch off, 1 for switch on
• F = state of the light; 0 for off, 1 for on