IoTClass / Inside the measurement
Conceptual · not to scale

Inside a Ultrasonic ranger

Peel from the case to the element. Follow the readout through this conceptual model.

Return to the source chapter section

The full text version below describes every layer. All measurement explanations are available without 3D.
Case: transmitter and receiver cansThe paired transducers send a sound pulse and receive its returning echo. [Ultrasonic Distance Sensor (HC-SR04)]

Drag to rotate; pinch to zoom. With the view focused: arrow keys rotate, + / − zoom, 1–3 choose a layer, Home resets rotation and zoom. Step advances to the next layer; Reset returns to the case and default view. Layer buttons select a view directly. The page does not move on its own.

Layer 1 of 3 / Outside

Case: transmitter and receiver cans

The paired transducers send a sound pulse and receive its returning echo. [Ultrasonic Distance Sensor (HC-SR04)]

Teaching view: Two silver cans sit side by side on the board. One sends sound toward a target; the other receives the echo.

The measurement to rememberDistance is sound speed multiplied by echo round-trip time, divided by two. [Ultrasonic Distance Sensor (HC-SR04)]

Full text version · every layer

1 · Case: transmitter and receiver cans

The paired transducers send a sound pulse and receive its returning echo. [Ultrasonic Distance Sensor (HC-SR04)]

Teaching view: Two silver cans sit side by side on the board. One sends sound toward a target; the other receives the echo.

2 · Board / module: echo timing

The microcontroller measures the echo pulse duration and converts it into distance. [Ultrasonic Distance Sensor (HC-SR04)]

Teaching view: The blue board supports two gold discs and a dark controller block. Trigger and echo connections let the microcontroller start a measurement and time the return.

3 · Element: sound transducer

For example, at a sound speed of 343 meters per second, a 2-millisecond round trip gives a target distance of 343 meters per second × 0.002 seconds ÷ 2 = 0.343 meters. [Ultrasonic Distance Sensor (HC-SR04)]

Temperature changes the speed of sound and therefore the distance calculation. [Ultrasonic Distance Sensor (HC-SR04)]

Teaching view: Each can contains a thin piezoelectric element that changes shape when a voltage is applied. The transmitter circuit drives its element back and forth to send a sound pulse. The returning echo vibrates the receiver element, producing a small voltage. The board detects the echo, and the microcontroller uses its travel time to calculate distance.

Explode separates the conceptual layers; X-ray makes the case translucent. External package dimensions follow the model specification; internal teaching geometry is conceptual, not to scale, and is not manufacturer CAD or a wiring diagram.