Having some issues getting the DFRobot weatherproof ultrasonic sensor (https://core-electronics.com.au/weather ... probe.html) set up with a Raspberry Pi Zero. I have tried several configurations and variants of code and am getting either unusual or no results.
using gpiozero and the setup and code from https://projects.raspberrypi.org/en/pro ... mputing/14 I get a stream of similar measurements in the 17-18cm range irrespective of distance.
using https://pimylifeup.com/raspberry-pi-distance-sensor/ It reaches print(“Calculating distance”) and then does nothing
using https://www.raspberrypi-spy.co.uk/2012/ ... on-part-1/ just hangs
With the second setup from pimylifeup, I achieved one single reading which looked successful.
The ultrasonic sensor is also acting strangely. The LED has, at various times, lit up and stayed lit, flickered to indicate trigger at appropriate times but still returned no distance, and stayed dark. There have also been several occasions where the ultrasonic device has been emitting a constant sound.
Any suggestions welcome!