SHT-1x temperature output
creepykirk
Posts: 1
I am working to connect two basic stamps together, one with an SHT-1x and the other with a pushbutton and a 16x2 LCD.
The goal is to have a user press PB1, which "asks" the other BS what the temperature reading is, receive that value and display it on the LCD.
I am having trouble figuring out which VAR the temperature is actually stored in on the board with the SHT-1x. Also, after some digging around, I believe that I need to use the SEROUT command to send that value to the other BS using this code I found in another thread:
serout so\fc, Baud, 2, Main,["Report "]
for idx = 0 to 5
get idx,temp
serout so\fc, Baud, 2, Main, [temp]
next
I appreciate any help anyone can offer, and any suggestions are welcome, too!
Thanks!
The goal is to have a user press PB1, which "asks" the other BS what the temperature reading is, receive that value and display it on the LCD.
I am having trouble figuring out which VAR the temperature is actually stored in on the board with the SHT-1x. Also, after some digging around, I believe that I need to use the SEROUT command to send that value to the other BS using this code I found in another thread:
serout so\fc, Baud, 2, Main,["Report "]
for idx = 0 to 5
get idx,temp
serout so\fc, Baud, 2, Main, [temp]
next
I appreciate any help anyone can offer, and any suggestions are welcome, too!
Thanks!
Comments
Also, if you do a search for Sensirion on the forums, you will get some examples. You can also do a site restricted search by using the phrase "sht-11 site:forums.parallax.com" on Google.