Lesson 3: Finding Lines On The Mat

Slides:



Advertisements
Similar presentations
BEGINNER EV3 PROGRAMMING Lesson
Advertisements

By Droids Robotics Infrared Sensor Intermediate EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 5/26/
Intermediate Programming Lesson: Improving Robot Reliability in FLL
Calibrating Color Sensors
By Sanjay and Arvind Seshan
BEGINNER PROGRAMMING LESSON
Comparing EV3 & HITechnic COLOR SENSORS
INTERMEDIATE PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
Squaring or Aligning on a Line
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
BEGINNER PROGRAMMING LESSON
By Sanjay and Arvind Seshan
SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Beginner Programming Lesson
SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
Gyro Turns © 2015 EV3Lessons.com, Last edit 12/19/2015.
INTERMEDIATE PROGRAMMING LESSON
Using the Gyro Sensor and Dealing with Drift
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Gyro Move Straight & Gyro Wall Follow
Color sensor positioning & shielding
Lesson 4: Aligning on Lines On The Mat
BEGINNER PROGRAMMING LESSON
Lesson 1: Introduction to NAvigation
By Sanjay and Arvind Seshan
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Beginner Programming Lesson
Lesson 8: line following
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
Repeating Actions (Loops)
Beginner Programming Lesson
By Sanjay and Arvind Seshan
Line Followers: Basic to Proportional
BEGINNER PROGRAMMING LESSONS
Lesson 6: aligning on Walls & MODELS
BEGINNER PROGRAMMING LESSON
Line Followers: Basic to Proportional
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSONS
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
Using the Gyro Sensor and Dealing with Drift
PID Line Follower.
Proportional Line Follower
Presentation transcript:

Lesson 3: Finding Lines On The Mat Seshan brothers

First Steps © 2018, FLL Tutorials, Last Edit 8/20/2018 In the below path, the first step is moving until the line across the board. Making this simple first step reliable can be tricky! Using just distance is prone to error. If you set up your robot at a slight angle or too far forward/backward – your robot will not stop accurately on the line. Our goal is to use the light sensor to stop the robot on the white or black part of the line Move Until Line © 2018, FLL Tutorials, Last Edit 8/20/2018

First Solution We will try to stop at the white part. The issues with stopping on black are similar. Below are two programs that attempt to perform this step. The top uses reflected light and the bottom uses color sensing. Both begin by moving out of base (since base is white) and then turning on the motor until sensor reads white (or bright in the case of reflected light) Unfortunately, neither solution is reliable! Why? Move Until Line © 2018, FLL Tutorials, Last Edit 8/20/2018

Color SensING In color mode, the sensor shines a whitish light on the board and tries to match the reflect light to one of 7 different standard LEGO brick colors. Since the mat’s printing does not match LEGO brick colors the colors the sensor reports are often unpredictable. What looks green to you may look be closer to LEGO black than LEGO green. The color sensor also reads regions of the table at a time. If it sees a bit of yellow and a bit of blue – it may report the color as green. © 2018, FLL Tutorials, Last Edit 8/20/2018

Reflected Light SensING In reflected light mode, the sensor shines a red light on the board and reports the amount of light reflected back. First, you should try to calibrate your sensor if you are using reflected light mode. This will give you more predictable readings. Second, the mat looks very different to the robot under the red light than it does to us in normal room lighting. The picture on the right below shows what the Hydro Dynamics mat looks like under red light. Red becomes white, while green and blue become black. © 2018, FLL Tutorials, Last Edit 8/20/2018

Reliable Line Finding The main problem is that if you try to find a white region over a large section of the mat, the sensor may report white in some spot before the line The solution is to move close to the line before having the robot start searching for white This significantly reduces the likelihood that your robot will stop at the wrong spot Looking for White? Moving for Inches Looking for White? © 2018, FLL Tutorials, Last Edit 8/20/2018

WHAT’S NEXT To program this solution, you should read the following lessons from EV3Lessons.com Move Straight Introduction to Color Sensor Move Inches Moving with My Blocks Color Sensor Calibration © 2018, FLL Tutorials, Last Edit 8/20/2018

This tutorial was created by Sanjay Seshan and Arvind Seshan Credits This tutorial was created by Sanjay Seshan and Arvind Seshan More lessons at www.ev3lessons.com and www.flltutorials.com                           This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. © 2018, FLL Tutorials, Last Edit 8/20/2018