Alternative Squaring on a Line

Slides:



Advertisements
Similar presentations
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: Turning.
Advertisements

Squaring or Aligning on a Line
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
By Lego Works NXT Light Sensors on the EV3 ADVANCED EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 1/29/
BEGINNER EV3 PROGRAMMING Lesson
Parallel Beams INTERMEDIATE EV3 PROGRAMMING LESSON By Droids Robotics
Parallel Beam Synchronization
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: Display Block.
By Droids Robotics Infrared Sensor Intermediate EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 5/26/
Menu System ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Turn Degrees My Block.
By Droids Robotics Code contributed by The Construction Mavericks
Using the Gyro Sensor and Dealing with Drift
BEGINNER PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Debugging Techniques.
By Mesa Robles Robotworks and Droids Robotics
Intermediate Programming Lesson: Improving Robot Reliability in FLL
BEGINNER EV3 PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Color Line Follower My Blocks with Inputs: Move Until Black © 2014, Droids Robotics, v. 2.0, Last edit.
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics My Blocks Overview Step-by-Step Visual Guide to Creating a My Block with Inputs with Outputs.
ADVANCED EV3 PROGRAMMING LESSON
Gyro Turns ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: Switches.
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)
Calibrating Color Sensors
BEGINNER EV3 PROGRAMMING Lesson
By Droids Robotics Line Followers: Basic to Proportional ADVANCED EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 4/5/
 By Droids Robotics Code Contributed by FLL 1920 Line Following with Two Color Sensors and Proportional Control ADVANCED EV3 PROGRAMMING LESSON © 2015.
By Droids Robotics INTERMEDIATE PROGRAMMIN G LESSON MOVE DISTANCE MY BLOCK (MOVE_CM)
BEGINNER EV3 PROGRAMMING Lesson
By Droids Robotics INTERMEDIATE EV3 PROGRAMMING LESSON SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW.
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Using Sensor Data and Port View.
By Droids Robotics INTERMEDIATE PROGRAMMING LESSON BRICK BUTTONS AS SENSORS.
ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics PROPORTIONAL ULTRASONIC WALL FOLLOWER © 2015, EV3Lessons.com, Last edit 11/17/2015.
By Droids Robotics INTERMEDIATE PROGRAMMIN G LESSON COLOR LINE FOLLOWER MY BLOCK WITH INPUTS: MOVE FOR DISTANCE.
ADVANCED EV3 PROGRAMMING LESSON By Seshan Brothers Random Block.
ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics © 2015, EV3Lessons.com (last edit 4/9/2015) Stall Detection with code from Hoosier Girlz.
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
BEGINNER EV3 PROGRAMMING Lesson
Squaring or Aligning on a Line
Ramping Up Speed with Mesa Robot Works FLL #52.
BEGINNER PROGRAMMING LESSON
By Sanjay and Arvind Seshan
SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW
BEGINNER EV3 PROGRAMMING Lesson
SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
Beginner Programming Lesson
Lesson 8: line following
Lesson 3: Finding Lines On The Mat
INTERMEDIATE PROGRAMMING LESSON
Repeating Actions (Loops)
Line Followers: Basic to Proportional
BEGINNER PROGRAMMING LESSONS
Line Followers: Basic to Proportional
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSONS
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSON
Presentation transcript:

Alternative Squaring on a Line ADVANCED EV3 PROGRAMMING LESSON Alternative Squaring on a Line By The Gnome it Alls ©2015 EV3Lessons.com, Last edit 1/29/2015

Notes This lesson is a little bit more complicated than others on ev3lessons.com. We will try to simplify over time and add additional companion lessons to help understand the code. We are releasing the code as is because we felt it was useful for teams to see alternative methods for aligning and an example of how a team took a lesson and improved the technique presented. RLI means Reflected Light Intensity (Color Sensor Light mode) You will need two light sensors fairly spaced apart ©2015 EV3Lessons.com, Last edit 1/29/2015

Goal: Iterative Align Program Each iteration is designed to be more precise than the last.  It does this by narrowing the range of reflected light intensity (RLI) it is looking for and decreasing the speed.  For example, the first time it looks for RLI 20 going forward and backs up .5 rotations.  It backs up .5 rotations in case the angle is too acute and it overshoots the line the first time.  The second time it looks for RLI 20 going forwards and greater than or equal to RLI 44 going backwards.  It repeats this loop five times, subtracting six from the RLI going backwards each time the loop runs.  It also decreases the speed after each loop.  The first time it divides by two, the second time it divides by three, and so on.  This all repeats until it is going a very small speed and goes forward looking for RLI 20 and comes backward for RLI 20.  It only runs the loop five times.  Positives: This program works for blue, black, and green lines.  This program works at a very acute angle to the line. It always works and you can easily change the sensitivity of the RLI. Negatives: A negative is that it is complicated to program and hard to understand.  ©2015 EV3Lessons.com, Last edit 1/29/2015

Video of Robot Aligning This video shows the robot align to the black line. Even when the robot comes in at a steep angle, it is still able to align well. ©2015 EV3Lessons.com, Last edit 1/29/2015

Step 1: Create the Dark My Block ©2015 EV3Lessons.com, Last edit 1/29/2015

Step 2: Create the Light My Block ©2015 EV3Lessons.com, Last edit 1/29/2015

Step 3: Create Code (Page 1) Continued on the next slide. Split in half for space reasons ©2015 EV3Lessons.com, Last edit 1/29/2015

Step 3: Create Code (Page 2) ©2015 EV3Lessons.com, Last edit 1/29/2015

Credits This tutorial was created by Sanjay Seshan and Arvind Seshan from Droids Robotics. The EV3 Code, video and explanations were provided by FLL Team, The Gnome it Alls from Wisconsin More lessons at www.ev3lessons.com                           This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. ©2015 EV3Lessons.com, Last edit 1/29/2015