2024-05-26 10:50 AM - last edited on 2024-05-26 11:20 AM by Peter BENSCH
So i have a LSM6DSOX and connected to its sensor hub LIS3MDL.
Currently I'm trying to log data to feed into the NanoEdge studio. So i need to grab data from the actual LIS3MDL.
On the sensor hub you can read and write registers through the sensor hub correct?
Solved! Go to Solution.
2024-05-28 11:47 PM
Hi @BA_ ,
On github you can find some official examples on how to implement sensor hub using LSM6DSOX and LIS2MDL. You can use them as starting point.
Hope this helps :)
2024-05-26 12:32 PM
So you set the address to be a read or write SLV0_ADD (15h)
Then with SLV0_SUBADD (16h) you can set the register
Then this is used to write the value DATAWRITE_SLV0 (21h)
But i don't know how a data read works. Also not sure how you read more then one sensor?
2024-05-26 12:35 PM
The read somehow comes from the SENSOR_HUB_1-18
2024-05-28 11:47 PM
Hi @BA_ ,
On github you can find some official examples on how to implement sensor hub using LSM6DSOX and LIS2MDL. You can use them as starting point.
Hope this helps :)
2024-06-01 05:39 PM
This looks good thanks :).
This looks like it will help a lot