Ultrasound Sensor
Upcoming SlideShare
Loading in...5
×

Like this? Share it with your network

Share
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Be the first to comment
    Be the first to like this
No Downloads

Views

Total Views
1,645
On Slideshare
1,643
From Embeds
2
Number of Embeds
1

Actions

Shares
Downloads
18
Comments
0
Likes
0

Embeds 2

http://www.slideshare.net 2

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
    • Works like radar or sonar, but with ultrasound waves
    • Evaluates the distance of an object/target by generating ultrasound waves and interpreting the echoes
    Ultrasound is sound pressure with a greater frequency (greather than ~20kHz) than the threshold of human hearing
  • 3. Applications
    • Monitoring fetuses
    • Burglar alarms
  • 4. MaxBotix LV-MaxSonar ® - EZ1 GND +5 ANALOG SIGNAL
    • Specs:
    • 2.5-5.5V power supply
    • Reads up to every 50ms
  • 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
    • // This program prints the distance of a target object
    • // from an ultrasonic sensor
    • int ultra = 0; // select the input pin for the sensor
    • int val = 0; // variable to store the value coming from the sensor
    • void setup() {
    • Serial.begin(9600);
    • }
    • void loop() {
    • val = analogRead(ultra); // read the value from the sensor
    • long inch;
    • inch = val/2; // converts value to inches
    • Serial.print(inch);
    • Serial.print("inch");
    • Serial.println();
    • }
  • 7. Smoothing/Calibration
    • 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
    • http://a.parsons.edu/~leek603/UltrarangeCalibration.pde
  • 8. Sensor Read Playing Noise
    • http://a.parsons.edu/~leek603/UltraSpeaker.pde
  • 9. Where to buy
    • Sparkfun (expensive: $24.95-$29.95)
    • Digikey (annoying but cheap: $8.95-$16.32)