Servo Headers and Power Supplies
I have a question regarding the servo headers on the Board of Education that hopefully someone can help me with.· In Chapter 2 of the "Robotics with the Boe-Bot" book, it says to set the jumper for the servo headers to Vin if you are using the 6V battery pack that came with the Boe-Bot kit.· Chapter 4 of the "What is a Microcontroller?" book says either Vin or Vdd setting is acceptable if you are using the 6V battery pack.· I was looking at the documentation for the PING))) bracket kit, and it notes that you must use the Vdd setting for the servo supplied with it.· The instructions in the "What is a Microcontroller?" book and the instructions withe PING))) bracket kit add-on module appear to disagree with the instructions in the "Robotics with the Boe-Bot" book.· Could someone explain this to me?
Comments
But in step 10 the instructions have you plug the Ping into port 15. The Ping is a TTL device and requires regulated 5 volt power. If you have the jumper set to Vin you'll damage it. My take is that you should follow the bread board instructions on page 5 for the Ping. This will allow you to keep your drive servos at Vin so they have more power, but give the Ping the Vdd it needs. I think you're safe plugging the servo into the servo header with Vin, but I haven't tried that servo with 6 volts.
I'm using 5 volts for the servo for a different reason. The battery packs I'm using either have 7.5 or 9 volts depending upon the robot and I don't want to put that much juice into a servo labeled for 6 volts.
A larger issue with running motors off of Vdd is that the power regulator can only handle about 1amp comfortably -- so if you are running the Stamp, LEDs, peripheral devices (like '595 shift registers, Pings, IR sensors, etc) the total power requirement can add up quickly. Then add the 250ma-750ma that the servos may consume, and you will find that the regulator gets hot quickly. That isn't to say you *shouldn't* run everything off the regulator; it really depends on total load. I certainly would not use the "convenience" of the 4 servo headers as a reason to decide what will run from Vdd and what will run from Vin; rather take into account actual power requirements.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
Personally, when an external power supply is necessary, I generally prefer to hook the 5v out from the external supply to the Stamp Vdd pin and leave Vin disconnected. The on-board Stamp regulator really is not very powerful, and this way the Stamp can take advantage of whatever power filtering, short-circuit, over-temp, over-voltage and over-current protections the main external supply has.
A lot of this is really dependent on what you are running -- if it's just one LED and few 3ma peripherals, the on-board regulator is probably fine. If it's a bunch of LEDs, or lots of external chips, etc., the Stamp on-board regulator is not really meant for handling those kinds of loads.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php
you have answered my question as to overloading the on-board regulator (I do in the future intend to add a lot of loads).
I have a question, however, as to why you would hook up the external supply to Vdd (rather than Vin)... what advantage does that provide? isn't the Vdd pin on the stamp actually an output
The advantage is basically cutting the rather weak on-board regulator out of the equation -- in some of my projects I have 2A or 3A main supplies which feed the Stamp and all the peripheral circuitry. It's also a way of protecting the Stamp (as I mentioned).
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
When the going gets weird, the weird turn pro. -- HST
1uffakind.com/robots/povBitMapBuilder.php
1uffakind.com/robots/resistorLadder.php