INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Color Line Follower My Blocks with Inputs: Move Until Black © 2014, Droids Robotics, v. 2.0, Last edit.

Slides:



Advertisements
Similar presentations
Squaring or Aligning on a Line
Advertisements

BEGINNER EV3 PROGRAMMING Lesson
By Droids Robotics Good Coding Practices: Start with Pseudocode BEGINNER EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 4/1/
BEGINNER EV3 PROGRAMMING Lesson
By Lego Works NXT Light Sensors on the EV3 ADVANCED EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 1/29/
BEGINNER EV3 PROGRAMMING Lesson
Parallel Beams INTERMEDIATE EV3 PROGRAMMING LESSON By Droids Robotics
Parallel Beam Synchronization
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: Display Block.
By Droids Robotics Infrared Sensor Intermediate EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 5/26/
Menu System ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Turn Degrees My Block.
By Droids Robotics Code contributed by The Construction Mavericks
Using the Gyro Sensor and Dealing with Drift
BEGINNER PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
Picking Up and Moving an Object
By Mesa Robles Robotworks and Droids Robotics
BEGINNER EV3 PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics My Blocks Overview Step-by-Step Visual Guide to Creating a My Block with Inputs with Outputs.
ADVANCED EV3 PROGRAMMING LESSON
Gyro Turns ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: Switches.
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Move Distance My Block (Move_Inches)
Calibrating Color Sensors
Alternative Squaring on a Line
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: EV3 Basics Introduction to the EV3 Brick and Software.
BEGINNER EV3 PROGRAMMING Lesson
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.
INTERMEDIATE PROGRAMMING Lesson
ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics 1 Data Logging (Part 2)
By Droids Robotics INTERMEDIATE PROGRAMMIN G LESSON MOVE DISTANCE MY BLOCK (MOVE_CM)
BEGINNER EV3 PROGRAMMING Lesson
By Droids Robotics INTERMEDIATE EV3 PROGRAMMING LESSON SIMPLE & OPTIMIZED ULTRASONIC WALL FOLLOW.
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Using Sensor Data and Port View.
By Droids Robotics INTERMEDIATE PROGRAMMIN G LESSON DATA WIRES.
By Droids Robotics INTERMEDIATE PROGRAMMING LESSON BRICK BUTTONS AS SENSORS.
Bonus EV3 Programming Lessons By Droids Robotics PixyCam for MINDSTORMS Color Identifinder.
ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics PROPORTIONAL ULTRASONIC WALL FOLLOWER © 2015, EV3Lessons.com, Last edit 11/17/2015.
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: Touch Sensor.
By Droids Robotics INTERMEDIATE PROGRAMMIN G LESSON COLOR LINE FOLLOWER MY BLOCK WITH INPUTS: MOVE FOR DISTANCE.
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
BEGINNER EV3 PROGRAMMING Lesson
Squaring or Aligning on a Line
Proportional Control with the Sound Sensor
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
Beginner Programming Lesson
Lesson 8: line following
INTERMEDIATE PROGRAMMING LESSON
Repeating Actions (Loops)
Line Followers: Basic to Proportional
BEGINNER PROGRAMMING LESSONS
BEGINNER PROGRAMMING Lesson
Proportional Control with the Sound Sensor
Line Followers: Basic to Proportional
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSONS
BEGINNER EV3 PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
Proportional Line Follower
Presentation transcript:

INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Color Line Follower My Blocks with Inputs: Move Until Black © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

LESSON OBJECTIVES 1)Learn how to write a line follower that takes multiple inputs 2)Learn how to write a line follower that stops when it sees a another line 3)Practice making useful My Blocks © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

COLOR LINE FOLLOWER THAT ENDS ON A BLACK LINE You may want to follow one line until the robot sees another line In First Lego League, a common application is to line follow until a “T” junction. Follow along in the EV3 Code Start at Step 1. By Step 2 you will have your code. Proceed to Steps 3 and 4 to make this code into a My Block with Inputs. © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

TIPS TO SUCCEED 1)You will need to know how to make a Simple Color Line Follower program and how to make a My Block with inputs 2)Since you will use your EV3 Color Sensor in Color Mode, you will not have to Calibrate your color sensor for this lesson 3)Check which ports you have your color sensor connected to and adjust the code as needed 4)You may have to adjust the speed or direction to work for your robot. Make sure that the the color sensor is in front of the wheels in the direction of travel. 5)Make sure you place the robot on the side of the line that you are following. The most common mistake is placing the robot on the wrong side of the line to begin with. 6)Follow along in the companion EV3 File. Always start at Stage 1 © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

CHALLENGE WITH TIPS Challenge: Create a line follower My Block that stops when it sees black and takes 3 inputs (color to follow, color to stop at, and power) 1)Start with a simple line follower 2)Change the loop exit condition to “until black” 3)Set up inputs using constants (color to follow, color to stop at, power) 4)Use data wires to connect these constants to the right block 5)Make this line follower into a My Block © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

STEP 1: MAKE A SIMPLE LINE FOLLOWER © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

STEP 1: MAKE A SIMPLE LINE FOLLOWER © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

STEP 2: STOPS ON BLACK © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

STEP 3: ADDING INPUTS © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

STEP 4: THE MYBLOCK © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

INSIDE THE MY BLOCK © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

NEXT STEPS We use a simple line follower in this lesson. You can combine these techniques with any line follower. Learn how to create a proportional line follower for light or a smooth line follower for color  check out our Advanced: Proportional Line Follower lesson. © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015

CREDITS This tutorial was created by Sanjay Seshan and Arvind Seshan from Droids Robotics. More lessons are available at Author’s © 2014, Droids Robotics, v. 2.0, Last edit 4/5/2015 This work is licensed under a Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License.Creative Commons Attribution- NonCommercial-ShareAlike 4.0 International License