BEGINNER EV3 PROGRAMMING Lesson

Slides:



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

Squaring or Aligning on a Line
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
LEGO MINDSTORMS PROGRAMMING CAMP
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.
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.
BEGINNER EV3 PROGRAMMING LESSON By: Droids Robotics Topics Covered: Switches.
Calibrating Color Sensors
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.
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.
ADVANCED EV3 PROGRAMMING LESSON By Droids Robotics PROPORTIONAL ULTRASONIC WALL FOLLOWER © 2015, EV3Lessons.com, Last edit 11/17/2015.
BEGINNER FLL PROGRAMMING WORKSHOP BY DROIDS ROBOTICS & EV3LESSONS.
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
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
BEGINNER EV3 PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON
Beginner Programming Lesson
BEGINNER PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
Beginner Programming Lesson
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSON
Beginner Programming Lesson
Lesson 6: aligning on Walls & MODELS
BEGINNER PROGRAMMING Lesson
INTERMEDIATE PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
BEGINNER PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
BEGINNER PROGRAMMING LESSON
INTERMEDIATE PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
Presentation transcript:

BEGINNER EV3 PROGRAMMING Lesson Topics Covered: Touch Sensor By: Droids Robotics

Lesson Objectives Learn how to use the Touch Sensor Learn how to use the Wait For Block Learn the difference between the Wait For Block and the Sensor Blocks Learn when to use Move Block’s “On” mode © EV3Lessons.com, 2015, (Last edit: 2/26/2015)

What is a sensor? A sensor lets an EV3 program measure and collect data about is surroundings The EV3 sensors include: Colour – measures color and darkness Gyro – measures rotation of robot Ultrasonic – measures distance to nearby surfaces Touch – measures contact with surface Infrared – measures IR remote’s signals Our lessons will cover the 4 sensors in green. Image from: http://www.ucalgary.ca/IOSTEM/files/IOSTEM/media_crop/44/public/sensors.jpg © EV3Lessons.com, 2015, (Last edit: 2/26/15)

WHAT IS A TOUCH SENSOR? Touch Sensor can detect when the sensor’s red button has been pressed or released With this information, you can program an action when the sensor is: Currently Pressed Currently Released Pressed and Released Just Before (Bumped) When might you use this sensor? Useful for programming “moving until touch sensor is pressed/released/bumped” For example, if you put a touch sensor on the front the robot, you can have it stop moving if it runs into something. You can also have your program start or stop when a touch sensor is pressed. © EV3Lessons.com, 2015, (Last edit: 2/26/15)

What Does “Bumped” Mean?* The sensor basically is like a True/False switch “Bumped” can be tricky. What conditions must be there for the sensor to read True for Bumped? Time Action Pressed Released Bumped 1 Button starts released False True 2 Button is pressed in 3 Button is released, and program reads sensor 4 Button is still released, and the program tests the Touch Sensor again 5 Button is pressed a second time 6 Button is released, but the program does not read the sensor 200 secs later… Program reads sensor 201 * Based on the Lego EV3 help screen © EV3Lessons.com, 2015, (Last edit: 2/26/15)

A tip for Move Steering Blocks With Sensors Leaving the motor “on” and “off” Why use the “on” instead of “degrees”? May want the program to do other tasks such as reading a sensor while moving © EV3Lessons.com, 2015, (Last edit: 2/26/15)

TEACHER INSTRUCTIONS Challenges are on slides 9 and 11 Solutions to these challenges are on slides 10 and 12 Discussion is on slide 13 © EV3Lessons.com, 2015, (Last edit: 2/26/15)

CHALLENGE 1 Program your robot to move straight until you tap the sensor with your hand. 0 = released 1 = pressed 2 = bumped B C Hint: You will combine: Move Steering + Wait Block © EV3Lessons.com, 2015, (Last edit: 2/26/15)

Challenge 1 Solution Add screenshot © EV3Lessons.com, 2015, (Last edit: 2/26/15)

CHALLENGE 2 Program your robot to move until it hits the edge of a wall. Then back up and turn right 90 degrees. 0 = released 1 = pressed 2 = bumped B C Hint: You will combine Move Steering + Turning + Wait Block © EV3Lessons.com, 2015, (Last edit: 2/26/15)

Challenge 2 Solution Add Screenshot © EV3Lessons.com, 2015, (Last edit: 2/26/15)

DISCUSSION Why did you use MOTOR ON for these challenges? You want to read the sensor while the motor is on. Why do we use the WAIT FOR BLOCK in these challenges? We need to program to wait for the correct reading What is the difference between PRESSED, RELEASED and BUMPED? PRESSED = pushed in, RELEASED = not pushed, BUMPED = pressed and released recently What are some situations you might want to use each of these for? PRESSED = running into a wall, BUMPED = tapped by hand RELEASED = no longer touching a wall © EV3Lessons.com, 2015, (Last edit: 2/26/15)

CREDITS This tutorial was created by Sanjay Seshan and Arvind Seshan from Droids Robotics. More lessons are available at www.ev3lessons.com Author’s Email: team@droidsrobotics.org                           This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. © EV3Lessons.com, 2015, (Last edit: 2/26/15)