BMP390 support in adafruit_bmp3xx

CircuitPython on hardware including Adafruit's boards, and CircuitPython libraries using Blinka on host computers.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
ddingee
 
Posts: 2
Joined: Thu Nov 26, 2020 3:59 am

BMP390 support in adafruit_bmp3xx

Post by ddingee »

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

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

Re: BMP390 support in adafruit_bmp3xx

Post by JeremychPaul »

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

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

Re: BMP390 support in adafruit_bmp3xx

Post by ddingee »

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!

Locked
Please be positive and constructive with your questions and comments.

Return to “Adafruit CircuitPython”