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)
Handcrafted Sheepskin Rattle & Peach Wood Shaker - Pure Copper Brass Bells, Vintage Wooden Toy Safe for Infant Chewing

Handcrafted Sheepskin Rattle & Peach Wood Shaker - Pure Copper Brass Bells, Vintage Wooden Toy Safe for Infant Chewing

$31.50

RIDE ON TIME Tatsuro Yamashita Mr. Fuki Saxophone Trio Accurate Transcription Service

RIDE ON TIME Tatsuro Yamashita Mr. Fuki Saxophone Trio Accurate Transcription Service

$34.00

Metal Unveiling Stand for Ribbon-Cutting Ceremonies - Vertical Display Rack for Grand Openings, Advertising Signs, and Plaques

Metal Unveiling Stand for Ribbon-Cutting Ceremonies - Vertical Display Rack for Grand Openings, Advertising Signs, and Plaques

$159.00

Children's Art Supplies Round Sponge Brush Painting Graffiti Tool Mushroom Head Stamp Kindergarten DIY Rubbing Art

Children's Art Supplies Round Sponge Brush Painting Graffiti Tool Mushroom Head Stamp Kindergarten DIY Rubbing Art

$2.45

Weak Alkaline Water Equipment Wahaha 9.0 Soda Water Small Molecule Water Stable Storage for 24 Months Electrolysis Water Maker

Weak Alkaline Water Equipment Wahaha 9.0 Soda Water Small Molecule Water Stable Storage for 24 Months Electrolysis Water Maker

$20,160.00

RefComp Snowman Italy Refcon Low-Temperature Cold Storage Semi-Hermetic Unit SP2L 0600 (55㎡ Dual)

RefComp Snowman Italy Refcon Low-Temperature Cold Storage Semi-Hermetic Unit SP2L 0600 (55㎡ Dual)

$7,200.00

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

$39.00

IoT Leakage Circuit Breaker with Remote Control via EasyLink, Featuring Metering and Protection

IoT Leakage Circuit Breaker with Remote Control via EasyLink, Featuring Metering and Protection

$510.75

Mia Art Quick-Absorb Sponge for Watercolor Painting - Soft, Durable, Brush-Safe Cleaning and Blending Tool for Students

Mia Art Quick-Absorb Sponge for Watercolor Painting - Soft, Durable, Brush-Safe Cleaning and Blending Tool for Students

$4.25

Incense Burner Pad with Fire-Resistant Cotton - High-Temperature Resistant, Heat-Proof, Home Use, Round Insulating Flame-Retardant Mat for Incense Boxes and Aromatherapy

Incense Burner Pad with Fire-Resistant Cotton - High-Temperature Resistant, Heat-Proof, Home Use, Round Insulating Flame-Retardant Mat for Incense Boxes and Aromatherapy

$3.29

Quilt Storage Bag for Clothes, Cotton Quilts, and Down Jackets - Large Capacity Moving Luggage Compression Organizer

Quilt Storage Bag for Clothes, Cotton Quilts, and Down Jackets - Large Capacity Moving Luggage Compression Organizer

$11.80

Welding Fume Purifier – Effective Dust Collection and Control

Welding Fume Purifier – Effective Dust Collection and Control

$15,740.00

Discount Cocktail Bun and Sausage Bun Electric Heated Display Cabinet for Egg Tarts and Roasted Sweet Potatoes

Discount Cocktail Bun and Sausage Bun Electric Heated Display Cabinet for Egg Tarts and Roasted Sweet Potatoes

$7,633.00

Paint Brush Cleaner with Suction Pump for Watercolor, Gouache, and Acrylics - Essential Tool for Artists

Paint Brush Cleaner with Suction Pump for Watercolor, Gouache, and Acrylics - Essential Tool for Artists

$14.80

Anserui Portable Tire Stone Removal Hook - Multi-Function Car Tire Cleaning Tool

Anserui Portable Tire Stone Removal Hook - Multi-Function Car Tire Cleaning Tool

$23.32

New 420D Oxford Cloth Black Outdoor Leaf Blower Vacuum Bag, Yard Debris Collection and Storage Bag

New 420D Oxford Cloth Black Outdoor Leaf Blower Vacuum Bag, Yard Debris Collection and Storage Bag

$26.00

RoHS Environmental Protection Tester for Electronic Component Solder Joints and PCB Lead/Heavy Metal Detection

RoHS Environmental Protection Tester for Electronic Component Solder Joints and PCB Lead/Heavy Metal Detection

$6,580.00

[Blueberry Midsummer] Qianmu Original Pastoral Lolita Daily JSK Dress, Full Length

[Blueberry Midsummer] Qianmu Original Pastoral Lolita Daily JSK Dress, Full Length

$128.00

Watercolor Coloring Line Art Paper - Gourmet Theme Cotton Pulp Sketchbook for Tracing and Creativity

Watercolor Coloring Line Art Paper - Gourmet Theme Cotton Pulp Sketchbook for Tracing and Creativity

$12.80

Industrial Boiler Oxygen-Enriched Combustion System - Technical Specs for Industrial Oxygen Generators

Industrial Boiler Oxygen-Enriched Combustion System - Technical Specs for Industrial Oxygen Generators

$1,135,199.00

Tanker Truck and Modified Trailer Rear Axle Tires - 445/65R22.5, 425/65R22.5, 385/65R22.5

Tanker Truck and Modified Trailer Rear Axle Tires - 445/65R22.5, 425/65R22.5, 385/65R22.5

$1,500.00

Ancient Craft Mini Peach Wood Rattle Drum Traditional Intangible Cultural Heritage Custom Handmade Toy for Infants

Ancient Craft Mini Peach Wood Rattle Drum Traditional Intangible Cultural Heritage Custom Handmade Toy for Infants

$198.00

Welding Fume Purifier Mobile Welding Fume Extractor Electric Welding Dust Removal Equipment Welding Fume Machine

Welding Fume Purifier Mobile Welding Fume Extractor Electric Welding Dust Removal Equipment Welding Fume Machine

$5,200.00

Japanese Imported Invisible Retainer Case - Portable Cleaning and Soaking Box for Children's Orthodontic Aligners and Dentures

Japanese Imported Invisible Retainer Case - Portable Cleaning and Soaking Box for Children's Orthodontic Aligners and Dentures

$8.42

Promotional Giveaways for Schools - Cartoon Whistles and Rattles for Marketing and Lead Generation

Promotional Giveaways for Schools - Cartoon Whistles and Rattles for Marketing and Lead Generation

$3.29

Premium Used Car Tires in Sizes 145-225, 80-90% New Condition

Premium Used Car Tires in Sizes 145-225, 80-90% New Condition

$54.00

Original Car Tires - Used Passenger Van Tires in Sizes 175/185/195/205 R13/R14/R15/R16/R17

Original Car Tires - Used Passenger Van Tires in Sizes 175/185/195/205 R13/R14/R15/R16/R17

$59.00

BeeNesting Waterproof Bag, Wet/Dry Separation, Large Capacity Storage for Swimming, Beach, Camping, Travel, Outdoor 12+20L

BeeNesting Waterproof Bag, Wet/Dry Separation, Large Capacity Storage for Swimming, Beach, Camping, Travel, Outdoor 12+20L

$33.10

Custom Acrylic UV Printed Advertising Signs - Office Door Plates, ID Tags, Number Plaques, and Small Signboards

Custom Acrylic UV Printed Advertising Signs - Office Door Plates, ID Tags, Number Plaques, and Small Signboards

$1.00

Car Tire Stone Removal Tool - Hook Pick for Cleaning Gravel from Vehicle Treads

Car Tire Stone Removal Tool - Hook Pick for Cleaning Gravel from Vehicle Treads

$4.53