Ultrasonic Sensor not working on raspberry pi 4b

May 7, 2024, 09:22

cheezumi

I'm trying to follow this guide to get my ultrasonic sensor working: https://projects.raspberrypi.org/en/projects/physical-computing/12 However, i get the error
/usr/lib/python3/dist-packages/gpiozero/input_devices.py:855: PWMSoftwareFallback: For more accurate readings, use the pigpio pin factory.See https://gpiozero.readthedocs.io/en/stable/api_input.html#distancesensor-hc-sr04 for more info
  warnings.warn(PWMSoftwareFallback(
/usr/lib/python3/dist-packages/gpiozero/input_devices.py:978: DistanceSensorNoEcho: no echo received
  warnings.warn(DistanceSensorNoEcho('no echo received'))

oops.se

No echo received Faulty wiring. Faulty Code Faulty GPIO assignment'