
To access the full video please subscribe to FLLCasts.com
- #1624
- 02 Jul 2020
The tunnel can be partially open
Cardboard Boxes
It's possible for you to have cardboard boxes - something from the school, shoe boxes, candy boxes, etc.
The only important criteria is for the boxes to be higher than 20cm so that they are higher than the robots.
Example solutions
Example solutions to the task "Program the robot to move until the touch sensor is pressed.":
# Create your objects here. ev3 = EV3Brick() touch = TouchSensor(Port.S1) left_motor = Motor(Port.B) right_motor = Motor(Port.C) # Write your program here. ev3.speaker.beep() while not touch.pressed(): left_motor.run(500) right_motor.run(500) left_motor.brake() right_motor.brake()
Example solution to the task "Program the robot, after the touch sensor has been pressed, to turn by moving only one motor backwards.":
# Create your objects here. ev3 = EV3Brick() touch = TouchSensor(Port.S1) left_motor = Motor(Port.B) right_motor = Motor(Port.C) # Write your program here. ev3.speaker.beep() while not touch.pressed(): left_motor.run(500) right_motor.run(500) left_motor.brake() right_motor.run_time(-700, 1000)
Example solution to the task "Program the robot to go through the entire maze by checking when it should turn with the touch sensor. Keep putting comments in your code!":
# Create your objects here. ev3 = EV3Brick() touch = TouchSensor(Port.S1) left_motor = Motor(Port.B) right_motor = Motor(Port.C) # Write your program here. ev3.speaker.beep() # Move forward till you reach the first wall while not touch.pressed(): left_motor.run(500) right_motor.run(500) # Turn right left_motor.brake() right_motor.run_time(-700, 1000) # Move forward till you reach the second wall while not touch.pressed(): left_motor.run(500) right_motor.run(500) # Turn left right_motor.brake() left_motor.run_time(-700, 1000) # Move forward till you reach the third wall while not touch.pressed(): left_motor.run(500) right_motor.run(500) # Turn right left_motor.brake() right_motor.run_time(-700, 1000) # Move forward till you reach the last wall while not touch.pressed(): left_motor.run(500) right_motor.run(500)
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Python with LEGO Mindstorms EV3 - Level 2
In the second level of Python for EV3 robots, students learn in-depth the touch sensor. The sensor is used as an input device for manual control of machines, as well as a sensor for autonomous robots. In a pair of lessons, students build a control panel for the grabber and the movement of a crane. Programming wise, students learn how to fork code with "if-else" constructions, how to create conditional and forever loops with "while" and how to negate conditions with "not" operator. In the end of the lesson, robots can detect obstacles and avoid them, so that they traverse a simple labyrinth.
- 39
- 19:58
- 93

Lesson 7 - Passing through a tunnel
For students who will not take two levels in a row today is their last lesson.
- 10
- 3
- 8
- 3d_rotation 1