07-02-2018 09:40 PM
I'm trying to configure the registers for my 3-Axis Magnetic Sensor QMC5883L (GY271), I have obtained the compass address which appeared to be (x 0D). Now, to configure the compass registers I added the write/read registers in a sequence following the datasheet.
But I only get a constant value of the x-axis. I have also changed the data of Control Register 1, but i still get the same result.
07-06-2018 10:24 AM
Hello Osama,
As you may already know, in the I2C protocol, it is necessary to specify the Register Address before sending the data byte to write. The Address of the Control Register 1 is 0x09. However, in the image you attached, it looks like you specified the Address 0x00 instead.
This video gives an example of how to develop a LabVIEW program to configure and read the signal of an accelerometer using a myRIO. I hope you find it useful.
Could you also share a screenshot that shows how you are reading the X, Y and Z registers?
Regards,
Gustave