samna_asadi
Junior Member level 3
- Joined
- Mar 19, 2011
- Messages
- 30
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,286
- Activity points
- 1,519
hi
i have written a program to read lm35 temp sensor from adc4 on atmega8.
i`ve already set the DDRC to 0x00 but its giving me wrong number.i tried to manually measure the voltage on lm35 and atmega`s pin , on lm35 side it was 0.34 that was good but on the atmega it was 1.2 or 3 and when i connect lm35 to adc4 pin the voltage change to something else that is not right!
i`ve connected lm35 straight to atmega.
what can i do with it , what`s the problem?
tnx
i have written a program to read lm35 temp sensor from adc4 on atmega8.
i`ve already set the DDRC to 0x00 but its giving me wrong number.i tried to manually measure the voltage on lm35 and atmega`s pin , on lm35 side it was 0.34 that was good but on the atmega it was 1.2 or 3 and when i connect lm35 to adc4 pin the voltage change to something else that is not right!
i`ve connected lm35 straight to atmega.
what can i do with it , what`s the problem?
tnx
Last edited: