Due to high demand expect some shipping delays at this time, orders may not ship for 3-4 business days. On MLK Day no orders will be shipped.
0

BMP390 support in adafruit_bmp3xx
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

BMP390 support in adafruit_bmp3xx

by ddingee on Thu Nov 26, 2020 4:14 am

Pulled the adafruit_bmp3xx.mpy from the CircuitPython Bundle Version 6.x library to use with a BMP390 breakout.
BMP390 scans correctly at I2C address 0x77.

Running bmp3xx_simpletest.py results in a runtime error:

"Failed to find BMP3XX! Chip ID 0x60"


Workaround:
Use adafruit_bmp3xx.py (in https://github.com/adafruit/Adafruit_Ci ... hon_BMP3XX)
Change line 57 from:

_CHIP_ID = const(0x50) <---- this was correct for the BMP388

to

_CHIP_ID = const(0x60)


Reading pressure and temperature now!

Needs a more robust fix so driver checks for either BMP388 or BMP390.

-- Don

ddingee
 
Posts: 2
Joined: Thu Nov 26, 2020 3:59 am

Re: BMP390 support in adafruit_bmp3xx

by JeremychPaul on Thu Nov 26, 2020 9:51 am

Hi Don
Thank you very much for posting this.
I have struggled all morning to get my BMP390 working, and finally found your post.
Big help as I have just applied your workaround and it works!

Thanks very much
Cheers
Jeremy

JeremychPaul
 
Posts: 1
Joined: Thu Nov 26, 2020 9:50 am

Re: BMP390 support in adafruit_bmp3xx

by ddingee on Thu Dec 10, 2020 11:23 pm

This problem was discovered in the 1.2.3 version of the driver.

Adafruit has fixed the issue in 1.3.0 version, Dec 3, 2020, with correct support for either BMP390 or BMP388.
Just verified with the new adafruit_bmp3xx.py at:

https://github.com/adafruit/Adafruit_Ci ... _bmp3xx.py


Thanks for the fix!

ddingee
 
Posts: 2
Joined: Thu Nov 26, 2020 3:59 am

Please be positive and constructive with your questions and comments.