Hi Daryl,
Must have been your telepathy, as I did precicly that, ie
div32 first THEN subtract
ADCIN 7,y
Pause 100 ' adc settling
x1 = y
y = y*385
y = div32 1000
y = y - 5088
y1=y1+y ' Loop to average results
If x = 9 then goto outtwo
x=x+1
Pause 100
Goto Ambient
Outtwo: Debug "A raw= ",#x1,$0D,$0A
y=y1/1000
Y1= y1//1000
Y1 = Y1/100
Debug "A calc= ",#y,".",#y1,$0D,$0A
x=0
y=0
y1=0
now results are JUST Fine !!!!
thanks Steve and Daryll
kindregards
pete
sorry Steve is meant to say Skimask
Bookmarks