Shop OBEX P1 Docs P2 Docs Learn Events
temp sensor and a/d converter on bs2 project need help — Parallax Forums

temp sensor and a/d converter on bs2 project need help

betaboybetaboy Posts: 8
edited 2005-02-16 21:50 in BASIC Stamp
i need help on writing a program

im using a lm335 temp sensor,
and a ad0804 a/d converter,
and a bs2 microcontroller

i want it to detect the temp and display in debug terminal
can anyone help me?

Comments

  • MacGeek117MacGeek117 Posts: 747
    edited 2005-02-13 23:43
    Please post your ideas.
    bugg

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I think I know what I'm doing...
  • betaboybetaboy Posts: 8
    edited 2005-02-13 23:49
    i want it to detect the current temp using the sensor, then compare it to the reference temp (i don't know what that should be), if it is higher than the reference temp sound an alarm. since the sensor output is analog, im using an analog/digital converter adc0804 chip that outputs digitally to the bs2
    i cant figure out how to put that in pbasic.
    can u help me
  • MacGeek117MacGeek117 Posts: 747
    edited 2005-02-13 23:51
    look at the Help Guide on the Basic Stamp Editor.
    bugg

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I think I know what I'm doing...
    ...Maybe...
  • betaboybetaboy Posts: 8
    edited 2005-02-13 23:55
    would they have those exact parts being used?
    ·
  • MacGeek117MacGeek117 Posts: 747
    edited 2005-02-14 00:01
    They should have the basic(excuse the pun...)program that you will be using.
    bugg

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    I think I know what I'm doing...
    ...Maybe...
  • betaboybetaboy Posts: 8
    edited 2005-02-14 00:48
    im a newbie,



    can u please talk me through program for this?
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-02-14 02:07
    Betaboy,

    ·· If you simply want to read/display the current temp, and set an alarm when it exceeds a preset temp, you might consider using the DS1620.· It has that capability built-in, and there's free text on how to use it on the Parallax website under "Stampworks."· There are also alot of projects using a BASIC Stamp and DS1620 found on Google.



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --==<{Chris}>==--
  • betaboybetaboy Posts: 8
    edited 2005-02-16 03:58
    i dont have that option

    im stuck with these parts
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2005-02-16 21:50
    Okay, just a thought.· I don't have those particular parts, but I am going to assume·they're similiar to other comparable parts.· It shouldn't be too hard to find some example code for interfacing something like an LM34 to an ADC0831.· That could get you started.· Good luck!



    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --==<{Chris}>==--
Sign In or Register to comment.