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.
Explore the layers in order to follow the teaching model.