Page 1 of 2

BMP180 Unable to read data

Posted: Mon Nov 07, 2022 2:17 pm
by niedian
BMP180 Unable to read data.why?help me
BMP180 Unable to read data.fcfx
(10.97 KiB) Downloaded 597 times

Re: BMP180 Unable to read data

Posted: Mon Nov 07, 2022 2:34 pm
by BenR
Hello,

Do you have pull up resistors on your SCL / SDA pins?

Re: BMP180 Unable to read data

Posted: Tue Nov 08, 2022 12:49 am
by niedian
In the FLOWCODE simulation,The LCD value is always displayed as zero。why?

Re: BMP180 Unable to read data

Posted: Tue Nov 08, 2022 12:54 am
by niedian
In the FLOWCODE simulation,The LCD display value is always zero.why?
The LCD value is zero.jpg
The LCD value is zero.jpg (108.89 KiB) Viewed 4917 times

Re: BMP180 Unable to read data

Posted: Tue Nov 08, 2022 8:42 am
by chipfryer27
Hi

Might be a little bug.

If instead of reading Pressure, I change your Component Macro to read Temperature it simulates OK.

Note that in hardware, you are refreshing the display a bit quick so might see the results flicker or be dim. If so increase your delay.

Regards

Re: BMP180 Unable to read data

Posted: Tue Nov 08, 2022 8:58 am
by medelec35
Hello.
Many thanks for the bug spot.
This has now been fixed and the BMP180 component will be available on the update system as soon as possible.
I have made a couple of minor changes to your project, that will allow your project to work only when the new update is available.
I will let you know when the update is available.

Re: BMP180 Unable to read data

Posted: Wed Nov 09, 2022 3:11 am
by niedian
Thank you very much!

Re: BMP180 Unable to read data

Posted: Wed Nov 09, 2022 10:35 am
by medelec35
Hello,
Flowcode v9 updates have now been pushed.

Re: BMP180 Unable to read data

Posted: Thu Nov 10, 2022 1:13 am
by niedian
I updated it. Still no. Can you send an example? thank you

Re: BMP180 Unable to read data

Posted: Thu Nov 10, 2022 1:43 pm
by medelec35
The simulation side has been fixed, so that should be working for you.
Did you reload your project after the update?
The only reason now for the simulation to remain on zero is if Simulate Comms is set to Yes.
Do you have another issue e.g not working on hardware?