Problem with BME280 under FC8 [solved!]
Moderator: Benj
- tiny
- Posts: 200
- Joined: Wed Jul 08, 2009 8:29 am
- Has thanked: 51 times
- Been thanked: 93 times
- Contact:
Problem with BME280 under FC8 [solved!]
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
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
Last edited by tiny on Mon Sep 17, 2018 5:40 pm, edited 1 time in total.
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Problem with BME280 under FC8
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
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
- tiny
- Posts: 200
- Joined: Wed Jul 08, 2009 8:29 am
- Has thanked: 51 times
- Been thanked: 93 times
- Contact:
Re: Problem with BME280 under FC8
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.
Christina
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.
Christina
- tiny
- Posts: 200
- Joined: Wed Jul 08, 2009 8:29 am
- Has thanked: 51 times
- Been thanked: 93 times
- Contact:
Re: Problem with BME280 under FC8
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
Christina
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Problem with BME280 under FC8
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
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
-
- Valued Contributor
- Posts: 1189
- Joined: Wed May 31, 2017 11:57 am
- Has thanked: 70 times
- Been thanked: 439 times
- Contact:
Re: Problem with BME280 under FC8
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.
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
However, looking at it again there seems to be a problem with the Read3_Register and subsequent calculations.
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
- LeighM
- Matrix Staff
- Posts: 2178
- Joined: Tue Jan 17, 2012 10:07 am
- Has thanked: 481 times
- Been thanked: 699 times
- Contact:
Re: Problem with BME280 under FC8
Yes, you are right, thanks for the spot, I'll get that fixed.The problem seems to be a 'promotion' to 32bits error in Read3_Register but I can't see where the error is.
Martin
Leigh
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Re: Problem with BME280 under FC8
Hello,
The fixed v8 component should now be available via the check for updates.
Let us know how you get on.
The fixed v8 component should now be available via the check for updates.
Let us know how you get on.
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
- tiny
- Posts: 200
- Joined: Wed Jul 08, 2009 8:29 am
- Has thanked: 51 times
- Been thanked: 93 times
- Contact:
Re: Problem with BME280 under FC8
Thanks Ben for the effort, but it still does not work. The same incorrect readings are displayed as before.
Christina
Christina
-
- Posts: 1333
- Joined: Tue Oct 06, 2009 9:39 am
- Has thanked: 1135 times
- Been thanked: 299 times
- Contact:
Re: Problem with BME280 under FC8
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.
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.
- tiny
- Posts: 200
- Joined: Wed Jul 08, 2009 8:29 am
- Has thanked: 51 times
- Been thanked: 93 times
- Contact:
Re: Problem with BME280 under FC8
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
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