ExamBank Scot · N5 Engineering Science question bank · All N5 Engineering Science questions
11 marks · Flowcharts and programs
Complete the flowchart shown opposite for this simplified sequence, with reference to the data booklet and input/output connections. Include all pin numbers and delay units in your flowchart. Start No pin 0 on? Yes The buzzer is switched on by a transistor connected to pin 6 of the microcontroller. Complete the diagram below by adding the symbol for a buzzer and the connection to the microcontroller. +Vs 0 7 1 6 2 5 3 4 0V A set of hair straighteners is shown. A microcontroller is used to operate the hair straighteners using the following simplified sequence. • When a push switch is operated the heating plates turn on. • A buzzer will then sound for 0·8 seconds and then turn off. • An LED will then repeatedly turn on for 0·3 seconds and turn off for 0·3 seconds until the correct temperature is reached. • When the push switch is pressed again the heating plates turn off. • The sequence will then repeat. Input and output connections to the microcontroller are shown in the table below. Input connection Pin Output connection 7 Heating plates 6 Buzzer 5 LED Temperature sensor (1 = correct temperature) 1 Push switch 0
Pin numbers must be correct where applicable. Pin 7 on and off positions – 1 mark. Pin 6 on and off positions – 1 mark. All three delays positions (0∙8 s and 2 x 0∙3 s) with unit – 1 mark. Pin 5 on and off in positions – 1 mark. Pin 1 on ? with Y/N – 1 mark. Loop and arrow (Pin 1 on ?) back to before Pin 5 on – 1 mark. Pin 0 on ? with Y/N loop and arrow – 1 mark. Continuous loop to start with arrow – 1 mark. All marked symbols correct – 1 mark. Ignore any additional steps. 1 mark pin 6 connection. 1 mark for buzzer symbol and connection.