Skip to main content
Home / Computer Hardware, Monitors & Peripherals / Keyes HC-SR04 Ultrasonic Sensor Distance Module for Arduino Smart Car Obstacle Avoidance DIY Projects

Attributes

Brand -
Category Electronic Components / Maker DIY / Computer Hardware, Monitors & Peripherals
Origin -
Operating Voltage 5V DC
Operating Current 15mA
Operating Frequency 40Hz
Measuring Range 2cm - 400cm
Measuring Angle 15 degrees
Trigger Input Signal 10uS TTL pulse
Echo Output Signal TTL level signal
Dimensions 45mm x 20mm x 15mm
Weight 10g
Interface 4 Pin (VCC, Trig, Echo, GND)

5 reviews

A

Anonymous

Mar 21, 2026

Rating: 4/5

Good value sensor

Accurate enough for indoor use. Sometimes struggles with soft surfaces but overall great for the price point.

A

Anonymous

Mar 20, 2026

Rating: 3/5

Sensitive to surface type

Works well on flat walls but gives erratic readings on fabrics or angled surfaces. You need to account for this in your code.

A

Anonymous

Mar 01, 2026

Rating: 5/5

Fast delivery and works

Plug and play with standard libraries. Arrived quickly and was well packaged. No issues during setup.

A

Anonymous

Feb 25, 2026

Rating: 5/5

Essential for obstacle avoidance

Used it on my RC car build. Reaction time is fast enough to stop before hitting walls. Very satisfied with performance.

A

Anonymous

Jan 27, 2026

Rating: 5/5

Perfect for my robot project

Works flawlessly with Arduino Uno. The distance readings are consistent and the library support is excellent. Highly recommend for beginners.

5 FAQ

Q: Can I use this with 3.3V logic boards?

A: While VCC should be 5V, the echo output is 5V. You may need a voltage divider for the Echo pin if connecting to a 3.3V microcontroller.

Q: What library do you recommend?

A: The standard NewPing library works best for this module as it handles timing and multiple sensors efficiently.

Q: What is the accuracy?

A: Typically within 3mm under ideal conditions. Accuracy may vary based on surface texture and environmental temperature.

Q: How many pins does it have?

A: It has 4 pins: VCC, Trig, Echo, and GND. Please refer to the datasheet for the correct pinout orientation.

Q: Does it work underwater?

A: No, this is an air ultrasonic sensor. It is not waterproof and sound waves propagate differently in water.

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