Obstacle Detection.

Slides:



Advertisements
Similar presentations
EducateNXT The Corridor Challenge The Corridor Challenge requires programming of a robot to negotiate obstacles and the corridor walls in order to reach.
Advertisements

Forward Until Dark. NXT Light Sensors How does the Light Sensor detect brightness? The Light Sensor shines a red light on the surface below it and reports.
© 2006 Carnegie Mellon Robotics Academy Designed for use with the LEGO MINDSTORMS ® Education NXT Software and Base Set #9797 Guard Robot Project.
LEGO Mindstorms NXT Programming We will be using the Common Palette for our Robots This is how you download your program onto the brick Drag and drop a.
Introduction to LEGO NXT 6 hour course. Introductions You Your Expectations.
Program ultrasonic range sensor in autonomous mode
GIRLS Robotic Camp. Let’s Begin Meet and Greet – Camp leaders introduce themselves – Students introduce themselves.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
Unit 5 – “Watch Out!”. Introduction New Topics Case Structures New Functions Less? Comparison Function Ultrasonic Sensor.
LabVIEW Basics Review LabVIEW Robotics Fundamentals.
Today’s Agenda 1.Scribbler Program Assignment 1.Project idea due next class 2.Program demonstration due Wednesday, June 3 2.Attendance & lab pair groupings.
7.2 V battery pack and charger Put the battery in the charger station at the end of the lab. period. Red light indicates charging. Ken Youssefi Introduction.
Obstacle Detection Introductory Presentation. Opening Activity If you were blindfolded, what senses would you use to find things in the room?
Real-Time Data through Data Hubs. Begin by adding a basic Move block, 5 rotations 75% power.
Negative Power or Negative Rotation makes robot go backwards. But if both are negative, the robot will go forward! Move Steering Block.
Sentry System Multiple Sensors
3 | Touch sensors Created by H. Robinson & A. Gostelow TOUCH SENSORS.
Forward Until Sound Program
Clap On, Clap Off Introductory Presentation. Opening Activity What is a sensor? Can you give examples? ?
Find the Mindstorms Icon on the computer.. To start a new program click go.
Programming 101 The Common Palette Content provided by Connor Statham (9 th Grade Student) Formatting by Shannon Sieber.
1 ©2006 INSciTE Common Blocks. 2 ©2006 INSciTE Common Blocks Common blocks are full featured actions Like English statements Move Wait for an action Display.
IMDL Presentation by Li. Park Ranger Subtitle Park Ranger Block Diagram Mega 2560 Arduino Tmp Sensor Humidity Sensor XBEE LCD Buzzer LaptopGUI Motor.
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.
Vex Robotics program three: using motors and sensors together.
Casne.ncl.ac.uk Taking care of the CrumbleBot Please do NOT stress the robot's motors 1.Do NOT push the robot 2.Do NOT hold the.
Lego Mindstorm Robots 9797 kit.  Students will learn how to identify how to detect a change in a condition.  Students will learn where and how to identify.
Forward Until Near Stop when near a wall.
The Corridor Challenge
Introductory Presentation
VEX IQ Curriculum Smart Machines Lesson 09 Lesson Materials:
Introductory Presentation
Introductory Presentation
By Sanjay and Arvind Seshan
Using tools and the ‘Wait’ Block
Programming – Using a Range Finder
Introduction To Programming with LEGO NXT 2
Programming Part 2 Mod Kit
IMDL Presentation by Li Yang.
BEGINNER PROGRAMMING LESSON
By Sanjay and Arvind Seshan
Loops and Switches Pre-Quiz
Programming – Using a Range Finder
Introductory Presentation
BEGINNER PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
Introductory Presentation
Obstacle Detection Ultrasonic Sensor.
Introductory Presentation
Introductory Presentation
Sensors and Logic Switches
Loops with Multiple Sensor Controls
Forward Until Touch Robot goes forward until it hits a wall.
Beginner Programming Lesson
Holyoke Codes LEGO ROBOTICS
Line Following Behavior
Switch Blocks check a value and choose a path based on that value
BEGINNER PROGRAMMING LESSON
Programming Fundamentals
Using the sensor Lesson 5.
Repeating Behaviors.
Line Following Behavior
BEGINNER PROGRAMMING LESSON
BEGINNER EV3 PROGRAMMING Lesson
Introductory Presentation
Using the sensor Lesson 5.
Obstacle Detection.
Intro to Robotics It’s YOUR FUTURE.
Lego MINDSTORMS EV3.
LEGO MINDSTORMS NXT PROGRAMMING
Presentation transcript:

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 after it moves forward not all the time.

The robot should move if nothing is in the way and stop if there is checking constantly for obstacles.

Obstacle Detection Program Using a Switch Block

How the Ultrasonic Switch Block Works

How the Ultrasonic Switch Block Works

How the Ultrasonic Switch Block Works The Sensor Value is greater than the switches compared value. The distance is above the threshold. The object is far from the robot.

How the Ultrasonic Switch Block Works The Sensor Value is less than the switches compared value. The distance is below the threshold. The object is near the robot.

Ultrasonic Sensor Block Details

Stop Motors Block Details

Move Forward Motor Block Details

Loop Block Details

Drag the Switch Block Into the Loop Block

Stop Motors After 4 Rotations

Test the robot to see if it keeps moving as long as nothing is in the way and stops if there is. Try placing the object in front of the robot at different times during the program to make sure the robot is checking constantly for obstacles.