• Re: Converting a NTC voltage into temperature in Celcius

    From chrisq@21:1/5 to Jean-Pierre Coulon on Tue Apr 8 11:07:11 2025
    On 4/8/25 10:54, Jean-Pierre Coulon wrote:
    The resistance vs temperature relation is well known. But we are using
    one with an industrial controller that sends 100 uA into it and provides
    the corresponding voltage.

    Are there any cheap converters on the market, to convert this voltage
    into a nice linear voltage vs temperature relation ? Then there there
    are many voltage-to-display converters.

    Bye,


    Use a lookup table in software, major points, then interpolate between
    them, to required accuracy.

    Chris

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Pierre Coulon@21:1/5 to All on Tue Apr 8 11:54:03 2025
    The resistance vs temperature relation is well known. But we are using one
    with an industrial controller that sends 100 uA into it and provides the corresponding voltage.

    Are there any cheap converters on the market, to convert this voltage into a nice linear voltage vs temperature relation ? Then there there are many voltage-to-display converters.

    Bye,

    --
    Jean-Pierre Coulon

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jean-Pierre Coulon@21:1/5 to chrisq on Tue Apr 8 12:54:57 2025
    On Tue, 8 Apr 2025, chrisq wrote:

    Use a lookup table in software, major points, then interpolate between
    them, to required accuracy.

    I have thought of this but I thought it was on the market !

    --
    Jean-Pierre Coulon

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Sloman@21:1/5 to Jean-Pierre Coulon on Tue Apr 8 21:16:14 2025
    On 8/04/2025 7:54 pm, Jean-Pierre Coulon wrote:
    The resistance vs temperature relation is well known. But we are using
    one with an industrial controller that sends 100 uA into it and provides
    the corresponding voltage.

    Are there any cheap converters on the market, to convert this voltage
    into a nice linear voltage vs temperature relation ? Then there there
    are many voltage-to-display converters.

    I don't know of any. The Steinhart-Hart relationship has been around
    since 1968

    https://en.wikipedia.org/wiki/Steinhart%E2%80%93Hart_equation

    but if you need more accuracy you need more parameters.

    Getting the parameters in the first place needs work, so the "cheap
    converter" wouldn't be cheap to use.

    The look-up table approach with linear interpolation between a limited
    number of points is easier, and thermistor suppliers do published tables
    of resistance versus temperature, but the user would have to get the
    tables into the "cheap converter" which takes skilled labour, which
    isn't cheap.

    --
    Bill Sloman, Sydney

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Phil Hobbs@21:1/5 to Jean-Pierre Coulon on Tue Apr 8 11:09:16 2025
    On 2025-04-08 05:54, Jean-Pierre Coulon wrote:
    The resistance vs temperature relation is well known. But we are using
    one with an industrial controller that sends 100 uA into it and provides
    the corresponding voltage.

    Are there any cheap converters on the market, to convert this voltage
    into a nice linear voltage vs temperature relation ? Then there there
    are many voltage-to-display converters.

    Bye,


    The usual method of approximate linearization is to put a carefully
    chosen resistor in parallel, which may or may not be good enough
    depending on what you're doing. (See e.g. <https://circuitcellar.com/resources/quickbits/ntc-thermistor-linearization-2/>.)

    It doesn't help resolution on the high temperature end, but it does
    prevent the ADC from railing at the low temperature end.

    A positive resistance works with an NTC, because its resistanance vs temperature curve is concave upward. A metal RTD's characteristic is
    concave downward, so you need a negative resistance for the job.
    Because its nonlinearity is smooth and gentle, you can do an amazingly
    good job that way--theoretically under 1K error from -100 to +150C iirc,
    and much closer over narrower ranges. (I designed a couple of those in
    my misspent youth.)

    You wouldn't bother nowadays, since it's going into an ADC anyway, and
    code is much cheaper than op amps.

    Cheers

    Phil Hobbs

    --
    Dr Philip C D Hobbs
    Principal Consultant
    ElectroOptical Innovations LLC / Hobbs ElectroOptics
    Optics, Electro-optics, Photonics, Analog Electronics
    Briarcliff Manor NY 10510

    http://electrooptical.net
    http://hobbs-eo.com

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From brian@21:1/5 to Phil Hobbs on Thu Apr 10 05:32:38 2025
    In message <879d5bd8-a857-e5f8-e9a5-f3c004fbb937@electrooptical.net>,
    Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> writes
    On 2025-04-08 05:54, Jean-Pierre Coulon wrote:
    The resistance vs temperature relation is well known. But we are
    using one with an industrial controller that sends 100 uA into it and >>provides the corresponding voltage.
    Are there any cheap converters on the market, to convert this
    voltage into a nice linear voltage vs temperature relation ? Then
    there there are many voltage-to-display converters.
    Bye,


    The usual method of approximate linearization is to put a carefully
    chosen resistor in parallel, which may or may not be good enough
    depending on what you're doing. (See e.g. ><https://circuitcellar.com/resources/quickbits/ntc-thermistor-linearizat >ion-2/>.)

    It doesn't help resolution on the high temperature end, but it does
    prevent the ADC from railing at the low temperature end.

    A positive resistance works with an NTC, because its resistanance vs >temperature curve is concave upward. A metal RTD's characteristic is
    concave downward, so you need a negative resistance for the job.
    Because its nonlinearity is smooth and gentle, you can do an amazingly
    good job that way--theoretically under 1K error from -100 to +150C
    iirc, and much closer over narrower ranges. (I designed a couple of
    those in my misspent youth.)

    You wouldn't bother nowadays, since it's going into an ADC anyway, and
    code is much cheaper than op amps.

    Cheers

    Phil Hobbs


    I tried to do that in the 1970s to control the gain of an APD with
    temperature. I ended up using a diode as a temperature sensor as I
    couldn't get it linear enough.

    Later on I wanted a non-linear control for another application.We tried
    OP amps with piece-wise shaping circuits. We concluded however the best
    way to do it was a PIC with a built in ADC and DAC and a lookup table
    as you suggest. That might be the cheapest way for the OP

    I've also used AD590s which are pretty good.

    Brian
    --
    Brian Howie

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Phil Hobbs@21:1/5 to brian on Thu Apr 10 13:38:28 2025
    brian <nospam@b-howie.co.uk> wrote:
    In message <879d5bd8-a857-e5f8-e9a5-f3c004fbb937@electrooptical.net>,
    Phil Hobbs <pcdhSpamMeSenseless@electrooptical.net> writes
    On 2025-04-08 05:54, Jean-Pierre Coulon wrote:
    The resistance vs temperature relation is well known. But we are
    using one with an industrial controller that sends 100 uA into it and
    provides the corresponding voltage.
    Are there any cheap converters on the market, to convert this
    voltage into a nice linear voltage vs temperature relation ? Then
    there there are many voltage-to-display converters.
    Bye,


    The usual method of approximate linearization is to put a carefully
    chosen resistor in parallel, which may or may not be good enough
    depending on what you're doing. (See e.g.
    <https://circuitcellar.com/resources/quickbits/ntc-thermistor-linearizat
    ion-2/>.)

    It doesn't help resolution on the high temperature end, but it does
    prevent the ADC from railing at the low temperature end.

    A positive resistance works with an NTC, because its resistanance vs
    temperature curve is concave upward. A metal RTD's characteristic is
    concave downward, so you need a negative resistance for the job.
    Because its nonlinearity is smooth and gentle, you can do an amazingly
    good job that way--theoretically under 1K error from -100 to +150C
    iirc, and much closer over narrower ranges. (I designed a couple of
    those in my misspent youth.)

    You wouldn't bother nowadays, since it's going into an ADC anyway, and
    code is much cheaper than op amps.

    Cheers

    Phil Hobbs


    I tried to do that in the 1970s to control the gain of an APD with temperature. I ended up using a diode as a temperature sensor as I
    couldn't get it linear enough.

    Later on I wanted a non-linear control for another application.We tried
    OP amps with piece-wise shaping circuits. We concluded however the best
    way to do it was a PIC with a built in ADC and DAC and a lookup table
    as you suggest. That might be the cheapest way for the OP

    I've also used AD590s which are pretty good.

    Brian

    Linear-mode APDs are much tougher, I agree. For one thing, the
    nonlinearity is much stronger.

    For another, the high bias voltage leads to a lot of dissipation which
    makes the die temperature fail to track the board temperature. And of
    course currents are less convenient to compensate than resistances.

    Cheers

    Phil Hobbs

    --
    Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC / Hobbs ElectroOptics Optics, Electro-optics, Photonics, Analog Electronics

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Don@21:1/5 to brian on Thu Apr 10 16:49:06 2025
    brian wrote:

    <snip>

    I ended up using a diode as a temperature sensor as I
    couldn't get it linear enough.

    Interesting. Thank you for sharing. When operated in Zener mode (as
    opposed to avalanche mode) a Zener diode's NTC apparently remains
    approximatly the same, regardless of orientation (forward or reverse
    biased).

    Danke,

    --
    Don, KB7RPU, https://www.qsl.net/kb7rpu
    There was a young lady named Bright Whose speed was far faster than light;
    She set out one day In a relative way And returned on the previous night.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Sloman@21:1/5 to Don on Fri Apr 11 16:13:07 2025
    On 11/04/2025 2:49 am, Don wrote:
    brian wrote:

    <snip>

    I ended up using a diode as a temperature sensor as I
    couldn't get it linear enough.

    Interesting. Thank you for sharing. When operated in Zener mode (as
    opposed to avalanche mode) a Zener diode's NTC apparently remains approximately the same, regardless of orientation (forward or reverse biased).

    Whether a reverse biased diode breaks down in Zener mode or avalanche
    mode depends entirely on the diode you have selected.

    if it breaks down at less than 5V reverse voltage it is breaking down by
    the Zener mechanism (with a negative temperature coefficient) , and if
    it the breaks down at an 8V or a higher reverse voltage the avalanche
    mechanism is dominant (with a positive temperature coefficient.

    https://toshiba.semicon-storage.com/us/semiconductor/knowledge/faq/diode/are-there-any-special-considerations-for-the-temperature-coeffic.html

    doesn't exactly conform to your claim.

    --
    Bill Sloman, Sydney

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Gerhard Hoffmann@21:1/5 to All on Fri Apr 11 11:47:46 2025
    Am 11.04.25 um 08:13 schrieb Bill Sloman:

    Whether a reverse biased diode breaks down in Zener mode or avalanche
    mode depends entirely on the diode you have selected.

    if it breaks down at less than 5V reverse voltage it is breaking down by
    the Zener mechanism (with a negative temperature coefficient) , and if
    it the breaks down at an 8V or a higher reverse voltage the avalanche mechanism is dominant (with a positive temperature coefficient.

    Noisewise, the mode is easy to be seen. The avalanche effect is MUCH
    worse. Already small avalanche contributions spoil the pot.

    in

    < https://www.flickr.com/photos/137684711@N07/24411798996/in/album-72157662535945536/
    >,

    I have measured the NXP BZX84 family. The 2V7 or 5V6 in the type number
    mean exactly that. At 4V7 the low noise property is already gone.

    The pics to the left & right show some LEDs and regulators.

    BTW: the leftmost pic of the peaceful Blau river valley is where the
    Gauss family runs a hotel. Yes, "our" Mr. Gauss. They have an oil
    painting of him in the dining room.

    ??? of him / of his: which one is correct?????

    BTW2: For the sake of scientific honesty, Prof. Zener sued the semi
    industry that they should not use his name for avalanche diodes.
    They settled to call them Z-diodes and to pretend it was for the
    form of the U/I curve.

    cheers, Gerhard

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Sloman@21:1/5 to Gerhard Hoffmann on Fri Apr 11 22:37:20 2025
    On 11/04/2025 7:47 pm, Gerhard Hoffmann wrote:
    Am 11.04.25 um 08:13 schrieb Bill Sloman:

    Whether a reverse biased diode breaks down in Zener mode or avalanche
    mode depends entirely on the diode you have selected.

    if it breaks down at less than 5V reverse voltage it is breaking down
    by the Zener mechanism (with a negative temperature coefficient) , and
    if it the breaks down at an 8V or a higher reverse voltage the
    avalanche mechanism is dominant (with a positive temperature coefficient.

    Noisewise, the mode is easy to be seen. The avalanche effect is MUCH
    worse. Already small avalanche contributions spoil the pot.

    in

    < https://www.flickr.com/photos/137684711@N07/24411798996/in/album-72157662535945536/    >,

    I have measured the NXP BZX84 family. The 2V7 or 5V6 in the type number
    mean exactly that. At 4V7 the low noise property is already gone.

    The pics to the left & right show some LEDs and regulators.

    BTW: the leftmost pic of the peaceful Blau river valley is where the
    Gauss family runs a hotel. Yes, "our" Mr. Gauss. They have an oil
    painting of him in the dining room.

    ??? of him / of his: which one is correct?????

    If it's a painting of Carl Friedrich Gauss, "of" is correct. If it were
    a painting by Carl Friedrich Gauss, it would be one of his paintings.

    https://en.wikipedia.org/wiki/Carl_Friedrich_Gauss

    doesn't suggest that he ever went in for painting.

    BTW2: For the sake of scientific honesty, Prof. Zener sued the semi
    industry that they should not use his name for avalanche diodes.
    They settled for calling them Z-diodes and pretended it referred to the
    form of the U/I curve.

    Professor Zener was being optimistic. Language is defined by the words
    people use, and if the majority makes a habit of using words incorrectly
    that usage becomes part of the language.

    --
    Bill Sloman, Sydney

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Don@21:1/5 to Bill Sloman on Fri Apr 11 14:22:45 2025
    Bill Sloman wrote:
    Don wrote:
    brian wrote:

    <snip>

    I ended up using a diode as a temperature sensor as I
    couldn't get it linear enough.

    Interesting. Thank you for sharing. When operated in Zener mode (as
    opposed to avalanche mode) a Zener diode's NTC apparently remains
    approximately the same, regardless of orientation (forward or reverse
    biased).

    Whether a reverse biased diode breaks down in Zener mode or avalanche
    mode depends entirely on the diode you have selected.

    if it breaks down at less than 5V reverse voltage it is breaking down by
    the Zener mechanism (with a negative temperature coefficient) , and if
    it the breaks down at an 8V or a higher reverse voltage the avalanche mechanism is dominant (with a positive temperature coefficient.

    https://toshiba.semicon-storage.com/us/semiconductor/knowledge/faq/diode/are-there-any-special-considerations-for-the-temperature-coeffic.html

    doesn't exactly conform to your claim.

    My statement

    When operated in Zener mode (as opposed to avalanche mode)

    pertains Zener diodes in Zener mode. Why do you want to talk about the
    positive temperature coefficient of Zeners in avalanche mode?

    Danke,

    --
    Don, KB7RPU, https://www.qsl.net/kb7rpu
    There was a young lady named Bright Whose speed was far faster than light;
    She set out one day In a relative way And returned on the previous night.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Bill Sloman@21:1/5 to Don on Sat Apr 12 00:57:03 2025
    On 12/04/2025 12:22 am, Don wrote:
    Bill Sloman wrote:
    Don wrote:
    brian wrote:

    <snip>

    I ended up using a diode as a temperature sensor as I
    couldn't get it linear enough.

    Interesting. Thank you for sharing. When operated in Zener mode (as
    opposed to avalanche mode) a Zener diode's NTC apparently remains
    approximately the same, regardless of orientation (forward or reverse
    biased).

    Whether a reverse biased diode breaks down in Zener mode or avalanche
    mode depends entirely on the diode you have selected.

    if it breaks down at less than 5V reverse voltage it is breaking down by
    the Zener mechanism (with a negative temperature coefficient) , and if
    it the breaks down at an 8V or a higher reverse voltage the avalanche
    mechanism is dominant (with a positive temperature coefficient.

    https://toshiba.semicon-storage.com/us/semiconductor/knowledge/faq/diode/are-there-any-special-considerations-for-the-temperature-coeffic.html

    doesn't exactly conform to your claim.

    My statement

    When operated in Zener mode (as opposed to avalanche mode)

    pertains Zener diodes in Zener mode. Why do you want to talk about the positive temperature coefficient of Zeners in avalanche mode?

    The problem is that you choose the mode when you choose the diode. Your formulation suggests that you think somebody could to operate one diode
    in one mode or the other. Only a hopeless newbie could think that, but
    some of the lurkers aren't all that sophisticated, and a few of our
    posters aren't much better.

    Gerhard Hoffmann has pointed out that even a 4.7V zener diode has enough avalanche component in it's breakdown mechanism to introduce lots of
    noise though the temperature coefficient of the reverse voltage is still marginally negative.

    --
    Bill Sloman, Sydney

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ehsjr@21:1/5 to Gerhard Hoffmann on Fri Apr 11 12:14:35 2025
    On 4/11/2025 5:47 AM, Gerhard Hoffmann wrote:
    Am 11.04.25 um 08:13 schrieb Bill Sloman:

    Whether a reverse biased diode breaks down in Zener mode or avalanche
    mode depends entirely on the diode you have selected.

    if it breaks down at less than 5V reverse voltage it is breaking down
    by the Zener mechanism (with a negative temperature coefficient) , and
    if it the breaks down at an 8V or a higher reverse voltage the
    avalanche mechanism is dominant (with a positive temperature coefficient.

    Noisewise, the mode is easy to be seen. The avalanche effect is MUCH
    worse. Already small avalanche contributions spoil the pot.

    in

    < https://www.flickr.com/photos/137684711@N07/24411798996/in/album-72157662535945536/    >,

    I have measured the NXP BZX84 family. The 2V7 or 5V6 in the type number
    mean exactly that. At 4V7 the low noise property is already gone.

    The pics to the left & right show some LEDs and regulators.

    Nice. Thanks for posting that.

    BTW: the leftmost pic of the peaceful Blau river valley is where the
    Gauss family runs a hotel. Yes, "our" Mr. Gauss. They have an oil
    painting of him in the dining room.

    ??? of him / of his: which one is correct?????

    If the picture shows what Mr. Gauss looked like, it is a painting
    of him. If Mr. Gauss painted a picture it is a painting of his.
    It gets even more complicated if Mr. Gauss painted the image of
    himself - a self portrait. Then it would be his picture of him.
    Groan.

    Reminds me of a Japanese lady who learned English and had a
    hard time with prepositions: do you ride in a bus or on a bus;
    why do you sit on a stool but in a chair (sometines on a chair)
    but you sit on a sofa, not in a sofa etc etc I helped her
    with that, but when she asked me to explain PIN diodes to her
    I couldn't.

    Ed



    BTW2: For the sake of scientific honesty, Prof. Zener sued the semi
    industry that they should not use his name for avalanche diodes.
    They settled to call them Z-diodes and to pretend it was for the
    form of the U/I curve.

    cheers, Gerhard





    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Don@21:1/5 to Bill Sloman on Fri Apr 11 15:50:44 2025
    Bill Sloman wrote:

    <snip>

    The problem is that you choose the mode when you choose the diode. Your formulation suggests that you think somebody could to operate one diode
    in one mode or the other. Only a hopeless newbie could think that, but
    some of the lurkers aren't all that sophisticated, and a few of our
    posters aren't much better.

    Gerhard Hoffmann has pointed out that even a 4.7V zener diode has enough avalanche component in it's breakdown mechanism to introduce lots of
    noise though the temperature coefficient of the reverse voltage is still marginally negative.


    Thank you for taking the time to clear things up.
    It's time to move on to a another interesting (from my own
    perspective) topic. At least one person refers to this Shockley pn
    junction equation as "famous":

    VBE = VT*ln(IE/IS)

    It makes me feel like a hopeless newbie for such a well known equation
    to remain unknown to me until relatively recently. My curiosity moved me
    to peek at the 12.5 THE THEORY OF A p-n JUNCTION section of ELECTRONS
    AND HOLES IN SEMICONDUCTORS by Shockley.
    So far, nothing recognizably resembling the above equation jumps
    out at me from the Shockley. Fortunately, "success has many fathers." So
    this paper (credits Widlar's work) will suffice:

    <https://www.iee.et.tu-dresden.de/iee/eb/forsch/AK-Bipo/2007/AKB2007_10_Berkner_BG_Ref_Simulation_101102.pdf>

    Danke,

    --
    Don, KB7RPU, https://www.qsl.net/kb7rpu
    There was a young lady named Bright Whose speed was far faster than light;
    She set out one day In a relative way And returned on the previous night.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Dennis@21:1/5 to Bill Sloman on Fri Apr 11 12:11:30 2025
    On 4/11/25 07:37, Bill Sloman wrote:


    Professor Zener was being optimistic. Language is defined by the words
    people use, and if the majority makes a habit of using words incorrectly
    that usage becomes part of the language.

    Like incorrectly using mantissa for the significand of a floating point
    number. Note that the word mantissa does not appear anywhere in the IEEE
    spec.

    https://www-users.cse.umn.edu/~vinals/tspot_files/phys4041/2020/IEEE%20Standard%20754-2019.pdf

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Phil Hobbs@21:1/5 to Dennis on Fri Apr 11 17:14:54 2025
    Dennis <dennis@none.none> wrote:
    On 4/11/25 07:37, Bill Sloman wrote:


    Professor Zener was being optimistic. Language is defined by the words
    people use, and if the majority makes a habit of using words incorrectly
    that usage becomes part of the language.

    Like incorrectly using mantissa for the significand of a floating point number. Note that the word mantissa does not appear anywhere in the IEEE spec.

    https://www-users.cse.umn.edu/~vinals/tspot_files/phys4041/2020/IEEE%20Standard%20754-2019.pdf



    I don’t remember the last time I used a log table, so that one hardly
    matters anymore.

    Cheers

    Phil Hobbs

    --
    Dr Philip C D Hobbs Principal Consultant ElectroOptical Innovations LLC / Hobbs ElectroOptics Optics, Electro-optics, Photonics, Analog Electronics

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)