MDM FA 1 Report PDF
MDM FA 1 Report PDF
FORMATIVE ASSASEMENT-1
COURSE
Sensor and Transducer Technology
COURSE CODE
BET23MD01
TITLE
Proximity or displacement sensor – Ultrasonic sensor
A proximity sensor is a device that can detect or sense the approach or presence of
nearby objects and for this it does not need physical contact
Displacement sensors (displacement gauges) are used to measure the amount of
movement that occurs between an object and a reference position
1. Capacitive
Ultrasonic sensor
1. Non-contact Measurement:
Measures distance without any physical contact, making it ideal for detecting soft or
fragile objects.
2. Wide Range: Can measure distances from a few centimeters to several meters,
suitable for various applications.
5. Versatile: Can be used for both proximity detection and accurate displacement
measurements.
For this, let’s use the HC-SR04 Ultrasonic Sensor. Below are its key specifications:
• Accuracy: ±3 mm.
• Operating Voltage: 5V DC.
• Operating Current: <15 mA.
An ultrasonic sensor works by using sound waves to detect the distance to an object. It
operates using the principle of echolocation, similar to how bats and dolphins navigate.
The sensor has two main components: a transmitter and a receiver.
4. Time Calculation: The sensor measures the time taken for the transmitted wave to hit
the object and return to the receiver.
5. Distance Measurement: Using the speed of sound in the air (approximately 343
meters per second), the sensor calculates the distance using the formula:
Distance =Speed of Sound × Time / 2
The factor of 2 is because the time measured is for the wave to travel to the object
and back (round trip).
The distance measurement in the HC-SR04 is calculated based on the time of flight of
the ultrasonic pulse:
Where:
The plot below illustrates the relationship between the measured distance and the echo
time for the HC-SR04 ultrasonic sensor. As expected, the echo time increases linearly
with distance. This characteristic can be used to precisely determine the distance of
objects within the sensor’s range.
6. Design Preprocessing of the Sensor
For the HC-SR04, the preprocessing involves converting the echo time into a readable
distance format. The basic steps for preprocessing are as follows:
This pulse initiates the transmission of an ultrasonic wave from the sensor.
3. Time-to-Distance Conversion:
Calculate the distance using the formula:
Distance = Echo Time x Speed of Sound / 2
Where the Echo Time is in seconds and Speed of Sound is 343 m/s.
1. Noise Filtering:
• A low-pass filter can be used to eliminate short-duration noise spikes that might falsely
trigger the echo signal.
• This can be achieved using a simple RC filter at the output of the Echo Pin before
feeding it into a microcontroller.
2. Microcontroller Processing:
• The final distance value is calculated and displayed or transmitted to another system
for further processing.
Ex.