Hello All,
I am trying to use LM35 temperature sensor on AN1 port of ATD0. But I wanted to convert the value from the ATD to the temperature value for which I can print on the LCD display. But LM35 has resolution of 10mv per degree celsius and ATD (8 bit resolution, VDD = 5v) has 19.53mv. Hence I how can I know whats the temperature in degree celsius? I dont want to use power supply of 3.3v but only 5v. I have to make the ATD resolution as well 10mv per degree celsius.
Looking for some inputs / suggestions
Darshan
Hello Darshan,
If you use 10-bit resolution, as Kef suggested, this will result in a resolution of 4.88mV, or slightly less than 0.5 degree.
If you then wished to adjust the resolution to exactly 0.5 degree C, to simplify the calculation process, you could place a resistive voltage divider between the temperature sensor and the ATD input. This might consist of a 820 ohm series resistor, and a 33k shunt resistor, and would provide a voltage change of 9.76mV per degree C at the ATD input.
Regards,
Mac