Dear @Mark Hughes
Thanks for the nice effort that helped me a lot to interface the Sensor with Arduino .
I have attached the the source code , three image files.
First image file is without the magnet
2nd image file I have place a magnet on the Sensor
3rd image file I have flipped the magnet 180 degree and again placed on the sensor.
Issue is that if you see the first image without Magnet, Y=1 , and X= 2046 and after that , Y=1 , and X= 1 then Y=1 , and X= 2047
2nd image with Magnet, Y is varying from 0 to 4 and X from 1783 to 1785
3rd image same is the case with X and Y
Changes i have made :
I have made only disable Z and temperature into your code . And i am using Node MCU , D2 and D1 for the SDA and SCL pins .And one more changing is
const byte lpm[] = { B00000000, B00000001, B00000000, B10000000 }; // low power mode, 100ms , interrupt disable, temp disable
Thanks in Advance .
I need your expert opinion in this regard
Thanks for the nice effort that helped me a lot to interface the Sensor with Arduino .
I have attached the the source code , three image files.
First image file is without the magnet
2nd image file I have place a magnet on the Sensor
3rd image file I have flipped the magnet 180 degree and again placed on the sensor.
Issue is that if you see the first image without Magnet, Y=1 , and X= 2046 and after that , Y=1 , and X= 1 then Y=1 , and X= 2047
2nd image with Magnet, Y is varying from 0 to 4 and X from 1783 to 1785
3rd image same is the case with X and Y
Changes i have made :
I have made only disable Z and temperature into your code . And i am using Node MCU , D2 and D1 for the SDA and SCL pins .And one more changing is
const byte lpm[] = { B00000000, B00000001, B00000000, B10000000 }; // low power mode, 100ms , interrupt disable, temp disable
Thanks in Advance .
I need your expert opinion in this regard
Attachments
-
4.8 KB Views: 7
-
68.7 KB Views: 2
-
98.9 KB Views: 2
-
143.6 KB Views: 2