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)
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

Inner Mongolia Milk Skin Processing Equipment - Condensed Milk and Butter Production Line, Fully Automatic Cheese Making Machine

Inner Mongolia Milk Skin Processing Equipment - Condensed Milk and Butter Production Line, Fully Automatic Cheese Making Machine

$13,580.00

Yijiayi Plastic Surgery - Hair Follicle Analysis to Assess Growth, Prevent Hair Loss, and Plan Transplants

Yijiayi Plastic Surgery - Hair Follicle Analysis to Assess Growth, Prevent Hair Loss, and Plan Transplants

$10.00

Hell Training Rock Guitar by Shinichi Kobayashi - Electric Guitar Speed Playing Tutorial

Hell Training Rock Guitar by Shinichi Kobayashi - Electric Guitar Speed Playing Tutorial

$106.00

Mai Da Chu Commercial Food Warmer Cabinet, Large-Capacity Constant-Temperature Heating Cart for Banquets, Hotels, and Kitchens

Mai Da Chu Commercial Food Warmer Cabinet, Large-Capacity Constant-Temperature Heating Cart for Banquets, Hotels, and Kitchens

$8,165.00

Children's Activity Appliance Storage Box - Case for Braces, Underbite Correctors, Expanders, and Denture Cleaning

Children's Activity Appliance Storage Box - Case for Braces, Underbite Correctors, Expanders, and Denture Cleaning

$16.80

Stainless Steel Cable Raceway Arc-Shaped Anti-Step Floor Metal Surface Mount Decorative Invisible Wire Channel

Stainless Steel Cable Raceway Arc-Shaped Anti-Step Floor Metal Surface Mount Decorative Invisible Wire Channel

$2.50

Electric Watercolor Spray Pen Children Hand-painted Color Pa

Electric Watercolor Spray Pen Children Hand-painted Color Pa

$46.55

408 Fast-Drying Glue - Strong Low-Whitening Instant Adhesive for Metal and Plastic, Heat Resistant

408 Fast-Drying Glue - Strong Low-Whitening Instant Adhesive for Metal and Plastic, Heat Resistant

$53.12

UE5.1-5.7 Ancient Sci-Fi Gate Model Instrument Consultation

UE5.1-5.7 Ancient Sci-Fi Gate Model Instrument Consultation

$2.00

Biliansheng Hair Transplant - Non-Shave Female Hairline Restoration & Density Enhancement

Biliansheng Hair Transplant - Non-Shave Female Hairline Restoration & Density Enhancement

$19,999.00

Water Brush Pen Set Large Capacity Beginner Gouache Solid Watercolor Paint Brush Tools Line Drawing Art Student

Water Brush Pen Set Large Capacity Beginner Gouache Solid Watercolor Paint Brush Tools Line Drawing Art Student

$32.00

Beginner Watercolor Painting Line Art Coloring Book, Hua Meng Lv Ren by Stan, Fine Texture, 2-Pack Free Shipping

Beginner Watercolor Painting Line Art Coloring Book, Hua Meng Lv Ren by Stan, Fine Texture, 2-Pack Free Shipping

$10.60

New Wanli Tire 265/45R21 SU306+ - Compatible with AITO M7, BYD Tang, Range Rover, Li Auto, and NIO

New Wanli Tire 265/45R21 SU306+ - Compatible with AITO M7, BYD Tang, Range Rover, Li Auto, and NIO

$528.00

Suzhou Factory Wholesale Chain Store Logo - RGB Illuminated Letters, Acrylic Neon Signs for Window and Counter Display

Suzhou Factory Wholesale Chain Store Logo - RGB Illuminated Letters, Acrylic Neon Signs for Window and Counter Display

$1,911.00

RoHS 1.0 Environmental Tester for Alloy Analysis and Heavy Metal Detection in Plastic Toys

RoHS 1.0 Environmental Tester for Alloy Analysis and Heavy Metal Detection in Plastic Toys

$15.30

Mont Marte Long-Handle Bristle Brush – Professional Art Brush for Acrylics, Oil Painting, and Flat Wash Techniques

Mont Marte Long-Handle Bristle Brush – Professional Art Brush for Acrylics, Oil Painting, and Flat Wash Techniques

$37,500.00

Portable Plastic Backpack Fertilizer Bucket for Manual Fruit Picking, Seed Feeding, and PPC Fertilization

Portable Plastic Backpack Fertilizer Bucket for Manual Fruit Picking, Seed Feeding, and PPC Fertilization

$9.50

Chinese-Style Hand-Drawn Plant Line Art Coloring Book on 100% Cotton Watercolor Paper

Chinese-Style Hand-Drawn Plant Line Art Coloring Book on 100% Cotton Watercolor Paper

$15.80

Eagle Brand 99021 Industrial Scouring Pads, Cleaning Cloths, and Polishing Pads Supply

Eagle Brand 99021 Industrial Scouring Pads, Cleaning Cloths, and Polishing Pads Supply

$666.00

Pad Printing Machine Parts - Zhongke 4-Inch Blade Clamp, Blade Holder, and Doctor Blade Frame (In Stock)

Pad Printing Machine Parts - Zhongke 4-Inch Blade Clamp, Blade Holder, and Doctor Blade Frame (In Stock)

$4.50

Pneumatic Throttle Valve Quick Connect Fitting SL4-01/4-02/4-03 Air Pressure Regulator Flow Control Valve

Pneumatic Throttle Valve Quick Connect Fitting SL4-01/4-02/4-03 Air Pressure Regulator Flow Control Valve

$8.60

Pad Printing Silicone Rubber Heads Electric Long Round Square Durable Customizable 30-Year Established Store

Pad Printing Silicone Rubber Heads Electric Long Round Square Durable Customizable 30-Year Established Store

$3.00

Specialized Vegetable Growing Box - Foam Balcony Planter, Rectangular Plastic Pot for Home Gardening

Specialized Vegetable Growing Box - Foam Balcony Planter, Rectangular Plastic Pot for Home Gardening

$41.70

Candy Naoko Gujima Mr. Saxophone City Pop Sheet Music with Accompaniment Demo

Candy Naoko Gujima Mr. Saxophone City Pop Sheet Music with Accompaniment Demo

$37.00

Multi-Color Detachable Water Bucket Stand - Office Purified Water Dispenser Holder (Inverted)

Multi-Color Detachable Water Bucket Stand - Office Purified Water Dispenser Holder (Inverted)

$60.95

Oil-Based Original Strong Fast-Drying Adhesive for Metal, Plastic, Rubber, Ceramics, and Wood, Multi-Purpose Transparent Glue (Not 502)

Oil-Based Original Strong Fast-Drying Adhesive for Metal, Plastic, Rubber, Ceramics, and Wood, Multi-Purpose Transparent Glue (Not 502)

$21.60

Jay Chou - Feng BROTHER_CHAO Piano Accompaniment Sheet Music

Jay Chou - Feng BROTHER_CHAO Piano Accompaniment Sheet Music

$50.00

Toplip Automatic Retractable Air Hose Reel, Water Drum, High-Pressure Foam Drum for Pneumatic Tools and Auto Repair

Toplip Automatic Retractable Air Hose Reel, Water Drum, High-Pressure Foam Drum for Pneumatic Tools and Auto Repair

$118.00

500L Yogurt Production Line - Stand-Up Pouch Filling Machine with Complete Dairy Processing Equipment and Fermentation Tank

500L Yogurt Production Line - Stand-Up Pouch Filling Machine with Complete Dairy Processing Equipment and Fermentation Tank

$13,720.00