Hi,
The second round test x+/x- difference almost same with first round.
I check bma2x2_support , have you check your initial code same with this.
If same, you can comment softreset, and make another round test.
Another suggestion, change the ACC_RANGE from 2g to 8g, try to find x axis raw data is different?
Best regards.
Hi
My initial code is based on: https://github.com/ControlEverythingCommunity/BMA250/blob/master/Python/BMA250.py
I don't sure what should I check in the code bma2x2_support ... also I changed ACC_RANGE to +/-8g and there were no changes:
these are results of two selftest I did:
nvidia@tegra-ubuntu:~/Downloads$ sudo python3 imu.py
IMU operation - Please choose CALIB or SELFTEST or READ
SELFTEST
selftest acc results:
-58.0
85.0
-218.0
287.0
147.0
357.0
nvidia@tegra-ubuntu:~/Downloads$ sudo python3 imu.py
IMU operation - Please choose CALIB or SELFTEST or READ
SELFTEST
selftest acc results:
-61.0
83.0
-219.0
285.0
147.0
356.0
Hi,
From bma2x2_support, you could find the workflow as
1 com_rslt = bma2x2_init(&bma2x2);
read 0x00, chip id;
read 0x3E, fifo_config_1
2 com_rslt += bma2x2_set_power_mode(BMA2x2_MODE_NORMAL);
set 0x11, power mode
3 com_rslt += bma2x2_set_bw(bw_value_u8);
4 com_rslt += bma2x2_get_bw(&banwid);
do self-test
return self-test result;
Best regards.
Hi
It seems like the workflow I already use. The results of the Accelerometer seem fair
I need the accelerometer just to measure a static pitch and roll angles of my sensor.
For this use case, is there any neccesity that you suggest to perform the selftest as part of my product assembly process or I can rely on the tests and calibrations were done on the manufacturing process?
Hi elieli,
Sorry for my late reply, because we make bma250 self-test in our lab.
From our test, bma250 x-axis value(Accl_x_pos_lsb: -45.3 Accl_x_neg_lsb:90.5), difference almost same with your test. We set range to 8g, so the result is(Accl_x_pos_lsb: -707mg, Accl_x_neg_lsb:1414mg), difference 2114mg >800mg(minimum difference).
For your new question, after product assemble, you could make self-test to verify if bma250 is ok. Reset sensor, then make offset compensation, avoid solder and assemble stress. For compensation, you could refer to BMA4xy-accelerometer-series-design-guide .
Best regards.