Basic stamp 2: How to
sonique
Posts: 15
Hey Guys,
there is a problem very hard for my understanding.
Nowadays, I read BS2 manual but I didn't found a question to my dilemma:
How·can I·computate the number of external peripheral I can connect to pin-out?
I don't use on-board regulator but external regulator 78L05, generally I use a 9V battery to power my BS2 and some other peripheral like LED, SFR05, BUTTON, several SENSORS. For example, the servo are connect with other 6V battery package.
Some suggestion? Some answer?
Thanks
Daniele·
there is a problem very hard for my understanding.
Nowadays, I read BS2 manual but I didn't found a question to my dilemma:
How·can I·computate the number of external peripheral I can connect to pin-out?
I don't use on-board regulator but external regulator 78L05, generally I use a 9V battery to power my BS2 and some other peripheral like LED, SFR05, BUTTON, several SENSORS. For example, the servo are connect with other 6V battery package.
Some suggestion? Some answer?
Thanks
Daniele·
Comments
The way you compute this is by finding out what current the external peripherals take. Worst case, put an ammeter in the line to the devices, most Digital Volt-Meters (DVM) will act as ammeters.
An external 6-volt battery for your servo's is a very good idea -- make sure the grounds of the 9-volt and 6-volt packages are connected together.
What is a transistor battery?
78L05 supplies about 1A.
Then, if I compute for everyone peripheral the current absorption, I have to sum the current?
What is the total current that BS2 can suppplies?
What is a ammeter ·, I try to translate in italian but don't find the transaltion
If I want use a dedicated supply for sensors, then I must connect the GROUND of every other battery package with BS2 ground?
Thanks a lot
Greetings from Italy·
2) No. A 78L05 is limited in power because of the small case and lack of heat sink. It can supply at most 100mA.
3) The BS2 can supply approximately 50mA at 5V. Some of the 50mA is used by the BS2 itself.
4) it.wikipedia.org/wiki/Amperometro
5) Yes, you must connect all the grounds in your circuit (it.wikipedia.org/wiki/Messa_a_terra).
1) Thanks for historical explanation
2) OPS!!!!! 100mA not 1A. OK
3) Great point·is it·Mike,·can you explain better? Do you speak about sink/source current? But 50 mA totally? Or 50 mA on every pinout?
Thanks
http://www.parallax.com/ProductInfo/Microcontrollers/BASICStampComparison/tabid/436/Default.aspx
and click on the Basic Stamp in question. It will tell you the current per pin and total current per 8 pins.
Jim
Put here that values:
There is a problem!!!
I'dont know how I can interpret them ·····
The I/O pins themselves have limits. The Stamp comparison chart (www.parallax.com/tabid/436/Default.aspx) gives the limits for each of the Stamp models.
There is a maximum amount of current that can be provided from each I/O pin (to ground - sink or to Vdd - source). There is also a maximum amount of current for each group of 8 I/O pins (P0-7 / P8-15) and a maximum amount of current for the whole processor.
Post Edited (Mike Green) : 7/14/2010 3:26:31 PM GMT
- Every pinout of the stamp can supplies 30 mA for basic stamp 2e.
- Every pinut can absorbe 30 mA for external peripheral
I use an external regulator, then I take this 30 mA from my regulator.
Now, if I want connect anything to pinout I must know how much current it takes (source current) and I can't over 30 mA.
But if I connect a peripheral to pin in input configuration, I can't over 30 mA (example: Temperature sensor).
It's Right?
Now, what mean that Pins 0-7 and Pins 8-15 source 60 mA and sink 60 mA?
For example, if I put on pin1 and pin2 two peripherals in whic one take 15 mA and other take 30 mA, then the current supplies from my regulator is 15 + 30 = 45 mA?
So, you could do two pins at 30 mA == 60 mA,
or three pins at 20 mA each == 60 mA,
or six pins at 10 mA each == 60 mA,
or... I think you get the picture.
Now, the BS2 pins were not really designed for POWERING things. That "source or sink" specification is so you could use the I/O pin to drive a signal over some distance like 50 feet. "drive a signal", not "power some other device". Though it's handy for driving LED's directly (through a current limiting resistor) too.
So, typically, you'd have some regulator to provide power. You'd connect the BS2 to Vdd(+5) and Vss(ground). You'd attach your other devices to +5 and Ground. Then you'd route signals between the BS2 I/O pins and your device signal pins.
I think that I'wouldn't have problem with for four DC motors (whit Driver motor --> use only one serial pinout ), 2 SERVO (2 pinout), 1 LCD (1 serial pinout I think), some sensors (light, temperature, nearness, SFR04), 1 fox board, some LED with high resistence...right?
Obviously, I use external regulator, power supply for DC motors and servo (6 V) and 9 VOLT for BS2 and SFR04 and I think LCD.
Whato do you think?