HC-SR04 Ultrasonic Distance Sensor Module 4-Pin for Arduino & Raspberry Pi

$4.49 USD Shipping & tax calculated at checkout
In stock· Order by 3pm ET and it ships today

HC-SR04 ultrasonic sensor for Arduino delivers a 2-400 cm detection range and 3mm accuracy, offering reliable echo-based distance measurements for precision sensing applications.

Bulk eligible

Mix any Bulk eligible products — discount applies to your total quantity across the cart.
Auto-applied at checkout
Buy 5+ $4.27 each Save 5%
Buy 10+ $4.05 each Save 10%
View all bulk eligible products →
  • Free Ground Shipping U.S. orders $35+
  • Ships from USA Domestic fulfillment
  • 30-day returns Free defect replacement
  • 7-day support Fast email replies
Frequently bought together
Front view of ShillehTek HC-SR04 Ultrasonic Distance Sensor Module with two circular transducers HC-SR04 Ultrasonic Distance Sensor Module 4-Pin for Arduino & Raspberry PiNo reviews yet $4.49 This item
Total for 4 items
$21.22

Products related to this item

Product Overview

HC-SR04 Ultrasonic Distance Sensor is a compact 4-pin module that gives robots and projects the ability to "see" with sound. It uses echolocation, emitting high-frequency pulses and timing echoes to calculate distance, making it a reliable, low-cost option for Arduino and Raspberry Pi builds. It measures from 2cm to 400cm (about 13 feet) and performs well in darkness or bright sunlight where IR sensors often fail, including on glass, mirrors, and dark surfaces. With separate Trigger (input) and Echo (output) pins for clear signal management and good repeatability—accuracy can be as fine as 3mm—it’s straightforward to integrate and is compatible with common libraries like NewPing for advanced control and filtering.

Frequently asked questions

Yes. This 4-pin ultrasonic module is designed for Arduino and Raspberry Pi builds and works with common HC-SR04 libraries, including NewPing on Arduino. Raspberry Pi projects should handle the Echo signal safely for the Pi’s GPIO.
Yes. ShillehTek modules are supplied with headers already soldered, so you can connect jumper wires directly to VCC, Trig, Echo, and GND. You still need to wire it correctly and add code to trigger and read echoes.
The module has four pins: VCC, Trigger input, Echo output, and GND. Your controller sends a trigger pulse, then measures the Echo pulse duration to calculate distance using ultrasonic time-of-flight.
Yes. It uses sound instead of light, so it can work in darkness or bright sunlight where many IR distance sensors struggle. It is useful for robot obstacle detection, parking aids, tank level sensing, and proximity projects.
Check that the target is within the 2 cm to 400 cm measuring range and is positioned to reflect sound back toward the sensor. Loose wiring, incorrect trigger/echo code, and unsafe Raspberry Pi GPIO interfacing can also cause bad readings.

Have other questions?

Chat with our US-based team — we usually reply fast.

Features & Specs

Ultrasonic Range Measures distances from 2 cm up to 400 cm.

Measurement Accuracy Provides high-precision readings with a margin of error around 3 mm.

4-Pin Interface Includes VCC, GND, Trigger, and Echo pins for simple wiring.

Trigger & Echo Pins Separate input and output pins make pulse timing and signal management straightforward.

Ambient Light Immune Operates reliably in bright sunlight or darkness since it uses sound waves.

Wide Surface Detection Detects a variety of materials including glass, mirrors, and dark objects.

Arduino Compatible Works easily with Arduino boards and libraries like NewPing for quick integration.

Documents

Full Product Manual ShillehTek HC-SR04 Ultrasonic Distance Sensor Module 4-Pin for Arduino, Raspberry Pi | ShillehTek Product Manual In-depth setup guide with wiring, code examples, and troubleshooting.

Related Videos

Customer Reviews