Ultrasonic Distance Sensor

Slides:



Advertisements
Similar presentations
You WANT me to make a paper airplane??? A lesson in calculating the speed of an object.
Advertisements

ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Velocity-time graph’s
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
 Some animals such as bats, use ultrasound waves to detect obstacles and objects around them.  Ultrasounds are reflected of surfaces or objects and.
1 Introduction to Coding. 2 Example Codes A lot of example codes are given with Arduino IDE A code can often be based on a previous example rather than.
Analog and Digital Measurements living with the lab 14 digital input / output pins 6 analog input pins © 2011 LWTL faculty team.
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.
+ Proximity Sensors Tahani Almanie | Physical Computing.
Embedded Programming and Robotics Lesson 10 Ultrasonic Range Finder Range Finder1.
Sensors Material taken from Robotics with the Boe-Bot.
Human Sensing Beam Low resolution image and Sound Image 8 x 8 pixels Sound: 8 notes in an octave (13) GFU&feature=relmfu.
Program ultrasonic range sensor in autonomous mode
PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Echolocation II Sonar Radar Who launches first? Sonar “Ping” Who finds the other first? SONAR in ships works like echolocation in whales and bats. The.
Do Now: What is the speed of an object that is standing still? Objective: to define and calculate speed.
Kristina Makarova Yoko Ishioka Burt Carter Carlos Rios team.
Sensing Today: Using Sensors Monday: Quiz on Controls and Sensing Rat Robots Scientists Develop Remote-Controlled Rats "The animal is not only doing something.
Ultrasound L.O.: How can ultrasound be used to make images of unborn babies? What advantages does ultrasound imaging have over x-rays? How can ultrasound.
Mid-Year Assessment Review: Word Problem Practice with Calculators.
Using Hobby Servos with the Arduino living with the lab © 2012 David Hall.
Material taken from Robotics with the Boe-Bot
Chapter 19 Vibrations & Waves
Distance & Motion Problems d=rt formula distance chart Copyright © 2013 by Lynda Aguirre1.
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.
BEER BOT Dalton Verhagen. Sound Sensor Designed to find the direction a specified sound source is coming from Determines this with a time of arrival algorithm.
Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Sensors I Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic.
Distance, Speed, and Time Kuba Sokolowski. D ST X To find DISTANCE, cover up the D.
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.
IR Object Detection living with the lab IR light from LED IR light reflected off object IR LED IR receiver Infrared (IR) light leaving an LED reflects.
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.
breadboard LED Resistor Potentiometer Circuit.
Speed How many measurements for speed can you think of?
Programming Concepts (Part B) ENGR 10 Introduction to Engineering
NXT Mindstorms Kit Programming
Controlling Servos with the Arduino
Assist. Prof. Rassim Suliyev - SDU 2017
1. If you travel at 10mph for 1 hour, how far do you travel?
An Arduino Workshop A Microcontroller.
Sensors with Arduino A Microcontroller.
Speed and Velocity.
Programming – Using a Range Finder
INC 161 , CPE 100 Computer Programming
Arduino Uno and sensors
How an Ultrasonic Range Finder works
Vex Ultrasonic Sensor (US) Interfacing and Programming
LEGO Robotics Ultrasonic Sensor
How Does an Ultrasonic Sensor Work?
ARDUINO     What is an Arduino? Features 14 Digital I/O pins 6 Analogue inputs 6 PWM pins USB serial 16MHz Clock speed 32KB Flash memory 2KB SRAM.
Maxbotix Ultrasonic Distance Sensor
Ultrasonic Distance Sensor
Programming – Using a Range Finder
Obstacle Detection Ultrasonic Sensor.
using the Arduino to make LEDs flash
Welcome to Digital Electronics using the Arduino Board
IR Object Detection IR detector IR LED IR light reflected off object
Arduino Part 4 Let there be more light.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
An object travels 40 miles in 2 hrs. Calculate its speed?
Speed Formula Quarter 4.
Basic Robotic Programming
Arduino程式範例.
Sound Waves and Ultrasound
Ultrasonic Distance Sensor
Presentation transcript:

Ultrasonic Distance Sensor

How it Works The sensor emits short bursts of sound, and listens for the echo off nearby objects By measuring the time of flight, distance can be computed

When it doesn’t work When waves are not reflected back towards the sensor

Specifications An ultrasonic sensor comes with a chart indicating how far and wide its waves will travel They are not laser beams, and objects not directly in front can still reflect waves back For this sensor the waves travel ±20° And up to 7.5 feet

Wiring An ultrasonic sensor contains 2 sensors, a speaker and a microphone The speaker is an OUTPUT The microphone is an INPUT There are also connections for 5v and GND

Distance = Speed x Time Example Miles = MPH x Hours Computing Distance The sensor will give us the time for the round trip Multiplying the time by the speed of sound, and divide by 2 to calculate for one way The speed of sound is 761 MPH, or 1/74 inches per microsecond

Code void setup() { Serial.begin(9600); pinMode(12, OUTPUT); pinMode(11, INPUT); } void loop() { long duration, inches; digitalWrite(12, LOW); delayMicroseconds(2); digitalWrite(12, HIGH); delayMicroseconds(5); digitalWrite(12, LOW); duration = pulseIn(11, HIGH); inches = duration / 74 / 2; Serial.print(inches); Serial.println("in "); } By setting pin 12 to HIGH, the speaker sends a 40kHz (ultrasonic) burst of sound out its “speaker” The sound burst reflects off something and returns to the microphone; the microphone then sets INPUT pin 11 to HIGH. The pulseIn command measures the time of flight (the time it took the wave to travel back to the microphone and turn pin 11 HIGH). Multiplying TIME x SPEED (1/74) and dividing by 2 gives us the distance traveled

Complete the Ultrasonic Distance Sensor LAB Complete the Ultrasonic Distance Sensor Lab in Unit 11