papunblg
Advanced Member level 3
- Joined
- Oct 22, 2010
- Messages
- 716
- Helped
- 172
- Reputation
- 344
- Reaction score
- 165
- Trophy points
- 1,343
- Location
- Kolkata India
- Activity points
- 6,421
At 100C the adc will get 1000mV. ADC output(adc_data) will be 1000/2.441 = 410 (rounded). Now in your code You have to convert it , like, 410*2.441=1000.8.
Now remove decimal part, divide by 10 and you will get 100C.
---------- Post added at 00:53 ---------- Previous post was at 00:52 ----------
Hints, temp = ((long)adc_value*2441)/100;
Now remove decimal part, divide by 10 and you will get 100C.
---------- Post added at 00:53 ---------- Previous post was at 00:52 ----------
Hints, temp = ((long)adc_value*2441)/100;