Material needed:
The design
Mesure distance
Follow link below for pin connections https://projects.raspberrypi.org/en/projects/physical-computing/14
You can achive it with connecting it to your pc trought the Micro USB Port of the raspberry pi
Using putty if you're on windows, Ssh if you're on a linux based os Follow the following instruction if you dont know how to connect to raspberry pi Connect to Raspberry Pi using Putty
Assuming you're connected with... copy and past this command If you're using Raspberry zero
curl -O https://raw.githubusercontent.com/ionoid-io-projects/workshop_ultrasonic_distance_sensor/master/bin/arm6/udistance
If you're using Raspberry 3 b
curl -O https://raw.githubusercontent.com/ionoid-io-projects/workshop_ultrasonic_distance_sensor/master/bin/arm7/udistance
chmod +x udistance
./udistance
To quit or stop the program click on Ctrl+C
Congratulation.
https://www.modmypi.com/blog/hc-sr04-ultrasonic-range-sensor-on-the-raspberry-pi
https://pimylifeup.com/raspberry-pi-distance-sensor http://espace-raspberry-francais.fr/Composants/ https://github.com/rhiller/pi-distance