Page 1 of 2

BMP280 pressure sensor

Posted: Mon May 30, 2022 5:18 pm
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

BMP280 pressure sensor

Posted: Mon May 30, 2022 5:23 pm
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

Re: BMP280 pressure sensor

Posted: Mon May 30, 2022 5:48 pm
by kersing
Please do not post two messages regarding the same issue.

Re: BMP280 pressure sensor

Posted: Mon May 30, 2022 7:18 pm
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.

Re: BMP280 pressure sensor

Posted: Tue May 31, 2022 5:23 am
by Jorg_Guldner
Hello!
Thanks for the advice.
But why do you not write the sensor name in the component list?


Regards
Jorg

BMP280 pressure sensor --> I2C2 missing

Posted: Mon Jun 20, 2022 9:28 am
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 2165 times
Regards
Jorg

Re: BMP280 pressure sensor

Posted: Mon Jun 20, 2022 11:44 am
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.

BMP280 pressure sensor

Posted: Mon Jun 20, 2022 6:45 pm
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 2147 times
Regards
Jorg

Re: BMP280 pressure sensor

Posted: Wed Jun 22, 2022 10:32 am
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.

Re: BMP280 pressure sensor

Posted: Wed Jun 22, 2022 5:14 pm
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