Shop OBEX P1 Docs P2 Docs Learn Events
Power supply and a better solution for protecting your Stamp — Parallax Forums

Power supply and a better solution for protecting your Stamp

LoopyBytelooseLoopyByteloose Posts: 12,537
edited 2005-01-04 02:40 in BASIC Stamp
The BasicStamp is set up with a small·high efficentcy·regulator to be more efficent when used with batteries, but there are some trade offs.

These on-board·regulators have a narrower range of useful voltage (from 6 to 9 volts).

You may want to occasionally use a wall wart to save time and avoid recharging batteries, but the wall warts seem to be a risky solution as a 9 volt wall wart often puts out 12 or more volts and even a 6 volt wall wart may go over the 9 volts.

THERE IS A SOLUTION - Pre-regulation with a 7809 voltage regulator [noparse][[/noparse]rated at 1amp and input up to +35volts DC]

I built a little board which uses a 7809 to 'pre-regulate' the wall wart's output before it goes to the BasicStamp.· Though 30% or more of the power is wasted as heat, the unit has a greater operating range than the 'high efficency, low power regulators' and brings high end up to +35 volts DC!!!!

So you can mix 6 volt, 9volt, 12 volt, 15volt, 18volt, etc wall warts from out of your closet and still have a reliable and safe +9 volts delivered to your BasicStamp.

Of course, if you use high voltages, the device creates more heat and requires a better heat sink.· But, this is a little price to pay for avoiding the mistake of trusting the very questionable lable on the wall wart and having your project [noparse][[/noparse]including your BasicStamp] burn up.

In my case, I also put 50volt - 1000 mFd capacitor on the input side [noparse][[/noparse]because I happened to have one] and followed the spec of putting a 1mFd capacitor on the output.· IN this way, I have greater than needed ripple protection and hopefully some additional filtering from power line spikes

