A large building has a hallway with two doors at opposite ends. There is a light bulb in the hallway that is controlled by three switches: the first switch (S1) is attached to the first door, the second switch (S2) is attached to the second door and the last switch (S3) is in the hallway. The two switches (S1 and S2) are closed when their respective doors open and open when their respective doors close. The third switch (S3) is closed when there is movement in the hallway. Otherwise, it remains open. The light bulb in the hallway is switched on when either S1 or S2 is closed, or if there is movement in the
hallway. If both doors are open at the same time, the light bulb is switched off.
a) Model the circuit and draw a truth table to show its behavior.
b) Minimize the function for the circuit and implement using only NAND gates
Comments
Leave a comment