URM09 I²C RaspberryPi - Python: FileNotFoundError
connochaetes 2022-06-22 06:16:54 910 Views3 Replies Hi, I want to use the
Gravity: URM09 Ultrasonic Sensor (I²C)
SKU:SEN0304
with a Python program on a RaspberryPi 4. I am using THIS library from the product's wiki page. I saved the folder in the RaspberryPi's Downloads folder. Afterwards, I started “auto_measure.py” with mu (and thonny). Sadly, I got a few FileNotFoundErrors. The first one is directing to this line (no. 24):
urm09 = DFRobot_URM09_IIC(IIC_MODE, IIC_ADDRESS)
Since I used the sensor successfully on a RaspberryPi 3B, I am confident, that it's just a small step that I neglected.
Greetings to the community. Any help would be welcome.
SOLVED
I decided to reset the RaspberryPi's complete operating system. (I wasn't able to figure out the old problem.) Afterwards, it just worked.
Again, greetings and thanks to the community.
connochaetes You can extract the library file to the desktop, open and run it with thonny software. Use the i2C bus scan to see if the sensor address exists.
JaneYu @jiajun.liu : Sadly, I don't get to the point, where I am able to use the I²C bus scan. It's just this error message:

Any ideas?

