phrbob93
Member level 1
- Joined
- Mar 28, 2014
- Messages
- 38
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 6
- Location
- Jalandhar, punjab
- Activity points
- 343
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 attachmentView attachment temp.txtView attachment lcd.h.txt
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 attachmentView attachment temp.txtView attachment lcd.h.txt