NEW
Font size
Worksheets7dig REVISION
Total questions: 25
Worksheet time: 13mins
What is an input?
information that goes into a system
Information that comes out of a system
Which is an input?
A button you can press
A light that turns on
Which is an input?
A servo
A Sensor
Which is NOT an input?
Motion Sensor
Light Sensor
Sound Sensor
A sound byte
Which is an OUTPUT?
A button
A Servo
Which is an OUTPUT?
A fan
A Microphone
What is a property of DIGITAL inputs/outputs?
1 or 0
Many different states
What is a property of ANALOGUE inputs/outputs?
1 or 0
Many different states
Which of the following is NOT digital?
light switch
big red button
Fan dial
Which of the following is NOT analogue?
A scale that weighs
A fan dial/rotation sensor
A servo
A button
What is a button?
digital.input
digital.output
analogue.input
analogue.output
What is a light?
digital.input
digital.output
analogue.input
analogue.output
What is a pressure sensor (a scale)?
digital.input
digital.output
analogue.input
analogue.output
What is a fan?
digital.input
digital.output
analogue.input
analogue.output
What is another way to say input?
Read
Write
What is another way to say OUTPUT?
Read
Write
Which is a digital.read?
motion sensor
rotation sensor
pressure sensor
Which is a digital.write?
Motion sensor
LED Light
Servo
Which is an analogue.read?
Rotation sensor (a dial)
A button
An LED Light
Which is an analogue.write?
LED Light
Button
Servo
If I press a button,
Turn a light off
If I press a button,
Turn a light on
If a scale weighs 1,
Turn a light off
If a scale weighs 1,
Turn a light on
What could the following code be doing?
IF analogue.read < 10
THEN digital.write=0
If something weighs less than 10,
turn on a light
If something weighs less than 10,
turn off a light
If something weighs less than 10,
move a servo
If I push a button 2 times,
Turn off a light
If i set a dial to 2,
turn a fan off
If i set a dial to 2,
turn a fan on
Which code would do the following?
IF i press a button
THEN turn on a light
ELSE light stays off
if digital.read = 0
THEN
digital.write = 1
ELSE
digital.write = 1
if digital.read = 1
THEN
digital.write = 0
ELSE
digital.write = 1
if digital.read = 1
THEN
digital.write = 1
ELSE
digital.write = 1
if digital.read = 1
THEN
digital.write = 1
ELSE
digital.write = 0
Which code would do the following?
IF a light is on
THEN turn on a fan
ELSE turn off a fan
if digital.output = 1
THEN
analogue.write = 5
ELSE
analogue.write = 0
if digital.input = 1
THEN
analogue.write = 5
ELSE
analogue.write = 0
if digital.output = 1
THEN
analogue.read = 5
ELSE
analogue.write = 0
if digital.output = 1
THEN
analogue.write = 5
ELSE
analogue.read = 0
