Trying to use the SHT11 module
Ducky
Posts: 6
Anyone
I don’t ask for help often. But this one has me stumped. I am trying to use the SHT11 module. No luck, just getting garbage.
·
Using the program files:
'·· File...... SHT1x.BS2
'·· Purpose... Interface to Sensirion SHT1x temperature/humidity sensor
'·· Author.... Jon Williams
'·· E-mail.... jwilliams@parallaxinc.com
'·· Started...
'·· Updated... 28 SEP 2002
'
'·· {$STAMP BS2}
'· ·{$PBASIC 2.5}
·
And
·
'{$STAMP BS2}
' {$PBASIC 2.5}
' SHT15.bs2 version C
' (c) 2002, 2004 Tracy Allen, http://www.emesystems.com
' access the Sensirion model sht11 or sht15
·
This is what DEBUG reads for each program:
·
SHT1x Demo (Jon)
soT...... 65535
tC....... 615.3º
tF....... 1139.5º
·
soRH..... 65535
rhLin.... 2623.1%
rhTrue... 471.8%.
·
And (Tracy)
·
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
·
·
A while back I smoked a Stamp so I figured maybe I did it again and smoked this module. Well I went to Parallax and got another one. It does the same, Even tried the resister on the clock lead, nothing different. Confirmed I have power to the module also with a volt meter.··
·
I plugged in my Parallax Logic Analyzer (just love that thing). It looks like the device is not talking. It also confirms there is power. I can send anyone·the SHL11.sla file if that would help, it is 4 MB. ·
·
Just to make sure the Stamp pins were OK, I loaded up a DS1620 file and the Stamp/pins (P0,P1,P2) work just fine. Temperature matches my thermometer.
·
No hints from the Parallax Forum either.
·
Any ideas ?? Am I that unique ??··This is my first post to the forum, hope I did it correctly.
·
Sacramento
I don’t ask for help often. But this one has me stumped. I am trying to use the SHT11 module. No luck, just getting garbage.
·
Using the program files:
'·· File...... SHT1x.BS2
'·· Purpose... Interface to Sensirion SHT1x temperature/humidity sensor
'·· Author.... Jon Williams
'·· E-mail.... jwilliams@parallaxinc.com
'·· Started...
'·· Updated... 28 SEP 2002
'
'·· {$STAMP BS2}
'· ·{$PBASIC 2.5}
·
And
·
'{$STAMP BS2}
' {$PBASIC 2.5}
' SHT15.bs2 version C
' (c) 2002, 2004 Tracy Allen, http://www.emesystems.com
' access the Sensirion model sht11 or sht15
·
This is what DEBUG reads for each program:
·
SHT1x Demo (Jon)
soT...... 65535
tC....... 615.3º
tF....... 1139.5º
·
soRH..... 65535
rhLin.... 2623.1%
rhTrue... 471.8%.
·
And (Tracy)
·
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
······· -40.0·· 8191··· %RH=139.8······ %RHtc=96.5
·
·
A while back I smoked a Stamp so I figured maybe I did it again and smoked this module. Well I went to Parallax and got another one. It does the same, Even tried the resister on the clock lead, nothing different. Confirmed I have power to the module also with a volt meter.··
·
I plugged in my Parallax Logic Analyzer (just love that thing). It looks like the device is not talking. It also confirms there is power. I can send anyone·the SHL11.sla file if that would help, it is 4 MB. ·
·
Just to make sure the Stamp pins were OK, I loaded up a DS1620 file and the Stamp/pins (P0,P1,P2) work just fine. Temperature matches my thermometer.
·
No hints from the Parallax Forum either.
·
Any ideas ?? Am I that unique ??··This is my first post to the forum, hope I did it correctly.
·
Sacramento
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester yet?
http://hometown.aol.com/newzed/index.html
·
Thanks for the quick response and link to your web page. Interesting stuff!!
I suspect my Stamp is OK. Right now I have the Parallax Logic Analyzer piggy-backed on to my Stamp. The Stamp is running a DS1620 temp sensor program and it seems to be working just fine. I can heat and cool the DS1620 sensor and the readings track. The activity on the pins looks normal on the analyzer display.
This has got to be something simple !! One of those days.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester yet?
http://hometown.aol.com/newzed/index.html
·
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
Oh yes I tried the resister to ground on pin 3 and capacitor between the Vdd/Vss. Tried both places, at the board and at the module. Wires to the module are twisted pair approx 6" long. They are soldered to a socket.
One thing that might be getting me is that the devlopment board I am using is the industrial one, the one with the ULN2803 on each port. I connected to the Stamp side, just before the 2803. Could it be that the 2803 is interfereing with the signals. Attached is a trace from my USB scope. Red is pin 1 (data rail), Blue is pin 3 (clock). I suspect that the data rail in nor suppoesed to be swinging 2 volts plus and minus.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Tracy Allen
www.emesystems.com
I will go one step further and put a Radio Shack board together, then move my Stamp over to it. That should clear up the issue once and for all.
BTW, assuming that solves the problem, what is your experience as to how far you can extend the SHT11 from a circuit board? I am hoping I can get about 5' to 6'. Is shielded cable recommended or can I get by with twisted pair such as in CAT6? Is the pull down resister best placed nearest the module or nearest the Stamp pin?
I know lots of questions. But I sure would appreciate it.
Thanks, Ducky
As for the pulldown, it really isn't too important where you put it, just so long as it is within 2 or 3 inches of the SHT
.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Sid Weaver
Do you have a Stamp Tester yet?
http://hometown.aol.com/newzed/index.html
·
Well you were right. I moved the Stamp from the developement board to a breadboad and everything started working just fine, 77.9 deg and 41% RH. Obviously the 2801 was dragging me down. Guess it is tme to get a simple board.
Thanks for the help.
Ducky