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

PROGRAMMING
SAMPLE PROGRAM FOR THE BUTLER ROBOT
The butler robot is able to move around and sense objects using its ultrasonic sensor. When the butler robot senses
that an object is close enough, it can close its arms and grab the object. Place an object, such as a paper towel roll,
on top of book in front of the butler robot. Make sure that ultrasonic sensor detects the object. Then test the
following program. This program is preloaded in the app in the Load Demo Code menu.
This program is placed in a loop so that the code will repeat over and
over again. This loop will repeat as long as the value from the
ultrasonic sensor is greater than or equal to 0.
Within the loop there is an if-else statement. First the
program checks whether the reading from ultrasonic
sensor is greater than or equal to 30. If it is, then
motors 1 and 2 are turned on, moving the butler
robot forward.
If the reading from the ultrasonic sensor is less than 30, then the
robot executes the “else” portion of the program.
First, motor 3 turns clockwise, opening the butler robot’s arms.
Then motor 3 turns counterclockwise, closing the
butler robot’s arms around the object.
Scan this QR code to view
online tech support videos
of the models in action.
56
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 |







