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
Solved! Go to Solution.
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.
#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)
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?