This repository contains resources related to the Interfacing Ultrasonic Distance Sensors With A Raspberry Pi article published on WoolseyWorkshop.com.
A Python program that reads an HC-SR04, or compatible, ultrasonic distance sensor using the GPIO Zero library on a Raspberry Pi. Distance values are printed to the screen.
A Python program that reads an HC-SR04, or compatible, ultrasonic distance sensor using the GPIO Zero library on a Raspberry Pi. It detects and prints whether an object was detected within or outside of a particular range.
A Python program that reads an array of HC-SR04, or compatible, ultrasonic distance sensors using the GPIO Zero library on a Raspberry Pi. It also provides the ability to specify the sensor sampling rate in Hz.