Shop OBEX P1 Docs P2 Docs Learn Events
Help with Coding — Parallax Forums

Help with Coding

abelnutzabelnutz Posts: 2
edited 2012-08-07 12:34 in BASIC Stamp
I'm currently trying to figure out how to get my Parallax Serial LCD (27976) to display and alert to certain temperatures gained from my SHT11 Sensor Module (28018). So far, I'm only currently able to get the actual room temperature to display. Im working with the BS2 as well. Any info would help a great deal. Thanks.

Alex

MAIN:
DO
GOSUB SHT_MEASURE_TEMP
DEBUG CRSRXY, 0, 3,
"SOT..........", DEC SOT, CR,
"TC...........", DEC (TC/10), ".", DEC1 TC, DEGSYM, " ", CR,
"TF...........", DEC (TF/10), ".", DEC1 TF, DEGSYM, " "

SEROUT 15, 32, ["TEMP", CR]
SEROUT 15, 32, [DEC (TF/10), ".", DEC1 TF, DEGSYM, " "]
PAUSE 2000
SEROUT 15, 32, [12]

GOSUB SHT_MEASURE_HUMIDITY
DEBUG CRSRXY, 0, 7,
"DORH......", DEC SORH, CR,
"RHLIN.....", DEC (RHLIN/10), ".", DEC1 RHLIN, "% ", CR,
"RHTRUE....", DEC (RHTRUE/10), ".", DEC1 RHTRUE, "% "
PAUSE 1000
LOOP
END

Comments

  • FranklinFranklin Posts: 4,747
    edited 2012-08-07 07:19
    Could you explain in more detail what you want your program to do? If you have it displaying the current temperature and humidity all you need to do is set the parameters you want to check for in code and test for those. As I said more details will help.
  • abelnutzabelnutz Posts: 2
    edited 2012-08-07 12:34
    Mr. Franklin,

    Thanks for responding. I guess to go a little more in depth, I want my BS2 to send a PULSOUT signal to my Parallax Cont Rotation Servo at certain temperatures. I still want my LCD to maintain Temp readings but also respond with a "beep" at certain temperatures as well. The PULSOUT signal and "beep" should merry up with each other.
Sign In or Register to comment.