Shop OBEX P1 Docs P2 Docs Learn Events
Resistive type temperature sensor question. Non basic stamp ? — Parallax Forums

Resistive type temperature sensor question. Non basic stamp ?

Jimbo30Jimbo30 Posts: 129
edited 2011-07-02 07:57 in General Discussion
With any resistive type sensor and especially a temp sensor what is the best way to convert that resistance to temperature and display it on an LCD screen or 7 segment display? If someone could kindly explain this to me that would be greatly appreciated and thank you.

Comments

  • Mike GreenMike Green Posts: 23,101
    edited 2011-06-25 22:56
    It depends on what you're using. If it's a Stamp, you can use the RCTIME statement to measure resistance. Look at the chapter in the Basic Stamp Syntax and Reference Manual for examples. The Stamp can compute the temperature from the resistance and display it on a serial or parallel LCD panel or, with an external decoder/driver, on a 7-segment display. There are examples of pieces of this in the Nuts and Volts Columns and in the StampWorks Manual, all downloadable from Parallax. If you're using some other kind of temperature sensor, there are examples for the Stamps and the Propeller.

    If you're using a Propeller, there's an application note (AN001) that shows how to use two I/O pins to make an ADC (analog to digital converter). You can also use the same technique as used with the Stamp's RCTIME statement. There's an equivalent in the BS2_Functions object in the Object Exchange. The Propeller can easily drive the same sorts of displays or use a TV or VGA monitor.

    If you want to use some other kind of microcontroller, the same techniques can be used, but we can't help you other than to offer the Stamp and Propeller examples as models.
  • Jimbo30Jimbo30 Posts: 129
    edited 2011-06-25 23:04
    Thanks Mike, but I was wondering how to use the sensor in a non basic stamp application I.E. an LCD driver chip or something to that nature.
  • Mike GreenMike Green Posts: 23,101
    edited 2011-06-25 23:16
    I'm not aware of any temperature display chips readily available. There used to be such things years ago, but cheap small microcontrollers have really replaced these functions. The closest you might find would be some kind of voltmeter chip. The LM34 is a temperature sensor whose output voltage is proportional to the temperature linearly and you could set up the analog front end for the voltmeter chip so the display shows the temperature.
  • kwinnkwinn Posts: 8,697
    edited 2011-06-26 11:53
    Jimbo30 wrote: »
    Thanks Mike, but I was wondering how to use the sensor in a non basic stamp application I.E. an LCD driver chip or something to that nature.

    The resistive type temperature sensors have a non-linear response to temperature so a straight conversion using a voltmeter chip or adc would give a very inaccurate reading at all but one or two temperatures. At one time analog circuitry was used to produce a linear response but it is much simpler and cost effective to have a microcontroller do that. If you absolutely must do it without a microcontroller I would suggest using an adc with its output going to an eeprom with a look up table to do the conversion. Been there, done that, and it is not as simple as using a microcontroller either, but better than the analog route.
  • ercoerco Posts: 20,259
    edited 2011-06-26 12:13
  • Jimbo30Jimbo30 Posts: 129
    edited 2011-07-01 23:24
    Mike Green wrote: »
    I'm not aware of any temperature display chips readily available. There used to be such things years ago, but cheap small microcontrollers have really replaced these functions. The closest you might find would be some kind of voltmeter chip. The LM34 is a temperature sensor whose output voltage is proportional to the temperature linearly and you could set up the analog front end for the voltmeter chip so the display shows the temperature.

    Mike this is a great idea, thanks. I will take a look at this route.
  • Jimbo30Jimbo30 Posts: 129
    edited 2011-07-01 23:43
    erco wrote: »


    What fun would that be?
  • davejamesdavejames Posts: 4,047
    edited 2011-07-02 07:57
    Jimbo30 wrote: »
    What fun would that be?

    ...depends on how quickly you wish to be done!
Sign In or Register to comment.