wirecraft

Sensor

HC-SR04 ultrasonic ranger

Measures distance from 2 cm to ~4 m by timing an ultrasonic echo.

Pinout

  • VCCpower (5 V)
  • TRIGdigital
  • ECHOdigital
  • GNDground

Bench notes

On 3.3 V boards, put a voltage divider (1 kΩ / 2 kΩ) on ECHO — the module echoes at 5 V.

Typical price
$1.90
Libraries
none needed
Prompt keywords
distance, ultrasonic, parking, range

Used in these guides

Build with this part