I am trying to use 2 9DoF sensors on my drone. The problem is when i try to connect both sensors over I2C the ISM330DHCX can have 6A and 6B addresses but Magnetometer MMA5983MA alsways have 30 address so although ISM330DHCX is fine, the magnetometer is not usable in this setup. I also tried using SPI but I cant figure out how it will work. Tther are a bunch of pins and ther are 3 pads on the back of the board says “I2C” and I am not sure wht to do with them on SPI and I am not sure which pins are chip select for SPI (there is ACS and MCS so do i connect both?). Can anyone please help me.
So, you can either try following the guide to use a mixed mode (i2c and SPI) Qwiic 9DoF - ISM330DHCX, MMC5983MA Hookup Guide - SparkFun Learn
You could also use a mux like https://www.sparkfun.com/sparkfun-qwiic-mux-breakout-8-channel-tca9548a.html (currently backordered) or similar if you want to use i2c for all