Available at: www.etcurr.com Lesson 3.6 – Program Line Follower in Autonomous Mode Program Line Follower in Autonomous Mode.

Slides:



Advertisements
Similar presentations
Robofest 2005 Introduction to Programming RIS 2.0 RCX Code.
Advertisements

Follow The Guidelines Introductory Presentation. Opening Activity Make a prediction about how light sensors will use thresholds. Keep in mind: We used.
Engineering Roles We will be forming groups of 3 students
Sensors.
Vex Robotics Introduction to Sensors. introduction to sensors Sensors assist robots in seeing and feeling the physical world through which they travel.
Photos and Sensor Instructions
Programing Concept Ken Youssefi/Ping HsuIntroduction to Engineering – E10 1 ENGR 10 Introduction to Engineering (Part A)
Available at: – Program Optical Quad Encoders in Autonomous Mode Program optical quad encoders in autonomous mode.
Connecting VEX and ROBOTC
Available at: – Program Potentiometer in Autonomous Mode Program potentiometer in autonomous mode.
Available at: Lesson 4.1, Build a Conveyor Feeder Build a Conveyor Feeder.
Testbed: Exercises.
Program ultrasonic range sensor in autonomous mode
Programming Concepts Part B Ping Hsu. Functions A function is a way to organize the program so that: – frequently used sets of instructions or – a set.
Available at: – Operate the Tumbler using a Jumper Pin Operate the Tumbler using the jumper pin.
Weston Schreiber & Joshua Gabrielse Robotics Summer Training Programming #1: EasyC Basics.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
Teacher/Mentor Institute Using easyC Joel Kirkland July 30-31, 2015.
Today’s Agenda 1.Scribbler Program Assignment 1.Project idea due next class 2.Program demonstration due Wednesday, June 3 2.Attendance & lab pair groupings.
EasyC Programming Workshop January 30, 2008 Hauppauge High School SPBLI - FIRST Mark McLeod Advisor Hauppauge Team 358 Northrop Grumman Corp.
Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included.
Available at: Lesson 3.5 – Program Light Sensor in Autonomous Mode Program Light Sensor in Autonomous Mode.
Technical Writing for Robotic Coding!.  du/products/teaching_robotc_cort ex/fundamentals/introtoprogramm ing/thinking/videos/fundamentals.
Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.
By Eric Greene RMS / I. S. 192 Q. Smart Start Question How would you get the robot to flirt with disaster by touching the edge of the “table” as many.
Photos and Sensor Instructions
Available at: – Program Functions to Accept Values Program Functions to Accept Values.
Available at: – Program Functions for VEX Robots Program Functions for VEX Robots.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
How to make a Line Follow program Using EV3 software and an NXT light sensor.
Vex Robotics program three: using motors and sensors together.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
Mechanical Components and Programming Ken Youssefi Introduction to Engineering – E10 1.
Connect VEX and ROBOTC Electrical Engineer Responsibilities © 2011 Project Lead The Way, Inc.Automation and Robotics VEX.
Basic Programming: Until Commands. The Problem with Wait States Motor Speed is affected by battery power. –If the battery is fully charged, the motors.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Robotics Education & Competition Foundation
Electrical Engineer Responsibilities
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Programming & Sensors.
Know your Robot Electrical Parts
Electrical Engineer Responsibilities
An Introduction to VEX IQ Programming with Modkit
Follow The Guidelines.
Electrical Engineer Responsibilities
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Electrical Engineer Responsibilities
INTERMEDIATE PROGRAMMING LESSON
Sensors Training.
Automation and Robotics
Sensors and Logic Switches
INTERMEDIATE PROGRAMMING LESSON
Better Line Following with PID
Follow The Guidelines Light Sensor
An Introduction to VEX IQ Programming with Modkit
Beginner Programming Lesson
INTERMEDIATE PROGRAMMING LESSON
Switch Blocks check a value and choose a path based on that value
Introductory Presentation
Storing Values as Variables
Introductory Presentation
Line Following Behavior
Programming - Buttons Intro to Robotics.
Photos and Sensor Instructions
Programming - Buttons Intro to Robotics.
1.15: Dual Joystick Control (Tank)
An Introduction to VEX IQ Programming with Modkit
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
INTERMEDIATE PROGRAMMING LESSON
AN INEXPENSIVE ROBOTIC KIT FOR CHILDREN EDUCATION
Presentation transcript:

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program Line Follower in Autonomous Mode

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program Line Follower in Autonomous Mode  Performance Objective: Given the components of a VEX robotics design system program a line follower in autonomous mode to have the robot move forward and follow a white line on a gray mat.  Enabling Objectives:  explain the purpose of a line follower  explain how a line follower operates  draw a flow chart for using a line follower  program a line follower

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Line follower  A line tracker mostly consists of an infrared light sensor and an infrared LED  The line follow functions by illuminating a surface with infrared light; the sensor then picks up the reflected infrared radiation and, based on its intensity, determines the reflectivity of the surface in question  Lightly colored surfaces will reflect more light than dark surfaces; therefore, lightly colored surfaces will appear brighter to the sensor  This allows the sensor to detect a dark line on a light surface, or a light line on a dark surface

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Line follower  An efficient way to follow a line is using three sensors  The three sensors are lined up beside each other  The center line follower is designed to be on the line being followed, while the outside sensors are detecting the surface beside the line

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Line follower logic  The logic behind using three sensors is this: if sensors 1 and 3 are dark and sensor 2 is light, then go straight; if sensors 1 and 2 are dark while sensor 3 is light, turn right; if sensors 2 and 3 are dark, and sensor 1 is light, turn left

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Line follower logic  Three sensors are best when there are crossing lines  All three sensors will be reading the same color, you know to turn a direction when this happens  Using this logic, two sensors will work to follow a line that does not cross another line

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Verify the sensor  Plug the three sensors into analog ports  Open easyC and download the line follower test code  The test code is only written for one sensor, you can add the two additional get blocks to be able to read the other two sensors, you also need to define two new variables  Place the robot on a gray mat and notice the value of the sensors (> 700)  Place the robot on a white surface and notice the value of the sensors (< 500)

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program the line follower  Program a VEX robot equipped with a line following kit to move forward and follow a white line on a gray mat  Draw the flow chart of a program that can complete the above task according to the logic explained earlier

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program the line follower  Open a new competition project and configure the microcontroller for the three line following sensors  Add a variable for each line following sensor  Insert an appropriate driving mode block into the operator tab

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program the line follower  Insert a while loop where 1==1  Insert the get analog input block for each line follower

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program the line follower  Insert an If statement to move the robot forward if both outside sensors are dark and the middle sensor is light NOTE: When using the line follower kit, you will want to move slower, therefore insert a user value of 60 or -60 when programming the motors

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program the line follower  Insert an Else-If statement to correct the robot if it starts to veer off the line towards the right

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Program the line follower  For correction when the robot veers off of the line, insert an Else-If statement to correct the positioning

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Test your code  Build and download your code  Run the code with the Competition Switch Simulator  The robot should slowly move forward following a line, correcting itself if it starts to veer to one side or the other

Available at: Lesson 3.6 – Program Line Follower in Autonomous Mode Show it off!  If your code works, show it to your instructor  If the robot does not run correctly, go back through the lesson and double check your code  For more technical data on the line follower visit: e_Follower