This code I refer to was originally posted here http://www.picaxeforum.co.uk/showthread.php?t=3179.
My modified version of this code is this:
My question is what is the purpose of the 'gain = 192' entry. Changing this value makes a large change in the final results. Is this value, 192 a pre-calculated value or does it relate to all PICAX's? It's a real mystery to me.
eddydde
My modified version of this code is this:
Code:
edit:
symbol reading = w0
symbol reading1 = w1
symbol gain = 192
symbol zero = 10
loop1:
readadc 0, reading
reading = reading * gain / 100 + zero
reading1 = reading / 100
reading = reading//100
sertxd ("Voltage is ",#reading1,".",#reading,"", 13,10)
goto loop1
eddydde