2210/12/M/J/21 question 5: worked solution (May/June 2021, paper 12)
Show as plain textHide plain text
Cambridge O Level Computer Science 2210 · 6.1 Automated systems Worked solution from the Automated and emerging technologies Paper 1 Computer Systems booklet, Part 1 of 3. Q3 2210/12/M/J/21 original Q5 Structured · 10 marks Worked solution (a) Write two sensors: Light sensor [1] Motion sensor (an infra-red sensor is also accepted) [1] (b) 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. KEY IDEA Both conditions (dark AND movement) must match before the light switches on, then a timer switches it off after 1 minute. TOTAL 10 marks Official mark scheme VIDEO ▶ Whole paper Video solution of the whole paper · by Level Up with Aqeel Ahmed: CS Edition. Tap the picture to open it on YouTube.