DVC-Viking-Robotics / Robot-Senses

A collection of hardware interfaces specific to sensors
0 stars 0 forks source link

Need a driver class for HC-SR04 distance sensors #5

Open 2bndy5 opened 4 years ago

2bndy5 commented 4 years ago

Our original testing used the GPIOzero library's driver class for these cheap distance sensors. Results were reliable, but not well developed. We could be using 1 pin instead of 2 to trigger and ultrasonic pulse and then wait for the echo to calculate distance based on the speed of sound.

2bndy5 commented 4 years ago

This adafruit-circuitpython-hc-sr04 library looks like a good start, but it doesn't have the one wire feature (yet) that the NewPing library for Arduino has.