Slashdot Mirror


Protecting Hardware on Unstable Power Sources?

psuedo_samurai asks: "Later this year, I will be returning for a visit to a small 3rd world country in Africa. I was lucky enough to travel to the country before, and the last time that I went I was able to bring four fully functional computers that I donated to a local high school, to provide a small computer network for teaching purposes. I had loaded Red Hat Linux with Open Office and a multitude of free goodies onto the systems and everything was working well. The equipment I brought back with me survived for about 12 months, but eventually fell victim to power surges, brownouts, blackouts, and so forth. On my return, I will be better prepared and am planning on setting up 8 computers, this time around. However, I am still stuck on how to best provide either a battery backup (aside from lugging UPS's along with me) with automatic shutdown and/or AVR on the cheap. Does anyone have any good references, experience, or suggestions on how to over come the challenge of running a computer network in a country where the power fluctuates wildly and multiple outages in week are not unusual occurrences?"

21 of 65 comments (clear)

  1. 419? by tepples · · Score: 5, Funny

    I will be returning for a visit to a small 3rd world country in Africa.

    I hope this doesn't have anything to do with an advance fee scam someone sent to your e-mail, does it?

  2. Inverter + charger by wowbagger · · Score: 5, Informative

    What you need is known as an off-line UPS, which is nothing more than a battery charger, a battery, and an inverter.

    The charger charges the battery, the inverter runs from the battery - if the line voltage spikes, the battery charger takes the hit. If the line voltage sags, the inverter draws power from the battery until power is restored.

    You can take along just the inverter if you can count upon getting batteries and chargers for them at your location.

    The charger MUST be able to put out more current than the inverter will draw - so for a 400W computer system your charger will need to be able to put out about 40 amps at 12VDC.

    The other advantage to this approach is the ability to run off a battery string charged by photovoltaic panels.

    Lastly, if you can find somebody with the skill, you can get a replacement power supply for the computer that will take 12VDC to make the voltages for the computer (usually 5VDC, 12VDC, and 3.3VDC) - this will eliminate the inverter (at the downside of using a non-standard power supply for the computers.)

    1. Re:Inverter + charger by Anonymous Coward · · Score: 3, Informative

      I second this opinion. A regular UPS does not protect against brown-outs and slow surges that will kill your equipment. Off-line UPS is what you want. They are expensive though.

      A real off-line UPS is more than just a regular 'ol inverter though. They are much higher quality, provide nice sine-wave AC power and are rated for continuous usage.

      Most of the the cheap inverters you buy off the shelf produce a nasty, noisy waveform which can kill your equipment also (especially if used for long periods of time). Plus they are often not rated for continuous usage day-in, day-out and will burn up after a while.

    2. Re:Inverter + charger by CyberVenom · · Score: 2, Interesting

      You might also consider wiring up a battery monitor so that your machine can do a graceful shut-down when battery power is depleted. I am not an electrician, but I think this should be possible with a couple transistors, resistors, some wire, and the MIDI/Game port. (To eny electricians, the MIDI/Game port is available on most computer sound cards and has an 8-bit ADC built in. Calibrated to 0-5VDC I believe. It is multiplexed across 4 inputs, so there is potential to monitor up to 4 analog lines.) Hack up a daemon to monitor this level and initiate a shutdown if it drops too low.
      You should also use something fairly resiliant for a filesystem. Ideally, read-only hard disk with a ramdrive. (like Knoppix), but if that isn't a possability, ReiserFS is fairly good.
      If you go with the RO+ramdisk solution, outages should be a non-issue anyway.

    3. Re:Inverter + charger by LWATCDR · · Score: 4, Informative

      Actually Hackaday had just what you want.
      http://www.hackaday.com/entry/1234000583030620/
      Okay it is not exactly but pretty close. Would make a good project.
      Back in the old days IBM mainframes used an interesting power conditioning system. It was an electric motor that turned a big flywheel that was then connected to an generator. A very effective if not efficient way to decouple you computer from the power lines. Of course the often added a diesel motor and clutch to the mix. Power drops clutch connects the engine to the flywheel, generator combo and instant UPS.

      --
      See my blog http://ilovecookes.blogspot.com/ for light hearted technical information.
    4. Re:Inverter + charger by John+Hasler · · Score: 2, Informative

      > It was an electric motor that turned a big
      > flywheel that was then connected to an
      > generator. A very effective if not efficient way
      > to decouple you computer from the power lines.

      Quite efficient, actually.

      > Of course they often added a diesel motor and
      > clutch to the mix. Power drops clutch connects
      > the engine to the flywheel, generator combo and
      > instant UPS.

      A no-break system. The Bell System used them at their microwave repeaters in the sixties. I'd love to get my hands on one.

      --
      Warning: this article may contain humor, sarcasm, parody, and perhaps even irony. Read at your own risk.
  3. Laptops? by fm6 · · Score: 4, Informative
    Unless you have deep pockets, you're stuck with off-the-shelf technology. That doesn't leave you with a lot of options, since standard computer hardware is mostly designed for situations where there is a reliable power supply. (Non-standard custom-built hardware is much more flexible -- and much more expensive.) This goes even for UPSs, which are meant to support clean shutdown, not extended replacement for regular power.

    The off-the-shelf system that doesn't need a reliable power source is an old-fashioned laptop. You can buy obsolete laptops very cheap. Many are too big and bulky by todays standards, but will fill in nicely for a desktop system when power comes and goes.

  4. Why not a UPS? by PurpleFloyd · · Score: 4, Informative
    For your requirements, it seems to me that a UPS is pretty much the only solution. However, it might not be so difficult to bring one with you, if you can obtain lead-acid batteries while you are in Africa (probably not so terrible, although I don't know how removed from civilization you will be). If weight is a concern, you might buy some small UPSes in the US that have the features you need, remove the batteries here, then ship them to Africa and buy new batteries locally; most UPSes have fairly standardized lead-acid gel cells, and it might be possible to hack in larger batteries if you can't find precisely what you need once overseas. One caveat: if you're going for weight savings, the large transformers inside UPSes are still quite heavy and might make this option less attractive. Still, it's worth investigation.

    Another idea might be to roll your own. This would involve buying a large-capacity 12V power supply capable of running from whatever voltage/frequency combination you'll have in Africa and a high-capacity inverter here in the US, shipping them to Africa, and using them to create a UPS together with car batteries purchased locally. If you have some hardware and driver experience, you could probably create an automatic shutdown system without much trouble, and might even be able to create an automated battery-maintenance system which delivers a slightly higher charge every few months to prevent sulfation (discussed in the linked article). This setup has the advantage of being a true UPS: it will provide power filtering and protection up to the point where either the battery goes dead or the battery chargers take one for the team and catch on fire. Also, it's incredibly scalable; with enough batteries, you could run a computer room for weeks without power.

    --

    That's it. I'm no longer part of Team Sanity.
  5. Solar panels by QuantumRiff · · Score: 3, Interesting
    I know this would drastically increase the cost, but you could model it after "on grid" solar homes. You throw some solar cells on the roof, tie in a few large, deep cycle batteries (you would want to get those in africa, they're heavy) and an inverter made for running a house. (like sunny boy inverters, google for them).

    During the day, the solar cells and power from outside charge the deep cycle batteries. if the power from the grid sags (brownout) the inverter starts adding power from the battery bank, or the solar arrays. (depending on time of day, not much solar power at 3am) Many of these inverters have serial ports, and tell you the status of what is going on (brownouts, battery life left, etc). You can setup a computer to poll this, and if the thresholds get too low, have that one system force the others to shut down.

    This is probably the most reliable way to setup a power system to have clean power, in the US, or in africa. Depending on how far you are from your trip, you could start hitting BP solar (or someone else, like GE, or phillips) for donations. They might jump at the chance to send you a couple of PV arrays.

    --

    What are we going to do tonight Brain?
    1. Re:Solar panels by Phreakiture · · Score: 2, Informative

      like sunny boy inverters, google for them

      The sunny boy inverters would actually be a very poor choice, because they shut down when the grid power goes. They are designed only to add your solar input to an existing AC system.

      I would, instead, suggest getting an inverter from Xantrex/Trace or from Outback Power Systems. These are also grid-tie inverters, but can support being attached to a battery system.

      A different, and perhaps better (and definitely much cheaper) solution, would be to purchase 12VDC power supplies from Mini-Box and cobining this with a 12V battery system and charger.

      --
      www.wavefront-av.com
  6. Bike and a dynamo by Dark$ide · · Score: 2, Funny

    Get a pedal cycle and a dynamo. You should be able to produce 150W+ with that for a short while (an hour or two). If you can't get a bike try a Concept 2 rowing machine - I've pulled 400W on one of those (until I reached VO2 max and fell off).

    --

    Sigs. We don't need no steenking sigs.

  7. File server and semi-thin clients by isj · · Score: 4, Insightful

    Install a file server that is protected with an UPS. Configure automatic shutdown of it.
    Put the client PCs behind a surge protector (but not on an UPS). Make them boot from the file server drives.

    That way the storage/filesystem is reasonably protected and is not smashed everytime there is a brownout. And you don't have to spend the money for a large UPS for the client PCs.

  8. ghetto UPS by TheSHAD0W · · Score: 3, Interesting

    (1) Get some really heavy duty surge suppressors.
    (2) Buy 2-3 APC UPSes, each 700VA or so.
    (3) Take the batteries out of the UPSes and sell them or discard them.
    (4) Go to Africa.
    (5) Get 2-3 car batteries.
    (6) Drill some vent holes in a large metal box. Put the car batteries inside. Wire one car battery to each UPS. Put the whole shebang in an area with good ventilation.
    (7) Plug the surge suppressors into your AC supply. Plug the UPSes into the surge suppressors. Plug the computers into the UPSes.

    1. Re:ghetto UPS by itwerx · · Score: 2, Informative

      And PLEASE don't use car batteries! You'd kill them dead in just a few full cycles! Only use deep cycle batteries.

      I lived in a third world country for some years with nothing more than a bank of old car batteries and a 12v generator. We abused the crap out of them and yes, they would die after a few years, but no sooner than would be expected. Normal lead-acid batteries are actually surprisingly resilient...

    2. Re:ghetto UPS by itwerx · · Score: 4, Informative

      Car batteries aren't normal lead-acid batteries.
      Car batteries actually are "normal" lead acid batteries. So are deep-cycle batteries. The only differences that are ever present in any type of lead acid battery is 1 - the physical structure of the plates (grid vs foil), 2 - the venting system (sealed or not) and 3 - the acid (water vs gel).
      There are other minor variations. E.g. car batteries have extra ribs of plastic which help to support the plates so that they don't crack loose when you hit a pot-hole. So-called deep-cycle batteries have extra heavy-duty bus bars between the plates to handle the power and help act as a heat-sink.

      you risk reversing a cell any time you discharge below 80%
      Cells don't risk reversal until they *completely* discharge. Even a damaged cell that discharges earlier than the others will retain its polarity as long as the other cells have any energy left in them. There's no way a lead acid cell will reverse if it still has at least 20% charge (maybe you meant to say that above?) Even then it is highly unlikely to reverse until well below that.
      Not to mention that unless the cell is physically damaged so badly that it can't be charged at all, the reversal will be undone as soon as it is charged with the correct polarity.
      To get to your point about reduction in voltage, if a cell were truly reversed and somehow stayed that way even through a charge cycle (not sure that's even possible unless you purposely disconnected it and charged it separately with a reverse bias) you would actually see a 4v reduction as it would not only be failing to contribute it's own 2v but that reversed 2v would effectively cancel out 2v worth provided by one of the other cells.
      In the case you're describing I would assume that the battery was charged (or discharged) at a higher rate than it was designed for and the plates warped from the heat causing the cell(s) to short out.

      I'd bet that the reduced capacity of your batteries just became easily noticable after a few years.
      This is actually due to sulfation. Even a sealed battery will have impurities present in both the lead and the acid compound. An unsealed battery is especially vulnerable. Sulfation occurs when the sulfuric acid reacts with the impurities and leaves deposits on the plates. Eventually enough of the surface area is covered that the cell ceases to be functional. This is also why a car battery (or any battery designed for a physically abusive environment) will have a fairly large gap between the bottom of the plates and the bottom of the reservoir. The sulfation in a car battery tends to get knocked loose and settle to the bottom where it shorts the plates out when it accumulates to a sufficient depth.

      Anything else I can help clear up about lead acid batteries? :)

    3. Re:ghetto UPS by itwerx · · Score: 3, Interesting

      A reversed cell in a battery never reaches anything near full voltage. It adds to the internal resistance of the battery (the opposite of what would happen if the cell shorted out). It happens much faster than sulfation.

      Then it's not a reversed cell. :)
      Next time you think that's what has happened, isolate the cell and test it. You'll find that the polarity is still correct, it just isn't holding much of a charge any more.
      If you're really curious you can take it apart and find out why. Having done that myself more than a time or two I can tell you that you'll find either broken/shorted plates, sulfation (see my notes above about accumulation at the bottom of the cell; this causes fairly rapid loss of functionality along the lines of what you're describing) or, last but not least, the pH is wrong in which case it is either a sealed battery whose seal has breached or it is an unsealed battery which has not been maintained.
      Trust me, I've dealt with these fuckers for years - I have first-hand experience with every possible mode of failure up to and including exploding.

    4. Re:ghetto UPS by itwerx · · Score: 2, Informative

      ...I can't trust you regarding your apparent conclusion that it's OK to use car batteries for UPS applications...
      I never said it was OK to do that.
      My original post was refuting the statement that they would get killed in just a few cycles.
      It's actually very difficult to use anything but the OEM battery packs on an off-the-shelf UPS because the UPS manufacturers try to cut costs wherever they can.
      A good general purpose charger will have an op-amp circuit that is set up to reduce power as the battery reaches a full charge. The output of the circuit is also regulated so as not to fry the circuit itself if too large a load is placed on it.
      In the case of an OEM UPS, the output from the charging circuit is very rarely regulated. If you put a larger than expected load on it you will fry it. Additionally, a UPS usually uses a simple temperature sensor instead of a proper comparator because the characteristics of the cells and UPS housing are known factors. Even if you tried to extend the sensor out to the car battery it would still be wildly inaccurate and run the risk damaging the UPS or the battery or both.

  9. Use an isolation transformer. by JonathanBrickman0000 · · Score: 2, Informative

    Spend about $75, get an AC isolation transformer -- 450 VA or 450 W minimum -- from eBay. Don't try to get one of this capacity new, you'll spend way too much. Then get an inexpensive UPS new. You'll either have to get both these items compatible with the wall-voltage of your destination (not much more difficult) or run an adaptor that can handle 500W. Once you have it all there, plug the isolation transformer into the wall, plug the UPS into the transformer, and plug the PC into the UPS. The transformer will protect both UPS and PC from spikes, and do it very well; the UPS will protect the PC from power failures.

    I have been running an isolation transformer on my home PC for years, and would not have it any other way. I used to get hit by spikes, have not been since the transformer went in. This eBay item would be perfect:

    http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&cate gory=4665&item=7504750488&rd=1

    This one is questionable. It looks right, but I would have to verify that 13 "AAC" is really 13 amps A.C.

    http://cgi.ebay.com/ws/eBayISAPI.dll?ViewItem&cate gory=4665&item=7504750488&rd=1

    --

    J.E.B.
    Joshua Corps

  10. Don't buy JUST a UPS by aaarrrgggh · · Score: 2, Interesting

    From my experience on an island in Thailand without government electricity, a UPS is hopeless. The range of voltage is only marginally suitable for driving incandescent lightbulbs. If you need to use local power (no solar option), you have limited options.

    An AVR helps, but is usually only good in the +/-15% range. A laptop is the ideal solution, with an input range of 240-100V, but that will go in time as well with enough surges. An old battery will usually still give you a couple minutes of run-time, which will at least get you through the sags.

    If you have to work with a desktop, the only solution I found that actually kept the surges away was to make a small M-G set-- couple a two motors on a common shaft with a flywheel, and connect a UPS to the output of that. All the little hits will be taken by the flywheel (as will the overvoltages), and the UPS will deal with actual outages. If you want to increase the life of the UPS batteries, put an Automatic Voltage Regulator in front of the UPS.

    As for UPS systems, an off-line UPS won't do you much good. You will need a good double-conversion system to condition incoming power.

    I don't think APC makes one of their "Delta Conversion" systems in that small of a size, but that could give you the best of both worlds; very good voltage regulation with buck/boost capability, and the best efficiency.

    Good luck... it's an uphill battle.

  11. Inverters and Chargers. by FrankSchwab · · Score: 3, Informative

    Isolate as much as possible - cheap UPS's won't do that for you.

    Here's a thought. For each computer (or, possibly, group of two or three computers), run 120/240V power into an RV or Marine battery charger (something like http://cgi.ebay.com/ebaymotors/ws/eBayISAPI.dll?Vi ewItem&rd=1&item=4538880150&category=50073 or http://cgi.ebay.com/ebaymotors/ws/eBayISAPI.dll?Vi ewItem&rd=1&item=4538380600&category=26444 ) connected to one or more car batteries. Coming off the car batteries, you hang a cheap inverter - 400 watt 12V->120V inverters (enough for a computer and monitor) are in the $30 range. Hang a voltmeter across the batteries, draw a red line at 12V or so, and teach the kids that when the needle is below the liine, you can't run the computers (deals with most issues associated with deep cycling the batteries).

    This gives you an inexpensive, reasonably isolated, double-conversion system. It might even work!

    /frank

    --
    And the worms ate into his brain.
  12. Telco equipment by Paul+Carver · · Score: 3, Informative

    I'm not sure if you're talking about equipment that has been donated to you or if you're talking about buying equipment that you are going to donate. If the later, you might consider Telco equipment designed to run on -48V DC power. It's going to be more expensive than a cheap Dell, but they're built to more demanding standards. A quick Google turned up a couple of links:

    http://www.angstrom.com/products/viper.htm
    http://www-1.ibm.com/servers/eserver/pseries/hardw are/tour/briefs/telco_server.html

    Or just a -48V power supply.

    http://www.zantech.com.au/zantech/power-supply-atx -48v-dc/

    Alternatively, you could look at products geared for automotive use. Look at what people are using for in car computers running directly off of a 12V supply. They should also be pretty robust, although I think the Telco standards are probably more demanding (though buying NEBS3 certified equipment will really cost you.)

    By running off a DC battery directly you provide a buffer against the flaky AC power distribution while saving the complexity of a UPS doing AC-DC-AC.