Week 2 - Section 1 - Robot turning

Site: ΕΛ/ΛΑΚ Moodle
Course: Advanced Coding - June 2017
Book: Week 2 - Section 1 - Robot turning
Printed by: Guest user
Date: Friday, 22 November 2024, 10:49 AM

Description

In the first week we will learn about the edison robot, its capabilities, sensors and communication with the software. We will also learn how to use the EdWare, the software for programming edison robots.

Chapter 3.1 - Right turn 90 degrees

Write the following program to turn the Edison robot right 90 degrees (90°). Use Activity sheet 3.1 as start and stop markers.



Set the ‘Seconds pass’ (replace?) to an amount of time in seconds to have the robot turn right exactly 90°.

Minimum amount of time is 0.01 seconds.

Maximum amount of time is 327.67 seconds.

Try different amounts of time until your robot turns right from the start point to the end point.

Chapter 3.2 - Left turn 180 degrees

Write the following program to turn the Edison robot left 180 degrees (180°). Use Activity sheet 3.1 as start and stop markers.

 



Set the ‘Seconds pass’ (replace ?) to an amount of time in seconds to have the robot turn left exactly 180°.

Minimum amount of time is 0.01 seconds.

Maximum amount of time is 327.67 seconds.

Try different amounts of time until your robot turns left from the start point to the end point.

Chapter 3.3 - Right turn, then left turn

Write the following program to turn the Edison robot right 90 degrees (90°) and then left 180 degrees (180°). Use Activity sheet 3.1 as start and stop markers.



Set the ‘Seconds pass’ (replace?) to an amount of time in seconds to have the robot turn right exactly 90° and then left 270° (90° + 180°) degrees.

Minimum amount of time is 0.01 seconds.

Maximum amount of time is 327.67 seconds.

Try different amounts of time until your robot turns 90° right from the start point to the end point and then left 270° to the bottom end point.

Chapter 3.4 - Mini maze

Use the robot programming knowledge that you’ve gained to dive your Edison robot through the mini maze on Activity sheet 3.2.

The robot must start from behind the start line and stop after the finish line and must not drive on the lines.

You will need to combine multiple programming icons to drive the robot forward and make the required turns.

 

Hint: Forward, spin left, forward, spin right, forward

Advanced competition

Who can get the fastest time through the maze?

There is no need to use a stopwatch. Just add up the time in all the event wait icons.

Remember: The robot must start from behind the start line and stop after the finish line and must not drive on the lines to win.