Sunteți pe pagina 1din 7

13. Configure the fourth movement block to reverse the robot for 2.3 cycles.

This should bring


the robot back to about the starting point.

14. Connect the robot to you PC via the USB cable and turn on the robot.
15. Load the program onto the robot.
16. Undock the robot from the PC
17. Place the robot on the test course.
18. Execute the program.

Remember to save your 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.

Third assignment
What is the program supposed to do?
The robot moves forward until it hits a ball then it waits.
If a certain level of noise is detected the robot grabs the ball.
The robot makes a 180 degree turn without hitting anything.
The robot drives forward until the black line, when reached it stops and
drops the ball.
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
11
The robot gets tasked to drive
forward without a fixed
destination or time.

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

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

While the robot is moving forward


the info from the waiting block
is in effect.

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.

If the sensor is pressed, the


waiting block has finished its
action and the program moves
on.

7. Configure the second movement block to stop immediately.

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

The robot stops and the


next waiting block waits
for the sound sensor to
pick up a loud noise.

9. Configure the waiting block to wait for the sound sensor to pick up a sound level higher
than 50 db.

The action required for the waiting block is


finished when the sound sensor detects a sound
louder than 50 db.

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

User manual
HVA OBA10
22-5-2017
13
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.

12. Drag a new block named movement behind the 3th block on the visual editor.

13. Configure the fourth block move to drive backwards. A movement of 0.5 rotation is enough to
turn freely.

14. Drag a new block named movement behind the 4th block on the visual editor.

The robot turns by rotating


the wheels in opposite
directions.

User manual
HVA OBA10
22-5-2017
14
15. Configure the fifth block movement to rotate one of the servomotors backwards. Specify the
length of time to 370 degrees.

A rotation of 370 degrees on the motor lets


the robot twist for 90 degrees.

16. Drag a new block named movement behind the 5th block on the visual editor.

Repeat step 15 for this block but in


the opposite direction. If you
execute the programmed actions
the robot will twist 180 degrees.

17. Drag a new block named movement behind the 6th block on the visual editor.

User manual
HVA OBA10
22-5-2017
15
18. Configure the 7th block to move forward without restrictions on both servomotors.

The robot moves forward from the starting point without limitation. This means it will go
forward till the battery runs out or the robot can`t move forward anymore. To let the robot
stop we will configure the light sensor in the next step. Eventually the robot needs to stop
when it reaches a black line we will draw on the floor.

19. Drag a new block named wait behind the 7th block on the visual editor.

20. Configure the 8th block wait to react on the generated light that is being bounced back to the
light sensor to 32%. It could be that this value needs to be adjusted as it could not be the optimal
value for the room we are in.

User manual
HVA OBA10
22-5-2017
16
21. Drag a new block movement behind the 8th block wait on the visual editor.

Stop the robot!

22. Configure the 9th block movement to let the robot stop.

23. Drag a new block movement behind the 9th block on the visual editor.

24. Configure the 10th block movement to open the grabber. To manage this the servomotor A
needs to be powered for 0.5 seconds on 30 % of total torque.

The grabber is powered by motor A. The servomotors for the wheels are not selected. The
grabber opens by forwards movement of the motor.

User manual
HVA OBA10
22-5-2017
17

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