At the end of this lesson, the students are going to have a small competition. For this purpose, they will need a race track.

To access the full video please subscribe to FLLCasts.com
- #1561
- 11 Mar 2020
Place two objects on the ground (it can be lego builds or other handy items) around which the students will program the robots to move around in the shape of a number 8. Mark the starting line at the beginning of a straight line.
Example solution to the tasks in the section "Learn to drive":
# Create your objects here. ev3 = EV3Brick() steering_motor = Motor(Port.A) driving_motor = Motor(Port.D) # Write your program here. steering_motor.run_angle(360, 30) driving_motor.run_time(-360, 3000) steering_motor.run_angle(360, -60) driving_motor.run_time(-360, 3000)
Example solution to the task "Modify your program to perform the same sequence of actions, but using only the run_target command.":
# Create your objects here. ev3 = EV3Brick() steering_motor = Motor(Port.A) driving_motor = Motor(Port.D) # Write your program here. steering_motor.run_target(360, 30) driving_motor.run_target(-360, -360 * 3) steering_motor.run_target(360, -30) driving_motor.run_target(-360, -360 * 6)
Example solution to the task "Program the car to park perpendicular with moving only forward.":
# Create your objects here. ev3 = EV3Brick() steering_motor = Motor(Port.A) driving_motor = Motor(Port.D) # Write your program here. steering_motor.run_target(360, 30) driving_motor.run_target(-360, -850) steering_motor.run_target(360, 0)
Example solution to the task "Program the car to park perpendicular with moving only backward.":
# Create your objects here. ev3 = EV3Brick() steering_motor = Motor(Port.A) driving_motor = Motor(Port.D) # Write your program here. steering_motor.run_target(360, 30) driving_motor.run_target(-360, 850) steering_motor.run_target(360, 0)
Example solution to the tasks in the secton "Practice before the big race":
Примерно решение на задачите в секция "Тренировка преди състезанието":
# Create your objects here. ev3 = EV3Brick() steering_motor = Motor(Port.A) driving_motor = Motor(Port.D) # Write your program here. driving_motor.run_time(-1000, 2000) steering_motor.run_target(1000, 35) driving_motor.run_time(-1000, 3500) steering_motor.run_target(1000, 0) driving_motor.run_time(-1000, 2000) steering_motor.run_target(1000, -35) driving_motor.run_time(-1000, 3500) steering_motor.run_target(1000, 0)
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Python with LEGO Mindstorms EV3 - Level 1
The course introduces students to the programming language Python. We use LEGO Mindstorms EV3 Robots. Python is a popular programming language. It could be used for introducing students to programming, for academic studies, for developing machine learning algorithms and as a general-purpose language.
During the course, students learn how to read and how to develop Python programs. They use an Integrated Development Environment called Visual Studio Code. Robots are programmed to perform interesting and funny tasks like "bringing you water". The level ends with competition on a playing field with boxes.
- 74
- 28:18
- 114

Lesson 6 - Steering an Unmanned Vehicle
Intro
Have you heard of self-driving cars? Today we will try to create such a car. For a steering wheel, we will attach a medium motor, that will spin to turn the robot and we will program it to drive.
Before you release it onto the streets, like any good driver, it must earn its driver's license. At the end of the lesson, you will have a competition with the rest of the self-driving cars.
- 3
- 7
- 5
- 3d_rotation 1