Qty:1

Other Sellers on Amazon
Add to Cart
$6.88
+ Free Shipping
Sold by: USPRO
Add to Cart
$6.99
& FREE Shipping on orders over $35.00. Details
Sold by: Sain Store
Add to Cart
$7.18
& FREE Shipping on orders over $35.00. Details
Sold by: Juliet's gift
Have one to sell? Sell on Amazon

Image Unavailable

Image not available for
Color:
  • SainSmart HC-SR04 Ranging Detector Mod Distance Sensor (Blue)
  • Sorry, this item is not available in
  • Image not available
  • To view this video download Flash Player
      

SainSmart HC-SR04 Ranging Detector Mod Distance Sensor (Blue)

| 16 answered questions

List Price: $12.00
Price: $7.19 & FREE Shipping on orders over $35. Details
You Save: $4.81 (40%)
In Stock.
Ships from and sold by Amazon.com.
Blue
  • 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
  • Power supply :5V DC, quiescent current : <2mA,effectualangle: <15 ranging distance : 2cm~500 cm resolution : 0.3 cm
24 new from $3.75

Frequently Bought Together

SainSmart HC-SR04 Ranging Detector Mod Distance Sensor (Blue) + 2pcs nRF24L01+ 2.4GHz Wireless Transceiver Arduino Compatible + HC-SR501 Human Sensor Module Pyroelectric Infrared
Price for all three: $16.18

These items are shipped from and sold by different sellers.

Buy the selected items together


Product Details

Color: Blue
  • Product Dimensions: 1.3 x 0.4 inches
  • Shipping Weight: 0.3 ounces (View shipping rates and policies)
  • Shipping: Currently, item can be shipped only within the U.S.
  • ASIN: B004U8TOE6
  • Item model number: HC-SR04
  • Average Customer Review: 4.3 out of 5 stars  See all reviews (220 customer reviews)
  • Amazon Best Sellers Rank: #1,864 in Electronics (See Top 100 in Electronics)
  • Date first available at Amazon.com: March 29, 2011
  •  Would you like to give feedback on images?.


Product Description

Color: Blue

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

Customer Reviews

So I sent it back, and ordered a replacement.
Bud Ryerson
The sensor then sends these signals to the arduino, and using the libraries you can very easily calculate the distance of the object.
John Michael Petrilli
This particular unit works as advertised, and seems to be as accurate as I would expect from such a device - I highly recommend it!
Jay

Most Helpful Customer Reviews

65 of 67 people found the following review helpful By iltl32 on January 28, 2013
Color Name: Blue Verified Purchase
Does exactly as promised. Very accurate. I had to slightly modify the Ping sketch that came with Ardiuno software, so here it is. Look at the constants for the correct pin placement.

/* Ping))) Sensor

This sketch reads a PING))) ultrasonic rangefinder and returns the
distance to the closest object in range. To do this, it sends a pulse
to the sensor to initiate a reading, then listens for a pulse
to return. The length of the returning pulse is proportional to
the distance of the object from the sensor.

The circuit:
* +V connection of the PING))) attached to +5V
* GND connection of the PING))) attached to ground

[...]

created 3 Nov 2008
by David A. Mellis
modified 30 Aug 2011
by Tom Igoe

This example code is in the public domain.

*/

// Pin number constants
const int triggerPin = 5;
const int echoPin = 6;

void setup() {
// initialize serial communication:
Serial.begin(9600);
}

void loop()
{
// establish variables for duration of the ping,
// and the distance result in inches and centimeters:
long duration, feet, inches, cm;

// The PING))) is triggered by a HIGH pulse of 2 or more microseconds.
Read more ›
3 Comments Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
54 of 57 people found the following review helpful By Alexander on September 14, 2012
Color Name: Blue Verified Purchase
In my physics class, there came an experiment that required measuring the speed of a cheap toy car, with post its, rulers, a timer, and the close coordination of three people.

Needless to say, it wasn't working out.

Unsatisfied with our utter lack of experimental rigor, I bought this sensor.

The library written by cnobile ([...]) is the most important step in getting this running. To an electronics newbie, or a * moderately* experienced coder (myself), banging out the protocol would be a HUGE pain.

If arduino throws an error along the lines of "wiring.h does not exist", look for \HCSR04Ultrasonic\Ultrasonic.h in the library folder, open it in a good text editor, and change wiring.h to "Arduino.h". The Arduino IDE changed a few things since this library was released, and this worked for me.

Lastly, if you want to ditch the breadboard (assuming arduino UNO R3), plug Trig into 12 and Echo into 13. Conveniently this puts GND at the digital ground. To power the module, we can call 'pinMode(11, OUTPUT);' followed by 'digitalWrite(11, HIGH);' in our setup method, which will configure pin 11 to act as a low current source!

If you want to see my source code, throw me an email: alexander@riccio.com
Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
46 of 48 people found the following review helpful By Ratiocrat on November 15, 2011
Color Name: Blue Verified Purchase
This was very easy to set up and use with an Arduino 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. I have only had it for a few hours, so I can't vouch for its reliability, but for 13 bucks, it's looking great so far!
4 Comments Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
12 of 12 people found the following review helpful By Fernand Ray on June 28, 2013
Color Name: Blue
These SR-04s are readily available now for under two dollars each. I have a dozen of them from various importers. They work OK with various Arduino libraries. It's an extremely useful sensor for countless project.

As some people noted, they also return garbage data at times, especially right after the distance to the target changes. Some of the units are better than others that way, some are quite bad. What the issue seems to be is not responding fast enough for the software, or not at all. Many example sketches translate the invalid state to "0 cm". A filter in the code to discard bad results helps, but that slows average response. If you use the NewPing library's timer interrupt mode, you get no "0 cm", the code waits, sometimes a second or more. I'm not 100% clear on this yet. It's best to buy several and use the better ones. For me, the more expensive 3 pin "Ping" module, that the SR04 apparently copied, performs much better.
2 Comments Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
27 of 31 people found the following review helpful By Mike on September 21, 2011
Color Name: Blue Verified Purchase
This module should be relisted as something other than a toy (it has to be rated as a toy in the review process). Regardless of that, I bought this module instead of the Ping sensor, mostly because this one was less expensive and cost was an issue for this project. It easily integrated with an Arduino and I quickly coded it up to convert the output to distance. It works quite well so far.
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again
14 of 16 people found the following review helpful By Fabio Santos Franco on October 17, 2011
Color Name: Blue Verified Purchase
This is a great product that had simplicity in mind when it was developed. Once you get around the initial overhead of setting it up (a learning overhead), its usage is plain and simple.

The distance measurement is fairly accurate to the millimeters. I couldn't in fact determine if the difference in millimeters was my ruler measurement or if it was actual error of the device.

Like many ultrasonic devices, you can't measure the first few centimeters and I think that's expected.
All in all, I recommend this product for any projects. I used it with a netduino board with no hassle.
1 Comment Was this review helpful to you? Yes No Sending feedback...
Thank you for your feedback. If this review is inappropriate, please let us know.
Sorry, we failed to record your vote. Please try again

Want to discover more products? You may find many from sonics gift card shopping list.