AnsweredAssumed Answered

Regarding LIS2MDL Sensor calbration

Question asked by krish j on Jun 5, 2018

Hello ,

 

     I am working on lis2mdl sensor getting raw data values like below.

C5 FF B9 FF 12 00 C5 FF

these values are accurate or not .

if values getting correct may i know how to do calibration for that.

 my pseudo code.

//who_iam
HAL_I2C_Mem_Read(&hi2c1, 0x3D, 0x4F, I2C_MEMADD_SIZE_8BIT, buff, 1, 1000);
//status
HAL_I2C_Mem_Read(&hi2c1, 0x3D, 0x67, I2C_MEMADD_SIZE_8BIT, buff1, 1, 1000);

//raw data
HAL_I2C_Mem_Read(&hi2c1, 0x3D, 0xE8, I2C_MEMADD_SIZE_8BIT, Rawdata, 8, 1000);

 

 

please kindly help me.

 

Thanks & Regards,

 

krish.

Outcomes