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)
Hanyue Cordura N66 Rafting Dry Bag - Ultra-Light Waterproof Storage for Outdoor Swimming and Trekking

Hanyue Cordura N66 Rafting Dry Bag - Ultra-Light Waterproof Storage for Outdoor Swimming and Trekking

$35.70

Sketchbook for Casual Drawing, Acrylic Marker and Watercolor Pad, Square Pocket Art Book, Portable Travel Journal with Thick 230g White Cardstock

Sketchbook for Casual Drawing, Acrylic Marker and Watercolor Pad, Square Pocket Art Book, Portable Travel Journal with Thick 230g White Cardstock

$5.50

Wenxin Tang Calligraphy Copybook for Beginners, Regular Script Duobao Pagoda, Running Script Lanting Preface, Small Kai Lingfei Jing, Brush Character Cards

Wenxin Tang Calligraphy Copybook for Beginners, Regular Script Duobao Pagoda, Running Script Lanting Preface, Small Kai Lingfei Jing, Brush Character Cards

$23.80

Resistor NXBU714 for ABB ACS800 Inverter

Resistor NXBU714 for ABB ACS800 Inverter

$560.00

3D Printing Pen for Kids - Edible Malt Sugar Art DIY Kit for Birthdays (Age 6+)

3D Printing Pen for Kids - Edible Malt Sugar Art DIY Kit for Birthdays (Age 6+)

$39.00

Professional Rotating Car Tire and Wheel Cleaning Rack – Effortless Washing Stand

Professional Rotating Car Tire and Wheel Cleaning Rack – Effortless Washing Stand

$245.00

Nangong Wenfang Three-Character Classic Small Regular Script Copybook – Transparent Cards for Calligraphy Practice Beginners

Nangong Wenfang Three-Character Classic Small Regular Script Copybook – Transparent Cards for Calligraphy Practice Beginners

$69.00

Over-Washing Machine Shelf, Multi-Function Flip-Top Storage Cabinet for Toilet, Bathroom Floor-Standing Unit with No Drilling Required

Over-Washing Machine Shelf, Multi-Function Flip-Top Storage Cabinet for Toilet, Bathroom Floor-Standing Unit with No Drilling Required

$32.88

UGREEN Cable Organizer, Magnetic Desktop Data Wire Fixer, Phone Charging Clip and Cord Collector

UGREEN Cable Organizer, Magnetic Desktop Data Wire Fixer, Phone Charging Clip and Cord Collector

$15.90

Compact Manual Water Pump Dispenser for Home Desktop Use – Mini Hand-Press Faucet for Large Water Buckets

Compact Manual Water Pump Dispenser for Home Desktop Use – Mini Hand-Press Faucet for Large Water Buckets

$23.10

Traditional Sheepskin Rattle Baby Chewable Old-Style Handmade Newborn Wave Drum Toy for Children 0-6 Months

Traditional Sheepskin Rattle Baby Chewable Old-Style Handmade Newborn Wave Drum Toy for Children 0-6 Months

$17.80

Amazon Best Seller Clearance - Outdoor Waterproof Dry Bag for Swimming, Rafting, Snorkeling, and Diving

Amazon Best Seller Clearance - Outdoor Waterproof Dry Bag for Swimming, Rafting, Snorkeling, and Diving

$135.00

Huirui 420AB Fast-Curing Silicone Adhesive - High-Strength Instant Glue for Bonding Silicone Metal Plastic and Velcro

Huirui 420AB Fast-Curing Silicone Adhesive - High-Strength Instant Glue for Bonding Silicone Metal Plastic and Velcro

$36.00

IGBT Module FP15R12KE3/FP25R12KE3/FS50R12KE3/FS75R12KE3

IGBT Module FP15R12KE3/FP25R12KE3/FS50R12KE3/FS75R12KE3

$250.00

3F UL Gear Ventilated Waterproof Dry Bag – Compressible Storage for Sleeping Bags, Clothes, and Swim Gear

