Skip to main content
Home / Computer Hardware, Monitors & Peripherals / HC-SR04 Ultrasonic Distance Measurement Module 5V Ranging Sensor for Microcontroller Programming Development Boards

Attributes

Brand -
Category Electronic Components / Maker DIY / Computer Hardware, Monitors & Peripherals
Origin -
Operating Voltage 5V DC
Operating Current 15mA
Operating Frequency 40kHz
Measuring Range 2cm to 400cm
Measuring Angle 15 degrees
Trigger Input Signal 10uS TTL pulse
Echo Output Signal TTL level signal
Module Dimensions 45mm x 20mm x 15mm
Net Weight 8 grams
Interface Type 4-Pin Header

5 reviews

A

Anonymous

Mar 07, 2026

Rating: 5/5

Perfect for Arduino

Works exactly as expected. Easy to wire up with my Uno. Distance readings are consistent within indoor environments.

A

Anonymous

Feb 27, 2026

Rating: 5/5

Standard HC-SR04 quality

If you know this module, you know what you get. Genuine module, good soldering on the pins.

A

Anonymous

Feb 27, 2026

Rating: 4/5

Good value

Solid sensor for the price. Had to tweak the code slightly for better accuracy at close range, but overall happy.

A

Anonymous

Feb 05, 2026

Rating: 5/5

Reliable distance measurement

Bought five of these for a robot car project. All of them functioned perfectly out of the box.

A

Anonymous

Jan 18, 2026

Rating: 5/5

Great for learning

Great for learning ultrasonic sensing. Just remember it needs 5V logic, not 3.3V directly on some pins.

5 FAQ

Q: What is the minimum detection distance?

A: The minimum measurable distance is approximately 2cm. Anything closer may not register accurately.

Q: Does it come with jumper wires?

A: No, this listing is for the module only. Jumper wires are sold separately.

Q: Can I use this outdoors?

A: It can be used outdoors, but wind and temperature may affect accuracy. It is not waterproof.

Q: What library do you recommend for Arduino?

A: The standard NewPing library is highly recommended for better performance than the default example code.

Q: Is this compatible with Raspberry Pi?

A: Yes, but note that the Echo pin outputs 5V. You may need a voltage divider for the GPIO input.

Explore your interests

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