Users Manual
SCRATCH CODING KIT
Operator
Using the operator
Now, we are going to use the volume sensor with the operator and analog values to activate the motor. Look at
the flowchart below and say the program is going to keep repeating.
The program will keep checking if the value of the volume sensor is bigger/smaller than the original value.
Remember that the value of the analog sensor goes up when the sensor is covered and it goes down
when the sensor is uncovered.
You have to set a value that will stop the motor when you rotate the servocell on the
windmill’s volume sensor. This is called ‘threshold’.
is the value of the
volume sensor
bigger/smaller than
the original value?
Start the
program
Turn on the
motor
Turn off the
motor
is smaller is bigger
STOP