Skip to main content
Home / DIY Kits & Electronic Building Blocks / HC-SR04 Ultrasonic Module Distance Sensor with Wide Voltage 3-5V, Compatible with Arduino

Attributes

Brand -
Category Electronic Components / Maker DIY / DIY Kits & Electronic Building Blocks
Origin -
Operating Voltage DC 3.3V - 5V
Current Consumption 15mA (Working),
Measuring Range 2cm to 400cm
Resolution 0.3cm
Measuring Angle 15 degrees
Trigger Input Signal 10µS TTL pulse
Echo Output Signal TTL level signal proportional to distance
Dimensions 45mm x 20mm x 15mm
Connector Type 4-Pin Header (VCC, Trig, Echo, GND)
Compatibility Arduino, Raspberry Pi, STM32, ESP8266/ESP32

6 reviews

A

Anonymous

Mar 24, 2026

Rating: 4/5

Good for low altitude sensing

Using this on a small DIY drone for altitude hold. It responds quickly enough for slow movements. Just remember it doesn't work well over soft surfaces like carpets or foam due to sound absorption.

A

Anonymous

Mar 22, 2026

Rating: 5/5

Reliable and robust

I've bought ten of these for a workshop class. All of them worked out of the box. The wide voltage range is a nice feature if you are switching between 3.3V and 5V logic boards.

A

Anonymous

Mar 22, 2026

Rating: 4/5

Great value, minor noise issues

For the price, you can't beat it. It works well for school projects. I did notice some jitter in readings when used near a running motor, but adding a simple capacitor fixed that. Highly recommend for beginners.

A

Anonymous

Mar 17, 2026

Rating: 5/5

Standard component, excellent quality

This is the industry standard ultrasonic sensor for a reason. Consistent performance, durable pins, and accurate measurements. I keep a few in my parts bin at all times.

A

Anonymous

Mar 11, 2026

Rating: 5/5

Easy to code for

As someone new to electronics, I was worried this would be hard to interface. The documentation online is extensive, and the pulseIn function in Arduino makes reading the distance trivial. Very satisfied.

A

Anonymous

Mar 06, 2026

Rating: 5/5

Perfect for my robotics project

This sensor works flawlessly with my Arduino Uno. The range is accurate up to about 3 meters in my testing, which is plenty for my obstacle-avoiding robot. Setup was easy using standard libraries.

5 FAQ

Q: Does this come with jumper wires?

A: No, this package includes only the HC-SR04 sensor module. Jumper wires and microcontroller boards are sold separately.

Q: What is the minimum detection distance?

A: The minimum measurable distance is approximately 2cm. Objects closer than 2cm may not be detected reliably or may return a constant low value.

Q: Is this sensor waterproof for outdoor use?

A: No, the HC-SR04 is not waterproof. The exposed circuit board and transducers can be damaged by moisture. For outdoor applications, you must house it in a waterproof enclosure with an opening for the sound waves, or look for a specifically waterproof ultrasonic sensor model.

Q: How do I handle multiple sensors on one Arduino?

A: You can connect multiple sensors by assigning unique Trigger and Echo pins for each module in your code. Ensure you trigger them sequentially with a small delay (e.g., 60ms) between measurements to prevent cross-talk where one sensor hears the echo from another.

Q: Can this sensor be used directly with a 3.3V Raspberry Pi GPIO?

A: Yes, the module operates on a wide voltage range of 3-5V. However, while the VCC can be 3.3V, the Echo output may still output 5V logic depending on the specific batch. It is generally recommended to use a voltage divider on the Echo pin when connecting to 3.3V logic boards to be safe.

Explore your interests

All Categories
Best Seller (30)
New List (30)
Balloon Warm Star Pre-sale: Do You Have an Illness? Phase 1 - Clash of Hearts Little Chu Su Series Merchandise

Balloon Warm Star Pre-sale: Do You Have an Illness? Phase 1 - Clash of Hearts Little Chu Su Series Merchandise

$16.00

Car Tire Stone Removal Hook - Portable Multi-function Tool for Cleaning Gravel from Tire Treads

