11-03-2020 03:56 PM
hi sir,
present am working with bmx160 mems magnetometer,till now am able to read bmx160 device id (0xd8) and accelerometer/gyroscope readings from bmx160 by using SPI protocol for doing these i followed below link drivers
https://github.com/BoschSensortec/BMI160_driver
now my target is to read magnetometer data from bmx160 by using bmm150 drivers,but am unable to read MAG data ,am using below linked bmm150 driver for doing above task,but no luck.
https://github.com/BoschSensortec/BMM150-Sensor-API
can i use MAG registers directly (without using bmm150 driver)of bmx160 for reading mag data ,
pl help me to come out of these issue
thankyou in advance
regards
suraj.n
11-04-2020 12:29 AM
Hello Suraj,
Could you please check the attached file.
This example to get accel and gyro data from bmi160 in bmx160, and mag data from bmm150 in bmx160.
You can use SPI interface as your communcation method between host MCU and bmx160.
The BMM150 I2C interface in my code is for internal communication purpose.
My code is kind of update version of below url.
Please let me know if you have further questions.
Thank you.