Difference between revisions of "Drive a given path"

From cod3v
(Marked this version for translation)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
=== Introduction ===
<languages/>
<translate>


The robot should drive the path given in advance. The path can be of any shape, but some simple paths are preferred, as the robot will eventually fail due to the tolerance. The paths given here are ''an obstacle'' and ''baseball field'', also encircling the obstacles.
=== Introduction === <!--T:1-->


=== Robot ===
<!--T:2-->
The robot drives the path given in advance. The path can be of any shape, but some simple paths are preferred, as the robot will eventually fail due to the tolerance. The paths given here are ''an obstacle'' and ''baseball field'', also encircling the obstacles.


Almost any robot will do. This example is done with Asimov 2/ Verne.
=== Robot === <!--T:3-->


=== Sensors ===
<!--T:4-->
Almost any robot will do. This example is done with Asimov 2/ Verne. Depending on the orientation of motors, and/ or gears, the steering direction might be the opposite.


=== Sensors === <!--T:5-->
<!--T:6-->
No sensors is used. Expect the servo motor rotation angle, or the timer.
No sensors is used. Expect the servo motor rotation angle, or the timer.


=== Example Videos ===
=== Example Videos === <!--T:7-->


=== Theory ===
<!--T:8-->
<youtube>aBit5ZnAvB4</youtube>


=== Theory === <!--T:9-->
<!--T:10-->
Encircling one obstacle is rather easy, and can be done using only one programming block. However, more speed and accuracy is gained by using more programming blocks.  
Encircling one obstacle is rather easy, and can be done using only one programming block. However, more speed and accuracy is gained by using more programming blocks.  


<!--T:11-->
Encircling the baseball field is more advanced, but still rather easy job to do.  
Encircling the baseball field is more advanced, but still rather easy job to do.  


<!--T:12-->
[[File:EncircleObstacles.png|thumb]]
[[File:EncircleObstacles.png|thumb]]


=== Example Code ===
=== Example Code === <!--T:13-->
 
<!--T:14-->
There exists a huge amount of different codes that do the thing. Here is only one version. Do your own. The code is shown below.
 
<!--T:15-->
[[File:AroundTheWorld.png|thumb|left|upright=3|Example code of encircling an obstacle.]]


=== Exercises ===
=== Exercises === <!--T:16-->


<!--T:17-->
* Try to go around the circle exactly in a given time, e.g. in 80 seconds.
* Clock the time and try to get the fastest possible time.
* Clock the time and try to get the fastest possible time.
* Measure the difference between the starting point and the ending point of the robot.
* Measure the difference between the starting point and the ending point of the robot.
Line 31: Line 51:




<!--T:18-->
Back to [[Meet_and_Code_2020_I:_Ev3-G|Meet and Code 2020 I: Ev3-G]]
<!--T:19-->
This course is supported by [https://meet-and-code.org/ Meet and Code]. The course is made in collaboration with [http://www.fllsuomi.org/ Robotiikka- ja tiedekasvatus ry].
This course is supported by [https://meet-and-code.org/ Meet and Code]. The course is made in collaboration with [http://www.fllsuomi.org/ Robotiikka- ja tiedekasvatus ry].
[[File:MeetAndcodeLogo.png|thumb]]
[[File:MeetAndcodeLogo.png|thumb]]
</translate>

Latest revision as of 07:15, 12 September 2020

Other languages:
English • ‎suomi

Introduction

The robot drives the path given in advance. The path can be of any shape, but some simple paths are preferred, as the robot will eventually fail due to the tolerance. The paths given here are an obstacle and baseball field, also encircling the obstacles.

Robot

Almost any robot will do. This example is done with Asimov 2/ Verne. Depending on the orientation of motors, and/ or gears, the steering direction might be the opposite.

Sensors

No sensors is used. Expect the servo motor rotation angle, or the timer.

Example Videos

Theory

Encircling one obstacle is rather easy, and can be done using only one programming block. However, more speed and accuracy is gained by using more programming blocks.

Encircling the baseball field is more advanced, but still rather easy job to do.

EncircleObstacles.png

Example Code

There exists a huge amount of different codes that do the thing. Here is only one version. Do your own. The code is shown below.

Example code of encircling an obstacle.

Exercises

  • Try to go around the circle exactly in a given time, e.g. in 80 seconds.
  • Clock the time and try to get the fastest possible time.
  • Measure the difference between the starting point and the ending point of the robot.
  • Make N (e.g. five) laps around the obstacle. Measure the (i) time or (ii) distance between starting and ending points.


Back to Meet and Code 2020 I: Ev3-G

This course is supported by Meet and Code. The course is made in collaboration with Robotiikka- ja tiedekasvatus ry.

MeetAndcodeLogo.png