Car Tire Stone Removal Hook - Portable Multi-function Tool for Cleaning Gravel from Tire Treads

$7.00

Imported TRANS Gearbox Eccentric Bearing 614 59 7187 616 0608 11-15 11 YSX

Imported TRANS Gearbox Eccentric Bearing 614 59 7187 616 0608 11-15 11 YSX

$183.00

Sichuan Rongxian Earthware Minfeng Wine Jar, Home Pottery with Porcelain Liner, 600-Jin Unglazed Sealed Fermentation Vessel for Homemade Liquor

Sichuan Rongxian Earthware Minfeng Wine Jar, Home Pottery with Porcelain Liner, 600-Jin Unglazed Sealed Fermentation Vessel for Homemade Liquor

$901.00

Garlic Drum Sorting Machine - Single-Clove Garlic Grading Separator and Onion Sizing Sorter - Factory Direct Sales

Garlic Drum Sorting Machine - Single-Clove Garlic Grading Separator and Onion Sizing Sorter - Factory Direct Sales

$38,080.00

Aizaofang Food-Grade Soft Silicone Handmade Soap Mold Korean Rectangular 3D Tree Shadow Silicone Mold

Aizaofang Food-Grade Soft Silicone Handmade Soap Mold Korean Rectangular 3D Tree Shadow Silicone Mold

$23.00

JMC Yusheng & Yuhu Parts – Crankshaft Position Sensor, Signal Sensor, Original Equipment

JMC Yusheng & Yuhu Parts – Crankshaft Position Sensor, Signal Sensor, Original Equipment

$95.00

[10% Off for 2 Items] Calligraphy Wool Felt Mat - Double-Sided Painted Practice Pad for Students, Bulk Wholesale, Includes Arm Rest and Four Treasures of the Study Set

[10% Off for 2 Items] Calligraphy Wool Felt Mat - Double-Sided Painted Practice Pad for Students, Bulk Wholesale, Includes Arm Rest and Four Treasures of the Study Set

$6.63

Leak-Proof Retainer Case with Double-Layer Filter for Braces, Aligners, and Dentures - Portable Cleaning and Soaking Box

Leak-Proof Retainer Case with Double-Layer Filter for Braces, Aligners, and Dentures - Portable Cleaning and Soaking Box

$22.50

Car Tire Stone Removal Hook Tool, Explosive Tire Prevention Gadget, Durable Zinc Alloy Tire Cleaning Hook for Automotive Care

Car Tire Stone Removal Hook Tool, Explosive Tire Prevention Gadget, Durable Zinc Alloy Tire Cleaning Hook for Automotive Care

$10.90

[Damai Micro-Needle Hair Transplant Patent] Micro-Needle Planting (500 Units) - Suitable for Temples and Hairline

[Damai Micro-Needle Hair Transplant Patent] Micro-Needle Planting (500 Units) - Suitable for Temples and Hairline

$4,500.00

Japan Original FEC Lifting Chain - Specialized for Electric Hoist, 6.3mm Diameter Carburized Lifting Chain

Japan Original FEC Lifting Chain - Specialized for Electric Hoist, 6.3mm Diameter Carburized Lifting Chain

$223.00

X-RAY Coating Thickness Gauge - Desktop Tianrui Professional Analyzer for Metal Electroplating Layers

X-RAY Coating Thickness Gauge - Desktop Tianrui Professional Analyzer for Metal Electroplating Layers

$9,589.60

Heavy Truck Tire Cleaning Strips - Wear-Resistant Mud Flaps and Inner Tube Skirts - Decorative Tire Tassels

Heavy Truck Tire Cleaning Strips - Wear-Resistant Mud Flaps and Inner Tube Skirts - Decorative Tire Tassels

$9.05

Mixue Bingcheng Tanned Snow King Blind Box Figure Girls Gift Birthday Cute Plush Keychain Holiday Present

Mixue Bingcheng Tanned Snow King Blind Box Figure Girls Gift Birthday Cute Plush Keychain Holiday Present

$21.01

