We’ve been using the BMP280 in one of our products for a few years now, but we recently had an issue with a batch of sensors.
Upon investigating, we found that our software wasn’t allowing sufficient time between transmitting the “reset” command to the sensor, and then reading the sensor’s calibration data.
What is the minimum time we should be allowing for this? A value of 2ms seems to work, but I can’t find where this is actually specified?
Solved! Go to Solution.
2ms is the reference value after our test, which you can see in the API.
* @brief This API triggers the soft reset of the sensor.
int8_t bmp280_soft_reset(const struct bmp280_dev *dev)
uint8_t reg_addr = BMP280_SOFT_RESET_ADDR;
uint8_t soft_rst_cmd = BMP280_SOFT_RESET_CMD;
rslt = null_ptr_check(dev);
if (rslt == BMP280_OK)
rslt = bmp280_set_regs(®_addr, &soft_rst_cmd, 1, dev);
/* As per the datasheet, startup time is 2 ms. */