Table showing the comparison between Ultrasonic Sensor and Infrared Sensor.
Ultrasonic Sensor
|
Infrared Sensor
|
Advantages
|
|
The output value is linear with the distance
between the sensor and the target.
|
Infrared sensors can detect infrared
light over a large area.
|
Sensor response is not dependent on the colors,
transparency of objects, optical reflection properties, or by the surface
texture of the object.
|
|
Sensors are designed for contact-free detection.
|
IR sensor uses non-visible light for
detection.
|
Accurate detection even of small objects.
|
|
Able to operate in critical conditions such as
dirt and dust.
|
Cheap in price.
|
Disadvantages
|
|
Ultrasonic sensors must view a high density
surface for good results. A soft surface like foam and cloth has low density
and absorb the sound waves emitted by the sensor.
|
This sensor is very sensitive to IR
lights and sunlight
|
Could have false responds for some loud noises
such as air hoses
|
it has a weakness to darker colors such
as black
|
Changes in the environment can affect the response of the sensor
(temperature, humidity, pressure, etc.).
|

The sensor that will be use is Ultrasonic Ranging Sensor (HC SR04). Physically, this sensor has two pins: Trigger and Echo, which used for calculating the distance of the object by generating sound waves and thus calculating the time duration of the echo that generated. This economical sensor provides 2cm to 400cm of non-contact measurement functionality with a ranging accuracy that can reach up to 3mm. Therefore, this sensor is the most suitable sensor to be used in the prototype development.
This is very educational content and written well for a change. It's nice to see that some people still understand how to write a quality post!
ReplyDeleteultrasonic level sensor