Day 1 - Section 2 - Robot driving

Site: ΕΛ/ΛΑΚ Moodle
Course: Robotics - 3D Printing - Internet of Things
Book: Day 1 - Section 2 - Robot driving
Printed by: Guest user
Date: Friday, 22 November 2024, 4:34 AM

Description

After the completion of this section the students will be able to:

  • drive the robot forward
  • drive the robot backward
  • drive the robot first forward and then backward
  • adjust the speed of the robot in order to make precise moves

Chapter 2.1 - Driving the robot forward

Write the following program to drive the Edison robot forward. Use the activity sheet as start and stop markers


Set the ‘Seconds pass’ (replace?) to an amount of time in seconds to have the robot start from behind the start line and stop before the finish line.

Minimum amount of time is 0.01 seconds.

Maximum amount of time is 327.67 seconds.

Try different amounts of time until your robot drives forward and stops just before the finish line.

Chapter 2.2 - Driving the robot backward

Write the following program to drive the Edison robot backwards. Use the activity sheet as start and stop markers.


Set the ‘Seconds pass’ (replace?) to an amount of time in seconds to have the robot start from behind the start line and stop before the finish line.

Minimum amount of time is 0.01 seconds.

Maximum amount of time is 327.67 seconds.

Try different amounts of time until your robot drives backwards and stops just before the finish line.

Chapter 2.3 - Forward and then backward

Write the following program to drive the Edison robot forward and then backward. Use the activity sheet as start and stop markers.

 


 

Set the ‘Seconds pass’ (replace?) to an amount of time in seconds to have the robot start from behind the start line and stop before the finish line, then drive backwards and stop before the start line.

Minimum amount of time is 0.01 seconds.

Maximum amount of time is 327.67 seconds.

Try different amounts of time until your robot drives forwards and backwards and stops just before the start line.

Chapter 2.4 - Speed play

Write the following program to drive the Edison robot forward and then backward. Use the activity sheet as start and stop markers.

This time change the time and the speed!

Feel free to add new icons to your program such as play beep, flash LED or even play music. 

1.  Start from behind the start line and stop before the finish line,
then drive backwards and stop
before the start line as fast as possible!

2. Start from behind the start line and stop before the finish line,
then drive backwards and stop
before the start line as slow as possible!