Page 1 of 1

Problem with BME280 under FC8 [solved!]

Posted: Wed Sep 12, 2018 9:32 pm
by tiny
I use FC8 with an ECIO40P16.
I have a BME280 in my circuit, working well under FC7 24.4 degrees, 49.2% RF, 992.3 mBar).
With FC8, temperature and pressure do not work (-142 degrees, pressure 1195.98) and humidity shows incorrect values (38% instead of 49%).
Can someone please look at that?

Thank you
Christina

Re: Problem with BME280 under FC8

Posted: Fri Sep 14, 2018 10:17 am
by LeighM
Hi Christina,
Could you just check that the component connections have transferred into V8 OK?
You might need to check the CAL settings with the "Expose full component tree in property pane" enabled in the menu View->Component Debugger
Leigh

Re: Problem with BME280 under FC8

Posted: Fri Sep 14, 2018 3:32 pm
by tiny
Thanks for the answer.
I send a test file, which shows that the component is called from the program directory "C: \ ProgramData \ MatrixTSL \ FlowcodeV8 \ Components".
One question: why are there any component directories in the directories C: \ ProgramData and C: \ Program Files (x86) \ Flowcode v8?

My problem: it calls the correct component, the result is still wrong.
Test mit BME280.fcfx
(12.23 KiB) Downloaded 305 times
Macro MBE280.png
(51.7 KiB) Downloaded 2920 times
Christina

Re: Problem with BME280 under FC8

Posted: Fri Sep 14, 2018 5:17 pm
by tiny
Addendum: I have copied the component PressureSensor_BME280.fcpx from FC7 to FC8 (overwritten) and with this component the correct measured values are displayed!

Christina

Re: Problem with BME280 under FC8

Posted: Sun Sep 16, 2018 8:54 am
by jgu1
Hi Christina/MM!

Just test. The same for me. BME280 doesn´t work for me either. Earlier it work perfect, something is happen. Is it possible to take/copy the BME280 component from FC7 and then simple paste/overwrite the other in FC8 lib. or is it best that MM will have a look at it first and then fix it this way?

My test with FC8:

BME280 : Compared with ———- DHT22:

Temp = -142 * ————— Temp = 16.8*

Hum. =. 43.2 ————- 70 %

Pressure: 1574 ————— No pressure.


Br.

Jorgen

Re: Problem with BME280 under FC8

Posted: Sun Sep 16, 2018 4:49 pm
by mnf
I gave up with a BME280 project a while ago - same problem!

However, looking at it again there seems to be a problem with the Read3_Register and subsequent calculations.
bme280.fcfx
(15.39 KiB) Downloaded 315 times
Fudges with the value returned - if using a 24 bit value the value displayed differs from the value returned by Read3 (comment out the third shift in the C block). Here I go further and use a 32bit value for the returned data and finally get a 'sensible' value for temperature.. I don't think the calculation is (100%) correct - it gives a rather toasty 28C. However this is better than the 0C I was getting using the component calculation. (The value also changes if I warm the sensor :) ) Looking at the datasheet at https://cdn-shop.adafruit.com/datasheet ... 001-10.pdf I could probably get things working better?

The problem seems to be a 'promotion' to 32bits error in Read3_Register but I can't see where the error is.

Martin

Re: Problem with BME280 under FC8

Posted: Mon Sep 17, 2018 9:28 am
by LeighM
The problem seems to be a 'promotion' to 32bits error in Read3_Register but I can't see where the error is.
Martin
Yes, you are right, thanks for the spot, I'll get that fixed.
Leigh

Re: Problem with BME280 under FC8

Posted: Mon Sep 17, 2018 3:07 pm
by Benj
Hello,

The fixed v8 component should now be available via the check for updates.

Let us know how you get on.

Re: Problem with BME280 under FC8

Posted: Mon Sep 17, 2018 4:16 pm
by tiny
Thanks Ben for the effort, but it still does not work. The same incorrect readings are displayed as before.

Christina

Re: Problem with BME280 under FC8

Posted: Mon Sep 17, 2018 5:14 pm
by jgu1
Hi All!

I have just tested the update. By me it look ok. I have at the moment 3 different sensor working. Dth22, SHT21 and the BME280.

They all show different temperature diff- 2-3 degre, the humidity diff- between 5-10%. The BME280 Press 1038 seemed to be ok. the weather forecast
says good weather here in Denmark tomorrow and the folllowing day.


I think the BME280 component work ok. I am just seaching for a (cheap) pressision thermometer to control the different sensorer.
Or have you an idea how I can check which is the most correct. I can not put them is a glass of icewater, 0 degree.


Br Jorgen.

Re: Problem with BME280 under FC8

Posted: Mon Sep 17, 2018 5:37 pm
by tiny
Hello Ben,

I was a bit cheeky when I reported the mistake again. I forgot the settings in the component properties.

These values I have from a comparison BME280 and BMP280, entered in the test file, forgotten in my main program:

Humidity oversampling x2
Pressure oversampling x16
Temperature oversampling x 2
Fashion Normal
Standby Normal Mode (ms) 0.5
Filter Coefficient 16

With this setting the component works fine!

Thank you very much for the fast completion!

Christina