HC-SR04 ultrasonic rangefinder pinout
HC-SR04 ultrasonic rangefinder, circuit with 40 kHz ultrasonic transducers, 5 V logic, 45×20 mm, 4 pins
partly verified15.10.2026
Front view (transducers facing the viewer), header at the bottom.
Download PNG- Chip
- circuit with 40 kHz ultrasonic transducers
- Logic
- 5 V
- Power
- Vcc 4.5-5.5 V
Important
- 5 V supply. Echo is a 5 V output: 3.3 V boards need a divider.
- Range 2-400 cm, angle about 15°.
- Geometry from independent KiCad footprints and photos (±0.3 mm). Holes and small components are approximate, check with calipers.
- Cytron: connect GND first, then Vcc.
Revisions and clones
- HC-SR04P: 3-5.5 V supply, works from 3.3 V without a divider (shorter range). No manufacturer documentation.
- RCWL-9610 / RCWL-1601 (Adafruit 4007): 2.8-5.5 V, output level equals the supply, different size.
All pins
| Label | Number | Functions | Limits | Check |
|---|---|---|---|---|
| Vcc | 5 V | power input | not from manufacturerModule with no manufacturer: pin order from the Elecfreaks photo and the Cytron description (they match), coordinates from footprints. | |
| Trig | Trig: trigger input, pulse of 10 µs or more | not from manufacturerModule with no manufacturer: pin order from the Elecfreaks photo and the Cytron description (they match), coordinates from footprints.Manufacturers do not say whether it triggers from 3.3 V; in practice it usually does. | ||
| Echo | Echo: output, pulse width = time to the obstacle | not from manufacturerModule with no manufacturer: pin order from the Elecfreaks photo and the Cytron description (they match), coordinates from footprints.5 V output. To ESP32, ESP8266, Pico and other 3.3 V MCUs only through a divider (for example 1 kΩ / 2 kΩ). | ||
| GND | Ground | not from manufacturerModule with no manufacturer: pin order from the Elecfreaks photo and the Cytron description (they match), coordinates from footprints. |
Sources
Not verified against the manufacturer: 4 of 4 pins. The pin card says what confirms each one and where sources disagree.
- Elecfreaks HC-SR04 datasheet (SparkFun copy)datasheet, checked 15.10.2026size 45×20×15 mm, 5 V supply, photo labeled Vcc, Trig, Echo, GND, transmitter on the left
- Cytron HC-SR04 user manualdatasheet, checked 15.10.2026supply 4.5-5.5 V, current 15 mA, Trig 10 µs or more, Echo is a 5 V output
- KiCad: NikolaiRadke/Noko_2 HC-SR04.kicad_modthird-party source, checked 15.10.2026header position (1.1 mm from the bottom, centered), Ø16 transducers at 27 mm spacing, holes
- KiCad: XCVR_HC-SR04 (SnapEDA, SmartGeiger project)third-party source, checked 15.10.2026Ø16 transducers at 27 mm spacing (second independent footprint)
Size: 45×20 mm per Elecfreaks, Cytron, Handsontec (The Pi Hut says 43×20) (approximate).
FAQ
- What supply voltage does the HC-SR04 ultrasonic rangefinder need?
- Vcc: 4.5-5.5 V. 5 V logic.



