SHT21

For general Flowcode discussion that does not belong in the other sections.
jgu1
Posts: 813
http://meble-kuchenne.info.pl
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Flowcode v9 SHT21

Post by jgu1 »

Hi!

I have opened an SHT21 project created in FC9, now it is not working, made a test in FC 10 too also not working, pls, what am I doing wrong?

Br Jorgen
Attachments
SHT21 FC9.fcfx
(13.18 KiB) Downloaded 514 times
SHT21 FC10.fcfx
(14.08 KiB) Downloaded 601 times

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: SHT21

Post by medelec35 »

Hi Jorgen.
I have just ordered an SHT21, so I can see if I can get it to work.
Martin

mnfisher
Valued Contributor
Posts: 1630
Joined: Wed Dec 09, 2020 9:37 pm
Has thanked: 142 times
Been thanked: 761 times

Re: SHT21

Post by mnfisher »

Looks like it is an i2c issue - having a display and the sensor on i2c but both using the same channel.

The sensor uses Transaction_Write in Get_Data - but never initialises the i2c to use the correct address. The sensor doesn't seem top have an initialise routine (to init the i2c channel) at all?

Martin

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: SHT21

Post by jgu1 »

Hi Martin & Martin!

Thank you both. I'm glad you can also see that something is not working. And mnfisher for the test and troubleshooting :D

@medelec35:

I can send you a SHT21?

If you find an error in the communication and you correct it, it will hopefully not affect other components with the same communication, I see in the past there have been lot of update with the I2C com, and especially not the ILI9488, ILI9341 and st7796 display, I know they use SPI, but anyway, I still work in a project with these display ;)

Br Jorgen

BenR
Matrix Staff
Posts: 1952
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 698 times

Re: SHT21

Post by BenR »

Hello,

It looks like the initialise function for the SHT21 component was missing from the component export. I've now included it in v10 and so it should be there now if you get the latest library updates.

Hopefully this will solve the issue for you.

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: SHT21

Post by jgu1 »

Hi Ben!

I have just perform a test after update, sorry still not working, Temp -46 and Hum -6

Try to change from SW mode and back again and another device, no luck.

Jorgen

BenR
Matrix Staff
Posts: 1952
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 510 times
Been thanked: 698 times

Re: SHT21

Post by BenR »

Hi Jorgen,

In your program have you added a call to the SHT21 initialise function?

medelec35
Matrix Staff
Posts: 2086
Joined: Wed Dec 02, 2020 11:07 pm
Has thanked: 644 times
Been thanked: 702 times

Re: SHT21

Post by medelec35 »

I can confirm that after adding initialise, on hardware, the temperature and humidity functions are working as expected.
Martin

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: SHT21

Post by jgu1 »

Hi both, so sorry forgot the initialisering, when I come Home, I test and you hear. So many thank’s :D

Br Jorgen

jgu1
Posts: 813
Joined: Thu Dec 03, 2020 8:25 pm
Location: Denmark
Has thanked: 696 times
Been thanked: 183 times

Re: SHT21

Post by jgu1 »

Hi again!

Thank you, stupid me, of course I need to add the initialise, work perfeckt now :) will it also be added in FC9 too ;)

Br Jorgen

Post Reply