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

PROGRAMMING
Beetle
Ball-Shooting Robot
SAMPLE PROGRAM FOR THE BALLSHOOTING ROBOT
Before each run, make sure the robot is set up as described below. Load
the polystyrene foam balls into the ball-shooting robot. Then place an
object such as a cereal box a few feet in front of the robot. Run this
program and the ball-shooting robot will move forward toward the
object. Once the ultrasonic sensor has detected that the object is within
range, the robot will shoot the balls at it. This program is preloaded in the
app in the Load Demo Code menu.
This portion of code is placed
within a loop so that the robot
keeps checking whether the
value from the ultrasonic sensor
(distance) is less than 30. When
that value is less than 30, the
loop ends.
1
Remove the large yellow gear.
2
Adjust the angle of the 7-hole
rounded rod so that it is straight
up and down as shown here.
3
Replace the large yellow gear.
4
Load the balls.
5
Run the program.
Load the
balls.
This block of code turns motors 1 and 2 on, which move the
ball-shooting robot forward.
These two blocks of code turn the upper half of the ball-
shooting robot one way and then the other. This makes sure
that the robot is always scanning its field of view.
Once the ultrasonic sensor has detected that
the object is within range, motors 1 and 2 are
turned off. Then motor 4 is turned on, which
shoots the balls.
Scan this QR code to view
online tech support videos
of the models in action.
1
3
2
4
Set to 1–3 times.
Set to 1–3 times.
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 |