I've been reading through the example code provided for this sensor (the testing demo) and I'm following how to get the respective angles for where the magnetic source is coming from; however, I haven't the faintest how I can calculate the strength for each respective axis.
I'm new to Arduino stuff but I'm trying to make it so a my Uno can take the values from the sensor, detect which direction the strongest magnetic field is coming from, and head towards that direction. The demo explains how we get our angles, but can someone help point me where I need to look for getting the strength working?
The datasheet , page 11 shows the registers CRA/CRB/MR @ adress 0/1/2
Control Register B is used to set sensivity. If u set all GN2,GN1,GN0 to zero, the range is set to +/- 0.88Gauss
A reading of 1370 is equal to 1Ga magn. field.
Posision your sensor horisontally. x and y-axis reflects horisontal field, z .. vertical field