HC-SR04 Ultrasonic Sensor | 2-450cm Distance Module
Shipping from China within 5–10 working days
- During check out, you can choose direct shipping from China, or let us import the order to our EU/US office first and ship it to you locally.
- Import customs clearance and VAT are fully handled by us.
Need a larger quantity?
Need bulk pricing?
Get a formal quotation with lead time and volume pricing.
For universities, companies, distributors, and project orders.
HC-SR04 Ultrasonic Sensor - 2cm to 450cm Distance Measurement Module for Arduino Projects
The HC-SR04 ultrasonic sensor is a 5V distance-measurement module for obstacle detection, ranging experiments, liquid-level demos, and robot navigation. It sends an ultrasonic pulse from the trigger pin, listens for the reflected echo, and lets software calculate distance from the echo pulse width.
This module is easy to prototype with the ELAB Nano V3, an UNO R3 Prototype Expansion Board, or a quick test rig built on the MB 102 Breadboard Kit. It is a good choice when a low-cost non-contact range sensor is enough and the target surface reflects sound well.
The current listing specifies 5V operation, less than 2mA quiescent current, 2cm to 450cm detection range, up to 0.3cm precision, and a sensing angle not more than 15 degrees. Use level shifting for the echo pin when connecting to 3.3V-only controllers.
Technical Specifications
| Parameter | Value |
|---|---|
| SKU | HC-SR04 |
| Product Type | Ultrasonic distance sensor |
| Working Voltage | 5V DC |
| Quiescent Current | Less than 2mA |
| Detection Range | 2cm-450cm |
| Precision | Up to 0.3cm |
| Sensing Angle | Not more than 15 degrees |
| Output Level | 3.3V-5V high level, 0V low level |
| Interface | VCC, Trig, Echo, GND |
| Applications | Robots, obstacle detection, ranging, liquid-level demos |
Board Layout & Label Guide
- VCC - 5V power input.
- Trig - Trigger input; send a 10us pulse to start measurement.
- Echo - Echo pulse output; pulse width represents distance.
- GND - Common ground with controller.
- Ultrasonic Transmitter - Sends the measurement pulse.
- Ultrasonic Receiver - Receives the reflected echo.
- Mounting Note - Keep the sensor face clear and perpendicular to the target.
- Logic Note - Use level shifting for 3.3V-only controller inputs.
Application Scenarios
1. Arduino Distance Readout
Measure echo pulse width and convert it to distance in centimeters.
const int trigPin = 9;
const int echoPin = 10;
void setup() {
Serial.begin(115200);
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
}
void loop() {
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
long duration = pulseIn(echoPin, HIGH, 30000);
float cm = duration * 0.0343 / 2.0;
Serial.println(cm);
delay(200);
}
2. Obstacle Alarm
Trigger an LED when an object is closer than a selected threshold.
const int trigPin = 9;
const int echoPin = 10;
const int ledPin = 13;
float readCm() {
digitalWrite(trigPin, LOW);
delayMicroseconds(2);
digitalWrite(trigPin, HIGH);
delayMicroseconds(10);
digitalWrite(trigPin, LOW);
return pulseIn(echoPin, HIGH, 30000) * 0.0343 / 2.0;
}
void setup() {
pinMode(trigPin, OUTPUT);
pinMode(echoPin, INPUT);
pinMode(ledPin, OUTPUT);
}
void loop() {
digitalWrite(ledPin, readCm() < 20.0 ? HIGH : LOW);
delay(100);
}
3. MicroPython Ultrasonic Check
Read an ultrasonic module from a Pico-style board.
from machine import Pin, time_pulse_us
import time
trig = Pin(3, Pin.OUT)
echo = Pin(2, Pin.IN)
while True:
trig.low()
time.sleep_us(2)
trig.high()
time.sleep_us(10)
trig.low()
duration = time_pulse_us(echo, 1, 30000)
print(duration * 0.0343 / 2)
time.sleep(0.2)
Packing List
- 1 x HC-SR04 Ultrasonic Sensor Module
FAQ
Q: What does it measure?
A: It measures distance by timing ultrasonic echo return.
Q: What voltage does it need?
A: The listing specifies 5V DC.
Q: Can it work with 3.3V boards?
A: Use level shifting for Echo when the host is not 5V tolerant.
Q: What is the range?
A: The current listing specifies 2cm to 450cm.
Q: Why are readings unstable?
A: Soft targets, angled surfaces, airflow, and noise can affect echoes.
Q: Can it measure water level?
A: Yes, for non-contact tank or container demos when mounted above the surface.
Q: Does it work on cloth?
A: Soft materials may absorb sound and reduce reliability.
Q: How do I improve accuracy?
A: Average readings and mount the sensor firmly facing the target.
1. General Shipping Information
- We provide reliable shipping services with a tracking number for each order.
- Shipping addresses must be entered in English and should not contain special symbols, so that the courier system can recognize your location correctly.
- Please make sure your shipping address is accurate before placing your order. We ship strictly according to the address provided at checkout.
- In-stock orders are usually dispatched within 1 business day after order confirmation.
- Estimated delivery times refer to the period after dispatch and do not include order processing time, weekends, public holidays, customs inspection, or force majeure delays.
- If you need to cancel or modify your order, please contact us before the order is marked as “Shipped”. Once shipped, the order cannot be canceled or changed.
🚀 Need Faster Shipping?
If you require expedited shipping, please contact our customer support team at info@upenelab.com for a customized quote based on your destination.
2. Shipping Rates & Options
Shipping rates are calculated based on order value, destination, and available shipping methods. The final available options will be displayed at checkout.
2.1 Germany Domestic Shipping
| Shipping Method | Order Value | Cost | Est. Delivery |
|---|---|---|---|
| Deutsche Post | €0.00 - €50.00 | €4.95 | 2-4 Business Days |
| Deutsche Post | Over €50.00 | Free | 2-4 Business Days |
|
DHL Paket (Faster Delivery) |
€0.00 - €50.00 | €6.95 | 1-3 Business Days |
|
DHL Paket (Faster Delivery) |
€50.00 - €100.00 | €2.00 | 1-3 Business Days |
|
DHL Paket (Faster Delivery) |
Over €100.00 | Free | 1-3 Business Days |
2.2 Selected EU Countries / Regions
Available EU shipping destinations are shown at checkout based on your shipping address. For orders shipped to selected EU countries or regions outside Germany, we use FedEx Regional Economy.
| Shipping Method | Order Value | Cost | Est. Delivery |
|---|---|---|---|
| FedEx Regional Economy | €0.00 - €100.00 | €7.95 | 3-5 Business Days |
| FedEx Regional Economy | Over €100.00 | Free | 3-5 Business Days |
EU orders may be fulfilled from our Munich warehouse or, when applicable, from our Shenzhen warehouse depending on inventory availability. For EU member states, OpenELAB covers applicable import duties and taxes under DDP service where required.
2.3 United States
| Region | Shipping Method | Order Value | Cost | Est. Delivery |
|---|---|---|---|---|
|
Continental U.S. (50 States) |
USPS Ground Advantage | €0.00 - €45.00 | €4.95 | 3-7 Business Days |
| USPS Ground Advantage | Over €45.00 | Free | 3-7 Business Days | |
| USPS Priority Mail | €0.00 - €45.00 | €16.95 | 1-4 Business Days | |
| USPS Priority Mail | Over €45.00 | €14.95 | 1-4 Business Days | |
|
Non-Continental U.S. (AK, HI, PR, etc.) |
USPS Ground Advantage | €0.00 - €60.00 | €6.95 | 5-9 Business Days |
| USPS Ground Advantage | Over €60.00 | Free | 5-9 Business Days |
Non-Continental U.S. regions include Alaska, American Samoa, Guam, Hawaii, the Marshall Islands, the Northern Mariana Islands, Palau, Puerto Rico, the U.S. Virgin Islands, and U.S. Armed Forces addresses.
2.4 International Destinations Outside the EU
For selected international destinations outside the EU, including Switzerland, the United Kingdom, and Norway, shipping rates are as follows:
| Order Amount | Shipping Cost |
|---|---|
| €0.00 - €300.00 | €19.95 |
| Over €300.00 | Free |
For non-EU destinations, import duties, taxes, and customs fees may be charged by the destination country and are the responsibility of the recipient.
3. Warehouses & Fulfillment
Our products may be stored in our Munich, Arlington, and Shenzhen warehouses. The actual shipping warehouse depends on product availability and destination.
3.1 Munich Warehouse
For products stored in our Munich warehouse, we use Deutsche Post or DHL Paket for domestic deliveries within Germany. For selected EU destinations outside Germany, we use FedEx Regional Economy.
3.2 Arlington Warehouse
For products stored in our Arlington warehouse, we use USPS or UPS for deliveries within the United States.
3.3 Shenzhen Warehouse
For pre-order items or products fulfilled directly from our Shenzhen warehouse, we arrange reliable international shipping based on destination and inventory status. For EU member states, OpenELAB covers applicable import duties and taxes under DDP service where required.
4. Inventory, Pre-orders & Split Shipments
- Inventory Status: Please check the product page for real-time stock information. If an item is out of stock in our local warehouses, it may be marked as “Pre-order”.
- Pre-order Fulfillment: Pre-order items may be shipped directly from Shenzhen or restocked to a local warehouse first before final delivery.
- Split Shipments: If your order contains both in-stock and pre-order items, we may ship them separately. No additional shipping fee will be charged for split shipments caused by our fulfillment arrangement.
5. Customs, Taxes & Delivery Issues
5.1 Customs and Taxes
For EU Member States:
Whether shipped from Germany or China, OpenELAB covers applicable import duties and taxes under DDP service where required. Customers in EU member states should not be charged additional import duties or VAT upon delivery.
For destinations outside the European Union, such as Switzerland, Norway, and the United Kingdom, import duties, taxes, and customs fees may be charged by local authorities upon delivery. These fees are the responsibility of the recipient.
5.2 Damaged, Delayed, or Lost Parcels
Please inspect your parcel upon delivery where possible. If you notice visible damage, please report it to the courier and contact us as soon as possible. This does not affect your statutory consumer rights.
If your parcel is delayed, lost, returned to sender, or the tracking information has not updated for an unusual period of time, please contact us at info@upenelab.com. We will assist you in checking the shipment status with the courier.
5.3 Incorrect Address or Failed Delivery
If a parcel cannot be delivered due to an incorrect or incomplete address provided by the customer, refusal of delivery, or failure to collect the parcel, additional shipping or return costs may apply.
6. VAT
For orders within the EU, VAT is collected at checkout according to the applicable destination rules. No additional VAT should be collected upon delivery for EU member state orders covered under our DDP shipping arrangement.




