i am working on a project which objective is to measure the temperature of surroundings..using AT89s52 micro-controller and ADC0804 for A to D conversion.. the temperature meant to be shown on LCD..
after doing some research i managed to read ADC values coming from the LM35 and displaying it on LCD..
now... finally the tricky thing which i fails to understand...( may be because i won't get any useful material to study)..
so i want to know...
- how to convert the ADC value to corresponding Degree Celsius
-how the step change get affected by varying the Vref/2 and how this affect my code..
My circuit Diagram and CODE( iam getting the varying ADC value on LCD as i change the temperature) is given under the attachment
after doing some research i managed to read ADC values coming from the LM35 and displaying it on LCD..
now... finally the tricky thing which i fails to understand...( may be because i won't get any useful material to study)..
so i want to know...
- how to convert the ADC value to corresponding Degree Celsius
-how the step change get affected by varying the Vref/2 and how this affect my code..
My circuit Diagram and CODE( iam getting the varying ADC value on LCD as i change the temperature) is given under the attachment
Attachments
-
1.8 KB Views: 39
-
650 bytes Views: 42
-
24.5 KB Views: 136