Battery question
This is a fairly simple but important question. Your help is appreciated. I know the BS2 has a +5v output pin for connecting other componets to, but is it safe to run 3 servos (hexapod application) off of this pin if Im using an 8.4v 600mah pack? To be more specific, the pack is a sanyo 7 cell 8.4v 600mah. Do I need any type of resistors etc-or can I connect my servos directly to the +5v pin? Thank you!
Comments
·· CJ is correct in that what you propose to connect would draw too much current from the on-board regulator of the Stamp.· As for the 7805, if the chip is facing you with the tab up and the pins down, the pins are (From left to right) Vin, GND, Vout.· A heatsink is recommended.· Radio Shack may have one of these as well.· The 7805 is a TO-220 package.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
·· Close...The regulator is actually an LM2940-5.· This regulator is a better choice than the LM7805 when available.· Of course, you can get the LM7805 at Radio Shack, you'd have to order the LM2940 unless you have a local electronics store that carries this kind of thing.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Now the BS2 does have an on-module regulator for its own use, but since a typical servo takes 150 mA or so by itself, you REALLY need a separate regulator for the Servos. Unless you are using a 6-volt battery (4 x 1.5), which can drive the servo +V directly.
You hook your Battery + to the Vin on the regulator. Vout of the regulator goes to the Vdd pin on the BS2 -- which bypasses the on-chip regulator, but that's ok. If your battery is 7.5 volts or less, you can hook your battery + directly to the '+' line of the servo, otherwise you should hook the + line of the servo also to Vdd. Don't leave out the filter capacitors in all this, they are critical for proper operation of the regulator and preventing voltage drop-outs when you activate the Servo.
Make sure your BS2 Vss (that's Ground) is hooked to the Servo ground, and both of them are hooked to the Battery -.
The Servo 'signal' (I believe it is the middle wire) is hooked to a BS2 I/O pin, and is what the BS2 uses to control the beast.
·· I would like to offer an alternative connection.· You're running an 8.4V battery pack, correct?· Connect the + (positive) side of the battery pack to the Vin on both the regulator and the BS2.· Leave the BS2 Vdd pin unconnected.· The ground (negative) side of the battery should tie to the BS2 Vss as well as the regulator ground and the Servo ground.· Definately use the proper filter capacitors for the 7805 (input and output).
·· On the servos, the connections are usually Black, Red, White.· Black is ground, Red is ~6V and white is the signal (Connect directly to stamp pin).· In this configuration there is less chance for the BS2 to reset if the servos stall suddenly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Would a 1000uf capacitor be ok to use as the filter capacitors? I picked some up at the shack, and they seem kinda large...?
The large cap is to temporarily provide current, or stablize voltage depending on how you want to view it. The small cap is to shunt high frequency noise.