Skip to content

HC-SR04 ultrasonic distance sensor (5 V)

Report component

Tell our team what needs attention. You must be signed in to send a report.

Up to 2,000 characters. Include what the team should check.

Measures distance by bouncing sound off things, like a bat.

Classic 40 kHz sonar ranger, 2-400 cm, 15° cone. Needs 5 V power; a 10 µs TRIG pulse starts a reading and ECHO returns a 5 V pulse whose width is the round-trip time. 15 mA while measuring.

Electrical

Supply voltage
4.5 to 5.5 V
Logic level
5 V
Current
15 mA typical, 15 mA max
Talks over
digital

Needs alongside it

  • ECHO is 5 V. On a 3.3 V board use a level shifter or a 1k/2k divider, or pick the 3.3 V version (ultrasonic-3v3).

Pins

PinCan doMax VMax mA
VCC5 V
TRIGdigitalAccepts 3.3 V or 5 V.
ECHOdigitalOutputs 5 V. Shift it down for 3.3 V boards.
GNDground

Size and material

Size
46 × 16 × 20 mm
Weight
8.7 g
Material
pcb
Sold by the
piece

Works with

Projects using it