11-29-2022 04:23 PM
Hello,
I'm using a BMP581 Shuttle Board 3.0 and I'm having problems reading the pressure via I2C. I read six registers starting at the 0x1D address (TEMP_DATA_XLSB). The temperature data seems to be correct. Nevertheless, the pressure registers are always set to the default value 0x7F. The CS and SDO pins are connected to VDDIO and VDDIO is connected to VDD (3.3V). Moreover, the values I write in ODR_CONFIG and DRIVE_CONFIG registers are not saved and I cannot write to OSR_CONFIG register.
Which could be the problem?
12-01-2022 02:04 AM
Hi msu,
You could refer example code on github and run the example code.
https://github.com/BoschSensortec/BMP5-Sensor-API
12-27-2022 10:17 AM
Hello,
I have followed this example. Nevertheless, the measurements I get don't seem to be correct (4.5°C and 688.04 hPa).
Moreover, in the program I try to set the OSR and ODR as shown in the Github example but I get the following:
BMP581_REG_OSR_CONFIG: 0x0
BMP581_REG_OSR_CONFIG to write: 0x56
BMP581_REG_OSR_CONFIG: 0x4
BMP581_ODR_CONFIG: 0x60
BMP581_ODR_CONFIG to write: 0x3D
BMP581_ODR_CONFIG: 0x39
BMP581_REG_OSR_EFF: 0x4
The 'odr_is_valid' bit is zero and the final OSR and ODR values are not the ones I'm trying to set. Which could be the problem?
Regards,
12-27-2022 01:48 PM
Hi msu,
You can debug the program step by step to see the return of the program.
12-27-2022 02:06 PM
Hello,
I can see the return of the program. What I'd like to know is the sequence to configure the sensor in normal mode for reading the pressure and temperature. I'm following the instructions in the Github example:
Nevertheless, the sensor is not being configured with the values I'm trying to set:
BMP581_REG_FIFO_SEL: 0x0
BMP581_REG_FIFO_SEL to write: 0x3
BMP581_REG_FIFO_SEL: 0x3
BMP581_REG_OSR_CONFIG: 0x0
BMP581_REG_OSR_CONFIG to write: 0x40
BMP581_REG_OSR_CONFIG: 0x0
BMP581_REG_OSR_CONFIG to write: 0x16
BMP581_REG_OSR_CONFIG: 0x4
BMP581_ODR_CONFIG: 0x60
BMP581_ODR_CONFIG to write: 0x3C
BMP581_ODR_CONFIG: 0x38
BMP581_REG_OSR_EFF: 0x4
BMP581_ODR_CONFIG: 0x38
BMP581_ODR_CONFIG to write: 0x39
BMP581_ODR_CONFIG: 0x31
BMP581_REG_OSR_EFF: 0x4
BMP581_DSP_CONFIG: 0x3
BMP581_REG_STATUS: 0x1