PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and.

Slides:



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

Lab7: Introduction to Arduino
Panasonic EVE-KC2F2024B 24 pulses per revolution 6mm diameter flattened output shaft output type: quadrature (incremental) minimum life: 15,000 rotations.
Introduction to Sensor Technology Week Three Adam Taylor
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.
Living with the Lab Using Your Arduino, Breadboard and Multimeter EAS 199A Fall 2011 Work in teams of two!
Intro to Arduino with LilyPad Make a MakerSpace, Artisan’s Asylum Linz Craig, Chris Taylor, Mike Hord & Joel Bartlett.
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.
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.
PROGRAMMING WITH ARDUINO. Arduino An open-source hardware platform based on an Atmel AVR 8-bit microcontroller and a C++ based IDE Over boards.
+ 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.
Program ultrasonic range sensor in autonomous mode
Practical Electronics & Programming
Arduino. What is it? A open-source software suite and single-board microcontroller. Allows easy and affordable prototyping of microcontroller applications.
Khaled A. Al-Utaibi  The Push Button  Interfacing Push Buttons to Arduino  Programming Digital Inputs  Working with “Bouncy”
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi. Objectives 1. Control the rotation of standard servo motor  A standard servo motor is limited in its rotation.
Kristina Makarova Yoko Ishioka Burt Carter Carlos Rios team.
Sensors Material taken from Robotics with the Boe-Bot.
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.
RTLS. LOCATING / POSITIONING SYSTEMS A positioning system is a mechanism for determining the location of an object in space Interplanetary systems Global.
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.
Autumn, 2012C.-S. Shieh, EC, KUAS, Taiwan1 智慧電子應用設計導論 (1/3) Sensors I Chin-Shiuh Shieh ( 謝欽旭 ) Department of Electronic.
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.
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.
Infrared Proximity Sensors & Liquid Crystal Display Instructor Dr Matthew Khin Yi Kyaw.
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.
breadboard LED Resistor Potentiometer Circuit.
NXT Mindstorms Kit Programming
Using Arduino and Cheap Ultrasonic Transducer for Robotics
Controlling Servos with the Arduino
Using Arduinos to Teach Engineering Concepts
Assist. Prof. Rassim Suliyev - SDU 2017
Microcontroller basics
UTA010 : Engineering Design – II
Sensors with Arduino A Microcontroller.
Ultrasonic Distance Sensor
UCD ElecSoc Robotics Club 2017/2018
Arduino Part 1 Topics: Microcontrollers Programming Basics
INC 161 , CPE 100 Computer Programming
Chapter E –Transistors and H-Bridges
Arduino Uno and sensors
How an Ultrasonic Range Finder works
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
Arduino Week 2 Lab ECE 1020 Prof. Ahmadi.
using the Arduino to make LEDs flash
IR Object Detection IR detector IR LED IR light reflected off object
Sensors and actuators Sensors Resistive sensors
CTY SAR FCPS Shawn Lupoli, Elliot Tan
CTY SAR FCPS Shawn Lupoli, Elliot Tan
Arduino程式範例.
Sound Waves and Ultrasound
CTY SAR FCPS Alexander Velikanov
Ultrasonic Distance Sensor
Presentation transcript:

PING))) Ultrasonic Distance Sensor living with the lab ultrasonic pressure waves from PING))) speaker The PING))) sensor emits short bursts of sound and listens for this sound to echo off of nearby objects. The frequency of the sound is too high for humans to hear (it is ultrasonic). The PING))) sensor measures the time of flight of the sound burst. A user then computes the distance to an object using this time of flight and the speed of sound (1,126 ft/s). sound wave reflects off object and returns to PING))) “microphone”

living with the lab 2 Computing Distance

living with the lab 3 measurement range: 0.8 in to 120 inches supply voltage: 5V supply current: 30mA Specifications sensing distance (feet) as a function of angle

living with the lab 4 Connection to an Arduino

living with the lab 5 Arduino Sketch 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); // measure the time of flight of sound wave inches = duration / 74 / 2; // 1130 ft/s * 12in/ft * 1s/1,000,000us = 74 // factor of 2 since sound travels out and back Serial.print(inches); // display distance in inches Serial.print("in "); Serial.println(); } The Arduino triggers the PING))) by sending a 5ms pulse to the sensor through pin 12, which is configured as an Arduino OUTPUT. When the PING))) receives the 5ms pulse from the Arduino, it sends a 40kHz (ultrasonic) burst of sound out its “speaker” and sets pin 12 to HIGH. The PING))) then waits for the sound burst to reflect off of something and return to the “microphone” where it is detected; the PING))) then sets pin 12 to LOW. The Arduino uses the pulseIn command to measure the time of flight of the sound wave in microseconds (the time that pin 11, when configured as an input, is HIGH).

living with the lab 6 Example Application void setup() { pinMode(12, OUTPUT); pinMode(11, INPUT); int tone_freq; } void loop() { long duration, inches; digitalWrite(12, LOW); delayMicroseconds(2); digitalWrite(12, HIGH); delayMicroseconds(5); digitalWrite(12, LOW); duration = pulseIn(11, HIGH); // measure the time of flight of sound wave inches = duration / 74 / 2; // 1130 ft/s * 12in/ft * 1s/1,000,000us = 74 // factor of 2 since sound travels out and back tone_freq = inches*100; // a freq of 100*inches is good tone(8,tone_freq); // send a tone out of pin 8 } The picture shows how stiff wire (such as a coat hanger) can be used to mount the PING))) to an aluminum plate. An Arduino and breadboard are also mounted to the plate, and a piezospeaker is installed on the breadboard to allow the device to output an irritating noise whose frequency is proportional to the distance from the PING))) to a target.

living with the lab 7 Conclusion What are some objects the ultrasonic range sensor would NOT be appropriate to measure due to the nature of sound waves? _____________________________________________________________________________________________________ What are some benefits to using the LCD over using the “serial out” function and displaying the results on a computer screen? _____________________________________________________________________________________________________ How could the ultrasonic sensor be used in a machine that you already use every day? _____________________________________________________________________________________________________