IIS2MDC is it need to calibrate and how to calculate angle from raw data of the sensor?
Hi.
When i power my board and everything else i configure sensor in continous mode and succesfully getting data for each axis. Board is parallalel to the floor then it means that for getting angle i need sensor data from x axis and from y axis.
I tried with https:// blog.digilentinc.com/how-to-convert-magnetometer-data-into-compass-heading/ this approuch only difference is that i multiply data from axis with 1.5 ( i had read in aplication note that this is sensor constant to get mG) and for sensor in given web site is 0.48828125.
I want to ask is it needed to calibrate sensor every time when you power you entire board ( MCU and IIS2MDC) ?
Is that formula from given website good or not? Because i dont get good data when i compare with compass value from my smartphone even if i add declination angle for my geographical location to the calculated angle value which i got from the sensor.
