Ultrasonic sensor module HC-SR-04

Ultrasonic sensor module HC-SR-04

This is the HC-SR04 ultrasonic distance sensor. This economical sensor provides 2cm to 400cm of non-contact measurement functionality with a ranging accuracy that can reach up to 3mm. Each HC-SR04 module includes an ultrasonic transmitter, a receiver and a control circuit. It is used to measure the distance of the obstacle in front of it. An ultrasonic wave is sent from the transmitter of the module, and then the wave is reflected back and received at the receiver.
The module consists of 4 pins:-
1. VCC – Power
VCC supplies power to the HC-SR04 ultrasonic sensor. You can connect it to the 5V output from your Arduino.
2. Trigger
Trig (Trigger) pin is used to trigger ultrasonic sound pulses. By setting this pin to HIGH for 10µs, the sensor initiates an ultrasonic burst.
3. Echo
Echo pin goes high when the ultrasonic burst is transmitted and remains high until the sensor receives an echo, after which it goes low. By measuring the time the Echo pin stays high, the distance can be calculated.
4. GND – Ground
It is the ground pin.

How to use

Tutorial –
https://howtomechatronics.com/tutorials/arduino/ultrasonic-sensor-hc-sr04/

Common Applications

1. To measure speed as well as the direction between two objects
2. Depth measurement

Some example projects that students can try out in the ATL Lab

1. Make an automatic motion sensor dustbin using ultrasonic sensor ( )
https://projecthub.arduino.cc/lakshyajhalani56/05bbdccb-93e6-4828-b2a0-a719573892b4
2. Ultrasonic glasses for the visually impared ( )
https://projecthub.arduino.cc/snehiludrhj/3eb6495b-620a-4acd-b542-dce83fb93407

Safety Measures to follow

1. The module contains delicate parts so it should be handled with care
2. Do not use a voltage in excess of the operation voltage range.

Important Links

1. Basics of Ultrasonic sensor module HC-SR-04 ( )
Article Link – https://lastminuteengineers.com/arduino-sr04-ultrasonic-sensor-tutorial/

Scroll to Top