The instructions are very unclear about how to wire the cables of the ultrasonic sensor. I put it in the digital group, and run avoiding_obstacles.py. It does not seem to give me any distance values other than -1. Any thoughts?
The assembly diagram has instructions for the wiring of the ultrasonic sensor.
When you run the code, please confirm whether the code pins are the same as the assembled pins, if not, the pin of the code shall prevail.
Change the wiring pins.
You can also provide your module wiring diagram to us.
Got it. The sensor seems to work now. Thanks.