arduino › sensor module
generic HC-SR04 Ultrasonic Distance Sensor
Echo pin outputs 5V — a 3.3V board (ESP32, Pico, Feather M0) needs a level shifter or a voltage divider on echo. The HC-SR04P variant is 3-5V and is the right pick for 3.3V projects.
Specifications
- interface
- digital
- voltage v
- 5v
- library arduino
- NewPing
- accuracy
- +/-3mm
- range
- 2-400cm
- pin count
- 4
Sources
- SparkFun open product catalog · ingest 2026-05-06