You are on page 1of 2

25. Connect the robot to the computer with the USB cable and turn on the robot.

26. Load the program on the robot.

27. Disconnect the robot from the computer.

28. Put the robot on the test area.

29. Execute the loaded program on the robot.

If the behavior of the robot is not as expected, modify the program on the computer and rewrite
the existing program on the robot. If the issue persists contact one of the teachers.

Fourth assignment.

Summary outcome of the program

The robot move`s only forward if there is a ball on less than 50 centimeter distance in front
of the robot
Only then the robot moves forward till it touches the ball and then waits.
If the robot detects sounds that reaches the threshold level of 90 decibel, the robot grabs the
ball.
The robot turns 180 degrees.
The robot drives forward till it detects the black line drawn on the ground.

User manual
HVA OBA10
22-5-2017
18
Instructions

For this assignment there are no step for step instructions. This program looks allot like assignment
three but it begins different. Instead of starting with the block movement it start with a wait block.
The waiting cycle is monitored by the ultrasonic sensor. If the ultrasonic sensor detects an object on
50 centimeters of distance the waiting cycle is broken and executes the rest of the code as described
in the 3th assignment.

If there is no object less than 50 centimeter away


from the sensor the robot waits.

If a ball is put in front of the robot, the robot moves forward till the touch sensor detects it touched
the ball. This code is described in the 3th assignment.

Connect the robot to the computer with the USB cable and turn on the robot.
Load the program on the robot.
Disconnect the robot from the computer.
Put the robot on the test area.
Execute the loaded program on the robot.

If the behavior of the robot is not as expected, modify the program on the computer and rewrite
the existing program on the robot. If the issue persists contact one of the teachers.

Free assignment

Use the knowledge you learned from the previous assignments to write your own program. In the
next chapter we will discuss two new techniques you can apply to your program. These techniques
are called looping and parallel activity`s.

Use your own creativity to let the robot do what you want. The sky is the limit.

User manual
HVA OBA10
22-5-2017
19