Users Manual

SCRATCH CODING KIT
How to Make a Robot
Alligator robot
Let’s make a scary alligator robot that opens and closes its mouth. We are going to use the servo motor to do this.
(We have to type in the angle for the servomotor when closing its mouth).
The robot’s mouth will be open in the beginning and close when the brightness sensor is covered. When the
button sensor is pressed, it will open its mouth. Using the volume sensor, we are going to control the angle at
which it opens its mouth. Using the sound sensor, we are going to produce effect sounds that can become a
game.
We have learned how to operate a DC motor using the analog value of the volume sensor. Now, we are going
to operate the servo motor using the brightness sensor. When the brightness sensor is covered, the analog value
increases and when it is not covered, the analog value decreases. Remember this and start coding.
Let’s start making the alligator robot.