Vasile The LM35 gives you an output of 10mV/=B0C so you do not have to convert K= elvin to Celcius. So you get 2 bits/=B0C. If you use a opamp X5 you get 50mV/=B0C and 5v at 10= 0=B0C (Maybe X5 is a bit too match) The code can do the rest. Hope it helps you? Thys -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Vasile Surducan Sent: 07 February 2001 02:50 To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: LM335 Thys, can you tell me how do you scale the output signal of LM35 to obtai= n full AD pic resolution and how do you convert for displaing celcius degrees. AT 0C LM35 output is about 2.7315V and depends of biasing current. At 100C will be about 3.73V For a 0..5V AD input, probably you need a diferential amplifier or for a pic16F877 to set -ref at 2.73 and +ref at 3.73 but in this case you will not have 10 bit AD resolution. Is there any more simple method to do that without external amplifiers and of course without any one wire or i2c temperature measurement devices. Thank's very much, Vasile On Wed, 7 Feb 2001, Thys Van Tonder wrote: > Hi there Peter > > The LM335 gives you 10mV/=B0K. So you better use shielded cable. I used= the > LM35 with about 4m > of cable and it worked fine for our application, a bit of switching noi= se > from the motors we were probing. You can average out your reading in th= e > software. > > Regards > Thys > > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Peter May > Sent: 07 February 2001 08:13 > To: PICLIST@MITVMA.MIT.EDU > Subject: [PIC]: LM335 > Importance: Low > > > I gave up on the DS18S20's and went to a simple LM335. It says in the d= ata > sheet I can run a long cable to it and use it remotely. In the finished > product it will be within a couple of inches of the PIC but for bench > testing I want about 20 feet of cable. Would this introduce much noise into > the analogue input? > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > -- > http://www.piclist.com hint: The list server can filter out subtopics > (like ads or off topics) for you. See http://www.piclist.com/#topics > > -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics