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.

Slides:



Advertisements
Similar presentations
Khaled A. Al-Utaibi Interfacing an LED The Light Emitting Diode (LED) Applications DC Characteristics & Operation Interfacing to.
Advertisements

ARDUINO CLUB What we’re really doing. BASICS The setup() and loop() functions.
Using the Arduino to Make an LED Flash Work in teams of two! living with the lab digital I/O pins (I/O = input / output) USB cable plug power pins.
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.
Basic Circuits – Lab 2 Arduino and Sensors Xmedia Spring 2011.
+ Proximity Sensors Tahani Almanie | Physical Computing.
Embedded Programming and Robotics Lesson 10 Ultrasonic Range Finder Range Finder1.
ARDUINO PROGRAMMING Working with the Arduino microcontroller.
Sensors Material taken from Robotics with the Boe-Bot.
Program ultrasonic range sensor in autonomous mode
Traffic Monitoring System using Acoustic Sensors Yuping Dong May 14, 2008.
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.
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.
Using Hobby Servos with the Arduino living with the lab © 2012 David Hall.
Material taken from Robotics with the Boe-Bot
ARDUINO 1. Basics  Comments  /* * Blink * * The basic Arduino example. Turns on an LED on for one second, * then off for one second, and so on... We.
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.
Arduino libraries Datatekniker Udvidet hardware/software.
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.
AAPT workshop W03 July 26, 2014 Saint Cloud State University, MN, USA
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.
Programming in Arduino Materials:Arduino Board Casperelectronics Pre Pres. Notes Photos from workshop?
Istituto Tecnico Industriale A.Monaco EURLAB Object Detection Object Detection by Ultrasonic How to install and program a ultra sonic sensor with Arduino.
Arduino + Bluetooth TYWu. Connection Arduino + Bluetooth Module.
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.
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.
What is Arduino? It's an open source electronics prototyping platform: Open source: resources that can be used, redistributed or rewritten free of charge,
NXT Mindstorms Kit Programming
Using Arduino and Cheap Ultrasonic Transducer for Robotics
Controlling Servos with the Arduino
Assist. Prof. Rassim Suliyev - SDU 2017
An Arduino Workshop A Microcontroller.
Sensors with Arduino A Microcontroller.
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
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
Schedule 8:00-11:00 Workshop: Arduino Fundamentals
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
The George Washington University Electrical & Computer Engineering Department ECE 1020 Dr. S. Ahmadi Lab 1.
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino Uno circuit basics
Obstacle Detection.
Arduino程式範例.
Sound Waves and Ultrasound
Ultrasonic Distance Sensor
Presentation transcript:

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 The sensor measures the time of flight of the sound burst. A user then computes the distance to an object using this time of flight

3 When it won’t work When the sound waves are not reflected back towards the sensor

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

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

6 6 The sensor will give us the time it took the ultrasonic wave to make the round trip Multiplying the time by the speed of the wave gives us the distance it traveled. We divide by 2 to calculate for one way The speed of sound is 761 MPH, or 1/74 inches per microsecond Computing Distance

7 7 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 "); } The Arduino triggers the sensor by sending a 5ms pulse to the speaker through pin 12, which is configured as an Arduino OUTPUT. When the speaker receives the 5ms pulse from the Arduino, it sends a 40kHz (ultrasonic) burst of sound out its “speaker” by setting pin 12 to HIGH. The sensor then waits for the sound burst to reflect off of something and return to the microphone where it is detected; the microphone then sets pin 11 to HIGH. The Arduino uses the pulseIn command to measure the time of flight of the sound wave in microseconds (the time it takes the wave to travel back to the microphone and turn pin 11 HIGH). Code