Your SlideShare is downloading. ×
0
Ultrasound Sensor
Ultrasound Sensor
Ultrasound Sensor
Ultrasound Sensor
Ultrasound Sensor
Ultrasound Sensor
Ultrasound Sensor
Ultrasound Sensor
Ultrasound Sensor
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Ultrasound Sensor

1,103

Published on

Published in: Technology, Business
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,103
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
24
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Ultrasonic Rangefinder calibration | smoothing
  • 2. About Ultrasonic Sensors <ul><li>Works like radar or sonar, but with ultrasound waves </li></ul><ul><li>Evaluates the distance of an object/target by generating ultrasound waves and interpreting the echoes </li></ul>Ultrasound is sound pressure with a greater frequency (greather than ~20kHz) than the threshold of human hearing
  • 3. Applications <ul><li>Monitoring fetuses </li></ul><ul><li>Burglar alarms </li></ul>
  • 4. MaxBotix LV-MaxSonar ® - EZ1 GND +5 ANALOG SIGNAL <ul><li>Specs: </li></ul><ul><li>2.5-5.5V power supply </li></ul><ul><li>Reads up to every 50ms </li></ul>
  • 5. Detection Patterns Beam Characteristics: (A) 0.25-inch diameter dowel (B) 1-inch diameter dowel (C) 3.25-inch diameter rod (D) 11-inch wide board moved left to right
  • 6. Distance from the Sensor <ul><li>// This program prints the distance of a target object </li></ul><ul><li>// from an ultrasonic sensor </li></ul><ul><li>int ultra = 0; // select the input pin for the sensor </li></ul><ul><li>int val = 0; // variable to store the value coming from the sensor </li></ul><ul><li>void setup() { </li></ul><ul><li>Serial.begin(9600); </li></ul><ul><li>} </li></ul><ul><li>void loop() { </li></ul><ul><li>val = analogRead(ultra); // read the value from the sensor </li></ul><ul><li>long inch; </li></ul><ul><li>inch = val/2; // converts value to inches </li></ul><ul><li>Serial.print(inch); </li></ul><ul><li>Serial.print(&amp;quot;inch&amp;quot;); </li></ul><ul><li>Serial.println(); </li></ul><ul><li>} </li></ul>
  • 7. Smoothing/Calibration <ul><li>Smoothing is a process by which an analog input is read repeatedly, dumped into an array, and a running average is calculated and printed to the computer </li></ul><ul><li>http://a.parsons.edu/~leek603/UltrarangeCalibration.pde </li></ul>
  • 8. Sensor Read Playing Noise <ul><li>http://a.parsons.edu/~leek603/UltraSpeaker.pde </li></ul>
  • 9. Where to buy <ul><li>Sparkfun (expensive: $24.95-$29.95) </li></ul><ul><li>Digikey (annoying but cheap: $8.95-$16.32) </li></ul>

×