Others
HC-SR04 Ultrasonic Distance Measuring Sensor
Shopping information
The HC-SR04 Ultrasonic Distance Measuring Sensor is a non-contact module that measures distances by emitting ultrasonic waves and timing the echo reflected back from objects. It is ideal for Arduino, ESP32, Raspberry Pi robotics, automation, and obstacle avoidance projects, offering reliable measurements for indoor and outdoor applications.
Key Features & Specifications
- Non-contact Distance Measurement: Measures distances without physical contact
- Sensing Range: 2cm 400cm (113ft), 30 measuring angle
- Resolution: 0.3cm
- Trigger Pulse: 10s HIGH pulse to start measurement
- Power Supply: +5V DC, Quiescent Current <2mA, Working Current 15mA
- Interface: Simple 4-pin connection (VCC, Trig, Echo, GND) compatible with Arduino, ESP32, Raspberry Pi
- Dimensions: 45mm x 20mm x 15mm
Pinout Description
- VCC: +5V power supply input
- Trig: Trigger input pin; send a 10s HIGH pulse to start measurement
- Echo: Echo output pin; outputs a pulse width proportional to the distance
- GND: Ground connection
Getting Started
Using the HC-SR04 is straightforward with Arduino, ESP32, or Raspberry Pi:
- Connect VCC to 5V and GND to ground.
- Connect Trig and Echo to digital GPIO pins.
- Use libraries such as NewPing for Arduino or Python scripts on Raspberry Pi to measure distances.
- Calculate distance using the echo pulse duration (distance = time speed of sound / 2).
- For multiple sensors, make sure each sensor has separate GPIO pins or trigger sequentially.
Troubleshooting Tips
- If readings fluctuate, check wiring connections and ensure stable 5V power.
- Objects with soft surfaces may reflect ultrasound poorly, test with flat, solid objects.
- Ensure the sensor is not exposed to excessive noise or interference from other ultrasonic devices.
- Verify correct libraries and board selection in your code.
Related Products
- VL53L0X Time of Flight Laser Ranging Distance Sensor higher precision laser-based alternative
- Other Arduino & ESP32 Sensors
The HC-SR04 is a reliable, low-cost solution for robotics, obstacle avoidance, and distance measurement projects. Combined with Arduino or ESP32, it allows you to quickly implement automation, collision detection, and smart electronics experiments.
Only logged in customers who have purchased this product may leave a review.
Keep exploring
You may also like
More pieces selected to complement what you are viewing.
-
Sale
Shure TH53B-O-MTQG
Original price was: $659.00.$150.00Current price is: $150.00. -
Sale
Yellowtec Litt 22mm Green
Original price was: $112.00.$56.00Current price is: $56.00. -
Sale
Clear-Com CC-15-MD4
Original price was: $195.00.$97.50Current price is: $97.50. -
Sale
Coaxial Dynamics 88504
Original price was: $580.36.$150.00Current price is: $150.00.