Embedded Programming and Robotics Lesson 10 Ultrasonic Range Finder Range Finder1.

Slides:



Advertisements
Similar presentations
The George Washington University Electrical & Computer Engineering Department ECE 002 Dr. S. Ahmadi Lab 1.
Advertisements

Introduction to Sensor Technology Week Three Adam Taylor
Radar and Sonar! Eric Gill Jessica Webb Lee Jin Tai Ryanne George Sydney Aiello.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Embedded Programming and Robotics Lesson 8 Light Sensors and Temperature/Humidity Light Sensors1.
Basics of Sensors. A sensor is a device which is used to sense the surroundings of it & gives some useful information about it. This information is used.
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.
Sensors Material taken from Robotics with the Boe-Bot.
Program ultrasonic range sensor in autonomous mode
Programming Concepts Part B Ping Hsu. Functions A function is a way to organize the program so that: – frequently used sets of instructions or – a set.
Programming 101 The Common Palette Content provided by Connor Statham (6 th Grade Student) Formatting by Shannon Sieber.
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Capacitor Connection in to LED socket Connection to 5v and ground Connection to light sensor pin.
Programming Concepts (Part B) ENGR 10 Introduction to Engineering 1 Hsu/Youssefi.
Wait Program! WAIT please!. 1. Why is it often better to use conditional commands rather than program a robot to move exact distances? 2. What is the.
LabVIEW Basics Review LabVIEW Robotics Fundamentals.
VEX Robotics Design System Sensors A Brief Overview
Obstacle Detection Introductory Presentation. Opening Activity If you were blindfolded, what senses would you use to find things in the room?
Material taken from Robotics with the Boe-Bot
Servos The material presented is taken from a variety of sources including:
Clap On, Clap Off Introductory Presentation. Opening Activity What is a sensor? Can you give examples? ?
PHY 235 Robotics Workshop Day 5 Distance Sensing Using The Ultrasonic Ping Sensor.
TechKnowTone Contents: Sensor Features Sensor Connections Sample Sketch Questions …Sensor Features… Arduino Coding – Distance Sensors.
Embedded Programming and Robotics Lesson 11 Arduino Interrupts 1.
Robot Project by Ahmad Shtaiyat Supervised by Dr. Salem Al-Agtash.
INTERNET OF EVERYTHING SDU 2016 Week 6. Getting Input from Sensors  Sensors give report on the world around it  Sensors convert physical input an electrical.
The Reflection of Sound Waves the reflection of sound is a common occurrence as in water waves, sound waves reflect at the same angle in which they were.
Wall-Follower Xiaodong Fang University of Florida School of Electrical and Computer Engineering Automatic Wall Following & Color Detecting Robot.
Displacement and Distance Aren’t the same thing?.
Istituto Tecnico Industriale A.Monaco EURLAB Object Detection Object Detection by Ultrasonic How to install and program a ultra sonic sensor with Arduino.
Istituto Tecnico Industriale A.Monaco EURLAB Object Detection Object Detection by Ultrasonic How to install and program a ultra sonic sensor with Arduino.
Forward Until Near Stop when near a wall.
Ultrasonic Sensor TYWu.
ROBOTC for VEX Online Professional Development. Homework Questions Thoughts? Questions?
Robotics Programming Wall Follow Line tracking for a set amount of time Line tracking for a distance.
Outline Sensors Embedded and real-time operating systems FreeRTOS
Using Arduino and Cheap Ultrasonic Transducer for Robotics
Assist. Prof. Rassim Suliyev - SDU 2017
Arduino Alarm System Guanglong Hu GeoSc 597 Final Project
Sensors with Arduino A Microcontroller.
ROBOTC for VEX Online Professional Development
ROBOTC for VEX On-Site Professional Development
Using tools and the ‘Wait’ Block
Ultrasonic Distance Sensor
UltraSonic Sensor VCC is the pin that powers the device, connect to 5V. Trigger is the pin that sends out the burst. Echo is the pin that outputs when.
Programming – Using a Range Finder
Arduino motor control using servo & ultrasonic sensor
This is the Lego NXT ->
ROBOTC for VEX Online Professional Development
Chapter E –Transistors and H-Bridges
Arduino Uno and sensors
Vex Ultrasonic Sensor (US) Interfacing and Programming
LEGO Robotics Ultrasonic Sensor
Maxbotix Ultrasonic Distance Sensor
Ultrasonic Distance Sensor
Programming – Using a Range Finder
Introductory Presentation
Introductory Presentation
Obstacle Detection Ultrasonic Sensor.
Introductory Presentation
Loops with Multiple Sensor Controls
The George Washington University Electrical & Computer Engineering Department ECE 1020 Dr. S. Ahmadi Lab 1.
Unit 11 Lesson 1 What Is Motion?
Introductory Presentation
Unit 11 Lesson 1 What Is Motion?
frclabviewtutorials.com/workshop
How Does an Ultrasonic Sensor Work?
Obstacle Detection.
Sound Waves and Ultrasound
Ultrasonic Distance Sensor
Presentation transcript:

Embedded Programming and Robotics Lesson 10 Ultrasonic Range Finder Range Finder1

The Range Finder This analog sensor operates at short distances, giving you distance from an object It sends out a pulse of high-frequency sound, then measures the time it takes to come back, much as bats do The minimum range is about 2 CM, and the maximum is about 2 meters Range Finder2

The Range Finder Pins: V cc and ground Trig causes the rangefinder to send out a sound Reading Echo gives you the time it took for the sound to return, and thus distance Range Finder3

The Range Finder Define the two pins used by the device: const int TRIGPIN = 7; const int ECHOPIN = 8; Range Finder4

The Range Finder Getting the distance: long duration, distance; digitalWrite(TRIGPIN, LOW); delayMicroseconds(2); digitalWrite(TRIGPIN, HIGH); delayMicroseconds(10); digitalWrite(TRIGPIN, LOW); duration = pulseIn(ECHOPIN, HIGH); distance = (duration/2) / 29.1; Range Finder5

The pulseIn Function pulseIn(pin, value) pulseIn(pin, value, timeout) Reads a pulse (either HIGH or LOW) on a pin For example, if value is HIGH, pulseIn() waits for the pin to go HIGH, starts timing, then waits for the pin to go LOW and stops timing. Returns the length of the pulse in microseconds. Gives up and returns 0 if no pulse starts within a specified timeout. Range Finder6

“Follow-Me” Program Write a program that will follow you at a distance of about a meter If the robot gets closer than that, it should slow down If it gets further than that, it should speed up It should get no closer than 20 CM. Stop if it is closer and wait. You can make it slowly turn until it finds something to follow This program is not directional, since the sensor can only tell distance Range Finder7