BEGINNER PROGRAMMING LESSON

Similar documents
TABLET LESSONS BASIC LINE FOLLOWER. By Sanjay and Arvind Seshan

BEGINNER PROGRAMMING LESSON

Squaring or Aligning on a Line

Squaring or Aligning on a Line

Line Followers: Basic to Proportional

ADVANCED EV3 PROGRAMMING LESSON. Proportional Control. By Sanjay and Arvind Seshan

INTERMEDIATE PROGRAMMING LESSON

BUILDING A COMPETITION ROBOT SESHAN BROTHERS

SINGLE SENSOR LINE FOLLOWER

Robotics using Lego Mindstorms EV3 (Intermediate)

Line Detection. Duration Minutes. Di culty Intermediate. Learning Objectives Students will:

LEGO MINDSTORMS COMPETITIONS

Program Your Robot to Perform a Task

Robotic Programming. Skills Checklist

How Do You Make a Program Wait?

Lesson plan. A 3d View from a Drone: Make a 3d model from your photos

e d u c a t i o n Detect Dark Line Objectives Connect Teacher s Notes

1.NBT Number Square. Task. Alignments to Content Standards: 1.NBT.C.5. Part 1. The teacher explains the Number Square:

Ev3 Robotics Programming 101

A - Debris on the Track

A - Debris on the Track

Automatic Headlights

Sample Pages. Classroom Activities for the Busy Teacher: NXT. 2 nd Edition. Classroom Activities for the Busy Teacher: NXT -

Introduction to Robotics Rubrics

Alex is training for his school's Jog-A-Thon and needs to run at least mile per day. If 5

Illustrative Mathematics. Alignments to Content Standards: 4.OA.B. Task. Below is a multiplication table for single digit numbers:

Inspiring the Next Engineers and Scientists

EV3 Advanced Topics for FLL

Robotics Workshop. for Parents and Teachers. September 27, 2014 Wichita State University College of Engineering. Karen Reynolds

Lesson 16: Relating Scale Drawings to Ratios and Rates

Erik Von Burg Mesa Public Schools Gifted and Talented Program Johnson Elementary School

Here Comes the Sun. The Challenge

The power of Math in LEGO Robotics

This You re a Superhero! worksheet is SPONSORED BY

Paint Neat Edges. on Zebra Stripes. Draw a Symmetrical Zebra Face

understanding sensors

Lesson 5: Identifying Proportional and Non-Proportional Relationships in Graphs

Temari Workbook *Divisions and Markings* Contents

The light sensor, rotation sensor, and motors may all be monitored using the view function on the RCX.

2.4 Sensorized robots

Sensing the World Around Us. Exploring Foundational Biology Concepts through Robotics & Programming

Module. Introduction to Scratch

Perennial Link.

Robot Olympics: Programming Robots to Perform Tasks in the Real World

Fabricate a Coat Hook

Lesson 5: Identifying Proportional and Non-Proportional Relationships in Graphs

How the EUPATI web site can support your efforts

THE YEAR AHEAD A GOAL OR DREAM WITHOUT A PLAN IS JUST A WISH. I BELIEVE ANYTHING IS POSSIBLE IN LIFE WITH THE RIGHT PLAN.

A - Debris on the Track

The Impact of Social Media: Conducting Independent Enquiry About Social Media Teacher's Slides for HKDSE Liberal Studies (July 2018)

Crocodile Stitch Crochet Class

LEGO Mindstorms Class: Lesson 1

Drawing and Assembling

Unit 11. Vocabulary Card Images. Skills Strand Grade 3. Core Knowledge Language Arts

Worksheet Answer Key: Tree Measurer Projects > Tree Measurer

Part of: Inquiry Science with Dartmouth

RoboCup Sumo Workshop. Margaux Edwards July 2018

LEARN TO SOLVE THE RUBIK'S CUBE

STEP BY STEP GUIDE FOR CREATING A CUBE IN FREECAD. STEP 1. Chose Create a new Empty Document Part Design Create a New Sketch XY- Plane and click OK.

Students have little or no previous knowledge or skill in the material being covered.

Arduino STEAM Academy Arduino STEM Academy Art without Engineering is dreaming. Engineering without Art is calculating. - Steven K.

Curriculum Activities for Driving Course Curriculum Sample 1

Inspiring Creative Fun Ysbrydoledig Creadigol Hwyl. LEGO Bowling Workbook

Secondary school metal shop or equivalently equipped technology education shop

G-SRT Dilating a Line

An Introduction to Programming using the NXT Robot:

Programming with Scratch

Create a game in which you have to guide a parrot through scrolling pipes to score points.

Grade 4: Module 2B: Unit 1: Lesson 2 Supporting Materials

Session 11 Introduction to Robotics and Programming mbot. >_ {Code4Loop}; Roochir Purani

LAB 5: Mobile robots -- Modeling, control and tracking

Games for Young Mathematicians Pattern Block Puzzles HOW TO PLAY: PATTERN BLOCK PUZZLES

Pre-Day Questionnaire

Your EdVenture into Robotics 10 Lesson plans

Introduction to programming with Fable

Lesson Plans. Lesson 1 Lesson 2 Lesson 3. Lesson 4 Lesson 5

Hare and Snail Challenges READY, GO!

Grade 4: Module 1A: Unit 1: Lesson 9 Writing to Explain: Gathering Details and Organizing Paragraphs

Learn to use translations, reflections, and rotations to transform geometric shapes.

The Cradles Caress Pendant

Chassis & Attachments 101. Part 1: Chassis Overview

Pre-Activity Quiz. 2 feet forward in a straight line? 1. What is a design challenge? 2. How do you program a robot to move