Smart Battery Tester with Full Protection - Performance Detector for EV and Car Batteries

Smart Battery Tester with Full Protection - Performance Detector for EV and Car Batteries

$269.00

Schneider Leakage Switch IC65 Vigi C120H 2/4P D80/100/125A Leakage Circuit Breaker

Schneider Leakage Switch IC65 Vigi C120H 2/4P D80/100/125A Leakage Circuit Breaker

$1,347.75

Wenxin Tang Pumpkin-Shaped Ceramic Water Pot - Small Celadon Glaze Brush Washer for Chinese Calligraphy

Wenxin Tang Pumpkin-Shaped Ceramic Water Pot - Small Celadon Glaze Brush Washer for Chinese Calligraphy

$18.50

Dehua Mutton Fat White Porcelain Brush Washer - Minimalist Modern Ceramic Water Pot and Scholar's Desk Ornament

Dehua Mutton Fat White Porcelain Brush Washer - Minimalist Modern Ceramic Water Pot and Scholar's Desk Ornament

$39.70

Lifting Chain Slings, Four-Leg Chain Rigging with Hooks and Shackles, Manganese Steel Chains for Crane Hoisting

Lifting Chain Slings, Four-Leg Chain Rigging with Hooks and Shackles, Manganese Steel Chains for Crane Hoisting

$79.20

Taikang Bybo Dental Straumann ITI Dental Implant Metal Abutment TK

Taikang Bybo Dental Straumann ITI Dental Implant Metal Abutment TK

$8,330.00

Factory Supply Adjustable Radish Strip Cutter, Multi-Function Vegetable Slicer for Green Radishes

Factory Supply Adjustable Radish Strip Cutter, Multi-Function Vegetable Slicer for Green Radishes

$5,395.00

Magnetic Cable Organizer - Desktop Phone Charging Data Cord Management Stand and Car Mount Clip

Magnetic Cable Organizer - Desktop Phone Charging Data Cord Management Stand and Car Mount Clip

$13.45

Yuanhao Irregular Ticket-Style Watercolor Paper Stamp Blank Journal Sheet Postcard Creative Card Bookmark 300g Cotton Pulp Fine Texture Thickened Serrated Edge for Art Students Hand Drawing

Yuanhao Irregular Ticket-Style Watercolor Paper Stamp Blank Journal Sheet Postcard Creative Card Bookmark 300g Cotton Pulp Fine Texture Thickened Serrated Edge for Art Students Hand Drawing

$5.32

Residential & Commercial Entrance Nameplate Japanese Wabi-Sabi Style Sign Brass Stainless Steel Wall Light Customizable

Residential & Commercial Entrance Nameplate Japanese Wabi-Sabi Style Sign Brass Stainless Steel Wall Light Customizable

$328.00

Carton Packaging Machinery - New Model 2000 Semi-Auto Gluing Machine, Case Sealer, Pressure-Type

Carton Packaging Machinery - New Model 2000 Semi-Auto Gluing Machine, Case Sealer, Pressure-Type

$5,000.00

Shandong Manufacturer Household Waste Compactor - Horizontal Transfer Station Equipment for Communities

Shandong Manufacturer Household Waste Compactor - Horizontal Transfer Station Equipment for Communities

$44,160.00

460 Fast-Drying Adhesive for Shoes, Ceramics, Wood, Metal, and Plastic, No Whitening Effect

460 Fast-Drying Adhesive for Shoes, Ceramics, Wood, Metal, and Plastic, No Whitening Effect

$34.50

231 "Embroidered Plant Garden" Handmade Travel Watercolor Sketchbook Journal Baohong Rubens

231 "Embroidered Plant Garden" Handmade Travel Watercolor Sketchbook Journal Baohong Rubens

$49.00

Beginner Watercolor Painting Line Art Coloring Book: Geisha Theme, Japanese Style Fine Grain, Two-Pack Free Shipping

Beginner Watercolor Painting Line Art Coloring Book: Geisha Theme, Japanese Style Fine Grain, Two-Pack Free Shipping

$10.60