BMP280 when reading pressure, it's reading Temp and pressure
-
- Posts: 172
- http://meble-kuchenne.info.pl
- Joined: Thu Sep 23, 2021 3:44 pm
- Location: France
- Has thanked: 29 times
- Been thanked: 22 times
BMP280 when reading pressure, it's reading Temp and pressure
I checked with logic analyser and it show that BMP280 component is reading both Pressure and Temperature when request is to read pressure only. But only pressure data are store.
while for the temperature it is good, only the temperature is read.
Can be good to have a new macro able to read both temperature and pressure in same time Seb
-
- Matrix Staff
- Posts: 1457
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 513 times
- Been thanked: 473 times
Re: BMP280 when reading pressure, it's reading Temp and pressure
Hi Seb.
Thanks for the good spot.
I have updated the BMP280 to just read pressure and attached the component for you to try.
The comment should be placed in C:\ProgramData\MatrixTSL\FlowcodeV9\Components
If you are happy with the component, I will arrange for it to be pushed onto the update system.
Thanks for the good spot.
I have updated the BMP280 to just read pressure and attached the component for you to try.
The comment should be placed in C:\ProgramData\MatrixTSL\FlowcodeV9\Components
If you are happy with the component, I will arrange for it to be pushed onto the update system.
- Attachments
-
- Grove_Barometer_Sensor_BMP280.fcpx
- (7.83 KiB) Downloaded 92 times
Martin
-
- Valued Contributor
- Posts: 162
- Joined: Wed Dec 02, 2020 7:28 pm
- Has thanked: 66 times
- Been thanked: 58 times
Re: BMP280 when reading pressure, it's reading Temp and pressure
Is that a valid option? I seem to recall the temperature is required for compensation calculations but may-be I’m mixing up devices…
-
- Posts: 172
- Joined: Thu Sep 23, 2021 3:44 pm
- Location: France
- Has thanked: 29 times
- Been thanked: 22 times
Re: BMP280 when reading pressure, it's reading Temp and pressure
Need Pressure, altitude pressure and temperature of course.
As you can see on the picture I sent to you there is 5 Val form Val0 to Val5, why ?
As you can see on the picture I sent to you there is 5 Val form Val0 to Val5, why ?
Last edited by lucibel on Thu Feb 17, 2022 2:24 pm, edited 1 time in total.
Seb
-
- Posts: 172
- Joined: Thu Sep 23, 2021 3:44 pm
- Location: France
- Has thanked: 29 times
- Been thanked: 22 times
Re: BMP280 when reading pressure, it's reading Temp and pressure
I understand your meaning Now !
I'm checking !Is that a valid option? I seem to recall the temperature is required for compensation calculations but may-be I’m mixing up devices…
Seb
-
- Posts: 172
- Joined: Thu Sep 23, 2021 3:44 pm
- Location: France
- Has thanked: 29 times
- Been thanked: 22 times
Re: BMP280 when reading pressure, it's reading Temp and pressure
You are right kersing, to calculate pressure, need Temperature too.
So finally need both pressure and temperature to calculate pressure !
Sorry Medelec !
So finally need both pressure and temperature to calculate pressure !
Sorry Medelec !
Seb
-
- Matrix Staff
- Posts: 1457
- Joined: Wed Dec 02, 2020 11:07 pm
- Has thanked: 513 times
- Been thanked: 473 times
Re: BMP280 when reading pressure, it's reading Temp and pressure
Thanks Jac.
Thinking about it pressure is related to temperature, so it makes sense to keep it in.
That is odd.
I did not change it from how is was.
I'm looking into it.
Martin
-
- Posts: 172
- Joined: Thu Sep 23, 2021 3:44 pm
- Location: France
- Has thanked: 29 times
- Been thanked: 22 times
Re: BMP280 when reading pressure, it's reading Temp and pressure
This what you asked me to try end of January then you updated the library with version 9
Re: ESP32 TTGO+ BMP280 temp sensor BUIL FAILED
Post by medelec35 » Mon Jan 31, 2022 10:56 pm
Hi Seb,
Thank you for the spot.
Can you give the attached component a try, please?
In file explorer address bar, paste this:
CODE: SELECT ALL
C:\ProgramData\MatrixTSL\FlowcodeV9\Components
Save the attached file into the above hidden folder.
Just select ok to replace the current file.
If you got Flowcode running when the file was placed in the components directory, you must select the reload icon before compiling again.
If it works for you the component will be added to the updates.
ATTACHMENTS
Grove_Barometer_Sensor_BMP280.fcpx
(7.59 KiB) Downloaded 16 times
Martin
Seb