BME280

For general Flowcode discussion that does not belong in the other sections.
Post Reply
B2CAP-V6
Posts: 17
http://meble-kuchenne.info.pl
Joined: Fri Dec 04, 2020 2:15 pm
Been thanked: 6 times

BME280

Post by B2CAP-V6 »

HI All,

Has anyone ever run the BME280 in hardware with a PIC microcontroller?
I ask because the simulation works perfectly in FC11, but it doesn't work in Proteus.
Thanks in advance for your answers.
Luc
Attachments
Thermo_Baro.fcfx
(25 KiB) Downloaded 6 times
Capture d’écran 2026-02-09 095920.jpg
Capture d’écran 2026-02-09 095920.jpg (149.2 KiB) Viewed 121 times

medelec35
Valued Contributor
Posts: 2251
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 692 times
Been thanked: 763 times

Re: BME280

Post by medelec35 »

Hello.
My Advice would be not to test with a third party simulation before posting on the forums.
It's always wise to test on embedded hardware first.

I have a 18F14K22 I can test BME280 on.
Last time I tested BME280 on ESP32 it worked as expected.
I will carry out some tests and let you know how i get on.
Martin

chipfryer27
Valued Contributor
Posts: 1903
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 415 times
Been thanked: 639 times

Re: BME280

Post by chipfryer27 »

Hi

Following on from above, have you asked Proteus as to why it does not simulate on their software? Surely they would be the best people to ask as they wrote the apparently non-functioning software?

Regards

Steve-Matrix
Matrix Staff
Posts: 1744
Joined: Sat Dec 05, 2020 10:32 am
Has thanked: 254 times
Been thanked: 409 times

Re: BME280

Post by Steve-Matrix »

In general, simulation within Flowcode (and with other software such as Proteus) is useful to get an idea if the project is working and to quickly experiment without needing to first create actual hardware. But it is not always 100% representative of how a project will work in real life and so there is no substitute to deploying and testing on a physical prototype.

BenR
Matrix Staff
Posts: 2122
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 563 times
Been thanked: 749 times

Re: BME280

Post by BenR »

In Proteus does the VDDIO & CS of the BME380 need a connection to the 3.3V supply rail?

medelec35
Valued Contributor
Posts: 2251
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 692 times
Been thanked: 763 times

Re: BME280

Post by medelec35 »

BME280 Working on embedded hardware as expected.

Code: Select all

Temp = 22.780000, Humid = 47.277343, Pressure = 987.909973
Temp = 22.780000, Humid = 47.289062, Pressure = 987.929992
Temp = 22.790000, Humid = 47.299804, Pressure = 987.900024
Temp = 22.770000, Humid = 47.280273, Pressure = 987.890014
Temp = 22.780000, Humid = 47.289062, Pressure = 987.929992
Temp = 22.790000, Humid = 47.298828, Pressure = 987.969970
Temp = 22.770000, Humid = 47.291992, Pressure = 987.909973
Temp = 22.770000, Humid = 47.301757, Pressure = 988.000000
Temp = 22.780000, Humid = 47.288085, Pressure = 987.969970
Temp = 22.770000, Humid = 47.300781, Pressure = 987.940002
Temp = 22.770000, Humid = 47.300781, Pressure = 987.929992
Temp = 22.780000, Humid = 47.301757, Pressure = 987.969970
Temp = 22.770000, Humid = 47.300781, Pressure = 987.929992
Temp = 22.770000, Humid = 47.302734, Pressure = 987.950012
Temp = 22.790000, Humid = 47.290039, Pressure = 987.960021
Temp = 22.780000, Humid = 47.299804, Pressure = 987.929992
The only issue I have spotted with the component which does not affect any of the readings.
It's just a cosmetic issue which I can fix since there are letters appearing between Temperature and Humidity when the component is placed on the 2D panel.

For other flowcode and Proteus uses, can you let us know if Bens suggestions works.
If not, then after reporting to labcenter support, can you please let us know what their solution is.
Martin

B2CAP-V6
Posts: 17
Joined: Fri Dec 04, 2020 2:15 pm
Been thanked: 6 times

Re: BME280

Post by B2CAP-V6 »

A big thank you to everyone.

Well, I connected (and you were right) VDDIO, SDO, and CSB to the 3.3V rail. It didn't change anything. I forgot to show in my previous post that I do have signals on SDA and SCL.
I haven't heard back from Labcenter. I'm going to try to build a hardware circuit (I'm still in a mess from moving, I have boxes everywhere). Thanks again, Medelec, for doing the test.

Post Reply