> Vasile Surducan wrote...
>
> >But also you'll have the same problem regarding full scale resolution...
> >Without external op-amp you'll never have it ! And the software offset
> >will not solve the problem...
>
> Well, I'm not sure this is a "problem", as the OP didn't specify what
> resolution he needed over what temperature range; he simply asked for a
> way to read temperatures below 0C. With a 10mV/K sensor (LM335) and a
> 10-bit PIC A/D operating from a 5.0V Vref, he gets a resolution of
> roughly 0.5C which may or may not suit his needs. If 0.5C resolution is
> sufficient, it doesn't particularly matter that the entire A/D input
> range isn't utilized.
>
> Obviously, if he wants to get the maximum available resolution over a
> specific temperature range, the LM335 output would have to be offset and
> scaled appropriately; but he didn't say anything about that.
>
> If that's the case, a simple circuit consisting of a RRIO opamp (e.g.,
> 1/2 of a National Semiconductor LMC6482) and three resistors will do the
> trick, as follows:
>
> 1) Connect the opamp (+) input to the output of the LM335;
> 2) Connect the opamp output to the PIC A/D input pin;
> 3) Connect one of the resistors (R1) from Vcc to the opamp (-) input;
> 4) Connect resistor R2 from the opamp (-) input to ground; and
> 5) Connect resistor R3 from the opamp (-) input to the opamp output.
>
> Let Tlow be the temperature at which you want the opamp output to be
> zero volts (i.e., the lowest temperature you want to measure); at this
> temperature the LM335 output is Vlow = Tlow/100, where Tlow is expressed
> in Deg. K. Let Thi be the temperature at which you want the opamp
> output to be 5V (your upper temperature limit); at this temperature the
> LM335 puts out Vhi = Thi/100, where Thi is expressed in Deg. K.
>
> 6) Choose an arbitrary, convenient value for R2, say 10K ohms.
>
> Since the opamp will act to keep its (-) input equal to its (+) input,
> we can write a pair of nodal equations for the (-) input--one at Tlow
> and one at Thi--that will allow us to solve for the other two resistors,
> R1 and R3:
>
> 7) (5 - Vlow)*(1/R1) - Vlow*(1/R2) - Vlow*(1/R3) = 0; and
> 8) (5 - Vhi)*(1/R1) - Vhi*(1/R2) + (5 - Vhi)*(1/R3) = 0.
>
> Plug Vlow, Vhi, and the chosen value of R2 into 7) and 8) above and
> solve them simulaneously to give the required values of R1 and R3.
>
> Voila.
>
> Dave Dilatush
>
> --
>
http://www.piclist.com hint: The PICList is archived three different
> ways. See
http://www.piclist.com/#archives for details.
>
>