Worked solution from the Automated and emerging technologies Paper 1 Computer Systems booklet, Part 1 of 3.
Write two sensors:
Light sensor [1]
Motion sensor (an infra-red sensor is also accepted) [1]
Write the steps in order. Any eight of these points score:
The light sensor and the motion sensor send data to the microprocessor [1]
The data is converted from analogue to digital by an ADC [1]
The microprocessor compares the data with stored values [1]
If only one value, or neither, is in the range for dark and movement, no action is taken [1]
If both values match (it is dark and there is movement), the microprocessor sends a signal to switch the light on [1]
A 1-minute timer is started [1]
An actuator is used to switch the light on and off [1]
When the timer reaches 1 minute, the microprocessor sends a signal to switch the light off [1]
Also creditable: The whole process is continuous
Only eight of these points are needed to get full marks.
▶ Whole paper
Video solution of the whole paper · by Level Up with Aqeel Ahmed: CS Edition. Tap the picture to open it on YouTube.
Solutions follow the official Cambridge mark schemes; marks are shown in grey. Videos are from other YouTube channels. Paper codes read component / series / year: M/J = May/June, O/N = October/November. Past-paper questions © UCLES, reproduced for classroom practice.