Shop OBEX P1 Docs P2 Docs Learn Events
need more power — Parallax Forums

need more power

softconsoftcon Posts: 217
edited 2012-09-27 05:15 in BASIC Stamp
Can someone tell me what to use to get more power to run external devices from the usb homework board?
I'm trying to get the pmb648 to talk using the emic2 board, and not having much luck.
I can either read gps values, or I can speak results, it seems both is too much for the bs2 to handle.
Anyone know how I can remedy this situation?
I'm not opposed to plugging in external power boards, but the final product needs to be able to run from batteries, as I plan to use it outside away from power outlets.
I was wondering if adding a capacitor or two would be enough to allow he pmb648 to continue receiving data, (since it doesn't need to remain in pulling state constantly), so it could pull power from the capacitor(s) to do it's draw once every 5-10 seconds, while the emic2 can continue to run from the 5v provided on the board.
Alternatively, would it work to plug the pmb648 into the vin port? The emic2 can't do this, (docs specifically warn against such behavior) but I don't see any such notes in the pmb648 docs, so wondering if that would solve the problem. Don't want to fry anything (like I did last time) so wanted to ask here first.
If the vin thing won't work, I know there's secondary power boards that can be used, but if I get one of them, would it be something simple to install/use? Remember, I don't (currently) have access to someone who can solder, so unless it can be done with jumper wires/leads of some sort, I can't use it for testing purposes.

Just for reference, this is the homework board (usb) that runs off of a 9-volt battery. I do have 2 propeller quickstart boards, but they too use 9-volt battery power, and only give 3.3 volts, which isn't going to be enough power for both of these devices together either.
Any suggestions on what to try to keep it portable would be appreciated.

Comments

  • ercoerco Posts: 20,256
    edited 2012-09-21 00:27
    Your 9V battery can't keep up. How much current are your external devices pulling, and are they both using the regulated 5V off your HW board? That 2940 regulator is rated at 1 amp total, but there's no way a 9V could deliver that for more than a few seconds.

    First, verify that your total max current draw (BS2, Emic, GPS, plus any other loads) is under an amp.

    Then try 5x AA (or bigger) cells or a 6V gel cell or a 7.4V LiPo instead of your 9V.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-09-21 02:58
    I guess the board doesn't have a barrel plug if it is like my HW board. In that case, you have to either build an adapter to plug into the 9V battery interface or you have to wire power directly to the top edge of the breadboard at Vin and ground. I have done both, but one has to be very very careful not to reverse the polarity.

    The LM2940 has reverse polarity protection, but you might have other connections that are not protected.

    I suspect it may be easiest to just share the ground and provide other regulated power to the other devices. But it is certainly nice to run the board on a wall wart at times.
  • softconsoftcon Posts: 217
    edited 2012-09-21 04:47
    I have 9-volt battery plugs I bought some time ago from Radio Shack I could use to wire in something else, but I wasn't sure if that would cause trouble for the board.
    If I hook one of the 9-volt battery connectors to the 9-volt connectors on the board, then on the wire ends, connect another battery pack (I have some 7.2V 1a battery packs with the flat square batteries that came with chargers, so they would be easy to charge). Would something like that work, or should I just hook that battery pack to the ground/vin of the hw board? Assuming I get it right, and don't blow anything up :) would that do the trick?
    It might be a bit tricky getting it positioned just right, since the battery has terminals on each side, and keeping the wires still while the battery is in place would be a bit of a task, but I'm sure I could strap it down with wire ties or something. :)
    Come to think of it, (if I can find it) I also have another 7.2 1a battery pack, but it's two batteries (looks like overgrown C cell batteries) that's about 8 inches long, and has two wires going into it, that may be easier to wire up, since it's connectors are inside a moulded plastic plug and might lend themselves to manipulation easier.
    So, anyway, suggestions, questions, gotchas, what not to do?
  • ercoerco Posts: 20,256
    edited 2012-09-21 10:17
    You're wise to ask! Sure, that 7.2V should work fine. Attaching a 9V battery connector to it is very convenient. But as Loopy said, watch your polarity when you're making this swap, since everything's reversed. The red wire from the battery connector will attach to the NEGATIVE lead of your battery, the black wire will go to battery POSITIVE lead. Double check everything with a multimeter before connecting anything.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-09-22 10:51
    I just took a 9V battery dongle and soldered it to a female barrel plug to allow wall warts and a lot of other battery packs that already have a barrel plug. Adapters are one of the few things that I have managed to work out a good system for.

    The reason I mention that polarity is important is that I found the dongle's red wire should go to minus and the black wire should go to plug as this is a 'battery replacer' and that seems to reverse the normal use as a battery connector.

    The HW board was engineered for beginners and their rather big mistakes. So reverses of polarity are protected by the LM2940 and since this is a low dropout regulator, it works fine at 7.2 volts.

    I do have one 6x AA cell pack that has the 9V battery snaps built in. That will work on the HW board directly, but it is a bit heavy and hangs over the reset button.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2012-09-22 12:01
    I've found the connectors on many 9V batteries are better than some of the cheap 9V connectors made to connect with the batteries. The connnectors are not very hard to remove from a dead 9V and then you get to see the cool tiny batteries inside the 9V cell.

    You can then solder wires to back side of the removed connector and add a barrel jack as Loopy suggests. I usually trim the plastic material that made up the top of the 9V battery to make the plug a smaller size.

    As others have warned, double check your polarity.
  • softconsoftcon Posts: 217
    edited 2012-09-24 10:24
    Well, battery #1 won't work, because it's not a 7.2, it's a 6 volt battery, but only 150ma. I did a search, and see that standard 9-volt batteries provide 300-500 ma, so this battery is too low power to suit. I now need to dig around and see if my battery pack is here (the elongated c-cell type one) it may have stayed in Alabama when we moved to Virginia, but I think RS still sells them, could go check, though I can't buy one for a week and a half or so. But, now that I think of it, this battery may work to power the gps by itself though. hmm, have to try that.
    So, that's my progress at the moment, I'll update again when/if something changes.
  • Mark_TMark_T Posts: 1,981
    edited 2012-09-24 12:55
    I think you are confusing capacity (measured in mAh) with ability to supply current (measured in mA). They are not the same at all.

    An alkaline 9V PP3 battery is likely to be rated about 500mAh, but designed for loads of 50mA or less. Try to discharge it at 500mA and it'll drop well below 9V and perform miserably.

    A NiMH or NiCd pack from a RC model car might be rated at 1000mAh but produce several amps happily...

    Typically LiPo cells often are able to delivery all their charge in 5 minutes or less without significant drop in performance - many tens of amps.

    Choose the right type of battery chemistry and the right model of battery for your application. Capacity and current requirements both need to be met.
  • vaclav_salvaclav_sal Posts: 451
    edited 2012-09-25 07:52
    After reading the thread I am not convinced that your problem is" lack of power".
    Your Homework module is powered by external source, via a regulator capable to supply 500mA maximum.
    The BS chip generally needs no more than 50mA and can drive max 20mA current thru ALL I/O pins combined.
    I am just guessing some values, but in general they should support the following argument.

    You cannot drive more I/O current than what the BS is designed for, period.

    Your on board regulator will limit max current (500ma) no matter how "big" (Ah) your battery is, and eventually thermo limit / shut down - or if abused - smoke!

    If the EXTERANL device you are controlling takes more than BS I/O current capability you need to have a suitable interface.

    The regulator input voltage should stay close to desired output voltage – 9 V is the best, anything HIGER that 9V will be dissipated into heat limiting the current and accelerating the thermo shut down of the regulator.


    Basically you need a "relay type interface " - small input current controlling large output current interface.
    The relay interface can be a plain mechanical relay or other transistor based interface.

    If the device you are interfacing with DOES NOT require more than 500 mA you can still run it using your Homework board power.
  • ajwardajward Posts: 1,130
    edited 2012-09-25 12:17
    I put together some connectors to supply circuits from a number of power sources, to augment the 1, 2 , 4, and 6 cell AA battery packs.

    IMAG0458.jpg
    1024 x 612 - 50K
  • softconsoftcon Posts: 217
    edited 2012-09-25 13:50
    Current setup.
    1. bs2 usb hw board http://www.parallax.com/Store/Microcontrollers/AllMicrocontrollers/tabid/758/CategoryID/1/List/0/SortField/0/catpageindex/4/Level/a/ProductID/781/Default.aspx
    2. Emic2 text-to-speech board http://www.parallax.com/Store/Accessories/Sound/tabid/164/CategoryID/38/List/0/SortField/0/Level/a/ProductID/105/Default.aspx
    3. gps module http://www.parallax.com/Store/Sensors/CompassGPS/tabid/173/CategoryID/48/List/0/SortField/0/Level/a/ProductID/644/Default.aspx

    I got it all to work yesterday, so apparently it was an issue with wires not being tight enough first time around.
    However, even though this setup works, it doesn't work for long (10-15 minutes tops) while using a brand-new 9-volt battery.
    Thus, the search for "more power"
    If I offload the powering of the gps device to this flat square battery I have, then the bs2/emic2 can last longer off the 9-volt battery, and the gps would also last considerably longer as well.
    I'm still in the early stages of writing code, at the moment, the gps simply feeds back the coordinates, and I speak them in raw form (37.0029,-78.0060 type of output).
    When this is done, it will allow labeling of coordinates, to allow my friend to choose a destination (home, school, bank, dollar store, ...) whereupon it will pull the coordinates for said place, compare them against current location, then indicate which direction to walk to get to the required destination.
    Obviously, 10-15 minutes is not nearly enough time to arrive, so something needs done to extend the amount of time the bs2/emic2/gps will run together.
    Thus, my inquires into how to get more power for the bs2.
    I myself will be using a similar setup, so that when I'm out and about riding bicycles, walking, taking son/daughter to boy/girl scouts, or going to the skateboard park, I'll know where I am and how to return home at all times.
    It's obviously not going to be turn-by-turn directions, since the bs2 doesn't have enough memory for me to input coordinates of all streets in town, so I can give the detailed directions required for turn-by-turn navigation, but it will be sufficient to get us where we would like to go and back again, and that is my goal.
    Radio Shack still sells the 7.2 volt battery, though I'm not sure the sales person was correct when reading off the specs, claiming 3360 ma for battery output, but nonetheless, I feel confident that with either this battery, or a combination of this flat square one, and the 9-volt used to power the bs2 itself, I can provide power long enough to accomplish the task. Using the 7.2 volt 3K+ battery might be better, since it would power everything for many hours, and it's rechargable, which would certainly make for usage considerably more hands off, having to replace only a single power source instead of two (flat square rechargable battery and 9-volt one as well).
    In any case, the devices do work as is, I just need something to provide a *lot* longer uptime for all parts.
    I'm sure one of these two approaches will work just fine, it's just a matter of securing wiring so that minimal intervention is required when changing/charging batteries. I'd rather take the batteries out of the device to charge them, removing any need to solder boards and such, so that will be my design unless something convinces me otherwise.
    If anyone has thoughts/questions/experience with this sort of thing, feel free to jump in, this is my first major project embarked on alone from design to completion, so I'm always willing to listen to those who know more about these sorts of things.
    I'm fully confident in my abilities to make it work, I just don't know enough about power requirements/sources to do this without some experimenting/breakage, and obviously, I'd like to avoid the breakage. :)
  • vaclav_salvaclav_sal Posts: 451
    edited 2012-09-25 15:30
    So your power reqirement estimate is
    max 50 mA BS2 ( actually less )
    max 200 mA voice module ( depending on usage)
    max 64 mA GPS

    Your Homework regulator will handle that and MAY
    work with 7.2V rechagable battery if it is a low drop regulator - better talk to Parallax about that for sure. They generally "recomend" fresh 9V source.

    Your friendly RS salesman need to tell you the CAPACITY and MAX current load of the battery.
    For example - in theory - 1AH (AmpereHour) battery of max load of 500 mA should last you 1 hour.

    Keep in mind that "standard" 9V alkaline battery was not designed to supply more than 100mA and it is not surprising that your setup worked for short time.
  • softconsoftcon Posts: 217
    edited 2012-09-25 17:33
    This doesn't look like the one our store has, but it's pretty close. Would this one do the trick, it seems to have a pretty high output, don't know if it would be too much.
    http://support.radioshack.com/support_electronics/doc69/69958.htm
  • vaclav_salvaclav_sal Posts: 451
    edited 2012-09-26 18:39
    softcon wrote: »
    This doesn't look like the one our store has, but it's pretty close. Would this one do the trick, it seems to have a pretty high output, don't know if it would be too much.
    http://support.radioshack.com/support_electronics/doc69/69958.htm
    7.2 V is less than 9 V, hence less power wasted by the regulator.
    I would still check with Parallax, 5V regulators require MINIMUM input.

    I would strongly recommend to use "idiot diode" ( serially connected to your supply battery – either terminal, plus preferred ) to prevent accidental reversal of you supply.
    It would further reduce the input voltage, so you really need to talk to Parallax about it.
    Any 1N400x type diode would work - 1N4001 or equivalent.

    As far as capacity - my best guess , from the supplied specification, this battery should last you over 2 hours under full voice output ( uses most power). It will work longer under casual usage.
    Keep in mind that NiCd batteries discharge voltage holds pretty steady, but goes bellow usable level rather quickly at the end. Your system may work OK for hours than suddenly go dead.
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2012-09-27 05:15
    7.2 V is okay, but I suspect that at 6.0 V, the LM2940 or LM2937 gets into some nasty high current drain in low-dropout mode. The BasicStamp does not require very many milliamps and the quiescent current of the LM2940 or LM2937 is often most of what the BasicStamp requires.

    I am not sure an 'idiot diode' is worthwhile as the LM2940 or LM2937 already has reverse polarity correction and a 1n400x usually drops 1.1 volts. That has to be used carefully or you are back into the low-dropout mode that drains a lot of extra power.

    When all else fails, check the regulator chip for its correct identity and read the PDF very carefully. It think it is the LM2937, but have provided both PDFs.

    http://www.cedt.iisc.ernet.in/tfcindia2011/Datasheet/LM2940.pdf

    http://www.ti.com/lit/ds/snvs100d/snvs100d.pdf

    At first, I was in love with low-dropout regulators as they seemed to allow you to use lower voltage batteries. But then I learned to read the curves on the PDFs and see that to do so, they waste quite a bit of extra power below a certain voltage. There is not much to be gained over a convention LM7805 that requires 7V for a regulated 5V.

    What they really do is they allow you to squeeze an extra bit of power out of a near dead battery. One must stay above the low-dropout region to get really efficient use. And that is why adding a protective diode may just make matters worse.

    Quescent current of the regulator in the low-dropout region may be as high as 60ma, where as it is normally at 15ma with higher voltages (about 7 volts or above for 5 volt regulator).

    A 6V 150ma battery is just going to get murdered by the regulator, only 3-5 hours use at best.
Sign In or Register to comment.