HC-SR04 Ultrasonic Sensor Arduino Distance Measuring Sensor

£1.45

QuantityDiscountDiscounted Price
5 - 9 5% £1.38
10 + 10% £1.31

Add to Cart
HC-SR04 Ultrasonic Sensor Arduino Distance Measuring Sensor
HC-SR04 Ultrasonic Sensor Arduino Distance Measuring Sensor
£1.45
Kunkune banner showcasing why choose us for premium products and excellent service.

FAST AND FREE UK DELIVERY
FREE Shipping with Royal Mail for orders over £35

Kunkune banner showcasing our unique product features and quality.

SAME DAY DISPATCH
If ordered before 3 p.m.

Kunkune banner showcasing our premium products for the product page.

MORE WAYS TO PAY

Kunkune banner showcasing our unique products and quality service for customer satisfaction.

HC-SR04 Ultrasonic Distance Sensor for Arduino

The HC-SR04 measures distance from 2cm to 400cm using 40kHz ultrasonic pulses and a time-of-flight calculation. Trigger the sensor with a 10-microsecond pulse on the TRIG pin, and the ECHO pin returns a high pulse whose width in microseconds divided by 58 gives the distance in centimetres. No library is strictly required — a few lines of Arduino code handle the timing — though the NewPing library adds median filtering and non-blocking measurement for cleaner readings.

  • 2cm–400cm measurement range
  • 3mm resolution
  • 5V supply, 2-pin measurement interface — TRIG and ECHO on any digital pins
  • 15° cone angle — narrow beam reduces false reflections
  • No library required — simple pulse timing in Arduino code
SpecificationValue
Range2cm – 400cm
Resolution3mm
Frequency40kHz ultrasonic
Beam angle15°
Supply voltage5V DC
Current15mA during measurement

Can you use HC-SR04 with a 3.3V Arduino or ESP32?

The HC-SR04 needs a 5V supply and outputs a 5V ECHO signal. On a 3.3V ESP32, connect VCC to 5V, divide the ECHO pin to 3.3V with a 1k/2k resistor divider, and connect TRIG directly — ESP32’s 3.3V output is high enough to trigger the sensor. Without the voltage divider, the 5V ECHO signal risks damaging the ESP32’s GPIO.

What surfaces does it struggle to measure?

The HC-SR04 under-reads on soft, angled, or very small surfaces that scatter ultrasound rather than reflecting it back toward the sensor. Foam, fabric, and thin objects at 45° angles give erratic readings. Flat hard surfaces at 90° give the most consistent results.

Best for

Obstacle avoidance robots, bin level monitors, parking distance sensors, liquid level gauges, automatic hand-wash triggers, alarm perimeter sensors, and classroom distance measurement experiments.

Why Kunkune

Shipped from UK stock. 60-day returns, no minimum order. Fast Royal Mail delivery.

Buying in bulk? For orders of 10+ units, contact us for trade pricing.

The estimated delivery time:

  • Standard (Free for orders over 35£ or 2.90£ Service) – Estimated 1-2 working days
  • Tracked 24H – Estimated 1-2 working days with tracking

Items are normally dispatched within 24 hours (the same day if ordered before 2 p.m., excluding weekends or bank holidays) in 99.9% of cases.

When you place an order, and it is successful, you will receive an email confirmation for the received order. When the order is dispatched, you will receive an email confirming that your order is complete. Please note that if the order is placed with the standard service, tracking will only show when a delivery attempt is made or when the order is delivered.