Ultrasonic Distance Sensor - 3V or 5V - HC-SR04 compatible

HC-SR04-compatible ultrasonic distance sensor with trigger/echo interface, operating at 3 V or 5 V for 2–450 cm range. Drop-in replacement for standard HC-SR04 in 3.3 V microcontroller systems without level shifting.
Pinout
- Vcc
Power pin for the HC-SR04-compatible ultrasonic sensor; Adafruit Learn says this sensor requires 5V power for best results.
Type · PowerVoltage · 5V power for best results - Trig
Trigger input; Adafruit Learn says setting Trig high for 10µs initiates an ultrasonic burst.
Type · SignalVoltage · 3V or 5V signal - Echo
Return signal; Adafruit Learn says Echo goes high after the burst and stays high until the echo is received, so pulse width is used to compute distance.
Type · SignalVoltage · 5V logic return signal; Adafruit notes using the included resistor divider for safe 3V-device reading - Gnd
Ground pin.
Type · GroundVoltage · 0V ground
| Pin | Type | Function | Voltage |
|---|---|---|---|
| Vcc | Power | Power pin for the HC-SR04-compatible ultrasonic sensor; Adafruit Learn says this sensor requires 5V power for best results. | 5V power for best results |
| Trig | Signal | Trigger input; Adafruit Learn says setting Trig high for 10µs initiates an ultrasonic burst. | 3V or 5V signal |
| Echo | Signal | Return signal; Adafruit Learn says Echo goes high after the burst and stays high until the echo is received, so pulse width is used to compute distance. | 5V logic return signal; Adafruit notes using the included resistor divider for safe 3V-device reading |
| Gnd | Ground | Ground pin. | 0V ground |
Pin details
4 connections- Vcc
Power pin for the HC-SR04-compatible ultrasonic sensor; Adafruit Learn says this sensor requires 5V power for best results.
PowerVoltage · 5V power for best results - Trig
Trigger input; Adafruit Learn says setting Trig high for 10µs initiates an ultrasonic burst.
SignalVoltage · 3V or 5V signal - Echo
Return signal; Adafruit Learn says Echo goes high after the burst and stays high until the echo is received, so pulse width is used to compute distance.
SignalVoltage · 5V logic return signal; Adafruit notes using the included resistor divider for safe 3V-device reading - Gnd
Ground pin.
GroundVoltage · 0V ground
Start wiring
I2C · SPI · Single data line · 3.3 – 5 V · Breakout
Pimoroni describes its VL53L1X breakout as a compact time-of-flight distance sensor with I²C address 0x29, 4–400 cm range, 27° field of v…
Module pins: Vcc, Gnd, Trig, Echo. Schematik maps them to your board in the app.
Distance sensors
176 other optionsAbout 180 listings spanning VL53-series ToF breakouts, HC-SR04 and MaxSonar ultrasonics, 360° triangulation LiDARs, IR proximity sensors, 24GHz mmWave presence detection and laser break-beam sensors.
25m Long Distance ToF Laser Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant) visual preview25m Long Distance ToF Laser Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant)
4-20HR-MaxSonar-WRMI MB7489 Waterproof Ultrasonic Distance Sensor (50~500cm, IP67) visual preview4-20HR-MaxSonar-WRMI MB7489 Waterproof Ultrasonic Distance Sensor (50~500cm, IP67)
4-20SC-MaxSonar-WRMI MB7789 Ultrasonic Distance Sensor visual preview4-20SC-MaxSonar-WRMI MB7789 Ultrasonic Distance Sensor
5.8GHz Microwave Radar Module visual preview5.8GHz Microwave Radar Module
50m TOF Laser Ranging Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant) visual preview50m TOF Laser Ranging Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant)
5V Metal Proximity Switch visual preview5V Metal Proximity Switch
A02YYUW Waterproof Ultrasonic Sensor (IP67, 3~450cm, UART) visual previewA02YYUW Waterproof Ultrasonic Sensor (IP67, 3~450cm, UART)
Adafruit VL53L0X Time of Flight Distance Sensor - ~30 to 1000mm visual previewAdafruit VL53L0X Time of Flight Distance Sensor - ~30 to 1000mm
Adjustable IR Reflection Sensor (3-80cm) visual previewAdjustable IR Reflection Sensor (3-80cm)
Background Suppression Photoelectric Sensor (30~120mm) visual previewBackground Suppression Photoelectric Sensor (30~120mm)
BOSON: Ultrasonic Distance Sensor i22 visual previewBOSON: Ultrasonic Distance Sensor i22
Capacitive Proximity Sensor (1-10 mm) visual previewCapacitive Proximity Sensor (1-10 mm)
Related groups
4 groups
BOSON: Heart Rate Monitor Sensor i20 visual previewBiometrics
UART/I2C fingerprint modules, MAX30102 PPG breakouts, and analog ECG/EMG front-ends for access control and hobby biometric sensing.
Sensors · Biometric sensors · 26 parts
0.3M Pixel Serial JPEG Camera Module visual previewCameras
Pi CSI modules, USB cameras, MCU-class OV2640/OV5640 boards, on-camera AI like HuskyLens and OpenMV, and thermal or ToF imagers — over 130 listings across very different pipelines.
Sensors · Cameras & vision · 141 parts
0.28 Inch LED Digital DC Voltmeter - Green visual previewPower monitors
INA-series I2C monitors, Hall-effect sensors like the ACS723 and Gravity 20A/50A boards, and non-invasive CT clamps for everything from 3.3V rail telemetry to mains current sensing.
Sensors · Current & voltage · 25 parts
4mm Mini Circular Force Sensor visual previewForce & weight
Interlink-style FSRs, strain-gauge load cells with HX711 amplifiers, and ready-made kits like DFRobot's Gravity I2C 1kg scale — from simple touch detection to accurate mass measurement.
Sensors · Force & weight · 28 parts