Loading simulator…
From the behavioral table, Street Light Output = 1 when Ambient Light Sensor = 0, and becomes 0 when the sensor is 1.
| Ambient Light Sensor | Street Light Output |
|---|---|
| 0 | 1 |
| 1 | 0 |
So the required function is NOT.
NOT gate is prohibited, so use the available NANDgate.
Let:
A = Ambient Light Sensor
Y = Street Light OutputThe required function is:
Y = A'Using the Boolean law:
A · A = ATherefore:
Y = (A · A)'Now check the NAND operation when both inputs are connected to A:
| A | NAND Input 1 | NAND Input 2 | Y = (A · A)' |
|---|---|---|---|
| 0 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 |
This produces the required NOT behavior.
Therefore:
Street Light Output = (Ambient Light Sensor · Ambient Light Sensor)'Connect Ambient Light Sensor to both inputs of the NAND gate to generate Street Light Output.