06-23-2020 07:31 AM
Hi everyone,
I was looking the BMX160 datasheet and on page 18 the table 9 shows the current consumption in according to number of averaging cyrcles and ACCEL ODR settings.
What is the AVG-Number of Averaging Cyrcles and how could I change this value at my code?
Thanks in advance
Nick
Solved! Go to Solution.
06-23-2020 09:12 AM - edited 06-24-2020 03:43 AM
Hello,
You could also refer page 22 from BMX160 data sheet. In the same time, the larger the average value, the more sampling times.
The following is accelerometer example to config register by using BMX160 API.
bmx160_set_accel_bw(BMX160_ACCEL_OSR4_AVG1);
#define BMX160_ACCEL_OSR4_AVG1 (0)
#define BMX160_ACCEL_OSR2_AVG2 (1)
#define BMX160_ACCEL_NORMAL_AVG4 (2)
#define BMX160_ACCEL_CIC_AVG8 (3)
#define BMX160_ACCEL_RES_AVG2 (4)
#define BMX160_ACCEL_RES_AVG4 (5)
#define BMX160_ACCEL_RES_AVG8 (6)
#define BMX160_ACCEL_RES_AVG16 (7)
#define BMX160_ACCEL_RES_AVG32 (8)
#define BMX160_ACCEL_RES_AVG64 (9)
#define BMX160_ACCEL_RES_AVG128 (10)
06-23-2020 09:38 AM - edited 06-23-2020 10:32 AM
Hi BSTRobin and thank you for your answer,
Is there a BMX160 API provided by Bosch? At the moment I am using the BMI160 API to program the BMX160
06-23-2020 10:24 AM
Hello Nikosant03,
Yes, there is BMX160 API. You could apply for it with local Bosch distributor.
06-23-2020 10:33 AM
Hi BSTRobin and thank you for your answer,
So, if I have understand correctly, for example, for the accelerometer for AVG 16 the maximum ODR in order to stay in low power mode is 50Hz. That means that 16 signal samples will be averaged per 20ms right? The higher the AVG the lower the noise level but the current consumption is increased right?