Pulse out
aev.308
Posts: 6
I'm having a problem using the PULSE OUT XXXX command. I would like XXXX to be a variable so that I can write a very short program rather than creating a bunch of subroutines with different values for XXXX.
My programs pass debugging and download with no problem but the servo never moves to the position determined by a simple algorithm such as.
var x
var dist
some distance calculation = dist
x = dist + 25
pulse out x
Any suggestions?
My programs pass debugging and download with no problem but the servo never moves to the position determined by a simple algorithm such as.
var x
var dist
some distance calculation = dist
x = dist + 25
pulse out x
Any suggestions?
Comments
FOR B1=500 to 1000
PULSOUT 1,B1
PAUSE 20
NEXT
Now you make it go back the other way!
(Pin 1 is used there for the output signal)