Programming – Using a Range Finder

Slides:



Advertisements
Similar presentations
Each team has their own: a.Laptop computer b.LEGO NXT robot c.USB cable d.Light paper on the table to test the robot Sit Down in Teams of 2.
Advertisements

Follow The Guidelines Introductory Presentation. Opening Activity Make a prediction about how light sensors will use thresholds. Keep in mind: We used.
Sensing the World Intro to Robots.
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.
 Some animals such as bats, use ultrasound waves to detect obstacles and objects around them.  Ultrasounds are reflected of surfaces or objects and.
1 Ultrasonic Distance Sensor. 2 How it Works The distance sensor emits short bursts of sound and listens for this sound to echo off of nearby objects.
Embedded Programming and Robotics Lesson 10 Ultrasonic Range Finder Range Finder1.
Testbed: Exercises.
Sensors Material taken from Robotics with the Boe-Bot.
Program ultrasonic range sensor in autonomous mode
Unit 5 – “Watch Out!”. Introduction New Topics Case Structures New Functions Less? Comparison Function Ultrasonic Sensor.
ROBOTC for VEX On-Site Professional Development
LabVIEW Basics Review LabVIEW Robotics Fundamentals.
Application of Data Programming Blocks. Objectives  Understand the use of data programming blocks and their applications  Understand the basic logic.
Obstacle Detection Introductory Presentation. Opening Activity If you were blindfolded, what senses would you use to find things in the room?
Autonomy using Encoders Intro to Robotics. Autonomy/Encoders Forward for Distance In this unit, you will learn to use the encoders to control the distance.
Material taken from Robotics with the Boe-Bot
Sentry System Multiple Sensors
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.
ROBOTC Software EV3 Robot Workshop
ROBOTC Software EV3 Robot Workshop Lawrence Technological University.
VEX and Robot C Chris Patterson Frisco ISD CTE Center Presented by.
Obstacle Detection. In the previous program the robot moves forward and then checks for something in the way. As we observed it only checks for things.
Forward Until Near Stop when near a wall.
ROBOTC for VEX Online Professional Development. Homework Questions Thoughts? Questions?
Project Overview  Introduction  Clawbot Build  Design Modification  Design Development  Programming  Sensors  Advanced Sensors  Open design challenges.
Robotics Programming Wall Follow Line tracking for a set amount of time Line tracking for a distance.
Sensor Information: while loops and Boolean Logic.
ROBOTC for CORTEX Teacher Training © 2011 Project Lead The Way, Inc. Automation and Robotics VEX.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
ROBOTC for VEX Online Professional Development
ROBOTC for VEX On-Site Professional Development
Mark Tate Mechanical Engineer 4/18/2013 TESLA
Follow The Guidelines.
Ultrasonic Distance Sensor
Project Overview Introduction Clawbot Build Design Modification
Arduino Uno and sensors
How an Ultrasonic Range Finder works
Sensors For Robotics Robotics Academy All Rights Reserved.
Vex Ultrasonic Sensor (US) Interfacing and Programming
LEGO Robotics Ultrasonic Sensor
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
How Does an Ultrasonic Sensor Work?
Autonomy using Encoders
Programming – Touch Sensors
Programming – Using a Range Finder
Introductory Presentation
Humans and Other Animals
Introductory Presentation
Obstacle Detection Ultrasonic Sensor.
Introductory Presentation
Follow The Guidelines Light Sensor
Introductory Presentation
Introductory Presentation
The George Washington University Electrical & Computer Engineering Department ECE 1020 Dr. S. Ahmadi Lab 1.
Programming - Buttons Intro to Robotics.
RobotC While loop When and how to use the while loop
if-else Structures Principles of Engineering
Programming - Buttons Intro to Robotics.
Robotics Programming Using Shaft Encoders
Introductory Presentation
Obstacle Detection.
Obstacle Detection.
Humans and Other Animals
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
Intro to Robotics It’s YOUR FUTURE.
Lego MINDSTORMS EV3.
Basic Robotic Programming
Ultrasonic Distance Sensor
Presentation transcript:

Programming – Using a Range Finder Intro to Robotics

Ultrasonic Rangefinder The Ultrasonic Rangefinder measures distances using sound. It sends out a pulse of sound, then waits to hear the sound’s echo off of a solid object in the environment. By measuring how long it takes for the sound to bounce back, the sensor can calculate the distance that the sound must have traveled, and hence, how far away the object was that reflected it back.

Ultrasonic Rangefinder The Ultrasonic Rangefinder will work in a very similar way to the Encoder program you wrote in the previous section, but instead of measuring the distance that the wheel has turned, it will use the Ultrasonic Rangefinder to measure the distance to the nearest object in front of the arm. Add an Ultrasonic Rangefinder to the front of the robot’s arm. The design shown below will be used as the reference for the remainder of the unit.

Create a New Program

Range Finder Setup

Range Finder Setup

Range Finder Code

Modifying the WHILE loop

Test the code

Setup the encoders

Save your program as SONAR CODE Save your program as SONAR CODE. COPY and PASTE your Movestraight () function and place it at the beginning of your code. Save.

Cut-off Values

Thresholds

Thresholds The threshold sets the point at which the robot’s behavior will change, because it marks the point at which the (condition) in the while loop (or if-statement) will change from true to false, or false to true, and thus change which lines of code will run. The robot is now set and ready to run for any object the Ultrasonic Rangefinder might see… but what happens when it doesn’t see anything at all?

Using the Debugger

Using the Debugger

Using the Debugger

Testing the sonar reading

Using the program

Using the program