Try it on paper first. A hint, the key idea and the worked solution are here when you need them.
A street lamp is controlled by a light sensor L through a NOT gate. The sensor gives 1 when it is light and 0 when it is dark. The lamp X is on when the output of the NOT gate is 1.
The sensor reads, once an hour for seven hours, 1, 1, 1, 0, 0, 0, 1.
A logic gate takes inputs of 0 or 1 and gives one output of 0 or 1. NOT gives the opposite of its one input: X = NOT A. NOT is the only gate with one input; every other gate in the syllabus has two. A truth table lists every input combination with its output.
Have you tried it?
Work it out on paper first. It is fine to get stuck or make a mistake: that is how we learn. When you are ready, go through the solution one step at a time, and check each step against your own.
Plan. The lamp follows X = NOT L. It is on exactly when the sensor reads 0.
Step 1. The expression. X = NOT L.
Step 2. Count the hours. The readings are 1, 1, 1, 0, 0, 0, 1. Three of them are 0, so the lamp is on for hours.
Step 3. The sensor reads 1. NOT 1 = 0, so the lamp is off.
Check. It is light for the first three hours and the last hour, and the lamp is off then. That makes sense for a street lamp.
Answer: (a) X = NOT L. (b) hours. (c) .
Log in to join the discussion.
Loading…