HC-SR04
Ultrasonic Distance Sensor ModuleThe HC-SR04 is a ultrasonic distance sensor module from Multicomp. View the full HC-SR04 datasheet below including key specifications, pinout.
Official HC-SR04 datasheet (PDF) — the source this page was extracted from.
Manufacturer
Multicomp
Category
Ultrasonic Distance Sensor Module
Package
Module with 4-pin header
Lifecycle
Active
HC-SR04 Key Specifications
| Parameter | Value |
|---|---|
| Contents | Board(s) |
| Function | Ultrasonic |
| Type | Sensor |
| Utilized IC / Part | HC-SR04 |
HC-SR04 Overview
Part: HC-SR04 Ultrasonic Sensor Module V2.0 — Handson Technology
Type: Ultrasonic Distance Sensor Module
Description: A low-cost ultrasonic sensor module operating from 3.3V to 5V DC, providing distance measurements from 2 cm to 400 cm with ±3mm accuracy, using a 40 KHz ultrasonic pulse.
Operating Conditions:
- Supply voltage: 3.3Vdc ~ 5Vdc
- Operating frequency: 40 KHz
- Operating range: 2 cm ~ 400 cm
Absolute Maximum Ratings:
- Max junction/storage temperature: null
Key Specs:
- Quiescent Current: <2mA
- Operating Current: 15mA
- Operating Range: 2cm ~ 400cm
- Accuracy: ±3mm
- Sensitivity: -65dB min
- Sound Pressure: 112dB
- Effective Angle: 15°
Features:
- Wider input voltage range (3.3Vdc ~ 5Vdc) compared to first generation
- Measures distance using sonar (40KHz ultrasonic pulse)
- On-board 2.54mm pitch pin header for easy prototyping
- Requires a 10uS TTL pulse to 'Trigger Input' pin to start ranging
- Provides TTL Logic Output on 'Echo' pin proportional to distance
Applications:
- Object avoidance in robotics projects
- Turret applications
- Water level sensing
- Car parking reverse sensors
- Liquid level detection
Package:
- 4-pins header with 2.54mm pitch (45mm x 20mm x 15mm)
HC-SR04 Pin Configuration
HC-SR04 Ultrasonic Sensor Module – 4-Pin Header Pinout
| Pin Number | Pin Name | Type | Description |
|---|---|---|---|
| 1 | VCC | Power | Supply voltage: 3.3V ~ 5V DC |
| 2 | TRIG | Input | Trigger input pin. Requires 10µS TTL pulse to initiate measurement |
| 3 | ECHO | Output | Echo output pin. TTL logic output proportional to distance |
| 4 | GND | Ground | Ground reference |
Notes
- Pin Header: 4-pin 2.54mm pitch connector
- Operating Voltage: 3.3V to 5V DC (second-generation module supports wider voltage range than first-generation HC-SR04)
- Measurement Cycle: Use ≥60ms measurement cycle to prevent trigger signal interference with echo signal
- Distance Calculation: Distance (cm) = Echo pulse duration (µS) / 58, or Distance (inches) = Echo pulse duration (µS) / 148
- Operating Frequency: 40 kHz ultrasonic burst
- Measurement Range: 2 cm to 400 cm (±3mm accuracy)
HC-SR04 Ordering Information
| MPN | Package | Temperature Range | Packing |
|---|---|---|---|
| MDU-1014 | Module with 4-pin header | null | null |
Ask your AI agent about the HC-SR04
Connect SheetsData to Claude, Cursor, Codex or any MCP client and your agent reads this datasheet for you: pinout, limits, register maps and design checks, with the numbers taken from the PDF.
claude mcp add --transport http sheetsdata https://mcp.sheetsdata.com/mcp
Then ask: "Can the HC-SR04 run from my 12 V rail? Check it against the datasheet limits."
Create a free account $2 of usage every month, no card needed.