Skip to main content

We use cookies to understand how you use our site and improve your experience. See our Privacy Policy.

HC-SR04

Ultrasonic Distance Sensor Module

The 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

ParameterValue
ContentsBoard(s)
FunctionUltrasonic
TypeSensor
Utilized IC / PartHC-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 NumberPin NameTypeDescription
1VCCPowerSupply voltage: 3.3V ~ 5V DC
2TRIGInputTrigger input pin. Requires 10µS TTL pulse to initiate measurement
3ECHOOutputEcho output pin. TTL logic output proportional to distance
4GNDGroundGround 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

MPNPackageTemperature RangePacking
MDU-1014Module with 4-pin headernullnull
Data on this page is extracted from publicly available manufacturer datasheets using automated tools including AI. It may contain errors or omissions. Always verify specifications against the official manufacturer datasheet before making design or purchasing decisions. See our Terms of Service. Rights holders can submit a takedown request.

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.