Always use an 18F part if you aren't concerned about cents.
Always use an 18F part if you aren't concerned about cents.
Charles Linquist
I use LM358 read from 0c to 1000c and thermocouple type k
NumSamples CON 48
'ADCIN EGTChannel, EGTSample '0 to 255 EGT sample
EGT=0
EGTSample=0
For i = 0 TO NumSamples - 1
ADCIN EGTChannel, EGTSample
EGT = EGT + ((EGTSample * 255) / 60) 'The equation gives the actual Celcius reading
Pause 5
Next i 'Add it all into EGT.
EGT = EGT / NumSamples 'Divide EGT by the Number of samples
Last edited by jetpr; - 12th December 2009 at 02:03.
My Hobbies is PicBasic PRO
Bookmarks