Shop OBEX P1 Docs P2 Docs Learn Events
Analogue Thermometer — Parallax Forums

Analogue Thermometer

Stewart KilburnStewart Kilburn Posts: 3
edited 2009-04-11 23:42 in BASIC Stamp
I have a Basic Stamp BS2

I spent a bit of time with these when i was at highschool 4 years ago and have just got the thing of getting back into it, Making lights flash etc, I know WOW.
Any how i am trying to help my girlfreinds dad set up his greenhouse, What i want to know is how to program in Resistor type Thermometers, Basically a potentiometer i guess? I have brought some Digital ones that should be here tomorrow, but i want to learn this type as it would be good for soil probs.

So could anybody help me with what the code should read to get a resistance that i can read out of the Stamp using Basic and calibrate.

If im not making sense please let me know.


Cheers Stew

Comments

  • stephenwagnerstephenwagner Posts: 147
    edited 2009-04-08 11:58
    Stewart,

    Chapter 7 of the original BS1 manual has a great example of using a thermister. You can use MSXcel to determine the proper equation and constants.
    http://www.parallax.com/Portals/0/Downloads/appnt/stamps/bs1Appnotes.pdf

    I hope this helps.

    SJW
    ·
  • Stewart KilburnStewart Kilburn Posts: 3
    edited 2009-04-08 20:41
    SJW i am using a BS2 I tried that pot thing but you have to havea BS1?

    Cheers Stew
  • FranklinFranklin Posts: 4,747
    edited 2009-04-08 22:07
    BS2 uses RCTIME to do almost the same thing. Read the editor help file on this for more info.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • Mike2545Mike2545 Posts: 433
    edited 2009-04-08 22:17
    Here is a snippet of a program for a BS2 that uses a ADC 0831 with the LM34 You can ignore the first part with all of the debug statments

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Mike2545

    This message sent to you on 100% recycled electrons.
  • stephenwagnerstephenwagner Posts: 147
    edited 2009-04-09 12:01
    Forget about which processor to use. The point is the Parallax BS1 example clearly demonstrates how to straighten a non linear curve and keep the math under 16 bits.

    NASA put a man on the moon in 1969 with a four (4) bit number cruncher.


    SJW
  • Stewart KilburnStewart Kilburn Posts: 3
    edited 2009-04-11 23:42
    OK???

    Im guessing i need a A/D board to put a Analougue Sensor into the Stamp?

    My Digital ones will be here on Tuesday, so i will read the Digital thermometer thread.
Sign In or Register to comment.