HMC5883 Compass icon HMC5883 Compass — Reads HMC5883 3-axis compass via I2C and updates EZ-Script variables on demand; polled control offers periodic heading data, for connected sensors. Try it →

ARC Pro

Upgrade to ARC Pro

Unleash your creativity with the power of easy robot programming using Synthiam ARC Pro

#9  

@Rich i am stuck with the register descriptions, if you can help me out with it.

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#10  

Sorry but I don't have the time to read the datasheet at the moment. The datasheet should tell you everything you need to know, if it doesn't you could try contacting the manufacturer and asking for their assistance - all manufacturers I've been in contact with have been very helpful to be honest.

#11  

and @DJ Sures this is what this guy has done in C:
www.botched.co.uk/pic-tutorials/mpu6050-setup-data-aquisition/

I translated the MPU6050_Test_I2C() method in the following way:

byte[] ret = ezB_Connect1.EZB.I2C.Read(EZ_B.I2C.ReadArgsEnum.Auto, 0x75, 1);

Since 0x75 is the read only register which returns 0x68. But I am getting 0xff! any help?

#12  

@Rich have a look at the link I have posted above. Maybe that would be time saving. and thanks for the help!

#13  

and @DJ in the latest SDK, the I2C.Start() and I2C.Stop() methods aren't available, so is that the reason that I am not being able to retrieve values?

#14  

thanks everyone, now I did it finally!:)

#15  

thanks everyone, now I did it finally! Smile