12-01-2022 07:30 PM
I am integrating a BMP390 sensor (via SPI) in a drone project, in order to be able to determine the altitude of the device.
I have managed to properly initialise the sensor via SPI, but I can't get any temperature, nor pressure measurements. I have enabled both measurements and tried both Forced and Normal modes using the PWR_CTRL register, but the STATUS register never indicates any measurement as being ready.
I have also tried using the bmp3 API but I had no success. The sensor initializes properly, but all measurements return 0.
Please, is it possible to obatin a few tips regarding what might be going on, in order to make the sensor work?
Thank you very much.
12-01-2022 10:36 PM
I hope you are using our official API as below.
If yes, there is read sensor data example as below.
Have you tried that one?
If you can't read sensor data, it might be error return value in somewhere.
Could you please check it and let me know?
12-02-2022 11:15 AM - edited 12-02-2022 11:17 AM
Thank you for your suggestion. Although I ran the example code from the link you provided along with the specified API, the measurements are still never printed out. The drdy bit from the INT_STATUS register always seems to read 0.
Also, no API function returns an error.
12-02-2022 07:28 PM
Do you have logic analyzer or any data logger that you can share?
Then, I will compare it and let you know.
When you share your log, please let me know which example you used 🙂