2025-11-13 2:58 AM - last edited on 2025-11-13 3:33 AM by mƎALLEm
Parts i'm looking to connect
* STM32N6 - microcontroller
* LSM6DSV320X - Master Sensor IMU
* LIS2MDL - On sensor hub Magnetometer
Question - is there any benefit to connecting the IMU master sensor to the LIS2MDL on the sensor hub vs connecting it directly to the microcontroller.
One of the features of this IMU is to generate quaternions but i don't think i can add the LIS2MDL into that equation.
2025-11-13 7:42 AM
Hi @Brenden_PLUS ,
The IMU’s sensor hub manages communication with the magnetometer, offloading I2C/SPI transactions from the microcontroller. This reduces MCU workload and bus complexity.
The IMU can manage sensor polling and power states more efficiently, potentially reducing overall power consumption.
Use the sensor hub connection if you want simpler wiring and reduced MCU load, and plan to perform sensor fusion including magnetometer data on the MCU.
Connect the LIS2MDL directly to the MCU if you want full control over magnetometer data handling or if you have specific timing/frequency requirements.