HC-SR04 Python library to use HC-SR04 Ultrasonic Ranging Module on Beaglebone Black Board pin name Board pin Beaglebone Black pin name Vcc 1 P9_5, VDD_5v Trig 2 P9_23, GPIO Echo 3 P9_25, GPIO GND 4 P9_1, Ground