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
SHT21
-
- 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
SHT21
- Attachments
-
- SHT21 FC9.fcfx
- (13.18 KiB) Downloaded 514 times
-
- SHT21 FC10.fcfx
- (14.08 KiB) Downloaded 601 times
-
- Valued Contributor
- Posts: 1630
- Joined: Wed Dec 09, 2020 9:37 pm
- Has thanked: 142 times
- Been thanked: 761 times
Re: SHT21
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
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
-
- Posts: 813
- Joined: Thu Dec 03, 2020 8:25 pm
- Location: Denmark
- Has thanked: 696 times
- Been thanked: 183 times
Re: SHT21
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
@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
Thank you both. I'm glad you can also see that something is not working. And mnfisher for the test and troubleshooting

@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
-
- Matrix Staff
- Posts: 1952
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: SHT21
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1952
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: SHT21
Hi Jorgen,
In your program have you added a call to the SHT21 initialise function?
In your program have you added a call to the SHT21 initialise function?
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel