Hi, built the robot from RaspberryPi shop in Cambridge lat week and I am running tests, whenever I run anything that uses the distance sensor it with error as below. I have rebuilt the robot and made sure that he header block is in correctly no pins are bent and that the pins on the distance sensor are correctly seated. I2C is also enabled.
How can I test to see if the distance sensor is connected or what should I do to test?
Running RaspberryPi 64bit latest on Pi4 with 4GB, i am testing using the samples from GITHUB.
Regards,
Luke
Trilobot Example: Print Distance
Traceback (most recent call last):
File “/home/luke.kenyon/Pimoroni/trilobot/examples/print_distance.py”, line 23, in
distance = tbot.read_distance(timeout=25, samples=3)
File “/usr/local/lib/python3.11/dist-packages/trilobot-0.0.2-py3.11.egg/trilobot/init.py”, line 535, in read_distance
GPIO.wait_for_edge(self.ULTRA_ECHO_PIN, GPIO.RISING, timeout=timeout)
RuntimeError: Error waiting for edge