Study for the Internet of Things (IOT102) Test. Access comprehensive flashcards and multiple choice questions, each with hints and explanations. Get prepared for your exam!

Multiple Choice

What is the purpose of the ECHO pin on the HC-SR04 sensor?

The Echo pin is used to carry the return timing information of the ultrasonic signal. After you send a trigger pulse, the sensor emits a burst and then waits for it to bounce back. The Echo pin goes high when the echo is detected and stays high for the duration equal to the round-trip time of the sound. Measuring that pulse width lets you calculate distance using the speed of sound. So the Echo pin provides the information that the ultrasonic sound wave is returned. The trigger input handles sending the pulse, the Vcc pin powers the sensor, and there’s a separate ground connection for reference.

The Echo pin is used to carry the return timing information of the ultrasonic signal. After you send a trigger pulse, the sensor emits a burst and then waits for it to bounce back. The Echo pin goes high when the echo is detected and stays high for the duration equal to the round-trip time of the sound. Measuring that pulse width lets you calculate distance using the speed of sound. So the Echo pin provides the information that the ultrasonic sound wave is returned. The trigger input handles sending the pulse, the Vcc pin powers the sensor, and there’s a separate ground connection for reference.