3F UL Gear Ventilated Waterproof Dry Bag – Compressible Storage for Sleeping Bags, Clothes, and Swim Gear

$40.80

Martini 100% Cotton Watercolor Paper 200g/300g Thickened Art Sketch Paper 4K Drawing Paper

Martini 100% Cotton Watercolor Paper 200g/300g Thickened Art Sketch Paper 4K Drawing Paper

$12.00

Flameless Aromatherapy DIY Kit - Natural Crystal Diffuser Stones for Home Decor and Demagnetizing

Flameless Aromatherapy DIY Kit - Natural Crystal Diffuser Stones for Home Decor and Demagnetizing

$4.68

[Ali Health] Dental Implant Initial Consultation Package, Oral Cavity Filling, Crown, Denture, and Implant Assessment

[Ali Health] Dental Implant Initial Consultation Package, Oral Cavity Filling, Crown, Denture, and Implant Assessment

$7.90

3M Industrial Scouring Pad for Polishing, Cleaning, and Rust Removal - Bulk Factory Supply with Aluminum Oxide

3M Industrial Scouring Pad for Polishing, Cleaning, and Rust Removal - Bulk Factory Supply with Aluminum Oxide

$7.20

Bull Socket Storage Box - Multi-Outlet Power Strip with Cord, Home Multifunctional Desktop Cable Organizer, Power Junction Board

Bull Socket Storage Box - Multi-Outlet Power Strip with Cord, Home Multifunctional Desktop Cable Organizer, Power Junction Board

$85.90

Used Car Tires 80-90% New, Sizes 165/185/195/205/215/235/60/70/75 R13/R14/R15

Used Car Tires 80-90% New, Sizes 165/185/195/205/215/235/60/70/75 R13/R14/R15

$65.00

BBP Angular Contact Ball Bearings 7000 7001 7002 7003 7004 7005 7006-E-J

BBP Angular Contact Ball Bearings 7000 7001 7002 7003 7004 7005 7006-E-J

$14.08

Baby Rattle with Teether for 0-1 Year Olds; Ideal Gift for Children's Day

Baby Rattle with Teether for 0-1 Year Olds; Ideal Gift for Children's Day

$14.80

Meiyike Granular Sheep Manure Fertilizer, Fermented and Composted for Vegetables and Flowers, Home Potted Plants, Garden Soil Activator

Meiyike Granular Sheep Manure Fertilizer, Fermented and Composted for Vegetables and Flowers, Home Potted Plants, Garden Soil Activator

$37.54

Face Towel Storage Box Wall-Mounted Bathroom Tissue Holder

Face Towel Storage Box Wall-Mounted Bathroom Tissue Holder

$2.98

Baby Rattle Toy - Chewable Wooden Handheld Drum with Sheepskin, Traditional Newborn Toy for Boys and Girls

Baby Rattle Toy - Chewable Wooden Handheld Drum with Sheepskin, Traditional Newborn Toy for Boys and Girls

$13.00

Mineral Water Bucket Inverted Stand 6L Bottle Pump Dispenser Manual Pressure Water Extractor for Water Coolers

Mineral Water Bucket Inverted Stand 6L Bottle Pump Dispenser Manual Pressure Water Extractor for Water Coolers

$2.09

Marie's Sketch Blending Stumps & Makeup Sponges – Professional Art Supplies for Students

Marie's Sketch Blending Stumps & Makeup Sponges – Professional Art Supplies for Students

$6.06

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

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

$39.00

Wen Zhengming Small Regular Script: Three Versions of Thousand Character Classic, Two Versions of Red Cliff Ode, Close-Up Copying Cards, Wen Zhengming Calligraphy Model Book

Wen Zhengming Small Regular Script: Three Versions of Thousand Character Classic, Two Versions of Red Cliff Ode, Close-Up Copying Cards, Wen Zhengming Calligraphy Model Book

$10.00