(3 minutes) Materials: (T) Two-dimensional shape flash cards (Lesson 4 Fluency Template), three-dimensional shapes used in Lesson 3

Prezi : Software redefining how Presentations are created.

Lesson 2 Game Basics

Arduino Guide READ ONLINE

Installation Tutorial

1. Make the robots exercise:

Workshop 9: First steps in electronics

4-H Mindstorm EV3 Robotics Camp Mills County 4 Day Camp Day 1, Tuesday AGENDA

Definitions of Ambient Intelligence

Drafting: Orthographic and Isometric Drawings

Welcome to. NXT Basics. Presenter: Wael Hajj Ali With assistance of: Ammar Shehadeh - Souhaib Alzanki - Samer Abuthaher

BATTERY STACK. Can an invention be both negative and positive?

1Getting Started SIK BINDER //3

Restaurant Bill and Party Size

Robotics 2a. What Have We Got to Work With?

Engineering with EV3 Workshop

S B Patil Public School, Pune

Basic image edits with GIMP: Getting photos ready for competition requirements Dirk Pons, New Zealand

Transcription:

Basic Line Follower By Sanjay and Arvind Seshan BEGINNER PROGRAMMING LESSON

LESSON OBJECTIVES 1. Learn how humans and robots follow lines 2. Learn how to get a robot to follow a line using Color Mode on the EV3 Color Sensor 3. Learn how to follow a line until a sensor is activated 4. Learn how to follow a line for a particular distance 5. Learn how to combine sensors, loops and switches 2016 EV3Lessons.com (Last edit: 7/04/2016) 2

TEACHER INSTRUCTIONS Slides 4-7 are animated. For students to better understand how a line follower works and how a human and a robot follow a line, we recommend that you play the animation Give each student/team a copy of the worksheet. Challenge 1 begins on slide 10 and Challenge 2 on Slide 13 Discussion Guide is on Slide 16 More advanced students might be interested in other line followers on EV3Lessons.com 2016 EV3Lessons.com (Last edit: 7/04/2016) 3

FOLLOW THE MIDDLE? Humans want to follow the line in the middle. Let s have the robot do the same thing using the Color Sensor What type of questions can we ask using this sensor Are you on line or not? 2016 EV3Lessons.com (Last edit: 7/04/2016) 4

5 1. If we are on black, keep going straight 2. If we are on white, turn left to get back to the line Seems to work fine here 2016 EV3Lessons.com (Last edit: 7/04/2016)

6 1. If we are on black, keep going straight 2. If we are on white, turn left to get back to the line OH NO my robot is running away. When the robot leaves the left side of the line, the program no longer works! 2016 EV3Lessons.com (Last edit: 7/04/2016)

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 Why can t the Robot do the same thing?: Can t tell right or left side of the line How do we make sure the robot always veers off on the SAME SIDE of the line? Instead of the middle, could the robot follow the edge? So now the robot will fall off only the same side. We will now show you how this works! 2016 EV3Lessons.com (Last edit: 7/04/2016) 7

ROBOT LINE FOLLOWING HAPPENS ON THE EDGES Left side line following Right side line following If on black, turn left. If on white turn right. The robot has to choose which way to turn when the color sensor sees a different color. The answer depends on what side of the line you are following! If on black, turn right. If on white turn left. 2016 EV3Lessons.com (Last edit: 7/04/2016) 8

STARTING THE ROBOT ON THE CORRECT SIDE 2016 EV3Lessons.com (Last edit: 7/04/2016) 9

LINE FOLLOWER CHALLENGE 1 Step 1: Write a program that follows the RIGHT edge of a line. Hints: If your sensor sees black, turn right. If your sensor sees white, turn left. Use loops and switches! Step 2: Try it out on different lines. Did your line follower work the same on straight and curved lines? Step 3: If not, instead of turn Steering = 50, try smaller values. Is it better on the curved lines now? C B B C 2016 EV3Lessons.com (Last edit: 7/04/2016) 10

LINE FOLLOWING CHALLENGE SOLUTION Q. Does this program follow the Right or Left side of a line? A. The robot is following the Right Side of the line. 2016 EV3Lessons.com (Last edit: 7/04/2016) 11

CHALLENGE 1 SOLUTION Q. This line follower goes forever. How do we make this stop? A. Change the end condition on the loop. 2016 EV3Lessons.com (Last edit: 7/04/2016) 12

LINE FOLLOWER CHALLENGE 2 Part 1: Make a line follower that stops when you press the touch sensor Part 2: Make a line follower that stops after it travels a particular distance 2016 EV3Lessons.com (Last edit: 7/04/2016) 13

CHALLENGE 2 SOLUTION: SENSOR 2016 EV3Lessons.com (Last edit: 7/04/2016) 14

CHALLENGE 2 SOLUTION: PARTICULAR DISTANCE 2016 EV3Lessons.com (Last edit: 7/04/2016) 15

DISCUSSION GUIDE Why is it important for the robot to follow the same side of the line? The robot only knows to check if it is on or off the line. This is a basic line follower. What are some things that were not good about this line follower? Do you think the line follower can be improved? It wiggles a lot. Smoother line followers are described in the Advanced lessons What sensor measures how far you have travelled? The rotation sensor used in Challenge 2 solution measures how much the wheels have turned How would you write a line follower that will stop when it sees a line? Or another color? Change the loop exit condition to use the color sensor. 2016 EV3Lessons.com (Last edit: 7/04/2016) 16

CREDITS This tutorial was created by Sanjay Seshan and Arvind Seshan More lessons are available at www.ev3lessons.com This work is licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License. 2016 EV3Lessons.com (Last edit: 7/04/2016) 17