








HC-SR04 Ultrasonic Sensor Module – Distance Measuring Sensor
An ultrasonic sensor is an instrument that measures the distance to an object using ultrasonic sound waves. An ultrasonic sensor uses a transducer to send and receive ultrasonic pulses that relay back information about an object's proximity. HC-SR04 Ultrasonic Range Finder Module provides accurate distance measurement using ultrasonic waves. Perfect for Arduino, Raspberry Pi, obstacle avoidance robots, and DIY electronics projects.
₹ 59 ₹99
99
Add FAQ
Detailed Product Description:
The HC-SR04 Ultrasonic Sensor Module is a widely used and cost-effective distance measuring sensor that works by emitting ultrasonic waves and measuring the time taken for the echo to return. It is ideal for a wide variety of applications including robot navigation, object detection, level sensing, and home automation systems.
This module can accurately measure distances from 2 cm to 400 cm with a precision of ±3 mm, making it suitable for Arduino, Raspberry Pi, ESP32, and other microcontroller-based projects.
It features four pins (VCC, Trig, Echo, GND) for simple interfacing and uses digital I/O for distance calculations, making it extremely easy to integrate into your systems.
Key Features:
-
Ultrasonic distance sensor with 2 cm to 400 cm range
-
High accuracy and fast response time
-
Compatible with Arduino, Raspberry Pi, ESP8266, STM32
-
Low-cost and easy to use
-
Ideal for robotics, obstacle detection, and automation
-
Non-contact measurement technology
Technical Specifications:
Parameter | Value |
---|---|
Operating Voltage | 5V DC |
Operating Current | 15 mA (approx.) |
Sensor Type | Ultrasonic |
Measuring Range | 2 cm – 400 cm |
Accuracy | ±3 mm |
Working Frequency | 40 kHz |
Trigger Input Signal | 10 µs TTL pulse |
Echo Output Signal | TTL level signal, proportional to range |
Interface Pins | VCC, Trig, Echo, GND |
Dimensions | ~45 mm x 20 mm x 15 mm |
How to Use:
Basic Arduino Interfacing Steps:
-
Connect VCC → 5V, GND → GND, Trig → D9, Echo → D10 (example).
-
In code, send a 10µs pulse to Trig.
-
Measure the duration of the pulse on Echo.
-
Convert time to distance:
Distance (cm) = duration / 58.0
Arduino Sample Code:
const int trigPin = 9;
const int echoPin = 10;
void setup() {
Serial.begin(9600);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
}
void loop() {
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
long duration = pulseIn(echoPin, HIGH);
float distance = duration * 0.034 / 2;
Serial.print("Distance: ");
Serial.print(distance);
Serial.println(" cm");
delay(500);
}
Applications:
-
Obstacle avoidance for robotics
-
Automatic door and home automation
-
Parking sensors and reverse alerts
-
Water level measurement
-
Smart bins and distance counters
Package Includes:
-
1 × HC-SR04 Ultrasonic Range Finder Module
0 Reviews For this Product
