Skip to content

I2c HMC5883L connection issue to FT2232H #17

@jyotsana11singh

Description

@jyotsana11singh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions