Gyro Move Straight & Gyro Wall Follow

Slides:



Advertisements
Similar presentations
Squaring or Aligning on a Line
Advertisements

Parallel Beam Synchronization
By Droids Robotics Code contributed by The Construction Mavericks
Gyro Turns ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics
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 EV3 PROGRAMMING LESSON SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW.
ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics PROPORTIONAL ULTRASONIC WALL FOLLOWER © 2015, EV3Lessons.com, Last edit 11/17/2015.
ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics © 2015, EV3Lessons.com (last edit 4/9/2015) Stall Detection with code from Hoosier Girlz.
INTERMEDIATE PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
Squaring or Aligning on a Line
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
BEGINNER EV3 PROGRAMMING Lesson
Proportional Control with the Sound Sensor
By Sanjay and Arvind Seshan
BEGINNER EV3 PROGRAMMING Lesson
Parallel Beam Synchronization
By Sanjay and Arvind Seshan
SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
By Sanjay and Arvind Seshan
Gyro Turns © 2015 EV3Lessons.com, Last edit 12/19/2015.
INTERMEDIATE PROGRAMMING LESSON
Parallel Beam Synchronization
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
Lesson 4: Aligning on Lines On The Mat
BEGINNER PROGRAMMING LESSON
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
Beginner Programming Lesson
Lesson 8: line following
BEGINNER EV3 PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
BEGINNER PROGRAMMING LESSON
Repeating Actions (Loops)
By Sanjay and Arvind Seshan
Line Followers: Basic to Proportional
BEGINNER PROGRAMMING LESSONS
Lesson 6: aligning on Walls & MODELS
BEGINNER PROGRAMMING Lesson
Proportional Control with the Sound Sensor
Line Followers: Basic to Proportional
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSONS
By Sanjay and Arvind Seshan
BEGINNER EV3 PROGRAMMING Lesson
By Sanjay and Arvind Seshan
Menu System.
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
Proportional Line Follower
Presentation transcript:

Gyro Move Straight & Gyro Wall Follow ADVANCED EV3 PROGRAMMING LESSON Gyro Move Straight & Gyro Wall Follow By Droids Robotics © 2015 EV3Lessons.com, Last edit 6/23/2015

Lesson Objectives Learn what proportional control means and why to use it Learn to apply proportional control to get your robot to move straight Lear to apply proportional control to the Gyro sensor to wall follow (move at a particular angle) Prerequisites: Math Blocks, Data Wires, Proportional Control, Gyro Sensor © 2015 EV3Lessons.com, Last edit 6/23/2015

Tips to success You must go through the Proportional Control Lesson and the Proportional Line Follower Lesson before you complete this lesson You must also complete the two Gyro Lessons. The concept of proportional control is used in this lesson to go straight and wall follow Just like for any other proportional control, you need to figure out how to measure error and an appropriate correction Video of how the robot will behave: https://youtu.be/0gII2wZs44Y © 2015 EV3Lessons.com, Last edit 6/23/2015

Pseudocode/Hints Application Objective Error Correction Gyro Straight Make the robot at a constant heading/angle How far you are from that heading/angle Turn sharper based on how far you are from that angle Line Follower Stay on the edge of the line How far are our light readings from those at line edge (current_light – target_light) Turn sharper based on distance from line Gyro Turn Turn to a target angle How many degrees are we from target turn Turn faster based on degrees remaining © 2015 EV3Lessons.com, Last edit 6/23/2015

FYI: Proportional Line Follower © 2015 EV3Lessons.com, Last edit 6/23/2015

Code: Gyro Move Straight © 2015 EV3Lessons.com, Last edit 6/23/2015

Discussion Guide Compare the proportional line follower code with the proportional move straight code. What similarities and differences do you see? Ans. The code is almost the same. The one difference is how the error is calculated. The error is calculated using the gyro sensor. The correction is identical! © 2015 EV3Lessons.com, Last edit 6/23/2015

Code: Gyro Wall Follow © 2015 EV3Lessons.com, Last edit 6/23/2015

Discussion Guide Compare the move straight code with the wall follow code. What similarities and differences do you see? Ans. There is no target angle for moving straight is 0. But when you want to wall follow, you have to enter a target value of how much you want to angle into the wall. © 2015 EV3Lessons.com, Last edit 6/23/2015

Credits This tutorial was created by Sanjay Seshan and Arvind Seshan from Droids Robotics (team@droidsrobotics.org). 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 6/23/2015