Main Site Documentation

Hydra I2C problem with MLX90620


#1

Hello
I am trying to develop an application with the following sensor:


With map-mere Cerbuino I have no problem but with the Hydra certe I fail to communicate. I attached a picture with the frame is sent, and the oscilloscope to capture each card. There are apparently unn problem at the stop bit at the end of the write frame.

code:

I2CDevice MyI2C;
I2CDevice.Configuration conEprom, conMLX;
conMLX = new I2CDevice.Configuration(0x60, 100);


MyI2C = new I2CDevice(conMLX);
I2CDevice.I2CTransaction[] xActions =
new I2CDevice.I2CTransaction[2];
MyI2C.Config = conMLX;
// create write buffer (we need one byte)
byte[] RegisterNum = new byte[4] { 0x02, 0x92, 0x00, 0x01 };
xActions[0] = I2CDevice.CreateWriteTransaction(RegisterNum);
// create read buffer to read the register
byte[] RegisterValue = new byte[2];
xActions[1] = I2CDevice.CreateReadTransaction(RegisterValue);
while (1 == 1)
{

if (MyI2C.Execute(xActions, 1000) == 0)
{
Debug.Print("Failed to perform I2C transaction");
}
else
{

}
Thread.Sleep(1000);
}

Thank you


#2

We will try this on our end.

Welcome to the community


#3

Hi, cncserv, any progress with your MLX90620?
I am interesting this sensor too.