
Originally Posted by
psenek
Hi!
I know this is an old thread but this might still help someone.
NavMicroSystems' example works fine, if you place wx=wy<< bt+(bt & wx.bit15)
instead of wx=(wy< Next.
It has some issues with negative temperatures but ok...
It's important that you don't forget 10k pullup on DTA line.
There's one more thing: you should replace all HIGH dta
commands with INPUT dta.
Datahseet SHT1x @ page 5.
"To avoid signall contention the microcontroller must only
drive DATA low".
When you have appropriate (10k) pullup on dta the line
goes high if you set the dta pin to input. I tested it and
it works perfectly fine.
Also: if this is your first attempt to communicate with SHT1x maybe
you should consider omitting dewpoint calculations and just read
raw data.
For room ambient (i had about 22°C and 35 %RH when testing) you should
get readings like 0x1855 for 14bit temperature and 0x03EE for 12bit humidity).
Best regards,
Rok
Bookmarks