it worked fine now. My mistake was to use SHT21 in hold master mode.
the built in I2CREAD and I2CWRITE on Picbasic works perfectly on SHT21 but in No-Hold Master Master mode only. It took me several days to make it work.
it worked fine now. My mistake was to use SHT21 in hold master mode.
the built in I2CREAD and I2CWRITE on Picbasic works perfectly on SHT21 but in No-Hold Master Master mode only. It took me several days to make it work.
Can you please share the code how to work with SHT21 ?
Maybe if we ask nicely? Please ....or at least point us in the right direction....
Hold Master mode or No Hold Master
mode. In the first case the SCL line is blocked (controlled
by sensor) during measurement process while in the latter
case the SCL line remains open for other communication
while the sensor is processing the measurement.
Could anyone share the code for reading the sht21 or the si7021 please ?
Thanks
Ambro
If you don't need the precision of the SHT21, then use any of the DHT11, DHT21, DHT22, AM2302 sensors and the library file here http://www.picbasic.co.uk/forum/showthread.php?t=19975
thanks ,
I do really need the si7021 .
Ambro
Bookmarks