URM09 I²C RaspberryPi - Python: FileNotFoundError

userHead connochaetes 2022-06-21 22:16:54 451 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.

2022-07-09 17:47:31

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.

userHeadPic connochaetes
2022-06-22 10:44:01

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.

userHeadPic Tonny12138
connochaetes wrote:

@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?

2022-06-23 23:33:11
1 Replies