Data Sheet

Guide V1.0
Email: keen@elecrow.com Web: www.elecrow.com ---Designed by Elecrow Keen
35
Connection diagram
Connection
HC SR04 RPI
Vcc -> 5V0
Trig -> GPIO23
Echo -> GPIO24
Gnd -> GND
Compile and Run
Tips: Refer to the operation demo (Step4 to Step7).
Application effect
Running the program, you will see the parameters returned by the ultrasonic
module.