or
Sign in to turn on 1-Click ordering.
More Buying Choices
zitrades Add to Cart
$5.18  & FREE Shipping on orders over $25. Details
Sain Store Add to Cart
$5.19  & FREE Shipping on orders over $25. Details
Have one to sell? Sell yours here
Sorry, this item is not available in
Image not available for
Color:
Image not available

To view this video download Flash Player

 

Ultrasonic Module HC-SR04 Distance Sensor For Arduino

by SainSmart
4.5 out of 5 stars  See all reviews (74 customer reviews)

List Price: $14.95
Price: $5.19 & FREE Shipping on orders over $25. Details
You Save: $9.76 (65%)
o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o o
In Stock.
Sold by LasTEK and Fulfilled by Amazon. Gift-wrap available.
Want it tomorrow, June 20? Choose One-Day Shipping at checkout. Details

Product Features

  • 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

Frequently Bought Together

Ultrasonic Module HC-SR04 Distance Sensor For Arduino + Wall Adapter Power Supply - 9V DC 650mA + Arduino UNO R3 board with DIP ATmega328P
Price for all three: $33.13

Buy the selected items together

Product Information

Technical Details
Product Dimensions1.3 x 0.4 inches
  
Additional Information
ASINB004U8TOE6
Shipping Weight3.5 ounces (View shipping rates and policies)
Date First AvailableMarch 29, 2011
  
Feedback
Would you like to give feedback on images?
 


Technical Details

  • Brand Name: SainSmart

Product Description

NOTE:The link is the documents about Ultrasonic Module HC-SR04 Distance Sensor.

https://s3-ap-northeast-1.amazonaws.com/sain-amzn/20/20-019-100/HC-SR04.rar

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

4.5 out of 5 stars
(74)
4.5 out of 5 stars
Share your thoughts with other customers
Most Helpful Customer Reviews
33 of 33 people found the following review helpful
4.0 out of 5 stars I like it! November 15, 2011
Amazon Verified Purchase
Educational: 4.0 out of 5 stars    Fun: 4.0 out of 5 stars   
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!
Was this review helpful to you?
18 of 18 people found the following review helpful
Amazon Verified Purchase
Durability: 5.0 out of 5 stars    Educational: 5.0 out of 5 stars    Fun: 5.0 out of 5 stars   
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?
22 of 23 people found the following review helpful
5.0 out of 5 stars Not a toy, but a good module September 21, 2011
By Mike
Amazon Verified Purchase
Durability: 3.0 out of 5 stars    Educational: 5.0 out of 5 stars    Fun: 5.0 out of 5 stars   
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.
Was this review helpful to you?
12 of 13 people found the following review helpful
5.0 out of 5 stars Simple and accurate October 17, 2011
Amazon Verified Purchase
Durability: 5.0 out of 5 stars    Educational: 5.0 out of 5 stars    Fun: 5.0 out of 5 stars   
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.
Was this review helpful to you?
10 of 11 people found the following review helpful
5.0 out of 5 stars Very cool and easy to use January 28, 2013
By iltl32
Amazon 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 ›
Was this review helpful to you?
3 of 3 people found the following review helpful
5.0 out of 5 stars Great range measurement device for the price December 21, 2012
Amazon Verified Purchase
Just got this in the mail and started to use it. You can use the Ping))) example in the ardunio libraries, but you need to modify it a bit. The GND and VCC pins are just Ground and 5V. The original arduino example assumes a sensor with only 3 pins so for this sensor you have to name and assign a dedicated input pin and output pin. From the sensor use the Trig pin as output from the arduino board and the Echo as a input. Other than that the code should be enough to get you going.

The capabilities of the sensor are what I expected. It seems to need to be directly facing the object and flat surfaces work best. I set it on a table with a meter stick and it was surprisingly accurate at the 1 meter mark as well as being able to distinguish every centimeter interval.

Good Luck!
Comment | 
Was this review helpful to you?
Most Recent Customer Reviews
5.0 out of 5 stars Inexpensive but works great
I wanted a bunch of inexpensive distance sensors for an Arduino workshop I was giving. These seem to work as well as the $25 rangefinders I was using before, are a lot cheaper and... Read more
Published 19 hours ago by Akkana Peck
5.0 out of 5 stars Works great!
Wired it up and tested it out. I'm getting 1/2" to 1" accuracy over 2-3 feet. Will have to try it out at greater distances. Great little sensor!
Published 6 days ago by Andy M.
5.0 out of 5 stars Works Perfectly
Great sensor. For this price, it was well worth it. Radioshack charges $29.99 for this thing and I got it here for $5. Will buy again.
Published 11 days ago by Thomas
5.0 out of 5 stars Great !!!!
i love it
work as like i want it
no more
with my rasp berrry sonar c
i like it
Published 15 days ago by victor medrano pmb #36382
5.0 out of 5 stars Good
It works great and is relatively accurate as I can tell with a ruler and my hand. For the price, it is amazing. Read more
Published 18 days ago by Seaghan Sefton
4.0 out of 5 stars works well, great deal
The item came quickly and works as promised. I don't think it contained any documentation/data sheet which would have been nice (would have been 5 stars otherwise). Read more
Published 24 days ago by Amazon Customer
5.0 out of 5 stars Great product
Got it work with my Uno in minutes. Stable distance readings up to about 400cm. Great for robot project. Simple 4 wire hookup.
Published 28 days ago by JMT2013
5.0 out of 5 stars Incredibly easy to get working with my Arduino Uno
I ordered this at the same time as I ordered my Arduino Uno R3, and then waited a week or two, thinking that this was going to be complex to set up. Read more
Published 28 days ago by Jody Biggs
5.0 out of 5 stars Okay sensor.
Its an okay sensor. It isn't too much to play with. I used it for my first project. It only measures a little and it seems to lag. Looking for better ones. Read more
Published 1 month ago by Zee
4.0 out of 5 stars Great
Highly recommended. Very cool, very user friendly.
Easy to program and manipulate.
Can't wait to see what else they plan to come up with
Published 1 month ago by Jeffery F. Benson
Search Customer Reviews
Only search this product's reviews

Customer Questions & Answers
Please make sure that your post is a question about the product. Edit your question or post anyway.



Want to discover more products? You may find many from power programmers shopping list.