Using the MLX90393

I am trying to use the MLX90393 chip to get compass headings using I2C with Arduino boards (Uno and Megs 2560).

I am not able to communicate with the device using the 0xC0 address as show in the documentation. I ran a test program that will identify all I2C devices connected to the Arduino board and when I run that it does not see the board. I also tried connecting to the board using the 0xC0 address but not luck. Both that code and the I2C scanner program code are using the Wire.h library.

Do I have to modify the A0 & A1jumpers on the back of the board to enable I2C communications? The doc mentions doing something with those two along with the CS jumper, but I am not understanding.

Thanks in advance for any/all assistance.

huppy999

Can you post a few photos of your setup?

Not much of a setup at this point as I am just beginning to work with this to learn how to use it and what all it can do. I am using a 4 pin cable with female (board side) to male pins. Connecting to the Mega 2560 with black to ground, red to 3.3V, yellow to SCL (pin 21) and blue to SDA (pin 20). That is the only setup so far.

You don’t need to do anything to the board to enable I2C, it’s setup for that right from the factory.

Have you changed any of the jumpers? Have you tried using an Arduino uno just to test?

Have not changed anything with the board. I have tried both the Mega 2560 and an Uno board with same results. I have also tried two different MLX90393 boards.

Not sure what’s going on. Can you post a few photos of your setup and the top and bottom of your board?