Skip to main content
Home / Computer Hardware, Monitors & Peripherals / Ultrasonic Module HC-SR04 Distance Sensor by Xinwei Electronics

Attributes

Brand -
Category Electronic Components / Maker DIY / Computer Hardware, Monitors & Peripherals
Origin -
Operating Voltage 5V DC
Static Current < 2mA
Measuring Range 2cm - 400cm
Measuring Angle 15 degrees
Trigger Input Signal 10uS TTL pulse
Echo Output Signal TTL level signal
Product Dimensions 45 x 20 x 15 mm
Product Weight 9 grams
Operating Temperature -15 to 70 Celsius
Connector Type 2.54mm Pitch Header

5 reviews

A

Anonymous

Mar 28, 2026

Rating: 3/5

Mixed experience

One failed initially but support helped. The working ones are fine. Just make sure to test them upon arrival.

A

Anonymous

Mar 10, 2026

Rating: 4/5

Good value

Sensitive to angles but good overall. I had to adjust the mounting position to get stable readings. Once positioned correctly, it works well.

A

Anonymous

Feb 26, 2026

Rating: 5/5

Fast shipping

Arrived early and well packaged. Both sensors I ordered work perfectly. Using them for a parking assist project.

A

Anonymous

Feb 11, 2026

Rating: 5/5

Accurate

Used for robot car obstacle avoidance. The response time is quick enough for my application. No issues with connectivity.

A

Anonymous

Jan 17, 2026

Rating: 5/5

Great for Arduino Robotics

Works exactly as expected. Easy to wire up with my Arduino Uno. Distance readings are consistent within the specified range. Great value for money.

5 FAQ

Q: How many pins does it have?

A: It has 4 pins: VCC, Trigger, Echo, and Ground.

Q: What is the accuracy?

A: Typically within 3mm under ideal conditions, but surface material affects reflection.

Q: Can this run on 3.3V logic?

A: While VCC should be 5V, the echo output is 5V. You may need a voltage divider for 3.3V microcontrollers.

Q: Does it work outdoors?

A: It can work outdoors, but wind and temperature changes may affect accuracy slightly.

Q: Is there a library available?

A: Yes, most Arduino IDE installations include example code, and many community libraries exist.

Explore your interests

All Categories
Best Seller (30)
New List (30)
2MM 3MM 4MM Natural Color-Gradient Amethyst Soccer-Cut Faceted Loose Beads - Semi-Finished Amethyst Cuts

2MM 3MM 4MM Natural Color-Gradient Amethyst Soccer-Cut Faceted Loose Beads - Semi-Finished Amethyst Cuts

$17.00

Educational Toys for Babies 0-3 Years - Newborn Rattle and Musical Stick for Boys and Girls (0-12 Months)

Educational Toys for Babies 0-3 Years - Newborn Rattle and Musical Stick for Boys and Girls (0-12 Months)

$12.80

Variable Frequency Drive Cabinet for Fans with Energy-Saving VFD Control

Variable Frequency Drive Cabinet for Fans with Energy-Saving VFD Control

$11,334.00

Pure Water Bucket Stand with Manual Pump, Inverted Dispenser Rack for Large Bottles, Simple Water Dispenser

Pure Water Bucket Stand with Manual Pump, Inverted Dispenser Rack for Large Bottles, Simple Water Dispenser

$4.65

Spray Tower Exhaust Gas Treatment System - Industrial Air Purification for Dust, Acid Mist, and Alkali Scrubbing

Spray Tower Exhaust Gas Treatment System - Industrial Air Purification for Dust, Acid Mist, and Alkali Scrubbing

$1,738.00

Acrylic Markers Opaque Overlapping Colors Art Drawing Pens Specialized Ink Cores

Acrylic Markers Opaque Overlapping Colors Art Drawing Pens Specialized Ink Cores

$49.90

Cute Portable Invisible Aligner Case - Storage Box for Orthodontic Retainers, Teeth Correctors, and Dentures

Cute Portable Invisible Aligner Case - Storage Box for Orthodontic Retainers, Teeth Correctors, and Dentures

$5.78

SolidWorks Software Remote Installation Service - Versions 2025/2024/2023/2022/2021/2020/2018

SolidWorks Software Remote Installation Service - Versions 2025/2024/2023/2022/2021/2020/2018

$10.00

Nylon Paint Small Brush Painting Brush Computer Cleaning Dust Brush Sweeping Gray Size Brushes BBQ Flat Brush

Nylon Paint Small Brush Painting Brush Computer Cleaning Dust Brush Sweeping Gray Size Brushes BBQ Flat Brush

$0.90

Compact Home Range Hood - Portable USB Desktop Smoke Extractor for Hot Pot & BBQ

Compact Home Range Hood - Portable USB Desktop Smoke Extractor for Hot Pot & BBQ

$41.00

Large Area Hollow Advertising Sign Spray Paint Stencil Customizable Bendable Lettering Board Wall Slogan Brushing Soft Mold

Large Area Hollow Advertising Sign Spray Paint Stencil Customizable Bendable Lettering Board Wall Slogan Brushing Soft Mold

$5.00

Heavy-Duty Kitchen Sink Storage Rack, Dust-Proof Dish Drainer, Multi-Function Bowl Organizer

Heavy-Duty Kitchen Sink Storage Rack, Dust-Proof Dish Drainer, Multi-Function Bowl Organizer

