Hi, I’ve so far been able to install all other Breakout Garden modules (five or six of them), but it seems that no matter how I install the libraries for the ICM20948 I get a response like:
File "./magnetometer.py", line 21, in <module> imu = ICM20948() File "/usr/local/lib/python3.7/dist-packages/icm20948-0.0.1-py3.7.egg/icm20948/__init__.py", line 224, in __init__ RuntimeError: Unable to find ICM20948
This either by installing via a download from github (either zip or clone) and using its install.sh, or “sudo pip3 install icm20948”. As I mentioned, other modules (like the VL53L1X, 5x5 LED matrix, the 10A switch or ADS1015) work fine. I’ve uninstalled and reinstalled several times to no avail.
I’ve tried running the magnetometer.py example either from the ./examples directory or from my own work directory, using either python 2 or 3 (I’m generally using Python 3). Always the same result, as above. The ICM20948 module does show up at 0x68 when queried using i2cdetect, so this seems entirely to be a software issue.
This is on a Raspberry Pi B+. Curiously, I also have a Pi Zero W and it works fine on that.