Users Manual

SCRATCH CODING KIT
Coding the Ultrasonic Turtle
Coding the Ultrasonic Turtle
You have to turn on the LED sensor according to the distance of the ultrasonic sensor. There are three LED sensors
on the ultrasonic turtle. When the tortoise is closest to the wall, the LED sensor is off.
After that, as the tortoise gets further and further away from the wall, the LED will turn on one by one. First, try
coding the first LED sensor. If the distance between the tortoise and the wall is less than '15', the LED sensor
connected to the digital 10 port will be turned off. If it is larger than '15', write the script below to turn on the
LED sensor.

Summary of content (94 pages)