Line Followers: Basic to Proportional

Similar documents
How To Turn On A Robot On A Computer On A Black Box On A Pc Or Macbook

North Texas FLL Coaches' Clinics. Beginning Programming October Patrick R. Michaud republicofpi.org

understanding sensors

EV3 Programming. Overview for FLL Coaches. A very big high five to Tony Ayad

Introduction to programming moway

Ampere's Law. Introduction. times the current enclosed in that loop: Ampere's Law states that the line integral of B and dl over a closed path is 0

How to Build a Simple Pac-Man Game

Advanced Programming with LEGO NXT MindStorms

MSc in Autonomous Robotics Engineering University of York

Electronic Brake Controller Hayes Brake Controller Company ENERGIZE III P/N # 81741B or ENERGIZE XPC P/N #81745 OPERATION MANUAL

Line Tracking Basic Lesson

Configuration Software User Instruction

NJ ASK PREP. Investigation: Mathematics. Paper Airplanes & Measurement. Grade 3 Benchmark 3 Geometry & Measurement

NFLS-x Series Flexible LED Flexible Light Strip

Lego Robot Tutorials Touch Sensors

FLL Advanced Programming & Best Practices Workshop

How does my eye compare to the telescope?

Welcome to SMART Notebook TM 11 collaborative learning software

How To Program An Nxt Mindstorms On A Computer Or Tablet Computer

Magnetic Fields and Their Effects

LEGO MINDSTORMS EV3 Teacher s Guide. Introduction to Programming

Pre-Algebra - Integers

HDS Gen2 RTM 4.0 software update

Can Traffic Accidents be eliminated by Robots?

C.I. La chaîne d information LES CAPTEURS. Page 1 sur 5

2/26/2008. Sensors For Robotics. What is sensing? Why do robots need sensors? What is the angle of my arm? internal information

Arduino Lesson 14. Servo Motors

TETRIX Add-On Extensions. Encoder Programming Guide (ROBOTC )

Building a Better Robot

Procedure: Geometrical Optics. Theory Refer to your Lab Manual, pages Equipment Needed

Cornerstone Electronics Technology and Robotics I Week 15 Voltage Comparators Tutorial

Blended Instructional Design

TEACHER S GUIDE. How can Ozobot help to teach students in your classroom? Thank you for inviting Ozobot into your classroom!

How To Use First Robot With Labview

Conditionals with Cards adapted from Code Studio, Course 2

TEACHER NOTES MATH NSPIRED

Questions: Does it always take the same amount of force to lift a load? Where should you press to lift a load with the least amount of force?

Servo Info and Centering

Robotics and Automation Blueprint

A Beginners Guide to Track Laying.

LESSON PLAN: Creating Animations from Paper

LESSON 7: IMPORTING AND VECTORIZING A BITMAP IMAGE

Academic Support Services Supplemental Learning Materials - Math

Introduction. Thank you for your purchasing this car safety series On-board. HD Digital Video Recorder. This product is specially developed and

Design with Themes - Part 2: Advanced Custom Themes

TwinCAT NC Configuration

Barycenter of Solar System Earth-Moon barycenter? Moon orbits what?

Intro to 3D Animation Using Blender

CATIA Electrical Harness Design TABLE OF CONTENTS

Electrical Resonance

Blender Notes. Introduction to Digital Modelling and Animation in Design Blender Tutorial - week 9 The Game Engine

Servo Motors (SensorDAQ only) Evaluation copy. Vernier Digital Control Unit (DCU) LabQuest or LabPro power supply

Building A Computer: A Beginners Guide

Objective: To distinguish between degree and radian measure, and to solve problems using both.

Hi! Let s get started.

Table of Contents. Use. Troubleshooting. Setup. Welcome. 11 How to arm/disarm system/camera(s) 19 Sync Module setup issues. 3 Installing the Blink app

Scratch Game Design (Grade 3-5, Beginners)

T1 QUICK START GUIDE

CONTENTS. What is ROBOTC? Section I: The Basics

Optimizing Sortation Throughput in High Volume Distribution Centers

Autonomous Advertising Mobile Robot for Exhibitions, Developed at BMF

Deflectable & Steerable Catheter Handbook

Inequalities - Absolute Value Inequalities

High-speed Photography with a Still Digital Camera

Measurement Tools in Inventor

Micro Cam Software. User Manual V1.3

INFRARED REMOTE CONTROL HELICOPTER

Unit 1: INTRODUCTION TO ADVANCED ROBOTIC DESIGN & ENGINEERING

Per fection star ts here ṬM. Sewing. My Passion. per formance 5.2

Name Partners Date. Energy Diagrams I

Robotics. Lecture 3: Sensors. See course website for up to date information.

Mirror Mount Video Monitor/Recorder with Front and Rear View Night Cameras PLCMDVR5

The complete beginners guide to Adobe Illustrator. Get started

4) Read and study the steps and illustrations first to get an overall picture of the project. Then come back and commence practice.

JCUT CNC Router 3030A/6090/8090/1212/60150/1218/1224/1325/1530/A/B

The Basics of Robot Mazes Teacher Notes

How to connect your Victron to a computer with VE Bus Quick Configure

F B = ilbsin(f), L x B because we take current i to be a positive quantity. The force FB. L and. B as shown in the Figure below.

