Hi I can't get a reading off my srf005 with my Axe200 project board. I read somewhere about the Srf005 not liking to run at 8MHz? However I can't change the frequency of the Axe200 because it uses an external resonator.
28x2 Code:
***********************************
symbol trig = c.5
symbol echo = c.3
symbol range = w1
main:
pulsout trig,2
pulsin echo,1,range
pause 20
let range = range * 10 /58/2
debug range
goto main
'***********************************
I have successfully had the Srf005 working with a 28x1(4Mhz).
28x1 code:
***********************************
symbol trig = 7
symbol echo = 9
symbol range = w1
main:
pulsout trig,2
pulsin echo,1,range
pause 20
let range = range * 10 / 58
debug range
goto main
********************************
Any ideas please?
Thanks.
28x2 Code:
***********************************
symbol trig = c.5
symbol echo = c.3
symbol range = w1
main:
pulsout trig,2
pulsin echo,1,range
pause 20
let range = range * 10 /58/2
debug range
goto main
'***********************************
I have successfully had the Srf005 working with a 28x1(4Mhz).
28x1 code:
***********************************
symbol trig = 7
symbol echo = 9
symbol range = w1
main:
pulsout trig,2
pulsin echo,1,range
pause 20
let range = range * 10 / 58
debug range
goto main
********************************
Any ideas please?
Thanks.