I am trying to use the approach shown at the bottom of this web page http://www.ladyada.net/learn/sensors/fsr.html to read the value of the FSR.
When I calibrate using a 10K Analog pot I get 4 values shown in the terminal of 0,1,2 and 3. These values are representative of the value of the pot. However, i would have expected more values to be returned.
Is the cause of the limited return values (0,1,2 and 3) the Picaxe clock speed? So, if I change the Picaxe to a faster option I would get more granular return values?
Any thoughts (relating to this subject please....).
Thank you.
Anobium
My layout is attached and the code shown below.
When I calibrate using a 10K Analog pot I get 4 values shown in the terminal of 0,1,2 and 3. These values are representative of the value of the pot. However, i would have expected more values to be returned.
Is the cause of the limited return values (0,1,2 and 3) the Picaxe clock speed? So, if I change the Picaxe to a faster option I would get more granular return values?
Any thoughts (relating to this subject please....).
Thank you.
Anobium
My layout is attached and the code shown below.
Code:
' 1uf CAP with 10K resistor
' 08m
setfreq m8
symbol timer = w1
main:
dirs = %00000010
low 1
' Charge CAP
pause 5
timer = 0
dirs = %00000000
do while pin1 is off
timer = timer + 1
if timer = 1028 then
sertxd ("*")
goto fin
end if
' debug
loop
fin:
sertxd (#timer,13,10)
goto main
Attachments
-
16.6 KB Views: 25