By Droids Robotics Infrared Sensor Intermediate EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 5/26/2015 1.

Slides:



Advertisements
Similar presentations
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: Turning.
Advertisements

BEGINNER EV3 PROGRAMMING Lesson
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.
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
BEGINNER EV3 PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON By: Droids Robotics Color Line Follower My Blocks with Inputs: Move Until Black © 2014, Droids Robotics, v. 2.0, Last edit.
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.
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.
By Sanjay and Arvind Seshan
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
By Sanjay and Arvind Seshan
By Sanjay and Arvind Seshan
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSON
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
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
Beginner Programming Lesson
BEGINNER EV3 PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
Line Followers: Basic to Proportional
BEGINNER PROGRAMMING LESSON
Line Followers: Basic to Proportional
INTERMEDIATE PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
By Sanjay and Arvind Seshan
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSON
Presentation transcript:

By Droids Robotics Infrared Sensor Intermediate EV3 PROGRAMMING LESSON © 2015 EV3Lessons.com, Last edit 5/26/2015 1

Lesson Objectives 1. Learn how to use an Infrared Sensor 2. Learn to make a remote control system and a program that follows the beacon. 3. Learn to use the Infrared Sensor in all three major modes 4. Learn the limitations of the Infrared Sensor Prerequisites: Switches, Loops, Compare blocks, and Math blocks © 2015 EV3Lessons.com, Last edit 5/26/ *****Currently the Infrared Sensor is not allowed in First Lego League*****

What does the Infrared Sensor do?  Measures proximity to beacon or object  Measures the angle of the beacon relative to the sensor  Measures which button is pressed on remote.  Beacon/remote can be set to 1 of 4 channels. Infrared sensor code must specify which channel to use. This allows you to use multiple remotes in the same room © 2015 EV3Lessons.com, Last edit 5/26/ Infrared Sensor Beacon/Remote

Three Modes  Works up to about 70cm away (or 100 proximity units)  Proximity Mode  Returns undefined unit type called proximity (not inches or centimeters)  Beacon Mode  Returns heading (angle) and distance to beacon. Heading measurement is not in degrees.  Remote Mode  Returns which button is pressed on the remote  We will use all three in this lesson  The Infrared Sensor block can be found in the yellow sensor tab © 2015 EV3Lessons.com, Last edit 5/26/2015 4

Challenges  To learn how to use the Infrared Sensor you will complete three challenges:  Challenge 1: Create a remote control for your robot that does a different action based on which button you press on the Remote  Challenge 2: Proportional Dog Follower: The robot should move to wherever the Beacon is using proximity and heading  Challenge 3: Test how accurate the Infrared Sensor is for measuring distances © 2015 EV3Lessons.com, Last edit 5/26/2015 5

Pseudocode/Hints © 2015 EV3Lessons.com, Last edit 5/26/2015 ChallengeHint/Pseudocode Remote Control Run different actions based on which button(s) are pressed on channel 1 Proportional Dog Follower If the robot is <15 proximity from the beacon move backward If the robot is >15 proximity from the beacon move forward Use proportional control to adjust the steering base on the “heading” of the beacon Note: Proportional Control is covered in an Advanced Lesson on EV3Lessons.com. Please refer to this lesson. Accuracy of Proximity Measure distance using ultrasonic and measure proximity using infrared (use Port View on brick). Compare measurements for different distances to different surfaces. 6

Solution: Remote Control © 2015 EV3Lessons.com, Last edit 5/26/ Make sure to set your remote to channel 1 using the slider button on remote.

Solution: Dog Follower © 2015 EV3Lessons.com, Last edit 5/26/2015 8

Challenge 3: Compare Sensors Instructions: 1) Hold the each sensor 10CM away from the material and check the sensor readings on Port View 2) Pick reflective and non- reflective surfaces to try Lesson: The Infrared Sensor’s reading are based on the intensity of the reflective light. It will not be as accurate as an ultrasonic sensor in measuring how far away an object is. Try different distances next. © 2015 EV3Lessons.com, Last edit 5/26/ SurfaceActual Distance to Surface Ultrasonic Measurement Infrared Measurement Aluminum Foil 10CM Wooden Table 10CM Black Paper10 CM Glass10 CM White Paper 10 CM

Discussion Guide  What modes does the Infrared sensor have?  Ans: Proximity, Beacon and Remote  Can the Infrared sensor measure distance?  Yes, but not accurately because it is based on the reflected light intensity. So, it is going to vary based on the material the object is made of. © 2015 EV3Lessons.com, Last edit 5/26/

Next Steps  Go to the Advanced Lesson on the Infrared Sensor (*coming soon)  Read the Advanced Lesson on Proportional Control. © 2015 EV3Lessons.com, Last edit 5/26/

Credits  This tutorial was created by Sanjay Seshan and Arvind Seshan from Droids Robotics  More lessons at © 2015 EV3Lessons.com, Last edit 5/26/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 12