My ESPHome Workshop

GitHub

HC-SR04 Ultrasonic Distance Sensor

โœ… Active ๐Ÿ”ฆ Pending
sensor Generic Model: HC-SR04 ๐Ÿ“… Acquired: 2016

Ultrasonic ranging module for distance measurement

Connection Types

Overview

The HC-SR04 ultrasonic sensor measures distance by emitting ultrasonic pulses and measuring the echo return time.

The module features:

  • Measuring range: 2cm-400cm (0.8โ€-157โ€)
  • Accuracy: ยฑ3mm
  • Measuring angle: ~15 degrees
  • Operating voltage: 5V
  • Operating current: <15mA
  • Ultrasonic frequency: 40kHz
  • Trigger input: 10ยตs TTL pulse
  • Echo output: pulse width proportional to distance
  • Non-contact measurement

Remarks

Requires two GPIOs, one for trigger pin, the other for echo.

Supported through Ultrasonic Distance Sensor component.

โ† Back to all devices