@ technical
Hi,
Picaxe can drive many servos. It is excellent. (e.g. the kit "caterpillar" with 18X1 and 8 servos !)
The command SERVO accept a variable which specifies the i/o pin
but not the command SERVOPOS, only a constant.
In the program, with 8 servos it is necessary to create 8 different gosub with SERVOPOS 0, ... SERVOPOS 1,.....
SERVOPOS 2,..... SERVOPOS 3,.... etc SERVOPOS 7,....
with SERVO one gosub is sufficient SERVO x,..... (x =0 to 7 ) syntax OK
In the manual:
" The ‘servo’ command initialises the pin for servo operation and starts the timer.
Once a pin has been initialised, it is recommended to use the ‘servopos’
command to adjust position. This prevents resetting of the timer, which could
cause ‘jitter’ "
(Yes I note this behaviour with my robot )
SERVOPOS is important for good program.
In the future update, can you modify SERVOPOS for it accept also a variable for the pin, if it is possible.
Thanks
(sorry for my english language)
Hi,
Picaxe can drive many servos. It is excellent. (e.g. the kit "caterpillar" with 18X1 and 8 servos !)
The command SERVO accept a variable which specifies the i/o pin
but not the command SERVOPOS, only a constant.
In the program, with 8 servos it is necessary to create 8 different gosub with SERVOPOS 0, ... SERVOPOS 1,.....
SERVOPOS 2,..... SERVOPOS 3,.... etc SERVOPOS 7,....
with SERVO one gosub is sufficient SERVO x,..... (x =0 to 7 ) syntax OK
In the manual:
" The ‘servo’ command initialises the pin for servo operation and starts the timer.
Once a pin has been initialised, it is recommended to use the ‘servopos’
command to adjust position. This prevents resetting of the timer, which could
cause ‘jitter’ "
(Yes I note this behaviour with my robot )
SERVOPOS is important for good program.
In the future update, can you modify SERVOPOS for it accept also a variable for the pin, if it is possible.
Thanks
(sorry for my english language)