https://github.com/woolseyworkshop/article-interfacing-ultrasonic-distance-sensors-with-a-raspberry-pi
Interfacing Ultrasonic Distance Sensors With A Raspberry Pi Article Resources
https://github.com/woolseyworkshop/article-interfacing-ultrasonic-distance-sensors-with-a-raspberry-pi
electronics hcsr04 programming python raspberry-pi sensors
Last synced: 10 months ago
JSON representation
Interfacing Ultrasonic Distance Sensors With A Raspberry Pi Article Resources
- Host: GitHub
- URL: https://github.com/woolseyworkshop/article-interfacing-ultrasonic-distance-sensors-with-a-raspberry-pi
- Owner: WoolseyWorkshop
- License: mit
- Created: 2020-05-01T22:47:20.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-05-01T22:53:04.000Z (over 5 years ago)
- Last Synced: 2024-12-29T22:32:49.600Z (12 months ago)
- Topics: electronics, hcsr04, programming, python, raspberry-pi, sensors
- Language: Python
- Homepage: https://www.woolseyworkshop.com/2020/05/01/interfacing-ultrasonic-distance-sensors-with-a-raspberry-pi/
- Size: 2.93 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Interfacing Ultrasonic Distance Sensors With A Raspberry Pi Article Resources
This repository contains resources related to the [Interfacing Ultrasonic Distance Sensors With A Raspberry Pi](https://www.woolseyworkshop.com/2020/05/01/interfacing-ultrasonic-distance-sensors-with-a-raspberry-pi/) article published on [WoolseyWorkshop.com](https://www.woolseyworkshop.com).
## [hcsr04_simple.py](hcsr04_simple.py)
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.
## [hcsr04_range.py](hcsr04_range.py)
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.
## [hcsr04_array.py](hcsr04_array.py)
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.
