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

View More
All Categories
Best Seller (30)
New List (30)
Natural Wheat Straw Baby Rattle - Children's Musical Instrument Toy, Maraca, Shaker Bell for Newborns - Orff Music Instrument

Natural Wheat Straw Baby Rattle - Children's Musical Instrument Toy, Maraca, Shaker Bell for Newborns - Orff Music Instrument

$10.80

CANDLE.LAB | 100% Cotton Unwaxed Candle Wick Roll - Thin Stem Chandelier Candle Making Supplies #31

CANDLE.LAB | 100% Cotton Unwaxed Candle Wick Roll - Thin Stem Chandelier Candle Making Supplies #31

$25.00

Pneumatic Rotary Vibrator - Feiyu GT25 Pneumatic Vibrator - Quality Guaranteed

Pneumatic Rotary Vibrator - Feiyu GT25 Pneumatic Vibrator - Quality Guaranteed

$997.00

Quick-Frozen Vegetable Deodorizing Sterilization Washer IRW Zhongfang Ready-to-Cook Vegetable Production Washing Line Semi-Finished Vegetable Processing Oxygen Equipment

Quick-Frozen Vegetable Deodorizing Sterilization Washer IRW Zhongfang Ready-to-Cook Vegetable Production Washing Line Semi-Finished Vegetable Processing Oxygen Equipment

$27,000.00

KETELES 105R7120 Carbon Fiber Road Bike - Lightweight Racing Bicycle with Gear Shifter

KETELES 105R7120 Carbon Fiber Road Bike - Lightweight Racing Bicycle with Gear Shifter

$11,339.00

Natural White Crystal Sugar Cube DIY Crystal Jewelry Accessories Materials Irregular White Crystal Blocks

Natural White Crystal Sugar Cube DIY Crystal Jewelry Accessories Materials Irregular White Crystal Blocks

$2.50

Foldable Silicone Brush Washing Bucket - Portable Water Container for Calligraphy and Painting Students

Foldable Silicone Brush Washing Bucket - Portable Water Container for Calligraphy and Painting Students

$8.42

Cute Cartoon Bird Ceramic Brush Washer - Decorative Pen Cleaning Cup and Photo Prop

Cute Cartoon Bird Ceramic Brush Washer - Decorative Pen Cleaning Cup and Photo Prop

$12.60

Kitchen Storage Rack with Drainage Tray – Organizer for Dishcloths, Faucets, Sink Areas, and Dishwashing Supplies

Kitchen Storage Rack with Drainage Tray – Organizer for Dishcloths, Faucets, Sink Areas, and Dishwashing Supplies

$4.15

Sheng Y Graffiti Paint Brush Set, Children's Stationery Kit with Art Watercolor Pens, Factory Direct Gift Supplies

Sheng Y Graffiti Paint Brush Set, Children's Stationery Kit with Art Watercolor Pens, Factory Direct Gift Supplies

$49.10

Ningbo Manufacturer Display and Storage Rack, Wall-Mounted Tire Storage for Home Garage, Customizable Wall Tire Rack

Ningbo Manufacturer Display and Storage Rack, Wall-Mounted Tire Storage for Home Garage, Customizable Wall Tire Rack

$237.60

Universal Low-Temperature 3D Printing Pen Filament PCL, Eco-Friendly Material Wire 1.75mm Compatible with Deli Pens, 40 Color Options

Universal Low-Temperature 3D Printing Pen Filament PCL, Eco-Friendly Material Wire 1.75mm Compatible with Deli Pens, 40 Color Options

$3.80

Automatic Feeder - Stainless Steel Food Machinery Accessory Equipment

Automatic Feeder - Stainless Steel Food Machinery Accessory Equipment

$20,150.00

Henkel Loctite Super Glue Series: 401, 406, 460, 480, 495, 4011, 4161, 496, 382, 410

Henkel Loctite Super Glue Series: 401, 406, 460, 480, 495, 4011, 4161, 496, 382, 410

$28.00

Over-Toilet Storage Rack with Tissue Organizer for Bathroom, Vanity, and Shower Gel - Multi-Use Bathroom Shelf

Over-Toilet Storage Rack with Tissue Organizer for Bathroom, Vanity, and Shower Gel - Multi-Use Bathroom Shelf

$27.66

