Hi all,
I am trying to send and receive a pulse using two picaxe chips and I am totally lost.
I have no way of actually measuring the pulse, so I am wondering if there is a formula that I can use?
I tried using debug in the picaxe editor but nothing happens. Then again I have never used debug before so I am not sure on the exact operation.
My main question is how to figure out what number pulsout is?
Is the pulsout number the same as pulsin?
here is my code for the pulse out
and for my pulse in
I have read the manual and it is very vague and does not answer my questions?
Can anyone point me in the right direction?
I am trying to send and receive a pulse using two picaxe chips and I am totally lost.
I have no way of actually measuring the pulse, so I am wondering if there is a formula that I can use?
I tried using debug in the picaxe editor but nothing happens. Then again I have never used debug before so I am not sure on the exact operation.
My main question is how to figure out what number pulsout is?
Is the pulsout number the same as pulsin?
here is my code for the pulse out
Code:
high PulseOut
do
pulsout PulseOut, 150
pause 200
loop
Code:
do
let w13 = 0
Pulsin PulseIn,1,w13
if w13 = 150 then
goto PulseActivated
else
restart 2
endif
loop
Can anyone point me in the right direction?