Ultrasonic Sensor Symbol
Definition: The Ultrasonic Sensor symbol represents a module that measures distance by emitting a 40 kHz ultrasonic pulse via a TRIG signal and timing the echo return on the ECHO pin, commonly represented as the HC-SR04 module block with four terminals: VCC (5 V supply), TRIG (trigger input), ECHO (echo output), and GND (ground).
Also known as: HC-SR04 sensor, sonar distance sensor, ultrasonic distance module, ultrasonic range finder, proximity sonar.
What the Ultrasonic Sensor symbol means
The Ultrasonic Sensor symbol represents a distance-measuring module that uses the principle of acoustic echo ranging (sonar) to determine the distance to an object. The module fires a burst of 40 kHz ultrasonic sound pulses from its transmitter transducer when the TRIG pin is pulsed for at least 10 µs; it then listens with its receiver transducer and asserts the ECHO pin HIGH for a duration proportional to the round-trip travel time of the sound burst.
In microcontroller and robotics wiring diagrams, the ultrasonic sensor symbol appears as a functional module block connected to a microcontroller (typically Arduino, ESP32, or Raspberry Pi) with VCC and GND for power and TRIG/ECHO for digital communication. Because no ADC is needed — the distance information is encoded as a pulse width — the sensor interfaces directly to standard GPIO pins, making it one of the most popular sensors in educational and hobbyist electronics projects worldwide.
How to identify the Ultrasonic Sensor symbol
The Ultrasonic Sensor symbol is typically drawn as a rectangular block labelled 'Ultrasonic Sensor' or 'HC-SR04', with four labeled pin stubs exiting from one side (or the bottom): VCC, TRIG, ECHO, and GND. In more pictorial wiring diagrams the symbol may show two circular transducer eyes (the transmitter and receiver transducers) on the front face of the module, which are the characteristic visual feature of the physical HC-SR04 hardware. This two-eye appearance distinguishes it from other sensor module symbols in wiring diagrams.
Function in a circuit
The ultrasonic sensor measures the distance to a reflective object using time-of-flight of sound. The host microcontroller sends a 10 µs HIGH pulse on TRIG; the module immediately emits eight 40 kHz ultrasonic bursts and asserts ECHO HIGH. When the echo returns, ECHO goes LOW. The host measures the ECHO HIGH pulse width in microseconds and calculates distance using the formula: distance (cm) = pulse_width_µs / 58, which accounts for the speed of sound at room temperature (~343 m/s) and the round-trip divided by two. Effective range is approximately 2 cm to 400 cm with ±3 mm accuracy for the HC-SR04 variant.
Standards: IEC vs ANSI
| IEC 60617 | No specific IEC 60617 symbol is defined for ultrasonic distance sensors. In IEC-style block diagrams and P&ID (IEC 10628) schemes, ultrasonic level and distance instruments are represented by a generic instrument bubble labelled 'UT' or 'UL' (ultrasonic transmitter/ultrasonic level). |
|---|---|
| ANSI/IEEE 315 | No ANSI Y32.2 / IEEE 315 symbol is defined for discrete ultrasonic sensor modules. In ANSI ISA-5.1 instrumentation diagrams, ultrasonic instruments use a shared instrument bubble with 'UT' designation. In electronics circuit diagrams the device is shown as a labelled IC/module block. |
| Key difference | Both IEC and ANSI treat the ultrasonic sensor as a module/instrument block rather than a defined circuit symbol. The HC-SR04 module representation is a de-facto standard block diagram element widely used in educational and hobbyist documentation. |
Terminals / pins
| Pin | Name |
|---|---|
| vcc | VCC |
| trig | TRIG |
| echo | ECHO |
| gnd | GND |
Typical values
HC-SR04 specifications: VCC 5 V DC (90 mA max); TRIG input 10 µs HIGH pulse; ECHO output 3.3–5 V logic; measuring range 2–400 cm; accuracy ±3 mm; measuring angle 15°; ultrasonic frequency 40 kHz; quiescent current <2 mA. 3.3 V tolerant variants (HC-SR04+) also available.
Where the Ultrasonic Sensor symbol is used
- Obstacle avoidance and distance measurement in Arduino and Raspberry Pi robotics projects
- Bin-level or water-tank-level measurement in IoT monitoring systems
- Parking assist and reverse proximity warning systems in automotive prototypes
- Automated door and gate activation based on person proximity detection
- 3D object mapping and room dimension measurement in educational robotics
- Conveyor belt gap detection and part presence verification in simple automation
Example
In a standard Arduino obstacle-avoidance robot wiring diagram, the Ultrasonic Sensor symbol has its VCC connected to the Arduino 5V pin, GND to Arduino GND, TRIG to digital pin D9, and ECHO to digital pin D10. The Arduino sketch pulses TRIG, measures the ECHO pulse width with pulseIn(), and stops the motors if distance is less than 20 cm — a circuit that appears in virtually every beginner robotics course wiring diagram.
Key facts
- The Ultrasonic Sensor symbol represents a time-of-flight distance measurement module (most commonly the HC-SR04) with four terminals: VCC (5 V), TRIG (trigger input), ECHO (echo output), and GND.
- Distance calculation: distance (cm) = ECHO pulse width in µs ÷ 58, based on the speed of sound ~343 m/s at 20°C and round-trip time.
- The TRIG pin requires a minimum 10 µs HIGH pulse to initiate a measurement; the module then transmits eight 40 kHz ultrasonic bursts.
- Measuring range: 2 cm to 400 cm; accuracy ±3 mm under standard indoor conditions; measuring angle approximately 15° cone.
- No ADC is required — distance is encoded as a digital pulse width on the ECHO pin, directly readable by a microcontroller GPIO using a timer or pulseIn() function.
- No specific IEC 60617 or ANSI Y32.2 glyph exists; the sensor is represented as a labelled functional block in circuit and wiring diagrams.
- The physical HC-SR04 module has two cylindrical transducers (transmitter and receiver) giving it the distinctive 'two-eye' appearance reproduced in pictorial wiring diagrams.
- Obstacle distances below 2 cm are not reliably measured; the transmit pulse overlaps with the echo, causing the ECHO pin to behave incorrectly.
Diagrams that use this symbol
Frequently asked questions
What does the ultrasonic sensor symbol look like?
The ultrasonic sensor symbol is drawn as a rectangular module block labelled 'Ultrasonic Sensor' or 'HC-SR04' with four pin stubs: VCC, TRIG, ECHO, and GND. In pictorial wiring diagrams it may show two circular transducer elements on its face, replicating the two-cylindrical-eye appearance of the physical sensor module.
What does the ultrasonic sensor symbol mean in a circuit diagram?
The ultrasonic sensor symbol means a distance measurement module is present at that location. It connects to a microcontroller via two digital pins (TRIG and ECHO), receives a trigger pulse to start a measurement, and returns a pulse-width-encoded distance reading on the ECHO line without requiring any analogue conversion.
What are the four pins of an ultrasonic sensor?
The four pins are VCC (5 V power supply), GND (ground), TRIG (trigger input — receives a 10 µs pulse to fire the ultrasonic burst), and ECHO (echo output — goes HIGH for a duration proportional to the measured distance). VCC and GND power the module; TRIG and ECHO connect to two GPIO pins of the microcontroller.
How do you calculate distance from an ultrasonic sensor?
Measure the duration of the ECHO pin HIGH pulse in microseconds, then divide by 58 to get distance in centimetres: distance_cm = echo_time_µs / 58. This formula accounts for the speed of sound (approximately 343 m/s at 20°C) and the fact that the sound travels to the target and back (round trip), so only half the total travel time represents the one-way distance.
What voltage does an ultrasonic sensor need?
The standard HC-SR04 ultrasonic sensor requires a 5 V DC supply on its VCC pin and draws up to 90 mA during operation. ECHO output is also at 5 V logic, so a level shifter or voltage divider is needed when connecting ECHO to a 3.3 V microcontroller (such as ESP32 or Raspberry Pi) to avoid damaging the GPIO pin.
What standard defines the ultrasonic sensor symbol?
No specific IEC 60617 or ANSI Y32.2 / IEEE 315 symbol is defined for discrete ultrasonic distance sensor modules. In P&ID and instrumentation diagrams, ANSI/ISA-5.1 uses an instrument bubble labelled 'UT' (ultrasonic transmitter). In electronics and robotics wiring diagrams, the HC-SR04 module block with its four labelled pins is the de-facto industry standard representation.
What is the measuring range of an ultrasonic sensor?
The HC-SR04 ultrasonic sensor measures distances from 2 cm to 400 cm (4 metres) with an accuracy of approximately ±3 mm under room-temperature indoor conditions. Objects closer than 2 cm and beyond 400 cm produce unreliable ECHO readings. The sensor's effective detection cone is approximately 15 degrees wide.
Place the Ultrasonic Sensor symbol on a wiring diagram or schematic in the free online circuit diagram maker — no download required.