I am trying to inferace compass LSM303(Mag+Accel) on Jetson NX at the i2c bus 1. The compass has i2c address 0x1e which the i2cdetect command indicates on Jetson NX.
As Jetson NX has 2 default i2c buses, 8 and 1, I connected the compass to i2c bus 8 and the compass worked - gave headings. But since the i2c bus 8 in my project is occupied by PCA 9685, I want compass to work at bus 1. This bus 1 gives error, “ValueError: No I2C device at address: 0x1e”.
Interestingly, when pins are probed using
i2cdetect -y -r [bus address] to check for compass when connected to i2c bus 1 or 8, both times the compass is detected accurately.
Also running code using the PCA board at bus 1 throws error “ValueError: No I2C device at address: 0x40”. Both devices compass and PCA when connected to bus 8 get detected but give error when utilized during a code run.
I tried a raspberry pi technique but did not work mostly due to bcm2708
Will changing the dts file and compiling help, although I have never worked on them before. What is the recommended operation to make use of i2c bus 1 for devices to work.