From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LIFA + I2C + SHT11 Humidity Sensor

I want to read humidity level with SHT11, but its must use i2c in arduino. I have been succesfull read humidity level with code in arduino ide (I use this code by Tasasaki http://thirdeye.dip.jp/arduino/Multiple_SHTs.pde ). Now i want to implemented in labview but i dont know how to use i2c in LIFA. can you tell me how to use i2c in LIFA. what is address and whats is bytes to read. 

And Can I read multiple SHT in 1 arduino with LIFA like in the code.

Thanks you.

 

I attach datasheet of SHT11

0 Kudos
Message 1 of 4
(3,283 Views)

Hi msugi,

There are several examples of using I2C in the Documents section of the LIFA Community.

http://forums.ni.com/t5/LabVIEW-Interface-for-Arduino/ct-p/7008

But I must inform you that LIFA is no longer supported and LINX has replaced it. That being said I2C master is supported in LIFA and LINX but I2C Slave is not.

In the Peripherals > I2C section of MarkerHub you may find some documentation about the I2C with LINX:

https://www.labviewmakerhub.com/doku.php?id=learn:libraries:linx:reference:labview:start

If you want to know more about the inputs about each VI, the best option is Context Help in LV (Ctrl + H).

Regards,

 

Kudos are welcome 😉 marked solutions are awesome!
0 Kudos
Message 2 of 4
(3,237 Views)

Thank you Hector for the information. I'll try to understanding it.

0 Kudos
Message 3 of 4
(3,232 Views)

Hello msugi,

How did you do your program knowing that the start frames of your sensor are different from the standardized I2C protocol ?

0 Kudos
Message 4 of 4
(3,119 Views)