I guess so, but you can simplify it a bit... We know 1024 =3D=3D> 5V. So, 157 =3D=3D> (157/1024) * 5V =3D 0.77V 0.77V / 10mV =3D 0.77V/0.01V =3D 77 deg F. Cheers, -Neil. On Sunday 28 September 2003 07:32, kben@DCA.NET scribbled: > Ok, I hooked up the LM34DZ to the PIC and received the > output of decimal 157 from the 10 bit ADC. > > So, 1024/5 (Volts) is 204.8 per volt. Now the LM34DZ > outputs 10mV per degree Farenheit, So 1V/10mv =3D 100. > Now if I take 204.8/100 =3D 2.048. So I would divide > my 157 from the ADC by 2.048 (Scale Factor?) to get > degrees farenheit. > > Therefore 157/2.048 =3D 76 degrees F. Which agrees > with the room temperature to within 1 degree F. > > Is this the correct logic for using the 10 bit ADC ? > The answer comes out correct, I am just having a little > difficulty grasping the concept of the conversion > factors :) > > Thanks in advance, > Kevin --- [This E-mail scanned for viruses] -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu