Sunteți pe pagina 1din 6

First Assignment

What is the program supposed to do?


The robot moves ahead for two cycles.

The robot says Hello.

Finally, the robot reverses back to the starting position.


Step by step instructions
1. Make a new program with a unique name.

2. Drag one block of movement to the empty field start in the visual editor.

The robot moves forward


during two cycles

3. Configure the movement block so it has two cycles as timespan. Make sure servo motor B
and C are selected. Both wheels are driven by these servo motors.

4. Drag a sound block behind the movement block in the editor.

5. Configure the sound block to produce the sound necessary. A variety of sounds and signals
are available, for example try hello. Adjust the volume of the sound if necessary.
Want the sound to be louder?

User manual
HVA OBA10
22-5-2017
5
6. Drag a movement block behind the sound block in the editor.
The moves backwards
for two cycles

7. Configure the second movement block.

8. Connect the robot to you PC via the USB cable and turn on the robot.

At the end of the class a demo is expected. Be sure to save all the programs you
make!!

User manual
HVA OBA10
22-5-2017
6
9. Load the program onto the robot.

10. Undock the robot from the PC.


11. Place the robot onto the test course.
12. Execute the program.

In case the robot does not behave as planned, edit the program and load it onto the robot again.
The same name can be used for the new version of the robot.

Second assignment
What is the program supposed to do?
The robot drives forward until it hits the little ball.

After one second the robot grabs the ball.

After grabbing the ball the robot reverses back to the starting position.

Step by step instructions


1. Make a new program with a unique name.

2. Drag one block of movement to the empty field start in the visual editor.

User manual
HVA OBA10
22-5-2017
7
De robot must keep moving
forward until it hits the ball.
The distance is unknown.

3. Configure the movement block so it has an unlimited timespan.

4. Drag a waiting block behind the movement in the editor.

The robot will wait until the touch


sensor is pushed in. In other
words, the robot must touch the
ball first

5. Configure the waiting block to wait until the touch sensor I pushed in.

6. Drag a movement block behind the waiting block in the editor.

User manual
HVA OBA10
22-5-2017
8
If the robot hits the ball the
sensor will send a signal and
the next step of the program
will be executed.

7. Configure the second movement block to stop immediately.

8. Drag a waiting block behind the movement block in the editor.

The robot will wait


for 1 second

9. Configure the waiting block to wait for a timespan of one second.

User manual
HVA OBA10
22-5-2017
9
10. Drag a movement block behind the waiting block in the editor.

The servo motor connected to output port A should


move backwards for half a second to close the arms.

11. Configure the third movement block to close the snatching arms. The third Servo motor
powers the arm. Closing the arm requires the motor to rotate backwards for half a second.
For the arm to close the power of the movement should be at max. level.

Only the servo motor of the arm should be moved.


12. Drag a movement block behind the third movement block in the editor.

User manual
HVA OBA10
22-5-2017
10

S-ar putea să vă placă și