Maintaining Servo position
Joe Fishback
Posts: 99
I am controlling a RC Servo by inputing the RC receiver signal into a BOE with a BS2. The BOE then outputs pulses to the servo. I have everything·working OK. But now I want the Servo to maintain its rotation position if I let the RC signal go back to center (750 pulses). Then if I move the RC transmitter so that the Servo reverses pass center, then it would go in·that direction. Likewise if I let the RC signal go back to center the Servo would maintain it position. What I am controlling is a Robotic arm. Attached is a pBasic program, but it does not do things right. Can anyone
help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
······ Joe Fishback
-Robots are my friends-
help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
······ Joe Fishback
-Robots are my friends-
Comments
Maby you are trying to do this: (psudo code)
do
Read RCsignal
If iRCsignal>lastposition then rotate twards rc signal last=last+1
if rcsignal <750 then rotate twards rcsignal last=last-1
hold servo position at lastposition
loop