Drive a given path
From cod3v
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
Example Code
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.