Users Manual

CLASS 2
152
exercise
Scorpion robot
Look at the flowchart below.
When the program is started, the servo motor should lift up the tongs and turn on the digital output (LED sensor)
as the brightness sensor gets covered.
Do you remember what we learned regarding the brightness sensor?
First, as the activation block, we will be using the ‘if..or else..’ block after the start of the script. The condition
would be whether the brightness sensor is covered/uncovered. If it is satisfied (brightness sensor is covered), the
servo motor lifts up the tongs and the LED sensor will turn on by turning on the digital output. If it is not satisfied
(brightness sensor is uncovered), the servo motor will put the tongs down and turn off the LED sensor by turning
off the digital output.
It’s a simple script; you will be able to make it easily!
is the
brightness
sensor
covered?
Program
start
Digital 10
output on
Digital 10
output off
Lift up the tongs
with the servo
motor
Put down the
tongs with the
servo motor
Yes No
No
Yes