LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

sensirion ek-h5 or Humidity Sensor SHT21 for labview

@ claudeuntel

 

thank you very much!

 

Works well with the Evaluation Kit EK-H5 and the SHT21 on LV2014 SP1

0 Kudos
Message 11 of 20
(2,683 Views)

Sorry for the fast hype....

The Vi does not work with the SHT21.

Communication works but the conversion from the measured RH% and T values is not correct.

I did put in the conversion math from the SHT21 datasheet but it doesnt work either.

 

Probably the USB-dongle does need to recieve some other commands to work with the SHT21 but until now I couldnt figure it out.

 

Does anybody have another solution?

0 Kudos
Message 12 of 20
(2,664 Views)

Can you put the vi you have NOW and perhaps some of us can see if we can fix it and share that with you...

I am not sure WHICH vi you are trying...

0 Kudos
Message 13 of 20
(2,646 Views)

Hey davekorpi,

 

thanks for the fast reply!

 

I was trying to modify the llb shared before in this thread in order to work with the SHT21.

I tried to put in the valueconversion for the SHT21 (red) rather than the one for the SHT75 (blue) but as said, I only get weird numbers.

It is in the IOWarrior_SHT75_GetTempHumid.vi of the attached llb.

 SHT21.JPG

Funny thing is: when I use the conversion for the SHT75 I get the same wrong numbers as when I use the Sensirion USB-Software and tell it that a SHT75 is attached (as in: 10 degC lower Temperature readings, some % off RH readings).

But when I use the "right" conversions as in the attachment I get weird numbers way off something meaningful.

 

0 Kudos
Message 14 of 20
(2,626 Views)

Your code looks fine!

 

I do not know why it does not work.

 

I had quite a difficult time getting any help from Sensirion.


Those guys at Code Warrior are helpful if you can get to them.

 

I will be looking into it more!

 

Just 10 Deg C off or really strange numbers!


Wonder if a bit is "shifted" one too many or something crazy like that!

 

0 Kudos
Message 15 of 20
(2,615 Views)

for sht21 you need to write 2^14

(T=-46.85 + 175.72* rawT/(2*2*2*2*2*2*2*2*2*2*2*2*2*2)

 

 

 

Message 16 of 20
(2,538 Views)