Servo control
bboy8012
Posts: 153
I have seen and looked at the 32servo object, and also the 4servo object, my questions is there any site or documentation for servo control so I can get an understanding in spin? Or does anyone know of good sights that will help me out in developing a simple single servo object to just get the fundamentals down. Thanks
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hunger hurts, starvation works!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hunger hurts, starvation works!
Comments
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hunger hurts, starvation works!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hunger hurts, starvation works!
There are uncountable articles and descriptions concerning stepper motors and servos... I think no need to add to them...
However...
Servos contain a small electronic part which is controlled by a short pulse, between 1 to 2 ms length. Is it 1 ms then the servo keeps to its left elongation, is it 2 ms, then the servo keeps right, is it 1.5 ms then the servo centers. This is an internal feed-back operation: The position of the servo is - most simple! - internally read from a potentiometer and compared to the pulse length.
This has to be done continously, but with a low rate of 50 per second only !
This is the beauty of it: You need not care of all the internals! You pay a little bit more than just for the motor, and you have not the full range of motors available. This is not a problem in model market - you get masses of servos from 6g to 160g - but when you need more powerful equipment.
Servos can generally be powered from as low as 4.8 V (though 6V are much better), but they can easily be CONTROLLED by 3V !
That's also the beauty of them.
Generating dozens of PWM signals is a snap for the Propeller!
See here e.g. http://forums.parallax.com/showthread.php?p=685997
Edit: Improved some bad figures from my bad memory...
Post Edited (deSilva) : 12/21/2007 8:48:14 PM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hunger hurts, starvation works!
You know a little bit of SPIN, don't you? You have worked yourself through chapter 3 of the Manual, haven't you?
So you should be able to change the first program into a "just one servo" program... Well, I am aware I could have commented it more thoroughly :-(
Or are you referring to assembly language? Then there is another Tutorial, of course
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Hunger hurts, starvation works!
http://forums.parallax.com/showthread.php?p=668559
you will find Potatohead's introductary work as well as my Tutorial, NOT for the beginner...