Elegoo HC-SR04 Ultrasonic Module Distance Sensor for Arduino UNO MEGA2560 Nano Robot XBee ZigBee, Set of 5
Purchase options and add-ons
| Brand | ELEGOO |
| Operating system | Windows 10 |
| CPU model | AMD A Series |
| Graphics card description | Integrated |
| Specific uses for product | Personal |
| Personal computer design type | Barebone |
| Screen size | 3 |
| Model name | EL-SM-001 |
| Included components | Ultrasonic Sensor |
| Colour | Bule |
About this item
- Ultrasonic hc-sr04 distance measuring transducer sensor
- HC-SR04 consists of ultrasonic transmitter, receiver, and control circuit. When trigged it sends out a series of 40KHz ultrasonic pulses and receives echo from an object.
- Power supply: 5V DC; quiescent current: less than 2mA; effectual angle: less than 15°; distance: 2cm~500cm; resolution: 0.3 cm
- Package Content: 5pcs HC-SR04 with a little gift
Frequently bought together

Explore more items
Organizer HC-SR04 Ultrasonic Sensor Distance Module for Arduino UNO MEGA2560 Nano Robot XBee ZigBee by ElecRight (5 PCS)FREE Shipping by 鶹Get it by Thursday, Mar 26
ELEGOO 3PCS 0.96 Inch OLED Display Screen Module with Dupont Wire Compact Self-Luminous Mini Screens for Arduino ProjectFREE Shipping by 鶹Get it by Friday, Mar 27
2PCS Ultrasonic Module HC-SR04 Distance Measuring Transducer SensorFREE Shipping by 鶹Get it by Tuesday, Mar 24Only 9 left in stock.
ELEGOO UNO R3 Board ATmega328P with USB Cable(Arduino-Compatible) for ArduinoFREE Shipping by 鶹Get it by Tuesday, Mar 24
Product information
| Operating System | Windows 10 |
|---|---|
| Specific Uses For Product | Personal |
| Personal Computer Design Type | Barebone |
| Colour | Bule |
| Optical Storage Device | BD-R |
| Hard Disk Description | HDD |
| Hardware Interface | USB |
| Power Consumption | 10 Milliwatts |
| Item Dimensions | 15 x 45 x 30 millimeters |
| Item Weight | 9 g |
| Video Output | HDMI |
| Video Output Interface | HDMI |
| Hard Disk Interface | ATA-4 |
| Style Name | Minimalist |
| Cooling Method | Air |
| Compatible Devices | Arduino UNO, MEGA, Nano, Robot, XBee, ZigBee, Raspberry Pi, Teensy, Particle Photon, ESP8266, ESP32, STM32, MSP430, AVR, PIC, ARM, FPGA, DSP, MCU, and other microcontroller development boards with compatible interfaces such as UART, I2C, SPI, or GPIO. |
| Power Plug Type | No Plug |
| Memory Slots Available | 1 |
|---|---|
| RAM Memory Technology | DDR |
| RAM Type | DDR DRAM |
| Processor Series | AMD A Series |
|---|---|
| Processor Count | 1 |
| Total Number of HDMI Ports | 1 |
|---|
| Wireless Network Technology | Wi-Fi |
|---|---|
| Connectivity Technology | Wi-Fi |
| Wireless Compability | 802.11ac |
| Wireless Technology | Wi-Fi |
Feedback
| Brand | ELEGOO |
|---|---|
| Model Number | EL-SM-001 |
| Model Name | EL-SM-001 |
| Built-In Media | Ultrasonic Sensor |
| Processor Brand | AMD |
| CPU Model Number | EL-SM-001 |
| Country of Origin | China |
| Video Processor | AMD |
| UPC | 719377200301 746591610333 |
| Global Trade Identification Number | 00746591610333 |
| Manufacturer | Elegoo |
| Manufacturer Contact Information | ELEGOO Official Email: service@elegoo.com |
| Unit Count | 1 Count |
| Warranty Description | 6 MONTHS |
| 鶹 Rank |
|
| ASIN | B01COSN7O6 |
| Customer Reviews |
4.5 out of 5 stars |
| Graphics Description | Integrated |
|---|---|
| Graphics Ram Type | DDR DRAM |
| Graphics Card Interface | AGP |
| Screen Size | 3 |
|---|---|
| Display Resolution Maximum | 3840x2160 |
| Display Type | LCD |
| Aspect Ratio | 16:9 |
| Resolution | 3840 x 2160 |
| Native Resolution | 480 x 800 |
| Human-Interface Input | Buttons |
|---|---|
| Keyboard Layout | QWERTY |
Product details
- Is discontinued by manufacturer : No
- Product Dimensions : 1.5 x 4.5 x 3 cm; 9.07 g
- Date First Available : April 16 2016
- Manufacturer : Elegoo
- Place of Business : ELEGOO Official Email: service@elegoo.com
- ASIN : B01COSN7O6
- Item model number : EL-SM-001
- Country of origin : China
- 鶹 Rank: #4,342 in Electronics (See Top 100 in Electronics)
- #22 in Desktop Barebones
- Customer Reviews:
From the brand
-
ELEGOO STEM kits provide all the necessary components, sensors, wires, and boards for you to get started with programming, learning electronics, and creating IoT projects. We strive our best to make STEM education easy to learn and accessible to the young generation.
-
How we get our start?
Chris, the founder of ELEGOO, found out that most enterprises in the STEM industry focused on the hardware of open-source electronics and did not have tools to create a complete product by combining electronic hardware and structural shells.
What makes our products unique?
We have excellent R&D team, constantly upgrading and improving products, and after-sales service team for quick support.
What problem are we solving?
100% compatible with Arduino, ELEGOO's kits are best-practice for beginners who have no appropriate technical tools to learn about electronics.
-
Starter Kits
-
Controller Boards
-
Electronic Component
-
DIY Robotic Car Kits
-
ELEGOO Stem Kit
-
ELEGOO Stem Kit
Product Description
Elegoo HC-SR04 Ultrasonic Sensor is a device that can measure the distance to an object by using sound waves. It measures distance by sending out a sound wave at a specific frequency and listening for that sound wave to bounce back. By recording the elapsed time between the sound wave being generated and the sound wave bouncing back, it is possible to calculate the distance between the sonar sensor and the object.
Ultrasonic Sensor HC-SR04 is great for all kind of projects that need distance measurements, avoiding obstacles as examples. HC-SR04 provides 3cm-450cm non-contact measurement function, the ranging accuracy can reach to 3mm. The modules include ultrasonic transmitters, receiver and control circuit.
Operating Principle of Ultrasonic Sensor
As the name indicates, ultrasonic sensors measure distance by using ultrasonic waves. The sensor head emits an ultrasonic wave and receives the wave reflected back from the target. Ultrasonic Sensors measure the distance to the target by measuring the time between the emission and reception. The distance can be calculated with the following formula: Distance L = 1/2 × T × C where L is the distance, T is the time between the emission and reception, and C is the sonic speed. (The value is multiplied by 1/2 because T is the time for go-and-return distance.)
For Arduino Project with Ultrasonic Sensor
Elegoo Ultrasonic Sensor HC-SR04 is inexpensive and easy to use since we will be using a Library specifically designed for this sensor, which can be downloaded from elegoo.com. To use it for Arduino projects you would need an ELEGOO UNO R3 controller board.
Technical Specification
- Power Supply :+5V DC
- Quiescent Current : 3mA
- Working Current: < 5mA
- Effectual Angle: <15°
- Ranging Distance : 3cm - 450 cm/1″ - 10ft
- Resolution : 0.3 cm
- Measuring Angle: 30 degree
- Trigger Input Pulse width: 10uS
- Dimension: 45mm x 20mm x 15mm
Product Package
- 5 HC-SR04 Ultrasonic Sensors
- 10 Female-Male Dupont Cables
- 10 Female-Female Dupont Cables
- 1 Exquisite package box
- Protected with the thermoplastic film
ELEGOO Tumbller Self-Balancing Robot Car Kit Compatible with Arduino
|
ELEGOO UNO Project Super Starter Kit w/Tutorials for Arduino Projects
|
ELEGOO UNO Project Smart Robot Car Kit w/Tutorial based on Arduino Platform
|
ELEGOO Mega 2560 Project The Most Complete Starter Kit w/Tutorials for Arduino
|
ELEGOO UNO R3 Project Complete Starter Kit w/Tutorials for Arduino
|
ELEGOO Upgraded 37 in 1 Sensor Modules Kit w/Tutorials for Arduino UNO, MEGA
|
|
|---|---|---|---|---|---|---|
|
Add to Cart
|
Add to Cart
|
Add to Cart
|
||||
| Customer Reviews |
4.6 out of 5 stars 287
|
4.6 out of 5 stars 15,876
|
— |
4.6 out of 5 stars 7,551
|
— |
4.6 out of 5 stars 2,475
|
| Controller Board | NANO | UNO R3 | UNO R3 | MEGA 2560 | UNO R3 | / |
| Compatibility with Arduino | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Projects Tutorial Included | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Assembly Requirement | ✓ | No | ✓ | No | No | No |
| Reasons to Buy | ElegooKit APP; FPV Mode; Obstacle Avoidance; Line Tracking Mode | Tutorial of 24 Projects, Cost-effetive Starter Kit | ElegooKit APP; FPV Mode; Obstacle Avoidance; Line Tracking Mode | Tutorial of 33 Projects, Powerful Mega R3 Control Board | Tutorial of 33 Projects, Complete Stater Kit with UNO R3 | Tutorial of 34 Projects, Updated Version, Compatibility with Arduino IDE and STM32 |
Important information
Safety Information
keep away from the children under 3 years old
Brands in this category on 鶹
Customer reviews
Customers say
Generated from the text of customer reviewsSelect to learn more
Reviews with images
Sonic rangers to the rescue
Top reviews from Canada
There was a problem filtering reviews. Please reload the page.
- Reviewed in Canada on October 21, 2016Verified PurchaseThese little modules work great and are sold in a group of 5 for a great price. All 5 come bundled in a single anit-static bag, and were well packaged. Also, did you see that last line where Elego mentions they include "a little gift"? I missed that, and it was a pleasant surprise. No spoilers, but that little gift was a great help in connecting up those sensors. The range is listed to 500 cm but I started to get large margin of errors past 400 cm. I also couldn't read closer than 4 cm (not 2 cm). To get a more accurate reading within the 4 cm to 400 cm range, I found taking a moving average of the last 3 readings to be good enough to do the trick. If you're not picky, one reading is sufficient.
The PCB is well designed - it is the minimum size to hold the sonic sensors, rugged and firm. There are 4 pins; two for 5v and GND, 1 to TRIGGER it, and one to read the ECHO from. Usage is actually quite simple:
1. Send a pulse to the TRIGGER pin to start the ranging;
2. Measure the time in microseconds that it takes the ECHO pin to respond;
3. Divide the time taken by a constant (manufacturer provided; it is 58.0 for CM) to get the distance.
I'm not sure how much 鶹 will allow me to write in a review, but I'm including the minimalist sketch (no comments) below to get you started (for Arduino, sorry, I'm not familiar with Pi). This will loop the ranging while reporting the distance in CM to the SERIAL MONITOR window in the Arduino IDE every second:
--- Example Minimalist Sketch for HC-SR04 in Arduino --
/* HC-SR04 Sonic Ranging Sensor
5v to VCC
7 to Trig
8 to Echo
GND to GND */
void setup()
{
pinMode(7, OUTPUT);
digitalWrite(7, LOW);
Serial.begin(9600);
}
void loop()
{
unsigned long start;
digitalWrite (7, HIGH);
delayMicroseconds(10);
digitalWrite (7, LOW);
// Wait - for ECHO pulse
while (digitalRead(8) == 0);
start = micros();
while (digitalRead(8) == 1);
Serial.println ((micros() - start) / 58.0);
delay(1000);
}
--- End ---
These little modules work great and are sold in a group of 5 for a great price. All 5 come bundled in a single anit-static bag, and were well packaged. Also, did you see that last line where Elego mentions they include "a little gift"? I missed that, and it was a pleasant surprise. No spoilers, but that little gift was a great help in connecting up those sensors. The range is listed to 500 cm but I started to get large margin of errors past 400 cm. I also couldn't read closer than 4 cm (not 2 cm). To get a more accurate reading within the 4 cm to 400 cm range, I found taking a moving average of the last 3 readings to be good enough to do the trick. If you're not picky, one reading is sufficient.
The PCB is well designed - it is the minimum size to hold the sonic sensors, rugged and firm. There are 4 pins; two for 5v and GND, 1 to TRIGGER it, and one to read the ECHO from. Usage is actually quite simple:
1. Send a pulse to the TRIGGER pin to start the ranging;
2. Measure the time in microseconds that it takes the ECHO pin to respond;
3. Divide the time taken by a constant (manufacturer provided; it is 58.0 for CM) to get the distance.
I'm not sure how much 鶹 will allow me to write in a review, but I'm including the minimalist sketch (no comments) below to get you started (for Arduino, sorry, I'm not familiar with Pi). This will loop the ranging while reporting the distance in CM to the SERIAL MONITOR window in the Arduino IDE every second:
--- Example Minimalist Sketch for HC-SR04 in Arduino --
/* HC-SR04 Sonic Ranging Sensor
5v to VCC
7 to Trig
8 to Echo
GND to GND */
void setup()
{
pinMode(7, OUTPUT);
digitalWrite(7, LOW);
Serial.begin(9600);
}
void loop()
{
unsigned long start;
digitalWrite (7, HIGH);
delayMicroseconds(10);
digitalWrite (7, LOW);
// Wait - for ECHO pulse
while (digitalRead(8) == 0);
start = micros();
while (digitalRead(8) == 1);
Serial.println ((micros() - start) / 58.0);
delay(1000);
}
--- End ---
Images in this review
- Reviewed in Canada on March 19, 2021Verified PurchaseI don't have a lot of experience with these range sensors so I can't compare them to other brands.
What I found is that even when facing a solid, non-moving object, the numbers that they produce jump all over the place creating false readings.
If ALL BRANDS do this, then I guess they are the same. I don't know.
But, it was easy enough to just code an averaging routine. Actually, even with averaging, the numbers still would go way out of what it should be. So you'd have to keep that in mind when coding and perhaps do several calls before accepting the number.
I don't think I'd use this for robots as there are too many false readings.
In my project, I use one of these as a water level meter sensor. This triggers a bar meter on a Nextion display.
In order to avoid the meter bouncing all over the place, besides the averaging routine, I only call it every 30 seconds or so and when I make the call, knowing that the water level would not have changed much at all, I compare the new number with the old one. If it's within 5mm then I'll send the number to the bar graph.
But if it's way out, too high or too low, then I KNOW that the number is not accurate and I just drop that number and wait for the next.
This "stabilizes" the numbers for this use.
- Reviewed in Canada on March 6, 2025Verified PurchaseWell presented, quality work and quick delivery.
- Reviewed in Canada on October 29, 2023Verified PurchaseThey work well, pretty accurate.
- Reviewed in Canada on November 14, 2023Verified PurchaseIt has the range that it said it would and it’s seems to have the accuracy that it said it would. At the end of the day they are just cheap sensors so you do get what you pay for but everything they said about what it would do it did in fact do.
- Reviewed in Canada on April 11, 2024Verified PurchaseWhenever I see Elegoo on the box, I know that it is not done with good quality. The only downside is that they do not provide a tray or some type of protection for the ultrasonic sensors; they are just placed in the box on its own and with the cables.
- Reviewed in Canada on March 3, 2017Verified PurchaseAll units fully functional. Initially manually measured a distance of (83.0 +- 0.5) cm from the head of any given module to a large object, then measured the distance with each module via the procedure in the datasheets. Every module produced an average result in between 82.5 - 83.7 cm. There was some fluctuation of about 0.3 cm for any given measurement, so an averaging of 2-4 values would be recommended. Build quality is good, packaging was good enough.
- Reviewed in Canada on February 24, 2020Verified PurchasePurchased these for a water depth application using an Arduino board. The work very well and seem quite capable of detecting the surface of a water column without issue. They can have some issues with multiple reflection points but this was expected. If I need that level of accuracy I would use a time of flight laser sensor.
Top reviews from other countries
-
Cliente 鶹Reviewed in Italy on December 11, 20245.0 out of 5 stars Riempimento vasca
Verified PurchaseFunziona perfettamente. Utilizzato per riempire una vasca fino a livello x.
Frank W.Reviewed in the United States on January 19, 20185.0 out of 5 stars Measures distance to water accurately. I'm using it to caclulate bridge clearance. Works OUTSIDE! (in a plastic box)
Verified PurchaseComplete project description follows but the keys for the Ultrasonic Distance Sensor: 1) it's been running in a plastic box, outside, for almost a month with no problem. The Arduino wakes us every 15 minutes and takes a measurement, transmits it, then goes back to sleep. 2) it is measuring the distance TO WATER! I even turned the swim jets in my pool on to test turbulence and it works fine.
Green Pond Bridge Boat Clearance
At ‘very low tide’ the clearance under Green Pond Bridge in Cape Cod is 6’6” or less and that is too low for the boat I use. The tide charts for Falmouth, MA are theoretical and can vary as much as 18” from what is actually happening at the bridge. This system monitors the clearance and transmits the information on the internet.
All of these parts were purchased from 鶹.
Transmitter
An (Arduino) Elegoo UNO R3 board is connected to an Elegoo HC-SR04 Ultrasonic Distance Sensor. The UNO and the sensor calculate the distance from a fixed dock to the sea level, then transmit that data using a MakerFocus NRF24L01 Wireless Transceiver to the Receiver described below. The Transmitter sits on the end of a dock where there is no power, so the UNO, Transceiver and Distance Sensor are powered by the energyShield 2. This battery has special capabilities – it wakes everything up every 15 minutes. The system takes a couple readings of the distance to the water then transmits that data, then the battery shuts it all off. The data transmitted includes information from the battery – time, date, and voltage.
I have been testing this unit at home (in Dallas) and it has been operating outside, for about 20 days. Based on battery drain it looks like it will operate for about 4-5 months before it needs a recharge. When the temperature drops below zero the system still works fine but the voltage reported in the battery seems low.
All of this is housed in a plastic box printed for the purpose with a FlashForge 3d Printer Creator Pro, using eSun White ABS+ filament
Picture below.
Receiver
An (Arduino) Elegoo MEGA 2560 R3 is connected to another NRF24 Transceiver to receive the data. The MEGA does the math to convert the distance from the dock to the water, to the bridge clearance. Then the information is displayed on an Elegoo UNO R3 Touch Screen (that also works fine on the Mega).
Picture below. A small plastic frame for the Receiver was also printed on the 3d printer
Web Server
Finally, the information in the MEGA is transmitted over a serial bus to a Hiletgo ESP8266 NodeMCU ESP-12E Internet WIFI Development Board (Also operates using Arduino IDE programming). This board is connected to the MEGA via the XCSOURCE Logic Level Converter and powered by a UCEC MB102 Breadboard Power Supply Module. All mounted on an Elegoo Breadboard. The ESP8266 is programmed to be a web server. It connects to the internet through the modem/router provided by AT&T.
Picture of my cell phone below.
Complete project description follows but the keys for the Ultrasonic Distance Sensor: 1) it's been running in a plastic box, outside, for almost a month with no problem. The Arduino wakes us every 15 minutes and takes a measurement, transmits it, then goes back to sleep. 2) it is measuring the distance TO WATER! I even turned the swim jets in my pool on to test turbulence and it works fine.5.0 out of 5 stars
Frank W.Measures distance to water accurately. I'm using it to caclulate bridge clearance. Works OUTSIDE! (in a plastic box)
Reviewed in the United States on January 19, 2018
Green Pond Bridge Boat Clearance
At ‘very low tide’ the clearance under Green Pond Bridge in Cape Cod is 6’6” or less and that is too low for the boat I use. The tide charts for Falmouth, MA are theoretical and can vary as much as 18” from what is actually happening at the bridge. This system monitors the clearance and transmits the information on the internet.
All of these parts were purchased from 鶹.
Transmitter
An (Arduino) Elegoo UNO R3 board is connected to an Elegoo HC-SR04 Ultrasonic Distance Sensor. The UNO and the sensor calculate the distance from a fixed dock to the sea level, then transmit that data using a MakerFocus NRF24L01 Wireless Transceiver to the Receiver described below. The Transmitter sits on the end of a dock where there is no power, so the UNO, Transceiver and Distance Sensor are powered by the energyShield 2. This battery has special capabilities – it wakes everything up every 15 minutes. The system takes a couple readings of the distance to the water then transmits that data, then the battery shuts it all off. The data transmitted includes information from the battery – time, date, and voltage.
I have been testing this unit at home (in Dallas) and it has been operating outside, for about 20 days. Based on battery drain it looks like it will operate for about 4-5 months before it needs a recharge. When the temperature drops below zero the system still works fine but the voltage reported in the battery seems low.
All of this is housed in a plastic box printed for the purpose with a FlashForge 3d Printer Creator Pro, using eSun White ABS+ filament
Picture below.
Receiver
An (Arduino) Elegoo MEGA 2560 R3 is connected to another NRF24 Transceiver to receive the data. The MEGA does the math to convert the distance from the dock to the water, to the bridge clearance. Then the information is displayed on an Elegoo UNO R3 Touch Screen (that also works fine on the Mega).
Picture below. A small plastic frame for the Receiver was also printed on the 3d printer
Web Server
Finally, the information in the MEGA is transmitted over a serial bus to a Hiletgo ESP8266 NodeMCU ESP-12E Internet WIFI Development Board (Also operates using Arduino IDE programming). This board is connected to the MEGA via the XCSOURCE Logic Level Converter and powered by a UCEC MB102 Breadboard Power Supply Module. All mounted on an Elegoo Breadboard. The ESP8266 is programmed to be a web server. It connects to the internet through the modem/router provided by AT&T.
Picture of my cell phone below.
Images in this review
-
Giulio Tech 12Reviewed in Italy on April 9, 20255.0 out of 5 stars Ottimi sensori qualita/prezzo
Verified PurchaseOttimi sensori poi arrivano pure con cavi maschio femmina e femmina femmina inclusi
Brand in this category on 鶹
Product summary presents key product information
Keyboard shortcut
Shift
+
Alt
+
opt
+
D
Product Summary: Elegoo HC-SR04 Ultrasonic Module Distance Sensor for Arduino UNO MEGA2560 Nano Robot XBee ZigBee, Set of 5
From ELEGOO
About this Item
- Ultrasonic hc-sr04 distance measuring transducer sensor
- HC-SR04 consists of ultrasonic transmitter, receiver, and control circuit. When trigged it sends out a series of 40KHz ultrasonic pulses and receives echo from an object.
- Power supply: 5V DC; quiescent current: less than 2mA; effectual angle: less than 15°; distance: 2cm~500cm; resolution: 0.3 cm
- Package Content: 5pcs HC-SR04 with a little gift
Product description
Feedback
Did you find this product summary feature useful?




![Arduino Uno REV3 [A000066] - ATmega328P Microcontroller, 16MHz, 14 Digital I/O Pins, 6 Analog Inputs, 32KB Flash, USB Connect](https://images-na.ssl-images-amazon.com/images/I/71ok6q+8tEL._AC_UL165_SR165,165_.jpg)