15-inch Carbon Fiber FPV Drone Frame - High-Strength Quadcopter Aerial Photography Chassis Direct Sale

15-inch Carbon Fiber FPV Drone Frame - High-Strength Quadcopter Aerial Photography Chassis Direct Sale

$396.44

Petal-Shaped Ceramic Tea Scoop and Holder for Gongfu Tea Ceremony

Petal-Shaped Ceramic Tea Scoop and Holder for Gongfu Tea Ceremony

$97.00

Scented Candle Waxing Cotton Wick with Base Wick Fixer Sticker DIY Materials

Scented Candle Waxing Cotton Wick with Base Wick Fixer Sticker DIY Materials

$0.35

Stainless Steel Fish Tank Converter - Bucket to Aquarium Adapter with Inverted Stand and Faucet Spout for Mineral Water Jugs

Stainless Steel Fish Tank Converter - Bucket to Aquarium Adapter with Inverted Stand and Faucet Spout for Mineral Water Jugs

$13.58

Non-woven Cleaning Cloths, Lint-free Wiping Rags, Oil-absorbing Paper, Machine Cleaning Cloth, Dust Removal Cloth for Subway Use (No Washing Required)

Non-woven Cleaning Cloths, Lint-free Wiping Rags, Oil-absorbing Paper, Machine Cleaning Cloth, Dust Removal Cloth for Subway Use (No Washing Required)

$138.00

Large Paint Brush Set - Watercolor Pen Kit for Children's Day Art and Drawing

Large Paint Brush Set - Watercolor Pen Kit for Children's Day Art and Drawing

$31.25

Foldable Car Tire Stone Removal Tool, Explosion-Proof Scraper Hook for Extracting Pebbles from Tires

Foldable Car Tire Stone Removal Tool, Explosion-Proof Scraper Hook for Extracting Pebbles from Tires

$19.53

Black Swan Watercolor, Gouache, and Acrylic Paint Brush Set - Professional Art Painting Tools for Numbered Paint-by-Number Kits

Black Swan Watercolor, Gouache, and Acrylic Paint Brush Set - Professional Art Painting Tools for Numbered Paint-by-Number Kits

$6.80

Jiangchuan 800 Roll-to-Roll Oil-Heated Roller Heat Transfer Machine – Digital Sublimation Printer for Curtain Fabric Rolls

Jiangchuan 800 Roll-to-Roll Oil-Heated Roller Heat Transfer Machine – Digital Sublimation Printer for Curtain Fabric Rolls

$147,743.75

Traditional Handcrafted Wooden Rattle for Newborns – Safe for Teething, Intangible Cultural Heritage Toy

Traditional Handcrafted Wooden Rattle for Newborns – Safe for Teething, Intangible Cultural Heritage Toy

$10.10

All-Season Quiet and Comfortable Vacuum Tires for Buick Enclave 2013-2014 - Custom Fit, Wear-Resistant

All-Season Quiet and Comfortable Vacuum Tires for Buick Enclave 2013-2014 - Custom Fit, Wear-Resistant

$458.00

Mia Core Paper Stump and Blending Knife Set, Double-Ended Blending Pen for Sketching, Art Student Drawing Tools (S/M/L)

Mia Core Paper Stump and Blending Knife Set, Double-Ended Blending Pen for Sketching, Art Student Drawing Tools (S/M/L)

$4.28

Feileniao Gongbi Painting Draft Sheets – Pre-Outlined Bird-and-Flower Designs on Sized Xuan Paper for Color Filling Practice

Feileniao Gongbi Painting Draft Sheets – Pre-Outlined Bird-and-Flower Designs on Sized Xuan Paper for Color Filling Practice

$8.42

Automatic Retractable Air Hose Reel, Electronic Drum, Water Drum, Yarn Clamp, Air Pump Hose for Auto Repair, Beauty, Gardening, and Washing

Automatic Retractable Air Hose Reel, Electronic Drum, Water Drum, Yarn Clamp, Air Pump Hose for Auto Repair, Beauty, Gardening, and Washing

$280.00

LA Curved Surface Screen Printing Machine - Automatic Cup Printer, Cylindrical Net Printer for Cosmetic Bottles

LA Curved Surface Screen Printing Machine - Automatic Cup Printer, Cylindrical Net Printer for Cosmetic Bottles

$26,750.00