Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I2c HMC5883L connection issue to FT2232H #17

Open
jyotsana11singh opened this issue Mar 19, 2016 · 0 comments
Open

I2c HMC5883L connection issue to FT2232H #17

jyotsana11singh opened this issue Mar 19, 2016 · 0 comments

Comments

@jyotsana11singh
Copy link

Hi,

I have HMC5883L magnetometer which needs to be connected to a PC through USB interface. I am connecting the HMC5883L to PC using an USB to I2c bridge FT2232H Numato breakout board.

For communicating to HMC5883L through the FTDI chip, I am using the MPSSE library. I have created a sample application to do this taking a reference using i2ceeprom.c file present in the examples folder.
But unfortunately the data I get from the device is always -1 even though the value I have written to that register it different. When I am writing the data to a particular register, I get an acknowledgment. Am I doing something wrong while writing the command?
Attaching the code for reference.
i2ctest.txt

Any comments will be helpful. I am blocked with this issue.

Regards,
Jyotsana.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant