Schematik raised $4.6M to help anyone build hardware with AI$4.6MIL PRE-SEED ANNOUNCEMENT
CommunityPartsBlogAbout
CommunityPartsBlogAbout

Product

  • Home
  • Try Schematik
  • Download

Resources

  • Community
  • ESP32 projects
  • Blog
  • Press
  • Information for AI

Compare

  • Schematik or Fritzing
  • Schematik or Tinkercad
  • Schematik or Wokwi
  • Schematik or Claude Code

Company

  • Company
  • Jobs
  • Privacy
Making
hardware
less hard

Built with love in Europe. For makers everywhere.

© 2026 Schematik

All rights reserved

  1. Parts
  2. /Sensors
  3. /Distance sensors

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

OverviewWiringAlternates
Ultrasonic Distance Sensor - 3V or 5V - HC-SR04 compatible - Adafruit - 4007

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.

Parts tray full · 5 max · remove a part to add another
Ultrasonic Distance Sensor - 3V or 5V - HC-SR04 compatible — Adafruit — 4007

Offers

  • Adafruit

Offers

  • Adafruit

Pinout

Logical pinout · physical placement not verified
ULTRASONIC DISTANCE SEVccEchoTrigGnd
  • 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
PinTypeFunctionVoltage
VccPowerPower pin for the HC-SR04-compatible ultrasonic sensor; Adafruit Learn says this sensor requires 5V power for best results.5V power for best results
TrigSignalTrigger input; Adafruit Learn says setting Trig high for 10µs initiates an ultrasonic burst.3V or 5V signal
EchoSignalReturn 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
GndGroundGround pin.0V ground
Logical pinout · physical placement not verified
ULTRASONIC DISTANCE SEVccEchoTrigGnd

Pin details

4 connections
  1. 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
  2. Trig

    Trigger input; Adafruit Learn says setting Trig high for 10µs initiates an ultrasonic burst.

    SignalVoltage · 3V or 5V signal
  3. 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
  4. 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 options

About 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.

View all 176
  • 25m Long Distance ToF Laser Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant) visual preview

    25m Long Distance ToF Laser Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant)

  • 4-20HR-MaxSonar-WRMI MB7489 Waterproof Ultrasonic Distance Sensor (50~500cm, IP67) visual preview

    4-20HR-MaxSonar-WRMI MB7489 Waterproof Ultrasonic Distance Sensor (50~500cm, IP67)

    ?
  • 4-20SC-MaxSonar-WRMI MB7789 Ultrasonic Distance Sensor visual preview

    4-20SC-MaxSonar-WRMI MB7789 Ultrasonic Distance Sensor

    ?
  • 5.8GHz Microwave Radar Module visual preview

    5.8GHz Microwave Radar Module

  • 50m TOF Laser Ranging Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant) visual preview

    50m TOF Laser Ranging Sensor (±3cm Accuracy, 100Hz, 100K LUX Resistant)

  • 5V Metal Proximity Switch visual preview

    5V Metal Proximity Switch

  • A02YYUW Waterproof Ultrasonic Sensor (IP67, 3~450cm, UART) visual preview

    A02YYUW Waterproof Ultrasonic Sensor (IP67, 3~450cm, UART)

  • Adafruit VL53L0X Time of Flight Distance Sensor - ~30 to 1000mm visual preview

    Adafruit VL53L0X Time of Flight Distance Sensor - ~30 to 1000mm

  • Adjustable IR Reflection Sensor (3-80cm) visual preview

    Adjustable IR Reflection Sensor (3-80cm)

  • Background Suppression Photoelectric Sensor (30~120mm) visual preview

    Background Suppression Photoelectric Sensor (30~120mm)

  • BOSON: Ultrasonic Distance Sensor i22 visual preview

    BOSON: Ultrasonic Distance Sensor i22

  • Capacitive Proximity Sensor (1-10 mm) visual preview

    Capacitive Proximity Sensor (1-10 mm)

Related groups

4 groups
BOSON: Heart Rate Monitor Sensor i20 visual preview

Biometrics

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 preview

Cameras

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 preview

Power 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 preview

Force & 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