BMP280 pressure sensor

Any bugs you encounter with Flowcode should be discussed here.
Jorg_Guldner
Posts: 31
http://meble-kuchenne.info.pl
Joined: Wed Dec 23, 2020 9:55 am
Been thanked: 4 times

BMP280 pressure sensor

Post by Jorg_Guldner »

Hello!
I want to make a project with the sensor BMP280.
Under sensors I found only "Barometer BME280" and in the program directory in components was "Grove_Barometer_Sensor_BMP280".
What is here correct?

Is the BME usable for BMP?


Regards
Jorg

Jorg_Guldner
Posts: 31
Joined: Wed Dec 23, 2020 9:55 am
Been thanked: 4 times

BMP280 pressure sensor

Post by Jorg_Guldner »

Hello!
I want to make a project with the sensor BMP280.
Under sensors I found only "Barometer BME280" and in the program directory in components was "Grove_Barometer_Sensor_BMP280".
What is here correct?

Is the BME usable for BMP?


Regards
Jorg
Attachments
Flowcode 9_Components.gif
Flowcode 9_Components.gif (80.53 KiB) Viewed 2204 times

kersing
Valued Contributor
Posts: 149
Joined: Wed Dec 02, 2020 7:28 pm
Has thanked: 63 times
Been thanked: 56 times

Re: BMP280 pressure sensor

Post by kersing »

Please do not post two messages regarding the same issue.

medelec35
Matrix Staff
Posts: 1432
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 506 times
Been thanked: 469 times

Re: BMP280 pressure sensor

Post by medelec35 »

Hi Jorg.
No, you can't use a BMP280 with a BME280 component and vice versa.
The reason is the address of both are different.
The BMP280 is supported but under the guise of a different component name.
If you use the search icon within Flowcode and enter BMP280 then you should see Barometer (Grove 101020192).
That gove sensor contains a BMP280.
Martin

Jorg_Guldner
Posts: 31
Joined: Wed Dec 23, 2020 9:55 am
Been thanked: 4 times

Re: BMP280 pressure sensor

Post by Jorg_Guldner »

Hello!
Thanks for the advice.
But why do you not write the sensor name in the component list?


Regards
Jorg
Attachments
BMP280.gif
BMP280.gif (46.77 KiB) Viewed 2186 times

Jorg_Guldner
Posts: 31
Joined: Wed Dec 23, 2020 9:55 am
Been thanked: 4 times

BMP280 pressure sensor --> I2C2 missing

Post by Jorg_Guldner »

Hello!
Using PIC24EP128MC202. Placing I2C component shows 2 channels for I2C. Component "GroveBarometer BMP280" shows only channel1?
I need the second channel while channel1 is occupied. Is this a bug?
I2C missing_Flowcode V9.jpg
I2C missing_Flowcode V9.jpg (98.19 KiB) Viewed 2082 times
Regards
Jorg

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: BMP280 pressure sensor

Post by BenR »

Hello Jorg,

Many thanks for letting us know.

I beleive I've now solved the problem for you and the latest component should now be available via the library updates.

Jorg_Guldner
Posts: 31
Joined: Wed Dec 23, 2020 9:55 am
Been thanked: 4 times

BMP280 pressure sensor

Post by Jorg_Guldner »

Hello!
Thanks for quick answere. I uses software I2C for starting my first going with the sensor. Temperature and pressure I got back the value "0" ?
Reading altitude got`s a value about 12000 ? On the picture you can see the oscilloscoped screenshot of reading the temperature. Address is correct and the modul works correct in I2C. Why is the value "0" ?
BMP280_01.jpg
BMP280_01.jpg (99.15 KiB) Viewed 2064 times
Regards
Jorg

BenR
Matrix Staff
Posts: 1707
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 435 times
Been thanked: 598 times

Re: BMP280 pressure sensor

Post by BenR »

Hi Jorg,

Looking at the code the return 0x800000 means the data is not ready.

Maybe try calling the Forced_Read function before you call the ReadXxx macro and hopefully that will help.

Jorg_Guldner
Posts: 31
Joined: Wed Dec 23, 2020 9:55 am
Been thanked: 4 times

Re: BMP280 pressure sensor

Post by Jorg_Guldner »

Hello!
I tried your hint, but it is not working. By all the trials after more than a minute the software was reading the values, suddenly a value of 2212 is displayed. This could be 22,12 degrees. But I couldn`t reproduced this situation through starting the controller again..
Then I replace the sensor component with a I2C-component. First I write "the force-read" and then the read out of the temperature. No success! The result is the same --> 80h 00h 00h. After disabling the "force-read", the software reads out 5 differants temperature values (msb --> 252,128,112,110,109) and repeat them ever (not the right values for temperature). This modul seems to be very tricky. Between all I2C-actions I placed differant delays in differant times, although no success. A 2s delay let the I2C break down.
Have you any more idea?

Regards
Jorg

Post Reply