Professional Documents
Culture Documents
Scratch BasicLineFollower
Scratch BasicLineFollower
PROGRAMMING
LESSON
EV3 CLASSROOM:
Basic Line Follower
By Sanjay and Arvind Seshan
LESSON OBJECTIVES
5
© EV3Lessons.com 2020 (Last edit: 12/21/2019)
1. If we are on black, keep going
straight
2. If we are on white, turn left to get
back to the line
6
© EV3Lessons.com 2020 (Last edit: 12/21/2019)
LINE FOLLOWING: ROBOT
STYLE
Why could the Human follow the middle?:
• They can see ahead.
• They can see the whole line and its surroundings
• They see both sides and which side they left
If on If on
black, black,
turn left. The robot has to
turn
If on choose which right.
white way to turn when If on
turn white
right. the color sensor turn left.
sees a different
color.
The answer
depends on what
side of the line
you are following!
© EV3Lessons.com 2020 (Last edit: 12/21/2019) 8
STARTING THE ROBOT ON THE
CORRECT SIDE
C
C
B
B
© EV3Lessons.com 2020 (Last edit: 12/21/2019) 10
LINE FOLLOWING CHALLENGE
SOLUTION
Repeat forever
Stop motors
Stop motors