Keeping servo Timing
ratronic
Posts: 1,451
I am trying to find out out whether a servo pulse can be put out in the back ground while reading other devices (ie 1620 ,1302, updating display etc). If not, can somebody recommend a serial device that can be programmed on the fly during program execution so that the pulse width and freq stay as you want. Or is there a way to time the total time of your entire program loop so that the output pulse can be set to output pulse frequency to·make the servo happy?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Rat
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Rat
Comments
You can use a Parallax Servo Controller to control up to 16 Servo's in the background.
Serial version:
http://www.parallax.com/detail.asp?product_id=28023
USB Version:
http://www.parallax.com/detail.asp?product_id=28823
Optionally the PWMPAL will also let you control your servos
http://www.parallax.com/detail.asp?product_id=28020
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
Is there a simple way that you know of to time a program loop that might vary in time from end to end? I thought I saw something like that somewhere ?
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Rat
http://emesystems.com/BS2index.htm, and specifically,
http://emesystems.com/BS2speed.htm
Also, don't forget to search Parallax's own Forum archives for answers, at
http://search.parallax.com/
PAR
As you ask."... Or is there a way to time the total time of your entire program loop so that the output pulse can be set to output pulse frequency to make
the servo happy?"
The servo "dead time" where the pulse is LOW, is pretty forgiving. Most servo's will tolerate a dead time ranging from 15mS to 25mS. If you are careful
with your code, and you can get everything done that you need to get done within that allotted time window or even partition everything than needs to
be done over multiple time windows, you could pull something off that would work in your application.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Beau Schwabe
IC Layout Engineer
Parallax, Inc.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
D Rat