Page 1 of 1

BME280

Posted: Mon Feb 09, 2026 9:12 am
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

Re: BME280

Posted: Mon Feb 09, 2026 11:13 am
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.

Re: BME280

Posted: Mon Feb 09, 2026 11:35 am
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

Re: BME280

Posted: Mon Feb 09, 2026 11:44 am
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.

Re: BME280

Posted: Mon Feb 09, 2026 3:25 pm
by BenR
In Proteus does the VDDIO & CS of the BME380 need a connection to the 3.3V supply rail?

Re: BME280

Posted: Mon Feb 09, 2026 5:13 pm
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.

Re: BME280

Posted: Mon Feb 09, 2026 6:05 pm
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.