Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

Bosch BMP390 Code Example (C/C++) ?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

Bosch BMP390 Code Example (C/C++) ?

by NiaBassey on Sat Oct 17, 2020 6:25 pm

I've used the BMP388 pressure sensor with success using the Adafruit_BMP3XX library. The Adafruit library relies on Bosch's
BMP3-Sensor-API Now I have a BMP390 / BMP390L that requires an update to the underlying Bosch library to either version 1.2.4 or ideally the more recent 2.0.1

The Bosch library is available at (however example implementation code is missing from readme.md):
https://github.com/BoschSensortec/BMP3-Sensor-API

I don't have the experience to get the Adafruit Library working with the updated Bosch library. I am compiling for a Feather M0+RFM95, with the BMP390L connected on I2C. I've tried working through compiler errors but I haven't had any luck. Does anyone have a working code example for the BMP390?

Bosch Page: https://www.bosch-sensortec.com/product ... s/bmp390l/
Datasheet: https://www.bosch-sensortec.com/media/b ... -ds001.pdf

NiaBassey
 
Posts: 2
Joined: Sat Oct 17, 2020 6:10 pm

Re: Bosch BMP390 Code Example (C/C++) ?

by mikeysklar on Mon Oct 19, 2020 7:26 pm

@NiaBassey,

What kind of compile errors are you seeing? I do see that the BMP390 is at least mentioned in the initial serial print of our example code:

https://github.com/adafruit/Adafruit_BM ... letest.ino

mikeysklar
 
Posts: 2069
Joined: Mon Aug 01, 2016 8:10 pm

Re: Bosch BMP390 Code Example (C/C++) ?

by NiaBassey on Tue Oct 20, 2020 2:14 pm

It looks like Adafruit_BMP3XX has a Merge the day after I posted that includes a commit comment "version 2.0 of the API" which will include BMP390 BMP390L support.

I'll try the updated library!

NiaBassey
 
Posts: 2
Joined: Sat Oct 17, 2020 6:10 pm

Please be positive and constructive with your questions and comments.