SunFounder 2 pcs Ultrasonic Module HC-SR04 Distance Sensor for Arduino UNO MEGA R3 Mega2560 Duemilanove Nano Robot Rapsberry Pi 3, 2 & RPi Model B+ XBee ZigBee
Get free shipping
Free 5-8 business-day shipping within the U.S. when you order $25 of eligible items sold or fulfilled by Amazon.
Or get 4-5 business-day shipping on this item for $8.07. (Prices may vary for AK and HI.)Learn more about free shipping
Fulfillment by Amazon (FBA) is a service we offer sellers that lets them store their products in Amazon's fulfillment centers, and we directly pack, ship, and provide customer service for these products. Something we hope you'll especially enjoy: FBA items qualify for FREE Shipping and Amazon Prime.
If you're a seller, Fulfillment by Amazon can help you increase your sales. We invite you to learn more about Fulfillment by Amazon .
- Enter your model number to make sure this fits.
- Increased ranging distance to 7m, providing stable signal within 5m, and gradually faded signal outside 5m till disappearing at 7m position.
- Uses IO trigger for ranging, generating high level signal of at least 10us.
- Operating voltage: 5V; Working current: 16mA.
- Equipped with anti-reverse pin socket – making the wiring much tighter and convenient; 4-pin anti-reverse cable also included.
- Uses the MCU STC15W104 which has a built-in clock, no need of external crystal oscillator.
Frequently bought together
Customers who bought this item also bought
Have a question?
Find answers in product info, Q&As, reviews
Please make sure that you are posting in the form of a question.
The SunFounder HC-SR04 Ultrasonic Ranging module includes an ultrasonic transmitter, receiver and circuits. It has 4 pins: VCC, TRIG, ECHO and GND. The anti-reverse pin header onside makes it easy to connect and apply.
As for the ranging principle, it is quite simple to understand: pull up the pin Trig to High thus providing high level signals of at least 10us, so the module starts to detect and measure the distance; if an object is detected, the ECHO pin will be High, and the duration of it being High depends on the distance detected, thus giving the distance calculation formula: Distance = Duration of High ECHO * Speed of sound (340m/s)/2.
For more details, visit http://wiki.sunfounder.cc/index.php?title=Ultrasonic_Module
Operating voltage: 5V
Working current: 16mA.
Dimensions: 46 x 20.5 x 19.5 mm (thickness of anti-reverse pin socket included)
2 x HC-SR04
2 x 4-Pin anti-reverse cable
Top customer reviews
There was a problem filtering reviews right now. Please try again later.
Once it was working the sensor seems like it is performing OK so the 3 stars is more related to it not "working out the box".
I also have issues with this sensor if there's nothing within ~12 inches (30.48 centimeters) of the sensor, despite the datasheet claiming they have an effective range up to 4m. With any object farther than ~12 inches from the sensors, I get values that jump all over the place, from 0 to 1,000+ µS. Other folks have mentioned it taking a long time to figure out how to use these. The datasheet for the sensors is actually pretty good, so just Google "HC-SR04 datasheet" and you'll find the information you're looking for, including how to convert timings to centimeters and inches.
- Easy to install.
- They perform reasonably well.
- None really
I use these with my makerfire 2WD robot base. My only suggestion is to implement (in your code) some way to smooth your measurements. I'd say about once or twice every minute it get's a bad reading (either infinite distance or 0cm). But hey, they're cheap and there is bound to be interference and what not if you're using this type of range finding technology. You probably want to use a small weighted average window to figure your actual distance; so you don't make any rash decisions.
but one of the two arrived with a loose IC on the circuit board - it fell off the moment I opened the bag. Again, for the price i'm not too upset about that. two for 6 dollars is not bad if it still manages to provide me with ultrasonic ranging.
I will update later on the actual response of this item once I get it connected and running with my Arduino.
The ultrasonic emitters/receivers are loose, and some of the components on the board are very very lightly soldered - they can very easily pop loose if I touch them too much.
1/20/14 - Update:
This unit is different from the parallax sensor in that it uses the 4 pin connection vs a 3 pin connection. If you use an arduino controller for this it's no problem. The various Libraries for ping sensors cover it nicely.
I was able to accurately get ultrasonic ranging from 3 cm up to about 150 cm. Inside that range it's operation was smooth and steady. Beyond 150 cm the unit returns some pretty heavy noise.
I used a total of 14 in an obstacle avoidance robot project workshop. They all worked to spec.
If you need high performance, I suggest using the considerably more expensive Parallax HC5 version.