This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF 52 GY-87

Hi,i m working in uav project with nr52 and GY-87 that contains mpu6050 and hmc8553 as sensor. i use i2clib to do connexion with twi created by jeff rowberg, then i wrote an mpu6050 library that worked vey well. i wrote also a hmc5883 library inspired from jeff rowberg lib for adruino. the communication worked well but i had 2 problem. the first is that i can't change the mag sensor configuration ( rate, samples, gain and mode) and all the parameters were default parameters. the second one is that the bypass function didnt worked well for mpu6050 and i can't get a communication with mpu6050 and hmc5883 in the same moment. there is my library. any help offered main.c mpu6500.c mpu6500.h i2cdev.c i2cdev.h

Parents
  • Hi Bjorn ! i think you for yor answer ! i had already seen these examples. they worked well but with limited function. My own library contains many options and you can do many advanced thing with it. My problem is that my function to write one bit seems that didn't work well it's "i2cdev_writeBit" ad i really blocked ecausse the same function and structure worked verry well with arduino. If you want take a look and try to help and thank you in advance !

Reply
  • Hi Bjorn ! i think you for yor answer ! i had already seen these examples. they worked well but with limited function. My own library contains many options and you can do many advanced thing with it. My problem is that my function to write one bit seems that didn't work well it's "i2cdev_writeBit" ad i really blocked ecausse the same function and structure worked verry well with arduino. If you want take a look and try to help and thank you in advance !

Children
No Data
Related