Order amount over $150 will upgrade to express shipping for free.

Ultrasonic Ranging Detector Mod HC-SR04 Distance Sensor

Click on above image to view full picture

Ultrasonic Ranging Detector Mod HC-SR04 Distance Sensor

SKU:20-019-100 | UPC:6955170800483

Ultrasonic ranging module HC - SR04 provides 2cm - 400cm non-contact measurement function, the ranging accuracy can reach to 3mm. The modules includes ultrasonic transmitters, receiver and control circuit.

Sign up for price alert

Availability: In stock

Special Price: $3.59

Regular Price: $4.99

10 + $2.99  save 17%
20 + $1.99  save 45%

* Required Fields

- +
  • Description
  • Payment
  • Shipping
  • Product Tags



Ultrasonic ranging module HC - SR04 provides 2cm - 400cm non-contact measurement function, the ranging accuracy can reach to 3mm. The modules includes ultrasonic transmitters, receiver and control circuit. The basic principle of work:

  •      Using IO trigger for at least 10us high level signal,
  •      The Module automatically sends eight 40 kHz and detect whether there is a pulse signal back.
  •      IF the signal back, through high level , time of high output IO duration is the time from sending ultrasonic to returning. Test distance = (high level time×velocity of sound (340M/S) /2

Wire connecting direct as following:

  •     5V Supply
  •     Trigger Pulse Input
  •     Echo Pulse Output
  •     0V Ground

If you are sourcing a ultrasonic ranging module , the HC-SR04 is good choose . Its stable performance and high ranging accuracy  make it a popular module in electronic market .
Compared to the Shap IR ranging module , HC-SR04 is more inexpensive than it . But it has the same ranging accuracy and longer ranging distance.


  •     power supply :5V DC
  •     quiescent current : <2mA
  •     effectual angle: <15°
  •     ranging distance : 2cm – 500 cm
  •     resolution : 0.3 cm

There are 4 pins out of the module : VCC , Trig, Echo, GND . So it's a very easy interface for controller to use it ranging. The all process is : pull the Trig pin to high level  for more than 10us impulse , the module start ranging ; finish ranging , If you find an object in front , Echo pin will be high level , and based on the different distance,it will take the different duration of high level. So we can calculated the distance easily :

Distance = ((Duration of high level)*(Sonic :340m/s))/2

Finally , look at the back of the module .All of the chip in the module have been burnish , maybe the author want to prevent the designed from plagiarism. But ultrasonic ranging module is nearly the same principle, so it's not hard to speculated that the role of the chip — I'm sure at least one 74series chip on it ; ) . It is not a difficult task to crack it , but … it's at so low a price , even cheaper than your copy.


Customer Reviews

6 Item(s)

per page
With work I got PInChange Interrupt to worKReview by Tony
(Posted on 1/24/14)

It interfaces well, but if you block while waiting it does use a lot of processing time.

With very little work you can get it working on pin change interrupts then its absolutely brilliant!

I have also constructed a table of temperature to speed of sound and by measurement can get better that +/= 10 mm resolution, did not expect this from such a low cost device.

Ultrasonic water level monitoringReview by KK4HFJ
(Posted on 1/3/14)

My Arduino sketch takes the height and radius of a cylinder in centimeters, and outputs a fluid level in liters. The concept here is for a cistern. It tells you how many liters of water are left, by bouncing a signal off the surface of the water. This inexpensive sensor was easy to use and very accurate.

Come 2nd TimeReview by Peter
(Posted on 11/4/13)

Perfect! A good ultrasonic ranging module, it makes my toy more powerful!

COOLReview by WALL
(Posted on 11/4/13)

Cool! An accurate measurement device! It is very easy to use. In addition, it is moderate in price.

i like itReview by bruse
(Posted on 6/20/13)

It was very easy to set up and use with an SainSmart Uno board. (Make the following connections from the HC-SR04 to the Arduino, respectively: VCC to 5V; GND to GND; Trig to any digital output; Echo to any digital input.) It was somewhat unstable using the Arduino 5V when running off USB power (it would fluctuate and even dip to a 0 cm reading for no reason), but this was fixed by using a 9v/650mA adapter, instead.

