AI agents & screen readers: for a machine-readable, text-only catalogue, start at /llms.txt. Products are available as Markdown (/products.md, /products/{handle}.md) and JSON (/products.json, /products/{handle}.json).
Store

ElecFreaks

$8.80 |
In stock
No reviews yet

The HC-SR04 is a widely used ultrasonic distance sensor that provides non-contact measurement from 2 cm to 450 cm with up to 3 mm resolution. It uses a 40 kH...

Stock availability

In our warehouse
4 in stock
Available with leadtime
100 available
Estimated Delivery
Arrives
Disclaimer
View Markdown
Secure checkout

The HC-SR04 is a widely used ultrasonic distance sensor that provides non-contact measurement from 2 cm to 450 cm with up to 3 mm resolution. It uses a 40 kHz ultrasonic transducer pair — one transmitter and one receiver — to calculate distance based on the time-of-flight of a sound pulse.

With a simple 4-pin interface (VCC, Trig, Echo, GND), it is straightforward to integrate with Arduino, Raspberry Pi, and other microcontrollers. Send a 10 µs trigger pulse and measure the duration of the echo return to calculate distance.

Key Features

  • 2–450 cm Range – Non-contact ultrasonic distance measurement
  • 3 mm Resolution – Accurate enough for most robotics and proximity applications
  • 15° Effective Angle – Focused detection beam
  • Simple 4-Pin Interface – VCC, Trig, Echo, GND
  • Low Power – 2 mA quiescent current at 5 V

How It Works

  • Apply a 10 µs high pulse to the Trig pin
  • The module sends eight 40 kHz ultrasonic pulses
  • The Echo pin goes high for the duration of the round-trip time
  • Distance = (Echo pulse duration × 340 m/s) ÷ 2

Specifications

  • Operating Voltage – 5 V DC
  • Quiescent Current – 2 mA
  • Measuring Range – 2–450 cm
  • Resolution – 0.3 cm
  • Effective Angle – 15°
  • Trigger Pulse – 10 µs minimum
  • Operating Frequency – 40 kHz

Pin Definition

  • Pin 1 – VCC (5 V)
  • Pin 2 – Trig (trigger pulse input)
  • Pin 3 – Echo (echo pulse output)
  • Pin 4 – GND

Ideal For

  • Robotics obstacle avoidance
  • Arduino and Raspberry Pi distance measurement projects
  • Liquid level detection
  • Proximity sensing and object detection

Package Contents

  • 1× HC-SR04 Ultrasonic Sensor Module

Jargon buster

Plain-language definitions for the technical terms used above.

DC
DC means direct current, where electricity flows in one constant direction, as supplied by batteries, USB ports and many plug-pack power supplies. When a product specifies DC, it runs from a DC supply rather than mains AC, so you need to provide the correct voltage and polarity.
GND
GND is the ground or reference connection (0 V) for a circuit. When connecting two devices together, their grounds must be joined so both agree on what counts as a low or high signal.
VCC
VCC is the positive power-supply connection on a chip or module. Connecting it to the correct supply voltage is needed for the part to power on and helps avoid damaging the electronics.
Stella
Stella Expert

Ask me anything about this product

Maddy, co-founder of Little Bird

Need help? We're here for you!

Hi, I'm Maddy. My team and I are ready to help with your order or any questions.