Experiment: Distance Measurement and Free Fall using Ultrasound

1. Aim

To measure the distance of an object using an HC-SR04 ultrasonic sensor and to study the motion of a freely falling body to determine the acceleration due to gravity ($g$).

2. Apparatus / Components Required

3. Theory & Principle

The HC-SR04 sensor uses Time of Flight (ToF) of sound waves to measure distance. It contains two piezoelectric discs: one transmits a $40\text{ kHz}$ ultrasonic pulse, and the other receives the reflected echo.

The distance ($S$) is calculated as: \(S = \frac{v \times t}{2}\) Where $v$ is the speed of sound ($\approx 340\text{ m/s}$) and $t$ is the time interval between trigger and echo.

Free Fall: For a body falling from rest, the distance traveled follows the equation: \(S = \frac{1}{2}gt^2\) By plotting $S$ against $t$, we can observe a parabolic trajectory and calculate $g$ from the curve fit.

4. Circuit Diagram / Setup

  1. Vcc: Connect to the 5V terminal of SEELab3.
  2. Trig: Connect to the SQ2 output.
  3. Echo: Connect to the IN2 input.
  4. GND: Connect to any GND terminal.
  5. For Free Fall: Mount the sensor facing downwards on a stand at a height of $\approx 1.5\text{m}$.

5. Procedure

Part A: Distance Measurement

  1. Open the SEELab3 software and select the “Ultrasonic Distance” tool.
  2. Hold a flat object in front of the sensor.
  3. Observe the live distance reading and the real-time plot.
  4. Verify the accuracy using a standard ruler.

Part B: Measurement on a Freely Falling Body

  1. Execute the Python program for distance measurement.
  2. Hold a flat plate just below the sensor facing downwards.
  3. release the plate.
  4. The Python script will plot the distance as a function of time.
Distance Plot

Fig A: Falling body setup

Falling Data

Fig B: Free fall parabolic data

6. Observation Table

Actual Distance (cm) Measured Distance (cm) Calculated $g$ (from plot)
10.0    
30.0    
50.0    
Mean Value   $g \approx$ ________ $\text{m/s}^2$

7. Results and Discussion

8. Python Programming & Data

9. Troubleshooting

Symptom Possible Cause Corrective Action
Reading stays at 0 Echo/Trig swapped. Verify Trig is on SQ2 and Echo is on IN2.
Noisy Falling Data Plate wobbled. Use a stiffer flat plate and release it carefully.
Inaccurate Distance Speed of sound error. Check room temperature; sound speed varies with temperature.

10. Viva-Voce Questions

Q1. Why is the time divided by 2 in the distance formula?

Ans: The time measured is the round-trip time (to the object and back). Dividing by 2 gives the time for a one-way trip.

Q2. What is the frequency used by the SR04 sensor?

Ans: It uses $40\text{ kHz}$ ultrasound, which is above the human audible range.

Q3. Why does the falling body graph look like a parabola?

Ans: Because the displacement $S$ is proportional to the square of time $t$ under constant acceleration ($g$).

Q4. Can this sensor measure distance in a vacuum?

Ans: No. Sound waves require a medium (like air) to travel.

Q5. How does temperature affect the speed of sound?

Ans: Speed of sound increases with temperature ($\approx 0.6\text{ m/s}$ per degree Celsius).