ExamBank Scot · N5 Engineering Science question bank · All N5 Engineering Science questions
10 marks · Flowcharts and programs
A chair lift system at a ski resort is operated by a microcontroller. Chair sensor Light The system must perform the following sequence. • When the chair sensor is triggered warning lights flash 4 times over a 2 second period. • The barriers will then open. • The system will pause for 3 seconds to allow the skiers through. • The barriers will then close. • The sequence will repeat. Input and output connections to the microcontroller are shown in the table below. Input Connection Pin Output Connection 2 Barriers (1 = open) 1 Warning lights Chair sensor (1 = chair sensed) 0 Complete the flowchart opposite for the control sequence with reference to the Data Booklet and input/output connections. Include all pin numbers. start
Start No Pin 0 on? Yes Pin 1 on Wait 0.25 s Pin 1 off Wait 0.25s No Complete 4 times? Yes Pin 2 on Wait 3 s Pin 2 off Pin number must be correct where applicable Pin 0 on? – 1 mark for decision with y/n and loop Pin1 on/off – 1 mark for both boxes Wait – 1 mark for both - 1 mark both times totalling 0.5 s x 4 decision with y/n – 1 mark decision loop return point – 1 mark Pin2 on/off – 1 mark for both Wait 3s – 1 Continuous loop – 1 All marked symbols correct – 1 (additional boxes ignored) Credit given for a series of flashes done without fixed loop. (1 mark)