I use the Murata PCB SCL3300 and an Arduino MKR WIFI 1010.
It seems to me that there is a problem with the values of the accelerometer.
Serial monitor with "Example3_BasicAccelerometerReading" program :
X Accelerometer: 0.01 Y Accelerometer: 5.44 Z Accelerometer: 0.99
The value of the y axis is false.
I think the problem is the variable type for acceleration datas.
The datasheet specifies that values are in complement format so you should declare signed int instead of unsigned int.
The modifications are to be made in :
struct of SCL3300data
the fonction double acceleration(int16_t ACC)
Thank you so much for this library which is of the greatest help !
Hello,
I use the Murata PCB SCL3300 and an Arduino MKR WIFI 1010.
It seems to me that there is a problem with the values of the accelerometer. Serial monitor with "Example3_BasicAccelerometerReading" program :
X Accelerometer: 0.01 Y Accelerometer: 5.44 Z Accelerometer: 0.99
The value of the y axis is false.
I think the problem is the variable type for acceleration datas. The datasheet specifies that values are in complement format so you should declare signed int instead of unsigned int.
The modifications are to be made in : struct of SCL3300data the fonction
double acceleration(int16_t ACC)
Thank you so much for this library which is of the greatest help !