----=_3c3d8b031399615046c3949.MFSBCHJLHS Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable The circuit as you described it, with +550 mV on the (+) input of the diffamp and the LM35 output connected to the (-) input of the diffamp, would give 0V output at +55C, not -55C. The diffamp output would go positive for temperatures below 0C, and negative for temperatures above 0C. Also, the output of the LM35 can't go below ground (at 0C) without some help. The LM35 data sheet (http://www.national.com/ds/LM/LM35.pdf) recommends a couple of ways for dealing with this. One way, shown in Figure 7 of the data sheet (copy attached as Image2.gif), allows temperature sensing below 0C by placing a couple of diodes in series with the ground lead of the LM35, and lightly pulling down the LM35 output with a resistor to ground to allow the LM35's output to go a bit negative with respect to its ground pin. This method requires that two of the PIC's analog inputs be used; one to read the LM35's output pin, and the other to read the potential on the LM35's ground pin. After taking the two A/D readings, a simple subtraction yields the temperature result. The only components required are two 1N4148 (or equivalent) diodes and an 18K resistor, which should be somewhat less expensive than a differential amplifier. Dave Vasile Surducan wrote... >A) Use a diferential amplifier ( I hope you are familiar with the >configuration), Vout =3D vp - vn where vp is the potential on >+ input and vn is the potential on - input.=20 >On Vp put a reference of +550mV, then for -55C the output will be 0V. >For positive temperature the output will be +550mV +temperature = potential. >=20 >B) If you can go only to -45...-50 C then no external operational is = need. >Take a look to my site: >http://www.geocities.com/vsurducan/electro/PIC/f877.html > >On Thu, 10 Jan 2002, Gabriel Caffese wrote: > >> I=B4m trying to read negative temperature using LM35, and one = 16F877. >> It gives me 10mv/=BAC, so at -55=BA, I=B4ll have -550mv. >> But I want to have 0 Volt at -10=BAC, How do I change the zero = position ?? >>=20 >> It it for being able to read this temperature with the 16F877. >>=20 ----=_3c3d8b031399615046c3949.MFSBCHJLHS Content-Type: image/gif; name=Image2.gif Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename=Image2.gif R0lGODdh2gFAAfcAAAAAAAgICBAQEBgYGCEhISkpKTExMTk5OUJCQkpKSlJSUlpaWmNjY2tra3Nz c3t7e4SEhIyMjJSUlJycnKWlpa2trbW1tb29vcbGxs7OztbW1t7e3ufn5+/v7/f39/////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// //////////////////////////////////////////////////////////////////////////// /////////////////////////////////////////////////////ywAAAAA2gFAAQAI/gA/CBxI sKDBgwgTKlzIsKHDhxAjSpxIsaLFixgzatzIsaPHjyBDihxJsqTJkyhTqlzJsqXLlzBjypxJs6bN mzhz6tzJs6fPn0CDCh1KtKjRo0iTKl3KtKnTp1CjSp1KtarVq1izat3KtavXr2DDih1LtqzZs2jT ql3Ltq3bt3Djyp1Lt67du3jz6t3Lt6/fv4ADCx5MuLDhw4gTK17MuLHjx5AjS55MubLly5gza07r AIBACgA6bB5deUKGghMAXPjgYADp15IhrCaYAUCEDwgSwN7tGMLtggAcfAAAYQMBAAJm814OOAOG DAQWOOcw0ICBCwAqQAigYQED5uD7/nZAgMAAgPMAFAxsAAABAA6pKXTQEL5+XwQTDIIGQECgguD2 BagXAsoNVBsA3wn0gG0CNlgXgQcJAEB+CjzAWoIOZviWBdQZpMFpHzAwAAUINKDhiXp1wEB69KHo 4oswxijjjDTWaGNWEBRgAIg39hjWiqr5KORXQBY45JFXFYnkkkmeZySTUDqlZJRUSulklVguNWWW XBa1ZZdgAvVlmGTuNGaZaNp0ZppsxrRmm3Cy9GacdJ60wJV15qmSeUHq6adJBeD5J50QPFDooYYm imgEFVQwwQUXVHABBZBWauml6Ml2KaSifdDpoFmiJ+qopJZq6qmopqqqqAWAiuKq/rDGKuuso7p6 Iq245qrrebZqKKoBh2r3QAQSKDososgai6gDC5B3gAIIHODstNEOIIAAx0mIa68ZipofURdEICq3 Dnp71LjkCmiuUeimWx926H1bVLvu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FqL7br3V Rc2bSvzIGgAQERQAANCAwoYPCT90kDAQgIIIGhQSlKhQA8EIHy4S5EjwgUKQHyiG3BiSJEGQGyIQ bFAhYcmEI0UCqEjwwkoFFkBeaOAxw0uUCjf0jLDhAICfFwY2SOhBAoADEzoElZlQJUuXJhVaYEDw QEShKwtmnVkRpgeuHi8odDpQgdSJNIEC0JowLVSwMeXCLJsww9INMmVeHVvXble8FT8MLajhgdyZ Nx/q1Cs5p8WgCR8riKvYsEnH/hgRvnwMoOjnnUsTdpjgFi5q2LFlz6Zd2/Zt3Car5ubd2/fvun+B a71ggfJUAKOHy97dObaHo5RjKl9e3fp17Nm16/W83fv32EPJWr/A8sFRpuBDNueO2vHRAx5WR/io 3v59/Plrs9ff33oH6bC7oLSoOtCPP/5A2qgB6iyQzz8II5RwQgortPBCDDPUcEMOO/TwQxBDFHFE Eks08UQUU1RxRRZbdPFFGGOUcUYaa7TxxQ0eeIC6G3v08UcgF8rsgww6AqC+Dyxway3NNshxp9Ja ejBIKqu00kMPEAPJAiPrK/JIgn76YMcnP8jSyIIMvHJNNtv0bsiXHKJLoZUC/kxooLXKSy/HHROi AKq10CKIAjcLNfTQ3OBccMiBuvOAIAM5gLMpggKcwAE7EdV0U04VbQADvmbq6TKNMmPvSzU5VXVV TdHcja+NDugJAEL5Yo/LOVnVddc1XYVsLqGMs4sgD2z9datJeVV22RuTLTVX3WgytrsPygMg1cV4 ZHZbblF0lq8NNFCMokcBkE9SaBVCjknNjuz2XXhH/DYzLhWQj8sD7gQgz4LqeuqAQJ8CINN4CzaY QnHr4gs6qEpj8svSxDTpTCPTO/hijDUMlSH0MNhySdTuaoDdjEs2+WSUU1Z5ZZZbdvllmGOWeWaa a7b5Zpxz1nlnnnv2+WegH4MWemiiizb6aKSTVnppppt2+mmoo5Z6aqqrtjq/gAAAOw== ----=_3c3d8b031399615046c3949.MFSBCHJLHS-- -- http://www.piclist.com#nomail Going offline? Don't AutoReply us! email listserv@mitvma.mit.edu with SET PICList DIGEST in the body