Squaring or Aligning on a Line

Similar documents
Squaring or Aligning on a Line

BEGINNER PROGRAMMING LESSON

TABLET LESSONS BASIC LINE FOLLOWER. By Sanjay and Arvind Seshan

BEGINNER PROGRAMMING LESSON

INTERMEDIATE PROGRAMMING LESSON

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

Line Followers: Basic to Proportional

BUILDING A COMPETITION ROBOT SESHAN BROTHERS

SINGLE SENSOR LINE FOLLOWER

Robotics using Lego Mindstorms EV3 (Intermediate)

Robotic Programming. Skills Checklist

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

C - Underground Exploration

Chassis & Attachments 101. Part 1: Chassis Overview

Pre-Day Questionnaire

How Do You Make a Program Wait?

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

Introduction to Robotics Rubrics

acknowledgments...xv introduction...xvii 1 LEGO MINDSTORMS NXT 2.0: people, pieces, and potential getting started with the NXT 2.0 set...

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

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

LEGO MINDSTORMS COMPETITIONS

Program Your Robot to Perform a Task

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

Lesson 16: Relating Scale Drawings to Ratios and Rates

Inspiring the Next Engineers and Scientists

Chassis & Attachments 101. Chassis Overview

EV3 Advanced Topics for FLL

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

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

Hare and Snail Challenges READY, GO!

Worksheet Answer Key: Tree Measurer Projects > Tree Measurer

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

A - Debris on the Track

A - Debris on the Track

A - Debris on the Track

Automatic Headlights

Line-Follower Challenge

Ev3 Robotics Programming 101

FLL Programming Workshop Series

RoboCup Sumo Workshop. Margaux Edwards July 2018

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

Build a Full Height Wall

Robotic Navigation Distance Control Platform

Robot Design.

Engineering with EV3 Workshop

understanding sensors

Some prior experience with building programs in Scratch is assumed. You can find some introductory materials here:

Hover. Installation Instructions. Raised Panel. Version

SWITCH & GLITCH: Tutorial

2012 Alabama Robotics Competition Challenge Descriptions

Arduino Guide READ ONLINE

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

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

A Day in the Life CTE Enrichment Grades 3-5 mblock Programs Using the Sensors

Build an Aluminum Whistle

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

Restaurant Bill and Party Size

Here are the standard pre-requisites for the training course. Potential students should have or completed the following prior to the class:

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

The Nomenclature and Geometry of LEGO

Building and installing dividing walls, by Tobias Sternberg

Planning Guidelines. Lightcloud. Best Practices for Installing Lightcloud

FLL Coaches Clinic Chassis and Attachments. Patrick R. Michaud

How the EUPATI web site can support your efforts

Competitive VEX Robot Designer. Terminal Objective 1.4: program and operate the Tumbler

installation guide 1 GUIDE#: pwb-wwtowv1-pol-003

Studuino Icon Programming Environment Guide

LEGO Mindstorms Class: Lesson 1

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

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

Curriculum Activities for Driving Course Curriculum Sample 1

Digital Control Double Loop Design. Tutorial April 2016-

OPTICAL CIRCULATOR FOR FREE SPACE OPTICAL COMMUNICATION

Crocodile Stitch Crochet Class

Nebraska 4-H Robotics and GPS/GIS and SPIRIT Robotics Projects

The power of Math in LEGO Robotics

Where C= circumference, π = 3.14, and D = diameter EV3 Distance. Developed by Joanna M. Skluzacek Wisconsin 4-H 2016 Page 1

An Introduction to Programming using the NXT Robot:

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


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

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

SCRIBBLE BOT What happens when your creation comes to life?

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

G-SRT Dilating a Line

DOUGH CREATURE. Can you build a creature from scratch?

Sewing & Embroidery Machine. Sew. a new story

installation guide 1 GUIDE#: pwb-assault-001

Art Rack Assembly Instructions:

RCJ Rescue B. RCJ Rescue B Primary Team Branchburg, NJ USA. Storming Robots in Branchburg, NJ, USA. SR-chitect / Storming Robots

VEX Adjustable C-Channel

This is a motor attachment option in which the motors attach closely to the sides of the NXT.

ezsystem elab16m Light Sensing Robot

Tech Tips from Mr G Introducing Libby - The New Face of OverDrive

Line-Follower Challenge

E Technology: A. Innovations Activity: Introduction to Robotics

Arctic Animal Robot. Associated Unit Associated Lesson. Header Picture of Experimental Setup

Chapter 14. using data wires

Decorative Briolettes

Transcription:

ADVANCED EV3 PROGRAMMING LESSON Squaring or Aligning on a Line By Sanjay and Arvind Seshan

Lesson Objectives Learn how to get your robot to square up (straighten out) when it comes to a line Learn how squaring (also known as aligning on a line) can help the robot navigate Learn how to improve initial code for aligning by repeating a technique Practice creating a useful My Block Prerequisites: My Blocks with Inputs & Outputs, Data Wires, Parallel Beams, Parallel Beams Synchronization

Review: Motor Movements Move Steering lets you control both motors at the same time What if you want to move or stop one motor at a time? Use the Large Motor Block Large Motor Block Large motor block in ON mode / OFF mode

Why Align on a Line? Aligning on a line helps the robot navigate Robots get angled as they travel farther or turn (the error accumulates) Aligning on a line can straighten out a robot. Aligning can tell a robot where it is when it has to travel far 8ft Example Goal: Your robot must deliver an object only inside a small END area. The distance between start and end is 8 feet Do you think your robot can travel 8 feet and continue to be straight? Start

Three Easy Steps to Align Challenge: Make the robot straighten out (align/square up) STEP 1: Start both motors STEP 2: Stop one motor when the sensor on the corresponding side sees the line STEP 3: Stop moving the second motor when the sensor on that side sees the line Hints: Use a Large Motor Block, Use Parallel Beams, Use the Large Motor Block (This slide is animated)

What Aligning Should Look Like

Notes About Our Solution: Our solution uses 2 Color Sensors (connected in Ports 1 and 4). Our solution assumes that the color sensor on port 1 is next to the wheel on motor port B and color sensor on port 4 is next to the wheel on motor port C. You should adjust the ports as needed Your color sensors should NOT be placed right next to each other (See red boxes below in robot image. These are the color sensors.)

Basic Solution: Moving Until Line

Note: Synchronization & Parallel Beams When you have two or more beams you do not know when each beam will finish. If you wanted to move after the align finishes you might try to add a move block at the end of one of the beams. Note: This will not work because EV3 code will play your move block without waiting for the other beam to finish. Solution: You need to synchronize your beams. To learn more about synchronization and solutions go to the Advanced EV3Lessons.com Lesson on Sync Beams The problem of synchronization can also be solved by making a My Block out of the align code (refer to My Block lesson in Intermediate) My Blocks always wait for both beams to finish before exiting

Improving Your Align Code What do you notice about the solution we just presented? The robot isn t quite straight (aligned) at the end of it. Both color sensors are on the line, but the robot stops at an angle. Challenge Continued: Think about how you can improve this code so that the robot ends straighter

Tips for Success You will get better results.if your color sensors are about 4mm-12mm from the ground (see Color Sensor Placement Lesson in Robot Design Lessons).if you don t come at the line at steep angles.if you keep your color sensors spread apart

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- NonCommercial-ShareAlike 4.0 International License.