Further reading
Please refer to the following links for more information:
- The RCWL-1601 is still quite similar to the HC-SR04. The HC-SR04 data sheet has useful information about its range. You can find the data sheet at https://www.mouser.com/ds/2/813/HCSR04-1022824.pdf.
- ModMyPi has a tutorial with an alternative way to wire the original HC-SR04 types, and level shift their IO: https://www.modmypi.com/blog/hc-sr04-ultrasonic-range-sensor-on-the-raspberry-pi.
- Raspberry Pi Tutorials also has a breadboard layout and Python script, using
RPi.GPIO
instead ofgpiozero
, at https://tutorials-raspberrypi.com/raspberry-pi-ultrasonic-sensor-hc-sr04/. - We've started to use many pins on the Raspberry Pi. When trying to ascertain which pins to use, I highly recommend visiting the Raspberry Pi GPIO at https://pinout.xyz/.
- We briefly mentioned debug output and refining it. W3schools has an interactive guide to Python format strings at https://www.w3schools.com/python/ref_string_format...