$85.00

Xinda Outdoor Waterproof Backpack - IPX7 Wet/Dry Separation Rucksack for River Trekking, Mountaineering, Snorkeling, Swimming, and Rafting

Xinda Outdoor Waterproof Backpack - IPX7 Wet/Dry Separation Rucksack for River Trekking, Mountaineering, Snorkeling, Swimming, and Rafting

$109.55

[Damai Patented Microneedle Hair Transplant] Hairline + Eyebrow Planting | 1000 Grafts Hairline + Both Eyebrows

[Damai Patented Microneedle Hair Transplant] Hairline + Eyebrow Planting | 1000 Grafts Hairline + Both Eyebrows

$17,800.00

Pure Wool Calligraphy Felt Mat – Thickened, Wear-Resistant Fabric for Chinese Painting and Brush Writing; Custom Desk Pad

Pure Wool Calligraphy Felt Mat – Thickened, Wear-Resistant Fabric for Chinese Painting and Brush Writing; Custom Desk Pad

$1,440.00

Welding Fume Purifier – Effective Collection and Control of Welding Smoke and Dust

Welding Fume Purifier – Effective Collection and Control of Welding Smoke and Dust

$12.40

FRP Stair Nosing, Yellow Anti-Slip Stair Treads with Granular Surface

FRP Stair Nosing, Yellow Anti-Slip Stair Treads with Granular Surface

$64.00

Stainless Steel Reaction Kettle, Emulsifying Tank, Electric Heating Reactor, Enamel-Glass Silicone Oil Reactor, and Mixing Vessel

Stainless Steel Reaction Kettle, Emulsifying Tank, Electric Heating Reactor, Enamel-Glass Silicone Oil Reactor, and Mixing Vessel

$2,700.00

Wholesale Acrylic Markers in Bags, Student Water-Based Ink Pens, Eco-Friendly Non-Toxic Drawing Pens with Layering Capability

Wholesale Acrylic Markers in Bags, Student Water-Based Ink Pens, Eco-Friendly Non-Toxic Drawing Pens with Layering Capability

$5.80

Oil Pastel Blending Pen and Smudge Tool Set - Soft Tip Sponge Balls and Scrapers for Heavy Color Wax Crayon Blending and Painting

Oil Pastel Blending Pen and Smudge Tool Set - Soft Tip Sponge Balls and Scrapers for Heavy Color Wax Crayon Blending and Painting

$12.50

Lechuang Commercial Electric Heated Display Warmer - Countertop Food Warmer for Cooked Foods, Bread, and Pizza

Lechuang Commercial Electric Heated Display Warmer - Countertop Food Warmer for Cooked Foods, Bread, and Pizza

$1,250.00

Model 2500-480 Independent Rotary Die Second-Hand Special Sale Independent Light Pressure Front Edge with Die Cutting Speed 120-150

Model 2500-480 Independent Rotary Die Second-Hand Special Sale Independent Light Pressure Front Edge with Die Cutting Speed 120-150

$2,000.00

Fishing Alarm Portable Electronic Fishing Bite Alarm Night

Fishing Alarm Portable Electronic Fishing Bite Alarm Night

$60.27

Shengxitao 304 Stainless Steel Expandable Dish Drainer Basket for Kitchen Sink, Dish Rack Organizer

Shengxitao 304 Stainless Steel Expandable Dish Drainer Basket for Kitchen Sink, Dish Rack Organizer

$58.60

Industrial Scouring Pad with Abrasive Grit - Sandpaper Cloth for Rust Removal, Polishing, and Dishwashing

Industrial Scouring Pad with Abrasive Grit - Sandpaper Cloth for Rust Removal, Polishing, and Dishwashing

$0.34

Traveling-Type Air Flotation Skimmer and Foam Remover, Reciprocating Fully Automatic Oil Skimming and Floating Debris Removal Machine

Traveling-Type Air Flotation Skimmer and Foam Remover, Reciprocating Fully Automatic Oil Skimming and Floating Debris Removal Machine

$5,159.00

Language of Drums Motion Path Set Drum Creativity Essence Rhythm Drum Kit Teaching Material Jazz Drum

Language of Drums Motion Path Set Drum Creativity Essence Rhythm Drum Kit Teaching Material Jazz Drum

$59.17

1.9m Wide-Format Sublimation Printer for Pillows, Garments, and Fabric Digital Printing

1.9m Wide-Format Sublimation Printer for Pillows, Garments, and Fabric Digital Printing

$600.00

Automatic Retractable Air Hose Reel - Pneumatic Shrinking Hose Drum Combo for Auto Repair (Air, Electric, Water) - National Standard

Automatic Retractable Air Hose Reel - Pneumatic Shrinking Hose Drum Combo for Auto Repair (Air, Electric, Water) - National Standard

$228.00

Marie's Paper Blending Stumps Thickened Xuan Paper Blending Stumps Marie's Student Sketch Set Blending Stumps Rubbing Cotton Painting Special Paper Blending Stumps Smudging Pens Art Supplies Xuan Paper Sketch Fixative

Marie's Paper Blending Stumps Thickened Xuan Paper Blending Stumps Marie's Student Sketch Set Blending Stumps Rubbing Cotton Painting Special Paper Blending Stumps Smudging Pens Art Supplies Xuan Paper Sketch Fixative

$5.09