BMP180 Unable to read data

For general Flowcode discussion that does not belong in the other sections.
niedian
Posts: 105
http://meble-kuchenne.info.pl
Joined: Thu Jan 07, 2021 11:28 am
Has thanked: 3 times
Been thanked: 4 times

BMP180 Unable to read data

Post by niedian »

BMP180 Unable to read data.why?help me
BMP180 Unable to read data.fcfx
(10.97 KiB) Downloaded 578 times

BenR
Matrix Staff
Posts: 1926
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 503 times
Been thanked: 686 times

Re: BMP180 Unable to read data

Post by BenR »

Hello,

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

niedian
Posts: 105
Joined: Thu Jan 07, 2021 11:28 am
Has thanked: 3 times
Been thanked: 4 times

Re: BMP180 Unable to read data

Post by niedian »

In the FLOWCODE simulation,The LCD value is always displayed as zero。why?

niedian
Posts: 105
Joined: Thu Jan 07, 2021 11:28 am
Has thanked: 3 times
Been thanked: 4 times

Re: BMP180 Unable to read data

Post 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 4630 times

chipfryer27
Valued Contributor
Posts: 1528
Joined: Thu Dec 03, 2020 10:57 am
Has thanked: 353 times
Been thanked: 549 times

Re: BMP180 Unable to read data

Post 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

medelec35
Matrix Staff
Posts: 1923
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 623 times
Been thanked: 645 times

Re: BMP180 Unable to read data

Post 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.
Attachments
BMP180 Unable to read data v2.fcfx
(11 KiB) Downloaded 616 times
Martin

niedian
Posts: 105
Joined: Thu Jan 07, 2021 11:28 am
Has thanked: 3 times
Been thanked: 4 times

Re: BMP180 Unable to read data

Post by niedian »

Thank you very much!

medelec35
Matrix Staff
Posts: 1923
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 623 times
Been thanked: 645 times

Re: BMP180 Unable to read data

Post by medelec35 »

Hello,
Flowcode v9 updates have now been pushed.
Martin

niedian
Posts: 105
Joined: Thu Jan 07, 2021 11:28 am
Has thanked: 3 times
Been thanked: 4 times

Re: BMP180 Unable to read data

Post by niedian »

I updated it. Still no. Can you send an example? thank you

medelec35
Matrix Staff
Posts: 1923
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 623 times
Been thanked: 645 times

Re: BMP180 Unable to read data

Post 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?
Martin

Post Reply