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

View More
All Categories
Best Seller (30)
New List (30)
Foldable Steel Tire Stone Removal Hook - Multi-Tool for Tire Repair, Stone Picking, and Emergency Window Breaking with Storage Bag

Foldable Steel Tire Stone Removal Hook - Multi-Tool for Tire Repair, Stone Picking, and Emergency Window Breaking with Storage Bag

$11.70

Integrated Catalytic Combustion Unit RCO Furnace - Exhaust Gas Treatment System with Activated Carbon Adsorption-Desorption and Catalytic Combustion

Integrated Catalytic Combustion Unit RCO Furnace - Exhaust Gas Treatment System with Activated Carbon Adsorption-Desorption and Catalytic Combustion

$231,249.00

Universal Waterproof and Sunproof Cover for E-Bike Charger with Outdoor Storage Box

Universal Waterproof and Sunproof Cover for E-Bike Charger with Outdoor Storage Box

$11.85

Baohong Paper Brick Watercolor Paper Pad, Medium/Coarse Texture, Square/Round Shapes for Painting, Sketching, and Cotton Pulp Practice

Baohong Paper Brick Watercolor Paper Pad, Medium/Coarse Texture, Square/Round Shapes for Painting, Sketching, and Cotton Pulp Practice

$28.00

Commercial Food Warmer Cabinet for Pies, Youtiao, Burgers, Egg Tarts, and Fried Chicken, Heating and Temperature-Controlled Display Case

Commercial Food Warmer Cabinet for Pies, Youtiao, Burgers, Egg Tarts, and Fried Chicken, Heating and Temperature-Controlled Display Case

$977.00

Masking Tape Spray Paint Shielding Paper for Art Students and Sketching - Non-bleeding, Residue-free, Hand-tearable, Shoe-safe

Masking Tape Spray Paint Shielding Paper for Art Students and Sketching - Non-bleeding, Residue-free, Hand-tearable, Shoe-safe

$1.00

Electric Scooter and Motorcycle Hook - Multi-Functional Storage Hanger for Delivery Bikes and Cargo Boxes

Electric Scooter and Motorcycle Hook - Multi-Functional Storage Hanger for Delivery Bikes and Cargo Boxes

$2.50

Huirui 420AB Fast-Drying Glue for Silicone - Bonds ABS, Stainless Steel, TPE, Rubber; High-Strength Instant Adhesive for Difficult Materials

Huirui 420AB Fast-Drying Glue for Silicone - Bonds ABS, Stainless Steel, TPE, Rubber; High-Strength Instant Adhesive for Difficult Materials

$36.00

Color Proofing Instrument Ink Mixing Tool Sample Making Machine

Color Proofing Instrument Ink Mixing Tool Sample Making Machine

$1,860.00

Variable Frequency Drive 0.75kW 2.6A Three-Phase 380V

Variable Frequency Drive 0.75kW 2.6A Three-Phase 380V

$1,430.00

2026 Spring PEP New Edition Primary English Grade 3 Volume 2 Four-Line Three-Grid Word Cards for Teachers, Open Class Competition Creative Blackboard Design, Teaching Contest Blackboard Strips and Teaching Aids

2026 Spring PEP New Edition Primary English Grade 3 Volume 2 Four-Line Three-Grid Word Cards for Teachers, Open Class Competition Creative Blackboard Design, Teaching Contest Blackboard Strips and Teaching Aids

$11.30

Cold Brew Yogurt Fermentation Equipment - Manual Old-Style Yogurt Processing and Filling Line

Cold Brew Yogurt Fermentation Equipment - Manual Old-Style Yogurt Processing and Filling Line

$113,050.00

Electric Spray Painting Pen Set for Babies and Toddlers, Non-Toxic Washable Watercolor Markers, Drawing Tool Kit Toy

Electric Spray Painting Pen Set for Babies and Toddlers, Non-Toxic Washable Watercolor Markers, Drawing Tool Kit Toy

$49.50

[Buy 2 Get 10% Off] Painted Double-Layer Wool Felt Mat for Calligraphy and Painting

[Buy 2 Get 10% Off] Painted Double-Layer Wool Felt Mat for Calligraphy and Painting

$7.48

Compact Home Range Hood, Portable USB Desktop Smoke Extractor for Living Room Hot Pot and BBQ Odor Removal

