Dear I tried to communicate with SHT15 from sensirion through I2C bus. My board is netduino plus 2 including SDA & SCL pin. I tested i2c example code like below:
static I2CDevice Device; public static void Main() { byte[] readBuffer = new byte[3]; byte[] writeTrans = new byte[1] { 0x03 }; I2CDevice.Configuration Configuration = new I2CDevice.Configuration(0x03, 100); I2CDevice.I2CTransaction[] Transactions; Device = new I2CDevice(Configuration); while(true) { Thread.Sleep(1000); I2CDevice.I2CWriteTransaction WriteTransaction = I2CDevice.CreateWriteTransaction(writeTrans); I2CDevice.I2CReadTransaction ReadTransaction = I2CDevice.CreateReadTransaction(readBuffer); Transactions = new I2CDevice.I2CTransaction[] { WriteTransaction }; int value = Device.Execute(Transactions, 100); Debug.Print("ReadTransaction: " + value.ToString()); } }
I changed Micro Framework from 4.2 ~ 4.3. Pullup resistor is set as 4.7k.
I also changed the platform to Netduino Plus 1(v4.2.0.1).
For checking wiring and sensor, I tested in arduino platform(Arduino Mega), and its connected pins are SDA & SDA. It works and can find signal in OSC.
I think SHT1x sensor is little bit different from other i2c based sensor. It use a byte as sum of byte(3bits) & command(5bits).
Is there anyone who secceed in communication between NP2 and SHT1x.
Thanks in advance, from Jiwon.