HC-SR-04 Ultrasonic Sensor
HC-SR04 Ultrasonic Distance Sensor
Measure distances with precision using the HC-SR04 Ultrasonic Sensor - the go-to module for robotics, obstacle avoidance, and automation projects. Available now from The Tech Depot, Bengaluru, with fast shipping and full technical support.
Specifications
| Module | HC-SR04 Ultrasonic Ranging Sensor |
| Operating Voltage | 5V DC |
| Operating Current | 15 mA (typical) |
| Measuring Range | 2 cm - 400 cm (0.8 in - 13 ft) |
| Accuracy | +/-3 mm |
| Measuring Angle | <=15 degrees effective cone |
| Ultrasonic Frequency | 40 kHz |
| Trigger Input Signal | 10 us TTL pulse |
| Echo Output Signal | TTL level pulse proportional to distance |
| Interface Pins | VCC, Trig, Echo, GND (4-pin header) |
| Board Dimensions | 45 mm x 20 mm x 15 mm (approx.) |
| Compatibility | Arduino, Raspberry Pi, ESP32, ESP8266, STM32, PIC & more |
| Origin | Original / Authentic Module |
| Warranty | 7-day warranty on manufacturing defects |
| Support | Email & WhatsApp 24/7 |
How It Works
The HC-SR04 uses ultrasonic sound waves to calculate distance. Send a 10 us HIGH pulse to the Trig pin - the module emits eight 40 kHz bursts, then the Echo pin goes HIGH for a duration proportional to the round-trip time of the sound wave. Use the formula Distance = (Echo pulse width x Speed of sound) / 2 to convert the reading into centimeters or inches. Most Arduino libraries handle this automatically in a single line of code.
Pin Configuration
| VCC | +5V DC Power Supply |
| Trig | Trigger Input - send 10 us pulse to start measurement |
| Echo | Echo Output - returns pulse width proportional to distance |
| GND | Ground |
Why Choose the HC-SR04 from The Tech Depot?
- 100% authentic modules sourced from trusted, authorized suppliers
- Reliable +/-3 mm accuracy across a 2 cm - 400 cm range
- Plug-and-play with Arduino, Raspberry Pi, ESP32, and virtually any microcontroller
- Massive community support - thousands of tutorials, libraries, and code examples available online
- 1-5 day shipping, 7-8 day delivery from our Bengaluru warehouse; same-day delivery within Bengaluru
- Expert technical support included to help you wire, code, and troubleshoot
Project Ideas
- Obstacle-Avoiding Robot: Mount the sensor on a servo to scan surroundings and navigate autonomously.
- Smart Parking System: Detect whether a parking slot is occupied and display availability on an LCD or web dashboard.
- Water Level Monitor: Place the sensor above a tank to measure water level without contact and trigger alerts or pump control.
- Digital Measuring Tape: Build a handheld distance meter with an OLED display for quick, contactless measurements.
- Gesture / Proximity Control: Map hand distance to volume, brightness, or motor speed for touchless interfaces.
- Security & Intruder Alert: Trigger a buzzer or notification when an object enters a defined zone.
- Learning & Education: Ideal first sensor project for students - simple wiring, easy code, and instant visual results.
Quick-Start Arduino Example
Wire VCC -> 5V, GND -> GND, Trig -> Digital Pin 9, Echo -> Digital Pin 10, then upload:
#define TRIG 9
#define ECHO 10
void setup() {
Serial.begin(9600);
pinMode(TRIG, OUTPUT);
pinMode(ECHO, INPUT);
}
void loop() {
digitalWrite(TRIG, LOW);
delayMicroseconds(2);
digitalWrite(TRIG, HIGH);
delayMicroseconds(10);
digitalWrite(TRIG, LOW);
long duration = pulseIn(ECHO, HIGH);
float distance_cm = duration * 0.0343 / 2.0;
Serial.print("Distance: ");
Serial.print(distance_cm);
Serial.println(" cm");
delay(500);
}
What's in the Box
Frequently Asked Questions
When will I receive my order?
Products ship within 1-5 days from our Bengaluru warehouse. Delivery within 7-8 days to most locations across India.
Is technical support available?
Yes, 24/7 support via email and WhatsApp for setup, troubleshooting, and application guidance.
What is your return policy?
7-day returns on manufacturing defects only. Full refund or replacement. Not applicable for user damage or misuse.
Are bulk discounts available?
Yes, wholesale pricing on orders of 10+ units. Contact us via WhatsApp or email for a custom quote.
Buy HC-SR-04 Ultrasonic Sensor Online in India
Purchase the HC-SR-04 Ultrasonic Sensor online at The Tech Depot - India's most trusted electronics components store. We deliver across all major cities including Bengaluru, Mumbai, Delhi, Chennai, Hyderabad, Pune, Kolkata, Ahmedabad, Jaipur, and Surat. Get the best price on HC-SR-04 Ultrasonic Sensor with fast 1-5 day shipping from our Bengaluru warehouse. All products are 100% authentic, sourced from authorized distributors with 7-day warranty on manufacturing defects.
Looking to buy HC-SR-04 Ultrasonic Sensor at the best price in India? The Tech Depot offers competitive pricing, bulk discounts for orders of 10+ units, and dedicated technical support via email and WhatsApp. Whether you are a hobbyist, student, or professional engineer, we have everything you need for your electronics projects.