2022-02-23 06:09 AM
we are performing accelerometer self test in production tester for measuring performance of sensor.
software flow:
reading x y z axis in 5 samples, clearing FIFO enabling self test. and giving settling time of 20ms delay. then taking 5 samples x y z axis values and disable self-test. averaging values before and after self test values then substracting after and before self test values in each axis. and verifying values weather it's in-between 70 t0 1500 as per datasheet.
some of the modules z-axis difference self test values is zero. ( before self test is 1998)- (after self test is 1998)=zero (not coming between 70 to 1500) declaring as self test is error.
Please let me know is there any change required in logic or is there any problem in chipset self test?
2022-03-03 02:39 AM
Hi @Ashet.1 ,
Can you please check your flow with the C code example on Github, for the LSI2DW12 self test? --> lis2dw12_self_test.c
Did you discarded the first read data? You might have also to increase the the test time from 20ms to about 100ms
-Eleon