Schematex
breadboard·Fritzing visual conventions (no ISO standard)·education, maker, robotics·complexity 2/3

HC-SR04 distance sensor + Arduino Uno

Four-wire ultrasonic distance sensor wiring — VCC / GND / TRIG / ECHO. The textbook Adafruit / SparkFun tutorial layout used in robotics intro classes.

For the Arduino tutorial author

Open in Playground →
breadboard·§
↘ preview
100%
HC-SR04 distance sensor + Arduino Uno Breadboard wiring diagram generated by Schematex HC-SR04 distance sensor + Arduino Uno 5 10 15 20 25 30 5 10 15 20 25 30 a a f f b b g g c c h h d d i i e e j j D13D12D11D10D9D8D7D6D5D4D3D2TXRXRST3V35VGNDVINA0A1A2A3A4A5Arduino Uno VCCTRIGECHOGNDHC-SR04
UTF-8 · LF · 17 lines · 342 chars✓ parsed·3.0 ms·34.4 KB SVG

The HC-SR04 is the most common ultrasonic distance sensor in beginner Arduino kits. Four pins, four wires, no driver IC needed. The sensor module is rendered as a blue PCB tile with its four pin labels (VCC / TRIG / ECHO / GND) sitting above the breadboard rows where they plug in.

The TRIG line is a digital output from the Arduino — pulse it high for 10 µs and the sensor fires an ultrasonic chirp. The ECHO line is a digital input — its high-time, in microseconds, is twice the round-trip distance divided by the speed of sound. Conventional wiring uses yellow for TRIG and green for ECHO so the two signals are visually distinguishable, though the colors carry no electrical meaning.

Breadboard syntax