The whole unit took about an hour to build was much cheaper than buying a special pre-built regulated supply.· I am not sure if it will work well with a 6 volt wall wart [noparse][[/noparse]I don't have any], but I am sure that it won't hurt to try.


▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
G. Herzog in Taiwan

Comments

  • ForrestForrest Posts: 1,341
    edited 2004-12-26 15:10
    I don't think it's necessary to use a 'preregulator' because the LM2940 5 volt regulator used on the serial and USB BOE can handle up to 26 volts and regulate it down to 5 V DC according to the data sheet.
  • K de JongK de Jong Posts: 154
    edited 2004-12-26 17:32
    Well,

    I have a similar problem as Herzog describes right now.

    I'm experimenting with the bluetooth EB500 units from Parallax. They take the power from Vin, before the regulator, and my 9 Volt wall wart is delivering 15 Volt and more at low loads. The maximum Voltage rating for the EB500 is 12 Volt.

    There you are, I don't know at which voltage the EB500 will be fried. But I know it is too expensive equipment to try wink.gif.

    My solution in this particular case is to put a shunt resistor over the power supply to lower its voltage.

    Regards,

    Klaus
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2004-12-27 11:12
    It really is about getting a base line standard in a mix and match world.

    The shunt resistor requires you do the math for each specific case and in some cases you must have an inventory of higher wattage resistors.

    I have many componets that are not regulated that will take 9 volts (like the 555 chip and DC motors), some components with their own regulated motherboards, and some [noparse][[/noparse]such as the BasicStamp] with an attached regulator. At times, it is hard to recall which specification belongs to which. And it certainly is not easy to read the chip lables [noparse][[/noparse]as they are getting smaller and smaller] or to spend time to Goggle a fact sheet.

    Additionally, some people love to insert a diode for polarity protection, but seem to forget the 0.7 voltage drop that all diodes cause [noparse][[/noparse]so the regulator may say it needs only 6 volts, but you must add at least another 0.7volts to the input to overcome the diode]

    You could add a series of diodes to the wall wart instead of a shunt resistor, but one would have to be built for each wall warts output.

    The BSP24/40 Demo Board says '6-9 volts' input. Should I just ignore the lable and try 18 volts? Are all the voltage regulators on all the Stamps the same?
    At least this way, I have some idea of what might need the 9volt limit and what does not. And, I don't have to keep building custom power supplies as the projects evolve. I can provide a temporary, safe solution until I have finished benching the project and know all its power requirements. If I need another pre-regulator, I have a standard design.

    And, the secondary purpose is allows me to conviently grab assorted freebie, old wall warts [noparse][[/noparse]mine range from 300ma to 2amps output and from 7.5volts to 18volts] and not keep buying and recharging batteries as my projects increase in number.

    This becomes a kind of modular standard that allows one to quickly design, build, and test. I suppose that I will need to buy a 3amp 7809 or built a more complex regulator to really complete the kit.

    Incidentally, it looks as though the 7809 requires 11 to 11.5volts minimal input. Neither a 7.5volt or 6volt wall wart reaches that high (I think the 7.5volt is reading about 10.1).

    And, the 1000uF capicitor is quite useful brings the low side of the input ripple up to a higher level than say a 50uF. Apparently, it the bottom of the input ripple is below the minimum input of the regulator, it does not functon properly.

    Having worked with BasicStamps for several months now, I find that I need to have 2, 3, or more Stamps operational on different boards to pull everything together.

    Let say one is for the final robot itself, another is to test and comprehen new devices to be added on and their related code (without having to disrupt my robot), and the third one is for making sure I have not 'fried' one of my Stamps (this one does 'Hello world' and blinks LEDs on all pins). I discovered that those 9 volt Nicads [noparse][[/noparse]which I thought I could regularly use to safe power sources] only put ot 160 to 200 maH, so they have been interrupting work in progress and going back into the charger daily.

    AND FINALLY, if I do take a destructive voltage spike [noparse][[/noparse]we have a lot of tropic lightning here] through the 120VAC, it has to work through the 9 volt pre-regulator before it can get to more expensive components.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    G. Herzog in Taiwan
  • GadgetmanGadgetman Posts: 2,436
    edited 2004-12-27 14:01
    After reading this, I have one small question...

    Is your wall-wart a 'Regulated'/'stabilized' one?
    (These have internal regulators, not just a rectifier and capacitors...)

    If not, I suggest that you just bin it and buy a good one instead...
  • allanlane5allanlane5 Posts: 3,815
    edited 2004-12-27 14:30
    Gadgetman:

    Most wall-warts used with the BOE and stamp applications are 'unregulated', (in other words, NOT 'Regulated'). This has not caused problems for many-many BS2 users. A typical unregulated supply costs $7.00, and a regulated one can cost $25.00 or more. The on-BOE regulator is a 7805, which has no problems with using an un-regulated wall-wart.

    Now, it sounds like G. Herzog in Taiwan has worse power-main problems than most U.S. BOE users, so perhaps his 'pre-regulator' approach makes sense in his application. It seems overkill to me -- I would have thought a single 7805 would have sufficed -- but it should certainly work.

    Also, he's choosing to use the on-BS2 regulator to power the BS2 from Vin -- which implies to me he has some other need for a clean 9-volts. Or maybe he just doesn't know yet that you can power the BS2 from a 7805 regulated 5 volts applied to VDD, and bypass the Vin and on-BS2 regulator completely.
  • Jim McCorisonJim McCorison Posts: 359
    edited 2004-12-27 18:53
    For some of us in "non standard" living environments, Herzog's solution will be pretty handy. We live aboard a boat where we have plenty of AC when at a marina and plugged in, but limited when away. The "12vdc" system on a boat ranges from 11.9 with the house batteries 60% depleted, to 14.6 with bulk charging going on. Since what I'm trying to develop is targetted for boats in the first place, it certainly makes sense for me to just build the pre-reg and run everything of the DC system all the time. Or have I missed something in this?

    Cheers,
    Jim
  • Alan BradfordAlan Bradford Posts: 172
    edited 2004-12-28 00:19
    Hi,

    I use TI switching regulators on all my stamp projects for years. The input is 8 to 40 volts and as it is a switching regulator ther eis no waste heat generated. Use it just like a 7805 3 terminal device. I use them in niosy industrial CNC machines running off a 24 volt DC supply that is lots of times not even regulated. It shared this with big inductive solenods, mortors and drive contacors. I have not lost a Stamp yet to a Power problem.
    It is $12 from Digikey (Part# PT5101A-ND), but if you really love your stamp, why not show it!!!
    I put a 300 uf cap on the input and output to help out.
    Make sure the voltage rating is two timed the DC input voltage.
    The regulator is rated 1 Amp at 5 Volts. You can get Horizantal or vertical mounting. See the Digikey catalog. (And they are available elsewhere, its just I use DK about 99%·of the time.)

    A simple solution and cheap insurance.

    Alan Bradford
    Plasma Technologies
  • NewzedNewzed Posts: 2,503
    edited 2004-12-28 00:23
    I have a bunch of the PT5101 regulators and they are great.· I'm going to try to replace the 7805 with one on one of my BOEs if it will fit. Absolutely no heat even with 24VDC applied.





    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Sid Weaver
    Do you have a Stamp Tester?

    http://hometown.aol.com/newzed/index.html
    ·
  • GadgetmanGadgetman Posts: 2,436
    edited 2004-12-28 12:34
    $25 for a decent regulated PSU?

    You must be kidding!

    I must admit to having paid $60 for one, ONCE, but that was for a SWITCHED, regulated PSU capable of delivering up to 70W power from 15V to 24V, with an unregulated 12V(car system) input.

    Like the TI part, though. Particularly as I plan to build some electronics stuff for my car...
    Maybe I'll fix up a few PSU's for a friend of mine, too...
    ( http://home.no.net/naomij/index.html Nice boat, he's somewhere on the Kanari isles at the moment )
  • allanlane5allanlane5 Posts: 3,815
    edited 2004-12-28 14:55
    No, I believe that's the Radio Shack price (which is high-ball, I know).

    Where do YOU buy your 'decent, regulated wall-warts'?
  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2004-12-29 15:17
    We have the 'decent fully requlated' wall warts in Taiwan, but they are a bit pricey.· Usually they have very clear labling [noparse][[/noparse]to justify the extra price] that they are for digital electronics.

    There were a lot of reasons to go with the 'pre-regulator' idea.· Many of the ones that you all mentioned.

    But additionally, I am still trying to decide between various more advanced regulators in future battery powered projects and I did notice that some· regulators and boards only have a range of 6-9 volts.· Cost is a big factor and this was very cheap AC source that will transfer over to a 6-9volt DC battery.· $12 regulators for hobby projects are a bit steep, but for continual AC service is seems good.

    I am happy to see so much dialogue as it seems to be a valid concept for bench work with a lot of pros and cons for field use as well.· It was inspired by a lot of email on the old Yahoo web site in which people discovered the hard way that the wall wart voltage rating most often is much lower than the actual output.

    I am also happy to know that there are some very good products available for hostile, noisy environments.·

    Has anyone worked in along side an·arc welder?· Or, is that beyond feasible?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    G. Herzog in Taiwan

    Post Edited (Kramer) : 12/29/2004 3:34:54 PM GMT
  • allanlane5allanlane5 Posts: 3,815
    edited 2004-12-29 15:41
    On the "I can't believe that works" departement, there's one individual who uses this stuff to control laser cutters. With sufficient shielding and power filtering (capacitors) you can deal with almost anything short of an EMP -- and even that can be worked around, I believe.

    And yes, using a 7809 for a bench-top replacement for a 9-volt battery is really very clever.
  • Kenny GardnerKenny Gardner Posts: 169
    edited 2005-01-04 02:22
    Sorry for the late reply, I'm traveling down in Mexico and getting Internet Access is difficult in some places.
    Where do YOU buy your 'decent, regulated wall-warts'?

    All Electronics and Jameco both have some excellent (and inexpensive) regulated supplies. I bought 10 12v wall warts from All Electronics for $6.00 each:
    http://www.allelectronics.com/cgi-bin/category.cgi?category=480&item=PS-1213&type=store
    Jameco has some good 3A 5V regulated wall warts for about $12.00.
    Kenny


    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    --

    Kenny Gardner
    GAP Development Company
    http://www.gapdev.com/
    ·
  • SPENCESPENCE Posts: 204
    edited 2005-01-04 02:40
    Hosfelt electronics in ohio is another good source for parts including wall warts.

    72
    spence
    k4kep
Sign In or Register to comment.