Compact Home Range Hood, Portable USB Desktop Smoke Extractor for Living Room Hot Pot and BBQ Odor Removal

$41.00

Office and Home Computer Cable Management Sleeve - Desktop Data Cord Organizer and PC Wire Collector

Office and Home Computer Cable Management Sleeve - Desktop Data Cord Organizer and PC Wire Collector

$6.50

Linear Bearing

Linear Bearing

$75.47

Thickened Aluminum Alloy Stainless Steel Floor Wire Raceway - Surface-Mounted Cable Cover Protector, Anti-Crush, Self-Adhesive Invisible Design

Thickened Aluminum Alloy Stainless Steel Floor Wire Raceway - Surface-Mounted Cable Cover Protector, Anti-Crush, Self-Adhesive Invisible Design

$2.13

Kids Foam Stamp Brushes - Mushroom-Tipped Painting Set for Kindergarten Art and Graffiti Projects

Kids Foam Stamp Brushes - Mushroom-Tipped Painting Set for Kindergarten Art and Graffiti Projects

$2.38

Heisidike HZL-32 Portable Stone Removal Hook for Car Tire Tread Cleaning

Heisidike HZL-32 Portable Stone Removal Hook for Car Tire Tread Cleaning

$9.28

Bixilage Cheese Processing Equipment – Curd Fermentation Machine for Stretchy Hand-Pulled Cheese Production Line

Bixilage Cheese Processing Equipment – Curd Fermentation Machine for Stretchy Hand-Pulled Cheese Production Line

$67,900.00

Essential Oil Soap Stamping Machine DIY Stamp Maker Semi-Auto Pneumatic Stampler Small Handmade Soap Equipment

Essential Oil Soap Stamping Machine DIY Stamp Maker Semi-Auto Pneumatic Stampler Small Handmade Soap Equipment

$2,173.00

Inverted Barrel Water Stand - Simple U-Shaped Thickened Holder for Purified Water Buckets with Dispenser Outlet

Inverted Barrel Water Stand - Simple U-Shaped Thickened Holder for Purified Water Buckets with Dispenser Outlet

$21.00

Qingling Pickup 2.8T Diesel Isuzu 4JB1-T1 Engine Turbocharger Pump Assembly

Qingling Pickup 2.8T Diesel Isuzu 4JB1-T1 Engine Turbocharger Pump Assembly

$1,502.00

Juli JL-499 Heat Resistant up to 150°C Instant Adhesive High Performance Low Whitening Transparent High-Temperature Fast-Drying Glue

Juli JL-499 Heat Resistant up to 150°C Instant Adhesive High Performance Low Whitening Transparent High-Temperature Fast-Drying Glue

$90.30

Stainless Steel Buffet Warmer with Hydraulic Lift - Commercial Electric Heating Chafing Dish

Stainless Steel Buffet Warmer with Hydraulic Lift - Commercial Electric Heating Chafing Dish

$882.00

Zhaobei New Felt Calligraphy Mat Anti-Pilling Painting Felt Chinese Painting Cloth Brush Character Calligraphy Felt Pad

Zhaobei New Felt Calligraphy Mat Anti-Pilling Painting Felt Chinese Painting Cloth Brush Character Calligraphy Felt Pad

$29.70

Fruit Picking Bucket with Shoulder Strap, Manual Fertilizer Spreader, Durable Rubber Harvest Container for Seeds and Chemicals

Fruit Picking Bucket with Shoulder Strap, Manual Fertilizer Spreader, Durable Rubber Harvest Container for Seeds and Chemicals

$26.57

Baohong Artist Grade Watercolor Pad - 100% Cotton Pulp, 300gsm, Glued on Four Sides, Available in 16K, 8K, 4K with Cold Press or Hot Press Texture

Baohong Artist Grade Watercolor Pad - 100% Cotton Pulp, 300gsm, Glued on Four Sides, Available in 16K, 8K, 4K with Cold Press or Hot Press Texture

$42.00

Commercial Brush Peeling Machine for Sweet Potatoes, Ginger, Taro, Mustard Greens, and Kohlrabi

Commercial Brush Peeling Machine for Sweet Potatoes, Ginger, Taro, Mustard Greens, and Kohlrabi

$15.90