Schematik raised$4.6Mto help anyone build hardware with AI$4.6MIL PRE-SEED ANNOUNCEMENT
SCHEMATIKSCHEMATIK
GuidesPartsBlogCompanyDownload
GuidesPartsBlogCompanyDownload
SCHEMATIK

Built with love in Europe | For makers everywhere

Product

  • Home
  • Try Schematik
  • Download

Resources

  • Build guides
  • Blog
  • Press
  • Information for AI

Compare

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

Company

  • Company
  • Jobs
  • Privacy
  1. Parts
  2. /Sensors
  3. /Distance sensors

HC-SR04 Ultrasonic Sonar Distance Sensor

OverviewPinoutWiringAlternatesRelated groups
HC-SR04 Ultrasonic Sonar Distance Sensor — Adafruit — 3942

HC-SR04 ultrasonic distance sensor for measuring range with a trigger/echo interface in robotics, automation and proximity projects.

Offers

  • Adafruit$14.95
  • ?DigiKey$3.95
  • ?OpenCircuit€5.50

Offers

  • Adafruit$14.95
  • ?DigiKey$3.95
  • ?OpenCircuit€5.50

Pinout

  • VCC1

    5 V power input

    Type · powerVoltage · 5V
  • TRIG2

    ultrasonic trigger input

    Type · digital inputVoltage · 3V or 5V logic accepted per Adafruit product text
  • ECHO3

    ultrasonic echo pulse output

    Type · digital outputVoltage · 5V logic output, use divider for 3V controllers
  • GND4

    common ground

    Type · groundVoltage · 0V
PinPositionTypeFunctionVoltage
VCC1power5 V power input5V
TRIG2digital inputultrasonic trigger input3V or 5V logic accepted per Adafruit product text
ECHO3digital outputultrasonic echo pulse output5V logic output, use divider for 3V controllers
GND4groundcommon ground0V

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. Schematik maps them to your board in the app.

Distance sensors

5 other options

Compare compact I²C time-of-flight breakouts with industrial LiDAR modules without treating range, field of view, voltage or protocol as interchangeable.

Compare
  • VL53L1X Time of Flight (ToF) Sensor Breakout visual preview

    VL53L1X Time of Flight (ToF) Sensor Breakout

    Compact VL53L1X ToF breakout for embedded I²C distance/proximity sensing. Good for small robots and maker boards when the range/FoV fit.

    €19.95
  • Solid State TOF LiDAR - CE30-A visual preview

    Solid State TOF LiDAR - CE30-A

    Industrial-style solid-state ToF LiDAR module with 12 V supply, CAN/TCP communication and wide field of view. Not a breakout replacement.

    $750.00
  • DFRobot A01NYUB Waterproof Ultrasonic Distance Sensor visual preview

    DFRobot A01NYUB Waterproof Ultrasonic Distance Sensor

    $27.00
  • Fermion VL53L3CX ToF Distance Ranging Sensor Breakout visual preview

    Fermion VL53L3CX ToF Distance Ranging Sensor Breakout

    $8.90
  • M5Stack Time-of-Flight Distance Unit (VL53L1X) visual preview

    M5Stack Time-of-Flight Distance Unit (VL53L1X)

    $8.95?

Related groups

4 groups
MQ-2 Gas Sensor visual preview
MQ-3 Gas Sensor visual preview
MQ-135 Gas Sensor visual preview
Grove - Air quality sensor visual preview

Air quality

Choose between MQ gas sensors, VOC/eCO2 indoor-air sensors, true CO2 modules and particulate sensors without treating every air-quality breakout as the same detector.

Sensors · Gas & air-quality sensors · 31 parts

Gravity: DHT11 Temperature & Humidity Sensor For Arduino visual preview
MIKROE DHT22 2 Click visual preview
MIKROE DHT22 Click visual preview
DHT20 - AHT20 Pin Module - I2C Temperature and Humidity Sensor visual preview

Temp and humidity

DHT11, DHT22/AM2302, and DHT20/AHT20 sensors solve the same broad job, but only some are acceptable substitutes in the same circuit.

Sensors · Environment sensors · 19 parts

Gravity: DHT11 Temperature & Humidity Sensor For Arduino visual preview
Fermion: ENS160+BME280 Environmental Sensor - TVOC, eCO2, Temp & Humidity (Breakout) visual preview
MIKROE DHT22 2 Click visual preview
MIKROE DHT22 Click visual preview

Environment sensors

Choose between temperature-only, temperature/humidity, pressure and indoor air-quality modules without treating every environmental sensor as a drop-in substitute.

Sensors · Environment sensors · 8 parts

Photo cell (CdS photoresistor) visual preview
TCS3200 Color Sensor visual preview
Adafruit APDS9999 Proximity, Lux Light & Color Sensor visual preview
Adafruit AS7341 10-Channel Light / Color Sensor Breakout visual preview

Light and colour

Photoresistors and color sensors both respond to light, but they expose very different signals and are not sensible drop-in substitutes.

Sensors · Light & color sensors · 7 parts

Parts tray full · 5 max · remove a part to add another