Lesson 4: Aligning on Lines On The Mat

Slides:



Advertisements
Similar presentations
Squaring or Aligning on a Line
Advertisements

Parallel Beam Synchronization
Droids Robotics Workshop
Intermediate Programming Lesson: Improving Robot Reliability in FLL
INTERMEDIATE PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
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
Parallel Beam Synchronization
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
BEGINNER PROGRAMMING Lesson
SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
By Sanjay and Arvind Seshan
Gyro Turns © 2015 EV3Lessons.com, Last edit 12/19/2015.
INTERMEDIATE PROGRAMMING LESSON
Passive attachments Seshan brothers.
Using the Gyro Sensor and Dealing with Drift
Parallel Beam Synchronization
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
Gyro Move Straight & Gyro Wall Follow
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
Lesson 3: Finding Lines On The Mat
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Gyro sensor positioning
Lesson 5: wall following
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
INTERMEDIATE 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 LESSONS
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
Using the Gyro Sensor and Dealing with Drift
Proportional Line Follower
Presentation transcript:

Lesson 4: Aligning on Lines On The Mat Seshan brothers

Why is Aligning on a line useful? To complete a mission reliably, your robot has to be close to the same position and angle every time. You have learnt how to find the line. This makes sure that your robot has travelled the right distance. How do you make sure it is at the correct angle? You can align on walls, missions and lines to straighten the robot up. In this lesson, we look at straightening up on lines. This is also referred to as aligning on a line or squaring up on a line. Straightening up is very important for a FIRST LEGO League robot because they don’t always travel straight. A slight error in your angle will result in a significant position error after a long move. Angle errors add up  if each turn is off by a few degrees, your robot may be many degrees off after a few turns. Align on a Line © 2018, FLL Tutorials, Last Edit 9/02/2018

How does it work? If you have two color sensors on the robot, you can use them to straighten out. First move both motors until one sensor finds the line. Stop the motor on that side (B). Then, move the just the other motor (C) until the second color sensor finds the line. The details of programming this are in the Advanced  Squaring on lines lessons on EV3Lessons.com. Figure 1 B Figure 2 C © 2018, FLL Tutorials, Last Edit 9/02/2018

Reliable Line Squaring Line squaring suffers from the same problem as line finding  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 the same  move close to the line before having the robot start searching for the line Looking for White? Moving for Inches Looking for White? © 2018, FLL Tutorials, Last Edit 9/02/2018

Common Problems and Solutions You might find that your robot is not quite straight at the end of an align The amount of error typically depends on how far from straight your robot was before you began to align Since the align process makes you ”straighter” you can repeat the align to reduce the error Each repetition will make you closer to straight You will need to experiment to determine how many times you need to align © 2018, FLL Tutorials, Last Edit 9/02/2018

WHAT’S NEXT To program this solution, you should read the following lessons from EV3Lessons.com MyBlocks with Inputs and Outputs Data Wires Parallel Beams Parallel Beam Synchronization Squaring on Lines © 2018, FLL Tutorials, Last Edit 9/02/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 9/02/2018