Derive an equation that relates the distance d

Assignment Help Mechanical Engineering
Reference no: EM131090227

The objective of this problem is to design an underwater ultrasonic ranging system. The distance to the object, d, can vary from 1 to 100 m. The ultrasonic transducer will send a short 5-μs sound pulse into the water in the direction of interest. The sound wave will travel at 1500 m/s and reflect off the first object it runs into. The reflected wave will also travel at 1500 m/s back to the transducer. The reflected pulse is sensed by the same transducer. Your system will trigger the electronics (give a 5-μs digital pulse), measure the time of flight, then calculate the distance to the object. Using periodic interrupts, the software will issue a 5-μs pulse out PT1 once a second. Using interrupting input capture, the software will measure the time of flight, ?t. The input capture interrupt handler will calculate distance d as a decimal fixed-point value with units of 0.01 m and enter it into a FIFO queue. The main program will call the ritual, then get data out of the FIFO queue. The main program will call Alarm() if the distance is less than 15 m. You do not have to give the implementation of Alarm().You may use any of the FIFOs in Chapter 4 without showing its implementation. To solve this problem on other microcomputers, you may modify the hardware in Figure 6.26 to conform to the available ports. As shown in the figure the time of flight, ?t, is measured from the rise of PT1 (9S12 output) to the rise of PT0 (9S12 input).

Figure 6

1847_2cb4c7fe-557b-48f6-b12c-179c20d02a6a.png

a) Derive an equation that relates the distance d to the time of flight ?t.

b) Use this equation to calculate the minimum and maximum possible time of flight ?t.

c) Choose the TCNT rate that will satisfy the range and resolution requirements of this problem.

d) Give the ritual that initializes the interface, including PORTT timer channels 0 and 1. Don't worry about the other six timer channels.

e) Give the main program that first calls the ritual. The main program will empty the FIFO and call Alarm() if the distance drops below 15 m. Decide whether it is better to convert time (TCNT counts) to distance (decimal fixed point, 0.01m) here in the main program or in the interrupt handler.

f) Give the TC1handler() periodic interrupt handler that issues pulses of about 5-μs duration on PT1 every 1 sec. Good interrupt software has no backward jumps.

g) Give the TC0handler() interrupt handler that measures the time of flight and puts the result (either the count or the calculated distance) into the FIFO. Good interrupt software has no backward jumps. There may be additional sonic echoes, so only calculate the range of the first one and ignore the others.

Reference no: EM131090227

Questions Cloud

A dialogue on personal identity and immortality : 1. How does Gretchen criticize Sam's proposal (in the "First Night") that the same person is present on two different occasions just in case (or, exactly when) the same soul is present on those two occasions?
Implements a digital clock using an led or lcd display : The highest level is a main program that implements a digital clock using an LED or LCD display. Two, three, or four momentary switches will be used to control the operation of the digital clock.
Are certain techniques more appropriate for children : In what situations do you think neuroimaging would be useful? Are certain techniques more appropriate for children? What are the limits and cautions regarding various imaging techniques specifically related to children and adolescents? Provide exa..
Why do juveniles get involved with crime : After watching ABC Primetime: Juvenile Corrections, and reading the chapter, answer the following questions: Why do juveniles get involved with crime? What are some differences and challenges human services professionals may face when working with..
Derive an equation that relates the distance d : Derive an equation that relates the distance d to the time of flight ?t.
What would be the better measure for central tendency : What would you say would be the better measure for central tendency? (i.e., mean, median, or mode) and why? How variable are the data? How would you describe this data?
Should one base morality on self-interest : Take one of the theories of moral duty that we've been studying (Utilitarianism or Natural Law) and answer the central question of this course: How much time and energy should I spend on myself or others?
Write the ritual that configures an output compare on pt1 : Given this value of C, what is the pulse width at 110°F? Give the answer in both microseconds and E clock cycles.
Construct a powerpoint presentation discussing : Construct a PowerPoint Presentation discussing the proper way to create a job-application letter and resume.

Reviews

Write a Review

Mechanical Engineering Questions & Answers

  Package design

Package Design Brief: Assume you are the packaging engineer for a large consumer products company. In this company, the Packaging Design Briefs are initiated by the marketing group and forwarded to the Package Engineering group.

  Mechanical engineering questions

Define dynamic viscosity, Determine the centroid, Pressure due to the height of liquid, Advantage of changing the liquid, Calculate the total moment about the hinge of the seal gate.

  Automatic control

DOF system and Find the differential equation describing the system

  Write a paper on boyle''s law

Write a paper on Boyle's law and describe Compression and Combustion stroke . Also explain Charles's law and illustrate SI engine and CI engine.

  Verify the law for parallelogram of forces

To Verify the law for parallelogram of forces, law for triangle of forces and law of polygon of forces. These laws are very useful to calculate unknown forces in very short time.

  Discharge pressure of the compressor

What is the discharge revised discharge pressure of the compressor.

  The Case for Global Accounting Standards

The role of IFRS in both developing and developed capital markets.

  Wind turbine

Wind turbines are becoming more and more common as a method of energy production, wind turbines by their very nature are dynamic and are subject to and create their own internal and external kinematics and kinetics.

  Advanced design methodologies

8 x product engineering and design review (week 2 – 12), ~3 pages per item which must contain a brief description of the product then delve into concepts such as materials selection, manufacturing methods, life cycle analysis, recyclability and overa..

  Design of absorption column and the cooler

Design of absorption column and the cooler. Process design of other units should be completed along with pipe sizes.

  Determine the maximum total bending moment

Determine maximum total bending moment (static plus dynamic) of the beam under steady-state conditions.

  Force of the water on the gate

Determine the magnitude of the horizontal and vertical components of the force of the water on the gate.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd