BME280 Pressure Sensor
Posted: Fri Nov 03, 2017 12:58 pm
I use Flowcode 7.2.1 professional version purchased few months ago and BME280 is included at the Sensors as Pressure Sensor, but the Wiki Help page shows nothing.
I decided to give it a try.
In order to avoid any future discussion about wirings, I used Arduino Uno and Arduino Mega 2560 together with an OLED SH1106 display and I have tested the BME280 using Arduino programming environment in C. I have used Adafruit BME280 library, but I have tried also other libraries as Sparkfun BME280 and other found on internet, GitHub.
The Arduino, BME280 and OLED SH1106 work fine without problems.
I focused only the temperature measurement to be easy when I jump into Flowcode.
With the Flowcode the BME280 component does not work as it should. It shows wrong numbers, in my case negative numbers in the range -3.2 to -4.5 for temperatures which normal are 22-25 degree Celsius. The numbers just mentioned are not exactly, just as example.
The OLED SH1106 works fin inside the Flowcode, but the BME280 does not.
I have checked the discussion here:
viewtopic.php?f=65&t=18574
I have also tried RS232 and the HERCULES Setup Utility (the serial port monitor) used by Alan_37 and the numbers shown on PC screen are the same as on OLED display.
I will provide here below the code used for further debugging/reference, if needed also photos and schematic/diagram, but the Flowcode BME280 must be improved/re-written.
Any hope for improvements?
Here are the codes used:
I decided to give it a try.
In order to avoid any future discussion about wirings, I used Arduino Uno and Arduino Mega 2560 together with an OLED SH1106 display and I have tested the BME280 using Arduino programming environment in C. I have used Adafruit BME280 library, but I have tried also other libraries as Sparkfun BME280 and other found on internet, GitHub.
The Arduino, BME280 and OLED SH1106 work fine without problems.
I focused only the temperature measurement to be easy when I jump into Flowcode.
With the Flowcode the BME280 component does not work as it should. It shows wrong numbers, in my case negative numbers in the range -3.2 to -4.5 for temperatures which normal are 22-25 degree Celsius. The numbers just mentioned are not exactly, just as example.
The OLED SH1106 works fin inside the Flowcode, but the BME280 does not.
I have checked the discussion here:
viewtopic.php?f=65&t=18574
I have also tried RS232 and the HERCULES Setup Utility (the serial port monitor) used by Alan_37 and the numbers shown on PC screen are the same as on OLED display.
I will provide here below the code used for further debugging/reference, if needed also photos and schematic/diagram, but the Flowcode BME280 must be improved/re-written.
Any hope for improvements?
Here are the codes used: