quick question on # of servos i can control
errolprowse
Posts: 3
i need to run 6 servos from my basic stamp, bs2 thats on a boe bot. I know that u can run only 4 if u go by the plugs that are supplied. Can i send a freqout signal to any other i/o ports and have more servos controlled by the bs2??
thanks
thanks
Comments
The built-in servo sockets are for convenience. They provide power and ground as well as the control signal (P12-P15). For others, you can provide connections on the little breadboard. Parallax carries some male 0.1" header pins that are the same length on both sides, one side for the breadboard and the other for the servo connector. You have to provide jumper wires to Vss, Vin, and two other I/O pins. It doesn't matter which ones.
so what u mean is that if all the servos are going at the same time it may be sluggish?? im making an arm with standard servoes and i hope to copy this arm for a final project in school:
http://www.youtube.com/watch?v=zZwnyZPkylk&feature=related
do u think it could handle that type of load at the same time?
can i have two servos doing the same motion and connected to the same signal pin?
If you miss the 20ms time limit, there's a little bit of slop allowed, but eventually the servo will get tired of waiting and will turn itself off. The motor will be unpowered and may slip if there's a load on it. Once it gets another control pulse, it will turn itself on, but that may cause the servo to jitter as it turns off and on repeatedly.
Most people with much more than 4 servos will use some kind of external servo controller. Something as simple as a ServoPAL can help by continuing to issue control pulses while the Stamp is busy and will handle 2 servos using one I/O pin. A Propeller Servo Controller can handle up to 16 servos and can do ramping (smooth changes), all autonomously. You can even program it like any Propeller to do everything or certainly more than just controlling the servos.
On the other hand, you could (like I said) control 6 servos with a Stamp if you're doing very little with them, not reading more than 1 or 2 simple sensors and doing only very simple and quick control decision making.
Per Mike, each servo likes a pulse each 20 milliseconds, and strange things can happen if your pulses are stretched out longer. FYI, I have found that digital servos shut down from fewer pulses before analog ones do.
If you REALLY want to duplicate the arm in that video, another option is to eliminate the processor completely and make 6 identical LM556 circuits that each read one pot and output a pulse string to drive one servo. That would definitely work and it's cheap, but it is a fixed analog circuit that will require individual pot & servo hardware calibration; obviously there is no software to tweak.
You might want to review the similar thread at http://forums.parallax.com/showthread.php?t=124396 and/or check in with Gramps.
To expand on this you could have the BS2 controlling a digital potentiometer which changes the pulse train of the 555's/556's. I love digipots! I use them in everything from high power RGB faders to DC motor speed controllers with the BS2. Definitely helps to build circuits that you can offload some of the processing power onto.