What an automated system is

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

What an automated system is

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

1. Which describes an automated system?
A It only works when a person presses a button for every step
B It senses, decides and acts without a person controlling each step
2. An automatic door opens when someone walks up to it. What does the sensor do?
A Opens the door by pushing it
B Senses that a person is near the door
3. Which is an example of manual control?
A A person turns a tap on and off by hand
B A door opens by itself when it senses a person
4. In an automated system, which part makes the decision?
A The microprocessor, using the sensor data
B The sensor, by moving the door
5. Which list shows the steps of an automated system in the correct order?
A Sense, decide, act
B Act, sense, decide

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1automated system AIf a person controls every step it is manual control, not an automated system. An automated system senses, decides and acts by itself.
2manual control BA system that senses its surroundings, decides what to do and acts, without a person controlling each step
3An automatic door senses a person, decides to open and acts by moving the door, with no one pressing a button CThe order is wrong. An automated system must sense first, then decide, then act.
4The decision step compares the sensor reading with a stored value to choose what to do DIF reading > limit THEN open
5A system is automated if a person presses a button for every step Esense -> decide -> act
6An automated system acts first and then senses its surroundings FA person has to carry out each step themselves, such as pushing a door open by hand

Definitions

automated system

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
IF doorSensor = TRUE ____ openDoor() ENDIF
2.
IF temperature _ 25 THEN fanOn() ENDIF
3.
__ lightLevel < 20 THEN lightOn() ENDIF
4.
IF personDetected = ____ THEN openDoor() ENDIF
5.
_____ systemOn = TRUE checkSensor() ENDWHILE

Spot the Error

Shade in the letter of the line that contains an error.

Question 1
A reading ← OPEN_DOOR()
B IF reading = 1 THEN
C OPEN_DOOR()
D ENDIF
Question 2
A reading ← READ_SENSOR()
B IF reading > 25
C TURN_ON_FAN()
D ENDIF
Question 3
A light ← PRESS_SWITCH()
B IF light < 30 THEN
C SWITCH_ON_LAMP()
D ENDIF
Question 4
A WHILE TRUE
B distance ← ASK_DRIVER()
C IF distance < 2 THEN
D STOP_CAR()
E ENDIF
F ENDWHILE
Question 5
A WHILE TRUE
B level ← READ_MOISTURE()
C IF level < 20 THEN
D READ_MOISTURE()
E ENDIF
F ENDWHILE

Answer Key

What an automated system is
Section A: Quick Questions
Q1
B — It senses, decides and acts without a person controlling each step
Q2
B — Senses that a person is near the door
Q3
A — A person turns a tap on and off by hand
Q4
A — The microprocessor, using the sensor data
Q5
A — Sense, decide, act
Section B: Match the Pairs
Q1
automated system → A system that senses its surroundings, decides what to do and acts, without a person controlling each step
Q2
manual control → A person has to carry out each step themselves, such as pushing a door open by hand
Q3
An automatic door senses a person, decides to open and acts by moving the door, with no one pressing a button → sense -> decide -> act
Q4
The decision step compares the sensor reading with a stored value to choose what to do → IF reading > limit THEN open
Q5
A system is automated if a person presses a button for every step → If a person controls every step it is manual control, not an automated system. An automated system senses, decides and acts by itself.
Q6
An automated system acts first and then senses its surroundings → The order is wrong. An automated system must sense first, then decide, then act.
Section C: Definitions
Q1
automated system — A system that senses its surroundings, decides what to do and acts, without a person controlling each step. For example, an automatic door.
Section D: Fill in the Blanks
Q1
IF doorSensor = TRUE THEN openDoor() ENDIF
Q2
IF temperature > 25 THEN fanOn() ENDIF
Q3
IF lightLevel < 20 THEN lightOn() ENDIF
Q4
IF personDetected = TRUE THEN openDoor() ENDIF
Q5
WHILE systemOn = TRUE checkSensor() ENDWHILE
Section E: Spot the Error
Q1
A — The first step of an automated system is to sense. The program should read the sensor with READ_SENSOR(), not call the action OPEN_DOOR() to get the reading.
Q2
B — The decision step needs THEN after the condition. It should be IF reading > 25 THEN so the system can decide whether to act.
Q3
A — An automated street lamp senses the light level itself. It should use READ_LIGHT_SENSOR(), not rely on a person pressing a switch.
Q4
B — No person should be needed for each step. The system should sense the distance with READ_SENSOR(), not ask the driver.
Q5
D — The act step should switch on the actuator. Reading the moisture sensor again does nothing to water the soil. It should be START_PUMP().