Introduction To Robot Sensors

Slides:



Advertisements
Similar presentations
While Loops and If-Else Structures
Advertisements

MONTEGO BAY HIGH SCHOOL INFORMATION TECHNOLOGY THE EXCEL IF FUNCTION.
VEX and Robot C Chris Patterson Presented by Modified by J. Andazola.
Autonomy using Encoders Intro to Robotics. Goal Our new task is to navigate a labyrinth. But this time we will NOT use motor commands in conjunction with.
Ch 1.4 – Equations & Inequalities
Solve an absolute value inequality
8/8/ Inequalities. 8/8/ Bumper Cars You must be at least 130cm tall to ride the bumper cars. This can be represented by the inequality.
Testbed: Exercises.
PAGES:51-59 SECTION: CONTROL1 : DECISIONS Decisions.
CONTROL STRUCTURE The if, elseif, and else & switch Statements 1.
Name:________________________________________________________________________________Date:_____/_____/__________ 1) x –(-4) = -102) -6x = 60 4) 3x + 2.
Order of Operations Lesson 1.3 Mr. Sparks & Mr. Beltz.
Chapter 51 Decisions Relational and Logical Operators If Blocks Select Case Blocks.
Lesson 1.4 Equations and Inequalities Goal: To learn how to solve equations and check solutions of equations and inequalities.
While and If-Else Loops ROBOTC Software. While Loops While loop is a structure within ROBOTC Allows a section of code to be repeated as long as a certain.
Red Table – Station 1 Read instructions carefully and then complete the activity.
VEX and Robot C Chris Patterson Frisco ISD CTE Center Presented by.
Inequalities and their Graphs Objective: To write and graph simple inequalities with one variable.
Automation and Robotics.  First you select the platform type so that you can use Natural Language PLTW.
Python Programming Module 4 Sensors and Loops Python Programming, 2/e1.
Sensor Information: while loops and Boolean Logic.
VEX IQ Curriculum It’s Your Future Lesson 11 Lesson Materials:
VEX IQ Curriculum Smart Machines Lesson 09 Lesson Materials:
Math 6-8: The Standards in Practice: A Common Core Lesson
While multiplying larger numbers involves more steps, it’s not necessarily more challenging. If you know the steps to organize the process. So, what strategies.
Imagine a program that is SELF-CORRECTING! THIS ONE IS!
ROBOTC for VEX On-Site Professional Development
Robotics Programming Using Shaft Encoders
Exploring Computer Science Lesson 4-10 – Part 1
Introduction Situations in the real world often determine the types of values we would expect as answers to equations and inequalities. When an inequality.
Monday, December 11th 2017 Objective:
Introduction To Robot Sensors
Introduction To Robot Decision Making
Inequalities Today’s Lesson: What: Why:
Inequalities Today’s Lesson: What: Why:
Introduction Situations in the real world often determine the types of values we would expect as answers to equations and inequalities. When an inequality.
While Loops and If-Else Structures
Computers & Programming Languages
Scratch: selection / branching/ if / If…else / compound conditionals / error trapping by Mr. Clausen.
Year 2 Autumn Term Week 11 Lesson 4
Year 2 Autumn Term Week 11 Lesson 4
Inequalities 12/3/2018.
6.5 Inequalities 12/3/2018.
Welcome to Interactive Chalkboard
While Loops and If-Else Structures
Solving Equations with Variables on Both Sides Day 2
Pages:51-59 Section: Control1 : decisions
While Loops and If-Else Structures
While Loops and If-Else Structures
Introduction To Robot Decision Making
While Loops and If-Else Structures
Conditional Logic Presentation Name Course Name
Learning Intention I will learn about programming using selection (making choices) with one condition.
RobotC While loop When and how to use the while loop
Robotics Programming Using Shaft Encoders
Robotics Programming Using Shaft Encoders
Warm Up Evaluate · · · 3. ( ) + ( )‏ 4. 4(32) – 16(8)
Relational Operators.
While Loops and If-Else Structures
Life is Full of Alternatives
“Day C” February 5, :01 - 9:01 Math 9: :03 Science
Robotics Programming Using Shaft Encoders
Pages:51-59 Section: Control1 : decisions
Introduction Situations in the real world often determine the types of values we would expect as answers to equations and inequalities. When an inequality.
While Loops and If-Else Structures
Solving Equations with Variables on Both Sides Day 2
While Loops And If-Else Structures
Warm-Up Problems Unit 0.
Warm Up Problem of the Day Lesson Presentation Lesson Quizzes.
Exploring Computer Science Lesson 4-10 – Part 1
Presentation transcript:

