Thames & Kosmos Robotics Workshop handleiding
Handleiding
Je bekijkt pagina 28 van 68

PROGRAMMING
Scan this QR code to view
online tech support videos
of the models in action.
SAMPLE PROGRAM FOR THE CLAW-ARM ROBOT
When this program is run, the claw-arm robot moves straight toward an object, such as a ball, until the
touch sensor is pressed. When the robot is close enough to the object, press the touch sensor. The robot will
stop and then raise and open its claw around the object. This program is preloaded in the app in the Load
Demo Code menu.
This program contains two loops. The first
loop repeats until the touch sensor is
pressed. Before it is pressed, motors 1 and 2
will turn, moving the robot forward.
When the touch sensor is pressed, this block of code
turns motors 1 and 2 off, and turns motor 4 on, which
raises the claw.
This block of code then repeats until the
touch sensor is released. Motor 3 opens the
claw of the robot.
Finally, motors 3 and 4 are turned off.
26
Bekijk gratis de handleiding van Thames & Kosmos Robotics Workshop, stel vragen en lees de antwoorden op veelvoorkomende problemen, of gebruik onze assistent om sneller informatie in de handleiding te vinden of uitleg te krijgen over specifieke functies.
Productinformatie
Merk | Thames & Kosmos |
Model | Robotics Workshop |
Categorie | Niet gecategoriseerd |
Taal | Nederlands |
Grootte | 55434 MB |