Hi,
I would like to use the Temperature Indicator Module of a PIC10F322 to make a fan run at a PWM ratio depending of the temperature.
In my use case, the temperature can vary between 30 and 50 °C
The result must NOT be precise, since I will add a pot on one of the ADC pins to adjust the speed
But I get results which seem to be wrong, because the resolution sems completely off:
(Remember: the ADC in 10F322 is only 8-bits)
Temp
ADC
30
139
31
140
32
140
33
140
34
140
35
141
36
141
37
141
38
142
39
142
40
142
41
142
42
143
43
143
44
143
45
143
46
144
47
144
48
144
49
145
50
145
Maybe I converted the formula not correctly ? Here it is, for the second column of the first data line:
=((5-(4*(0,659-((A2+40)*0,00132))))/5)*255
Has anyone already worked with that Internal Temperature Indicator ?
Is my formula above correct ?
Any help is welcome !
Thanks,
David