Preview

A Program for the Ultrasonic Range Finder

Good Essays
Open Document
Open Document
1244 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
A Program for the Ultrasonic Range Finder
The University of Adelaide

Assignment AMP1 – Ultrasonic range finder

Introduction

The aim for this assignment is to write a program for the ultrasonic range finder. It is similar to the sonar system, which emit a time-limited ultrasonic wave and receive the echo of the signal. The delay between transmission and reception of the
Signal can be used as a measure for the distance at which the object is found. The process shows below.

Overview

The microcontroller program needs to implement a ultrasonic range finder. First switch the transceiver to ‘transmitting’ by producing a high-level signal on the RX/TX control line, using port P3, and pin 0 for this. Then, a 1 ms lasting 39 kHz square-wave burst is to be generated on the data line of the module. Port P2 used for this signal. Following this, the transceiver is to be switched to ‘reception’ by pulling the RX/TX control line to low. A short delay of 1 ms should be implemented before the receiver is enabled To avoid confusion between potential transient oscillations. Upon detecting a reflected 39 kHz burst, the receiver produces a high-level on its output line. This low tohigh transition is the event which marks the end of the measurement; the microcontroller should now calculate the distance using equation. x=v T2

Where: v = the speed of wave in air which is 331.4m/s T = the total time flight of the wave packed between transmission and reception. X = the unknown distance to the object in the range from 30 cm to 4 m

Note that this program imposes a lower and an upper time limit for the echo measurement. These limits need to be considered.

Flow chart for the whole program

Start

Switch the transceiver from high to low

Start PWM to generate 39kHz signal

Start T3 to control the PWM lasing 1ms

After 1ms

Stop PWM

Start T3 for the 1ms delay

Start T4for the total time flight

After

You May Also Find These Documents Helpful

  • Good Essays

    Xc60 Unit 8 Project

    • 568 Words
    • 3 Pages

    By using the ultrasonic sensor thought the precaution is given to the driver in advance there is a distance limit. Ultrasonic sensor can only sense the obstacles only up to certain limit. The frequency above 20,000 hertz can be detected by the ultrasonic sensors. There is another limitation also that is, the sensor will detect any abject above its frequency range weather it is danger to the vehicle or not.…

    • 568 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 4 Study Guide

    • 4303 Words
    • 18 Pages

    5. How many AM stations can be accommodated in a 150-kHz bandwidth if the highest modulating frequency is 10 kHz?…

    • 4303 Words
    • 18 Pages
    Good Essays
  • Satisfactory Essays

    5.05 Review Questions

    • 510 Words
    • 2 Pages

    2. Why do you think it might be useful to know the distance between a gun fired and its target?…

    • 510 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    while obtaining focused history, performing physical exam, reviewing EKG, echo and unclear scans, I was also analyzing the data to…

    • 92 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Distance determination is the process of estimating distancing between shots. It can be done by looking at the patterns of powder, residue, and the shot pattern.…

    • 407 Words
    • 2 Pages
    Good Essays
  • Good Essays

    A distance determination is the process of estimating the distance between where a shot is fired and its target. This is often done by looking at the patterns of powder residue and the shot pattern. When a gun is shot, traces of gunpowder travel out of the barrel of the gun with the bullet in the direction that the bullet is traveling in. If the end of the gun or muzzle is close to the target, some of this gunpowder residue will be transferred to the target. The pattern or distribution of the residue helps forensic scientists estimate the distance of the gun from the target.…

    • 704 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Physics Mastery Lab

    • 836 Words
    • 4 Pages

    The purpose of this experiment is to measure the speed of sound in air and to determine the effects of frequency on the speed of sound.…

    • 836 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    CS159 HW1

    • 319 Words
    • 2 Pages

    DO NOT use any material found outside of the first THREE chapters of the C text.…

    • 319 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Assignment 1

    • 1774 Words
    • 19 Pages

    b. Discuss considerations in equipment selection including explaining the principles of different transducers and image optimisation including focusing methods and how spatial resolution is maximised in ultrasound…

    • 1774 Words
    • 19 Pages
    Powerful Essays
  • Good Essays

    Interpreting Seismograms

    • 732 Words
    • 3 Pages

    You now know the difference between the arrival of the first P wave and the first S wave for each seismic station. Because the waves travel at a known speed, this interval can be converted to distance using the graph below.…

    • 732 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Optical Flash Essay

    • 102 Words
    • 1 Page

    There are three main attributes that characterize gunfire facilitating the detection and location of gunfire. An optical flash, which occurs when an explosive charge is ignited to propel a projectile from the chamber of the weapon, a muzzle blast, and a shock wave which occurs as a projectile moves through the air at supersonic speeds (Maher 2007). The combination of a muzzle blast and a shockwave provides additional information that can be used along with the physics of acoustics and sound propagation to determine the range of a discharge to the sensor, especially if the round or type of projectile is known.…

    • 102 Words
    • 1 Page
    Good Essays
  • Satisfactory Essays

    Par Inc

    • 475 Words
    • 2 Pages

    Using the formula, the interval estimation was calculated. Therefore, with confidence at 95% the differences between the mean distances are in between -1.385740214 and 6.935740214 yard.…

    • 475 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    9.3 Determine the distance to an earthquake at a station that receives P and S waves 5.0 minutes apart. Hint: (a) Place tick marks on a scrap of paper equal to 5.0 on the minute’s axis. (b) Fit that to the horizontal separation between P and S curves. (c) Read distance directly across on the distance axis.…

    • 889 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Can You Find Me

    • 387 Words
    • 2 Pages

    Surveyors often use triangulation to measure distance. Starting at a known location and elevation, surveyors measure a length to create a base line and then use a theodolite to measure an angle to an unknown pint from each side of the base line (Jains, 2012, pp. 30-48). The length of the base line and the two known angles allow a computer or person to determine the location of a third point.…

    • 387 Words
    • 2 Pages
    Good Essays
  • Good Essays

    Ib Biology Design Ia

    • 669 Words
    • 3 Pages

    Distance (50m) will be measured in meters using a tape measure and will be kept the same throughout the experiment because the same 50m stretch will be used throughout the whole experiment…

    • 669 Words
    • 3 Pages
    Good Essays

Related Topics