Introduction To Robot Sensors When - after students have learned about Boolean expressions and relational operators Goal - students to develop a mental model of how robots make decisions The lesson includes: an introduction to sensors and how conditional statements compare sensor feedback to cutoff values to make decisions What students know At the end of this lesson students will be able to: Describe several sensors and the type of feedback that they send to the robot, Interpret and write a conditional statement, And, describe how conditional statements are used to control a robot’s behavior. Teacher background information Boolean expressions Relational operators Example conditional statement Note about Logical Operators Teacher directions to implement the lesson Help students understand what a Boolean expression is Introduce students to the type of sensors that they are using Introduce student to TRUE of FALSE decision making Check students’ understanding of robot decision making Assign students to describe how robots make decisions

Introduction to Sensors What sensor would I use as an emergency stop? What sensor would I use to sort red and blue balls? What sensor would I use move a specific distance? What sensor is used to measure the distance from an object? What sensor would I use as an emergency stop? Bumper Switch What sensor would I use to sort red and blue balls? Color Sensor What sensor would I use move a specific distance? Smart Motor What sensor is used to measure the distance from an object? Distance Sensor

What Sensor/s Do I Use? Smart Motor Bumper Switch Distance Sensor Gyro Sensor Color Sensor Bumper Switch or Distance Sensor Gyro Sensor or Smart Motor Smart Motor Color Sensor Color Sensor plus a Smart Motor

What Sensor/s Do I Use? Smart Motor Bumper Switch Distance Sensor Gyro Sensor Color Sensor 6. Color Sensor plus a Distance Sensor 7. Distance Sensor plus either a Smart Motor or a Gyro Sensor 8. Color Sensor and a Distance Sensor 9. Color Sensor and Smart Motor 10. Smart Motor and a Gyro Sensor

Common Relational Operators equal to not equal to greater than less than greater than or equal to less than or equal to == != >  <  >= <= What do relational operators do? Relational operators compare the two values and the result is either TRUE or FALSE.

Decision Making and Cutoff Values What is a cutoff value? 68° A cutoff value is a predetermined value where a decision is made. If it’s over 68° I like to wear shorts! Can you think of other examples where cutoff values are used? Other examples include: Amusement parks – You have to be a certain height to ride a rollercoaster. Height is the cutoff value. Speed Limits – Roads have speed limits. Speed is the cutoff value. When ice melts – 32 degrees Fahrenheit or 0 degrees Celsius Banks – If you have a certain amount of money in your bank account some banks reduce specific fees. Amount of money is the cutoff value. Can you think of other examples where cutoff values are used?

How do Robots Make Decisions? Robots make decisions by comparing values and deciding if they are true or false What is being compared here? What is the relational operator? What is the cutoff value? When would the robot react to this statement? What is being compared here? The value of the right motor encoder and the number 25 What is the relational operator? < less than or equal to What is the cutoff value? 25 When would the robot react to this command? When the sensor value of the right motor encoder is greater than or equal to 25

How do Robots Make Decisions? Robots make decisions by comparing values and deciding if they are true or false Using the answers to the questions below can we rewrite the statement in RED to make it more accurate? What is being compared here? What is the relational operator? What is the cutoff value? When would the robot act on this statement? Something like: Robots make decisions by comparing a sensor value to a cutoff value using relational operators and determining if that condition is true or false

Conditional Statements Conditional statements compare a sensor’s actual sensor reading to a cutoff value using a relational operator. What value is the actual sensor reading? What value is the cutoff value? What is the relational operator? When will this robot react to this statement? What value is the actual sensor reading? getMororEncoder (rightMotor) What value is the cutoff value? 25 What is the relational operator? >= greater than or equal to When will this robot react to this statement? When the right motor encoder reads a value greater than or equal to 25

TRUE or FALSE Cutoff Values A cutoff value is the second part of the Boolean expression. In the example 1 on the slide the cutoff values is >=25 (greater than or equal to 25) therefore any value greater than or equal to 25 would make that statement TRUE. ANSWERS TRUE FALSE

What Value/s Make the Condition TRUE? Sketch the number lines on a piece of paper to identify what values are TRUE

Your Job Describe how robots make decisions. In your description: Describe what a Boolean expression is, What relational operators are, What sensors are, And, what a cutoff value is. Provide at least one example of a how a robot used feedback from sensors to complete a multi-step task. Use the Robot Decision Making Self-Assessment Guide to evaluate your work.

Robot Decision Making Self Assessment Guide Read the project requirements on the left side and then rate how well you met the project requirements by answering the questions using true, almost true, and not true. Project Requirements 2 1 Points Did you describe what a Boolean expression is? True Almost Not True   Did you describe what a relational operator is? Did you describe what a cutoff value is? Did you describe how sensors work? Did you provide at least one example of how a robot can use feedback from sensors to solve a multi-step problem Did your description use full sentences? Your description does not contain any spelling errors? Your description was well thought out and easy to read Add all of the points in points column to calculate total points 15-16 A 13-14 B 12-11 C 10 D