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

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