Start Here. BrightLink Interaction. 1 Connect your computer and turn on the projector

SE05: Getting Started with Cognex DataMan Bar Code Readers - Hands On Lab Werner Solution Expo April 8 & 9

The NXT Generation. A complete learning solution

Exploring Magnetism. DataQuest

Class Registration 101

Synthetic Sensing: Proximity / Distance Sensors

Rapid Hull Modeling in Rhinoceros

Binocular Vision and The Perception of Depth

Introduction to Measurement Tools

A Beginner's Guide to Simple Photography Concepts: ISO, Aperture, Shutter Speed Depth of Field (DOF) and Exposure Compensation

Force on Moving Charges in a Magnetic Field

Using Video and the Polycom VVX Camera

7 Repetition: A Counted Loop

MATH 110: College Algebra

Speed Based on Volume Values & Assignment (Part 1)

Table of Contents. 10 Drawing Portraits: Fundamentals. Introduction and how this book is organized 13

Table of Contents Getting Started... 3 The Motors... 4 The Control Board... 5 Setting up the Computer with Mach Starting up the Equipment...

14 Day Speed Training Challenge! Instructions. by AthleticQuickness.com

Tutorial for Programming the LEGO MINDSTORMS NXT

VIDEO SCRIPT: Data Management

Transcription:

ADVANCED EV3 PROGRAMMING LESSON Line Followers: Basic to Proportional By Sanjay and Arvind Seshan

Lesson Objectives Evaluate and compare different line followers Learn to use the concept of proportional to create a proportional line follower Prerequisites: Basic Line Follower, Color Line Follower, Color Sensor Calibration, Proportional Control, Math Blocks, Data Wires 2015 EV3Lessons.com, Last edit 4/5/2015 2

Which Program Works Best for Which Situation? Simple Line Follower Most basic line follower Wiggles a lot due to sharp turns Good for rookie teams à need to know loops and switches Smooth Line Follower Almost the same as simple Turns are less sharp Has trouble on sharp curves Good for rookie teams à need to know loops and switches 3Stage Follower Best for straight lines Droids do not recommend this. Just learn the proportional line follower. Need to know nested switches Proportional Follower Uses the P in PID Makes proportional turns Works well on both straight and curved lines Good for intermediate to advanced teams à need to know math blocks and data wires Watch the videos on the next 2 slides to see all four. 2015 EV3Lessons.com, Last edit 4/5/2015 3

Curved Line: Watch Videos Simple Line Follower Smooth Line Follower 3Stage Follower Proportional Follower 2015 EV3Lessons.com, Last edit 4/5/2015 4

Straight Line: Watch Videos Simple Line Follower Smooth Line Follower 3Stage Follower Proportional Follower 2015 EV3Lessons.com, Last edit 4/5/2015 5

3 Line Follower Challenges Challenge 1: Can you write a simple line follower? Hint: Review Beginner: Basic Line Follower lesson Challenge 2: Can you write a smoother line follower? Hint: Change how sharp the turns are in a simple line follower. Challenge 3: Can you write a threestage line follower where the robot moves different 3 different ways (left, right or straight) based on the reading from the color sensor? 2015 EV3Lessons.com, Last edit 4/5/2015 6

A Note About Our Solutions CALIBRATE: The programs use the EV3 Color Sensor in Light Sensor mode You will have to calibrate your sensors. Please refer to Intermediate: Color Sensor Calibration Lesson PORTS: The Color Sensor is connected to Port 3. Please change this for your robot. WHICH SIDE OF THE LINE: Please take note of which side of the line the code is written for 2015 EV3Lessons.com, Last edit 4/5/2015 7

Solution 1: Simple Line Follower 2015 EV3Lessons.com, Last edit 4/5/2015 8

Solution 2: Smooth Line Follower 2015 EV3Lessons.com, Last edit 4/5/2015 9

Solution 3: ThreeStage Line Follower 2015 EV3Lessons.com, Last edit 4/5/2015 10

Challenge 4: Proportional Line Follower Challenge 4: Can you write a proportional line follower that changes the angle of the turn depending on how far away from the line the robot is? Pseudocode: 1. Reset the Rotation sensor (Only required for line following for a total distance) 2. Compute the error = Distance from line = (Light sensor reading Target Reading) 3. Scale the error to determine a correction amount. Adjust your scaling factor to make you robot follow the line more smoothly. 4. Use the Correction value (computer in Step 3) to adjust the robot s turn towards the line. 2015 EV3Lessons.com, Last edit 4/5/2015 11

Solution: Proportional Line Follower 2015 EV3Lessons.com, Last edit 4/5/2015 12

Tips You will get better results.if your color sensors are closer to the ground.remember to calibrate 2015 EV3Lessons.com, Last edit 4/5/2015 13

Discussion Guide Simple Line Follower Smooth Line Follower ThreeStage Line Follower Proportional Follower Fill in the above with positives and negatives of each technique. Consider if the line follower is best for curved or straight lines. Consider if the robot will wiggle a lot. 2015 EV3Lessons.com, Last edit 4/5/2015 14

Credits This tutorial was created by Sanjay Seshan and Arvind Seshan More lessons at www.ev3lessons.com This work is licensed under a Creative Commons Attribution NonCommercialShareAlike 4.0 International License. 2015 EV3Lessons.com, Last edit 4/5/2015 15