Work perfectly!Review by Edgar
(Posted on 7/13/12)

I am working on a little project and needed sensor to detect when an object was approaching. I decided on the HC-SR054 coz it was cheap. Upon receipt, I plugged it directly into the LCD4884 and had it working within 5 minutes based on the included library.
Works perfectly and a great price.

6 Item(s)

per page

Write Your Own Review

Only registered users can write reviews. Please, log in or register

We accept payment through Paypal
PayPal is a safer, easier way to pay. You can use your credit card or bank account without exposing your financial information. You can link your credit card or bank account to your PayPal account so you don't have to enter your card number or address when you shop on SainSmart. Just log in to PayPal and quickly check out in a few clicks. In addition, PayPal accepts payments in multiple currencies.

Using PayPal with SainSmart:

1. Visit product page, and click “” or checkout on shopping cart page after reviewing your order details. You will be directed to PayPal website.
2. Log in to your PayPal account, or pay by using your credit cart.
3. Just follow the instructions given by PayPal. You will quickly check out in a few clicks.
4. Please key in the correct shipping address in English while checking out with PayPal. Or the order will be shipped to your PayPal address.

5. Normally, order will be shipped out in 1-2 business days.

Advantages of using PayPal:
Payment is traceable. You can trace the status of your payment using your PayPal account.

Payment does not require you to use your credit card online (you can transfer directly from your bank account). If you do use your credit card through PayPal, sainsmart.com and other users cannot see your credit card information, therefore minimizing the risk of unauthorized use.

Estimate Shipping

Enter your destination to get a shipping estimate.

  • Yes No


Prices and Rates

1.SainSmart provides two delivery methods from which to choose:
   (1)STANDARD SHIPPING(Free to USA, United Kindom, Canada, Australia, Germany, France, $5 to other countries)
   (2)EXPEDITED SHIPPING($12.50 to USA, $17.99 to other countries)



Import duties, taxes and charges are not included in the item price or shipping charges. Please find out as much as you can about import taxes in your own country before purchasing an item. In special cases, you may need to pay import duties on certain goods. We will endeavor to assist and cover in cases where duty is charged, if you are charged customs then please collect the package, pay any fees due and then contact us and we will reimburse you. For any assistant on this, you may kindly contact us. We promise to do our best for you.


Delivery & Tracking


Depending on your location and the type of goods you have purchased, SainSmart.com will dispatch your items via 1 from 5 carriers. Items will be shipped from our main warehouse in China. If you prefer to have it shipped from other warehouse, please contact us via support@sainsmart.com

Standard Shipping:

China Post is economic airmail reaching most part of the world, which generally takes about approximately 20 business days to arrive. And this will reduce the risk charging by local custom.
The delivery status of a package can be checked via the Internet at http://intmail.11185.cn/itemstatus_en.jsp (for tracking numbers beginning with “RA”)

EUB is also known as E-packet, which is especially for delivery to USA. It takes about 10-12 days to arrive. The delivery status of a package can be checked via the Internet at https://tools.usps.com/go/TrackConfirmAction_input (for tracking numbers beginning with “LN”)

Express Shipping:

DHL/UPS: We ship the item(s) by DHL / UPS from our warehouses in China. Your item(s) will normally be sent out within 1-2 business days and it takes approximately 3-5 business days to arrive depending on the destination.


Tracking website:


EMS: For some countries where UPS/DHL will not deliver, we will ship the item(s) via EMS, reaching you 8-15 days. Countries list for EMS shipping: Brazil, Russia, India, Turkey, Mexico, South Africa, Argentina, Saudi Arabia, Hungary, Romania, Israel, Philippines, Slovakia, Greece, South Korea.
The delivery status of a package can be checked via the Internet at http://www.ems.com.cn/english.html (for tracking numbers beginning with “EE”)

Product Tags

Other people marked this product with these tags:

Use spaces to separate tags. Use single quotes (') for phrases.

Upsell Products

Also Bought