Notes on the Troubleshooting and Repair of
Small Switchmode Power Supplies

Version 2.85 (20-Nov-07)

Copyright © 1994-2008
Samuel M. Goldwasser
--- All Rights Reserved ---

For contact info, please see the
Sci.Electronics.Repair FAQ Email Links Page.


Reproduction of this document in whole or in part is permitted if both of the following conditions are satisfied:
  1. This notice is included in its entirety at the beginning.
  2. There is no charge except to cover the costs of copying.


Table of Contents



  • Back to SMPS Repair FAQ Table of Contents.

    Preface

    Author and Copyright

    Author: Samuel M. Goldwasser

    For contact info, please see the Sci.Electronics.Repair FAQ Email Links Page.

    Copyright © 1994-2008
    All Rights Reserved

    Reproduction of this document in whole or in part is permitted if both of the following conditions are satisfied:

    1. This notice is included in its entirety at the beginning.
    2. There is no charge except to cover the costs of copying.

    DISCLAIMER

    Careless troubleshooting of a line powered switchmode power supply can result in severe electrical shock or electrocution. This is potentially more lethal than the high voltage section of a TV or monitor due to the high current availability. Even the charged on the main filter capacitors with the unit unplugged can kill.

    We will not be responsible for damage to equipment, your ego, county wide power outages, spontaneously generated mini (or larger) black holes, planetary disruptions, or personal injury or worse that may result from the use of this material.



  • Back to SMPS Repair FAQ Table of Contents.

    Introduction

    The switchmode power supply (SMPS)

    Until the 1970s or so, most consumer electronic equipment used a basic power transformer/rectifier/filter capacitor type of power supply for converting the AC line into the various voltages needed by internal circuitry. Even regulation was present only where absolutely needed - the high voltage supplies of color TV sets, for example. Remember those old TVs with boat anchor type power transformers? (Of course, if you recall those, you also recall the fond days of vacuum tube sets and the corner drugstore with a public tube tester!)

    Switchmode supplies had been commonplace in military and avionic equipment long before they found their way into consumer electronics. I have some DC-DC and DC-AC converter modules from a Minuteman I missile from around 1962 as one example. I suppose that the cost of the switching transistors wasn't as big a deal with a $100 million missile as a $300 TV (even in 1960s dollars).

    Nowadays, all TVs, monitors, PCs; most laptop and camcorder power packs; many printers, fax machines, and VCRs; and even certain audio equipment like portable CD players use this technology to reduce cost, weight, and size.

    Switchmode power supply repair

    Unlike PC system boards where any disasters are likely to only affect your pocketbook, power supplies, especially line connected switchmode power supplies (SMPSs) can be dangerous. Read, understand, and follow the set of safety guidelines provided later in this document whenever working on line connected power supplies as well as TVs, monitors, or other similar high voltage equipment.

    Having said that, repairing a power supply yourself may in fact be the only economical option. It is very common for service centers to simply replace the entire power supply board or module even if the problem is a 25 cent capacitor. It may simply not pay for them to take the bench time to diagnose down to the component level. Many problems with switchmode power supplies are easy to find and easy and inexpensive to fix. Not all, but surprisingly many.

    This document will provide you with the knowledge to deal with a large percentage of the problems you are likely to encounter with the common small switchmode power supplies found in many types of consumer electronic equipment including PCs, printers, TVs, computer monitors, and laptop or camcorder power packs. It will enable you to diagnose problems and in many cases, correct them as well. With minor exceptions, specific manufacturers and models will not be covered as there are so many variations that such a treatment would require a huge and very detailed text. Rather, the most common problems will be addressed and enough basic principles of operation will be provided to enable you to narrow the problem down and likely determine a course of action for repair. In many cases, you will be able to do what is required for a fraction of the cost that would be charged by a repair center - assuming they would even bother.

    Should you still not be able to find a solution, you will have learned a great deal and be able to ask appropriate questions and supply relevant information if you decide to post to sci.electronics.repair. It will also be easier to do further research using a repair text such as the ones listed at the end of this document. In any case, you will have the satisfaction of knowing you did as much as you could before taking it in for professional repair. With your new-found knowledge, you will have the upper hand and will not easily be snowed by a dishonest or incompetent technician.

    Most Common Problems

    The following probably account for 95% or more of the common SMPS ailments:

    In all cases, bad solder connections are a possibility as well since there are usually large components in these supplies and soldering to their pins may not always be perfect. An excessive load can also result in most of these symptoms or may be the original cause of the failure. And don't overlook the trivial: a line voltage select switch in the wrong position or between positions (possibly by accident when moving the supply, particularly with PCs), or damaged.

    Repair or replace

    Some manufacturers have inexpensive flat rate service policies for power supplies. If you are not inclined or not interested in doing the diagnosis and repair yourself, it may be worthwhile to look into these. In some cases, $25 will get you a replacement supply regardless of original condition. However, this is probably the exception and replacements could run more than the total original cost of the equipment - especially as in the case of most TVs and many computer monitors, where the power supply is built onto the main circuit board.

    Nothing really degrades in a switchmode power supply except possibly the electrolytic capacitors (unless a catastrophic failure resulted in a total meltdown) and these can usually be replaced for a total cost of a few dollars. Therefore, it usually makes sense to repair a faulty supply assuming it can be done reasonably quickly (depending on how much you value your time and the down time of the equipment) and, of course, assuming that the equipment it powers is worth the effort. Most replacement parts are readily available and kits containing common service components are also available for many popular power supplies (such as those found in some terminals, MacIntosh and other Apple computers, various brands of video monitors, and some TVs and VCRs).

    Where an exact replacement power supply is no longer available or excessively expensive, it may be possible to simply replace the guts if space allows and the mounting arrangement is compatible. For example, for an older full size PC tower, the original power supply may be in a non-standard box but the circuit board itself may use a standard hole configuration such that an inexpensive replacement may be installed in its place.

    Alternatively, many surplus electronics distributors have a wide selection of power supplies of all shapes, sizes, output voltages, and current capacities. One of these may make a suitable replacement for your custom supply with a lot less hassle than attempting to repair your undocumented original. It will likely be much newer as well with no end-of-life issues like dried up electrolytic capacitors to deal worry about. Of course, you must know the voltage and current maximum current requirements of each of the outputs in order to make a selection.

    For the specific case of SMPSs for standard computers (PC, Macs, workstations, servers), it often doesn't make sense to spend much time or money on repair. The cost of replacement of power supplies for PCs in particular is so low, that just buying a new power supply may be the best course of action. Furthermore, the risk of a faulty repair causing expensive or fatal damage to the mainboard and peripherals including total loss of all data stored on disk, makes repair a risky endeavor unless thorough testing can be performed before installation. However, it won't hurt to check for obvious problems like bad connections. Put the dead one aside and considering trying to repair it if there isn't anything better to do. Realistically, this will be never. :)

    Related Information

    See the manuals on "Failure Diagnosis and Repair of TVs" and "Failure Diagnosis and Repair of Computer and Video Monitors" for problems specific to that type of equipment. For computer power supplies and other general info, also see: "PC Switchmode Power Supplies". These are all available at this site under the Repair Menu.

    Lazar's SMPS Design Corner has many links to switchmode power supply information and suppliers.



  • Back to SMPS Repair FAQ Table of Contents.

    Switchmode Power Supplies

    Power Supply Fundamentals

    A typical line connected power supply must perform the following functions:

    Linear power supplies (LPSs)

    A typical linear power supply of the type found in most audio equipment includes a line power transformer which converts the 115/230 VAC 50/60 Hz to other (usually lower) voltages (now that most equipment has done away with vacuum tubes except for CRTs, more on that later). The power transformer also provides the isolation between the load and the line. The outputs are rectified by a diode bridge or other solid state configuration. Filtering is accomplished with electrolytic capacitors and sometimes inductors or resistors arranged as a low pass filter C-L-C (pi) or C-R-C or other configuration.

    Where regulation is important - that is, it is desirable for the output voltage to be relatively independent of line or load variations, a regulator stage is added. This may take the form of a Zener diode if the current requirements are modest, discrete transistor circuit, or an integrated 3 terminal regulator like an LM317 (variable), 7805 (+5), or 7912 (-12). There are many more as well as linear regulators for higher voltages such as +115 VDC or +125 VDC for TV power supplies and multiple output (e.g., +5.1 VDC, +12 VDC) hybrid regulators for VCRs.

    The regulator circuit essentially compares the output (possibly only one if there are multiple outputs in the same package) with a reference and adjusts the current flow to make the output(s) as nearly equal to the desired voltage as possible. However, a significant amount of power may be lost in the regulator especially under high line voltage/high load conditions. Therefore, the efficiency of linear power supplies is usually quite low - under 50% overall is typical.

    Notable characteristics of LPSs are excellent regulation and low output ripple and noise.

    What is a switchmode power supply?

    Also called switching power supplies and sometimes chopper controlled power supplies, SMPSs use high frequency (relative to 50/60 Hz) switching devices such as Bipolar Junction Transistors (BJTs), MOSFETs, Insulated Gate Bipolar Transistors (IGBTs), or Thyristors (SCRs or triacs) to take directly rectified line voltage and convert it to a pulsed waveform.

    Most small SMPSs use BJTs or MOSFETs. IGBTs may be found in large systems and SCRs or triacs are used where their advantages (latching in the on state and high power capability) outweigh the increased complexity of the circuitry to assure that they turn off properly (since except for special Gate Turn Off (GTO) thyristors, the gate input is pretty much ignored once the device is triggered and the current must go to zero to reset it to the off state.)

    The input to the switches is usually either 150-160 VDC after rectification of 115 VAC, or 300-320 VDC after doubling of 115 VAC or rectification of 220-240 VAC. Up to this point, there is no line isolation as there is no line connected (large, bulky, heavy) power transformer.

    A relatively small high frequency transformer converts the pulsed waveform into one or more output voltages which are then rectified and filtered using electrolytic capacitors and small inductors in a 'pi' configuration C-L-C, or for outputs that are less critical, just a capacitor.

    This high frequency transformer provides the isolation barrier and the conversion to generate the multiple voltages often provided by a SMPS.

    Feedback is accomplished across the isolation barrier by either a small pulse transformer or opto-isolator. The feedback controls the pulse width or pulse frequency of the switching devices to maintain the output constant. Since the feedback is usually only from the "primary" output, regulation of the other outputs, if any, is usually worse than for the primary output. Also, because of the nature of the switching designs, the regulation even of the primary output is usually not nearly as good both statically and dynamically as a decent linear supply.

    DC-DC converters are switchmode power supplies without the line input rectification and filtering. They are commonly found in battery operated equipment like CD players and laptop computers. They have similar advantages to SMPSs in being compact, light weight, and highly efficient.

    Description of typical flyback type SMPS

    Probably the most common topology for small switchers is the flyback circuit shown below and in Block Diagram of Basic Flyback Switchmode Power Supply.
    
               CR1                             CR2        L :::::
     H o-------|>|---+----+---------+ T1 +-----|>|------+---^^^^^---+---+----o V+
              line   |    |          )||(     Main    +_|_        +_|_  |     Main
              rect.  |    /          )||(    output  C ___ LC Pi C ___  |    Output
                     |    \ R1       )||(     rect.   - |  filter - |   |
      AC       HV  +_|_   /       +-+    +--------------+-----------+---|----o V-
     Line    filter ___   \       |                                     |
      in       cap - |    |     |/       +-------+   +-----------+   +-----+
                     |    +-----+--------|  PWM  |<--| Isolation |<--| REF |
                     |       Q1 |\       +-------+   +-----------+   +-----+
                     |            | 
     N o-------------+------------+
    
    
    The input to the supply is the AC line which may have RFI and surge protection (not shown). There may be several inductors, coupled inductors, and capacitors to filter line noise and spikes as well as to minimize the transmission of switching generated radio frequency interference back into the power line. There may be MOV type of surge suppressors across the three input leads (H, N, G). A line fuse is usually present as well to prevent a meltdown in case of a catastrophic failure. It rarely can prevent damage to the supply in the event of an overload, however.

    Line rectification is usually via a voltage doubler or diode bridge. One common circuit uses a bridge rectifier as a doubler or normal bridge by changing one jumper. The voltage across the switching transistor is usually around 160-320 V. Some universal supplies are designed to accept a wide range of input voltages - 90-240 VAC (possibly up to 400 Hz or more) or DC - and will automatically work just about anywhere in the world as long as a suitable plug adapter can be found.

    When Q1 turns on, current increases linearly in T1 based on the voltage applied and the leakage inductance of T1's primary winding. Little power is transferred to the secondary during this phase of the cycle. When Q1 turns off, the field collapses and this transfers power to the output. The longer Q1 is on, the more energy is stored (until saturation at which point it blows up). Thus, controlling the pulse width of the Q1 on-time determines the amount of power available from the output.

    The output rectifier, CR2, must be a high efficiency, high frequency unit - a 1N400X will not work. The pi filter on the output smooths the pulses provided by CR2. Sometimes, a full wave configuration is used with a center tapped transformer secondary.

    Note that the transformer, T1, is a special type which includes an air gap in its core (among other things) to provide the inductive characteristics needed for operation in flyback mode.

    Multiple output windings on T1 provide for up to a half dozen or more separate (and possibly isolated as well) positive or negative voltages but as noted, only one of these is usually used for regulation.

    A reference circuit monitors the main output and controls the duty cycle of the switching pulses to maintain a constant output voltage. (Secondary outputs are not shown in the above schematic.)

    R1 is the startup resistor (some startup circuits are more sophisticated) and provides the initial current to the switchmode transistor base. In the old days, SMPS controllers were designed with discrete components. Assuring stable operation is a challenge with any SMPS but particularly with the flyback topology where leaving the drive on for too long will result in transformer core saturation and instant smoke. Nowadays, an IC PWM controller chip is almost always used. The block diagram of a one very popular PWM controller IC is shown below.

    Many small SMPSs use opto-isolators for the feedback. An opto-isolator is simply an LED and a photodiode in a single package. As its name implies, an opto-isolator provides the isolation barrier (between the low voltage secondary outputs and the line connected primary) for the feedback circuit. Typically, a reference circuit on the output side senses the primary output voltage and turns on the LED of the opto-isolator when the output voltage exceeds the desired value. The photodiode detects the light from the LED and causes the pulse width of the switching waveform to be reduced enough to provide just the right amount of output power to maintain the output voltage constant. This circuit may be as simple as putting the photodiode across the base drive to the BJT switch thus cutting it off when the output voltage exceeds the desired value. The reference is often a TL431 or similar shunt regulator chip monitoring a voltage divided version of the primary output. When the shunt regulator kicks in, the opto-isolator LED turns on reducing the switchmode transistor drive. There may be an adjustment for the output voltage.

    Other designs use small pulse transformers to provide isolated feedback.

    Where additional regulation is needed, small linear regulators may be included following the output(s).

    There are many other topologies for switching power supplies. However, the basic principles are similar but the detail differ depending on application. The flyback topology described above is one of the most common for small multi-output supplies. However, you may find other types of circuits in TVs and monitors. Some are downright strange (to be polite). I sometimes wonder if engineers are given bonuses based on the uniqueness and difficulty level of understanding their designs!

    Advantages of SMPSs compared to LPSs

    The benefits provided by implementing switch mode operation are with respect to size, weight, and efficiency.

    Since the advent of the laptop computer, cellular phone, and other portable devices, the importance of optimizing power utilization has increased dramatically. There are now many ICs for controlling and implementing SMPSs with relatively few external components. Maxim, Linear Technology, and Unitrode (now part of Texas Instruments) are just a few of the major manufacturers of controller ICs.

    Where are SMPSs used?

    Switch mode power supplies are commonly used in computer and other digital systems as well as consumer electronics - particularly TVs and newer VCRs though audio equipment will tend to use linear power supplies due to noise considerations. You will find SMPSs in:

    In additional, you will find DC-DC converters which are SMPSs without the AC line connection, internally in an increasing number of consumer and industrial applications including things like portable CD players.

    The up side is that they are usually quite reliable, efficient, and cool running.

    The down side is that when a failure occurs, it may take out many parts in the supply, though not usually the equipment being powered unless the feedback circuitry screws up and there is no overvoltage protection.



  • Back to SMPS Repair FAQ Table of Contents.

    Switchmode Power Supply Troubleshooting

    SAFETY

    The primary danger to you is from the input side of the supply which is directly connected to the AC line and will have large electrolytic capacitors with 320 V or greater DC when powered (often, even if the supply does not work correctly) and for some time after being unplugged (especially if the power supply is not working correctly but does not blow fuses).

    WARNING: The filter capacitors used in many switchmode power supplies can store an amount of energy that can kill - always discharge and confirm this before touching anything.

    There is also risk of instantly destroying expensive parts of the supply (and any attached equipment as well) like the switchmode power transistor if your probe should slip and short something either directly or by killing the feedback circuit.

    These guidelines are to protect you from potentially deadly electrical shock hazards as well as the equipment from accidental damage.

    Note that the danger to you is not only in your body providing a conducting path, particularly through your heart. Any involuntary muscle contractions caused by a shock, while perhaps harmless in themselves, may cause collateral damage - there are many sharp edges inside this type of equipment as well as other electrically live parts you may contact accidentally.

    The purpose of this set of guidelines is not to frighten you but rather to make you aware of the appropriate precautions. Repair of TVs, monitors, microwave ovens, and other consumer and industrial equipment can be both rewarding and economical. Just be sure that it is also safe!

    Tips on SMPS troubleshooting

    The diagnosis of problems in switchmode power supplies is sometimes made complicated due the interdependence of components that must function properly for any portion of the power supply to begin to work. Depending on design, SMPS may or may not be protected from overload conditions and may fail catastrophically under a heavy load even when supposedly short circuit proof. There is particular stress on the switching devices (they are often 800 V transistors) which can lead to early or unexpected failure. Also, SMPS may fail upon restoration of power after a blackout if there is any kind of power spike since turn-on is a very stressful period - some designs take this into account and limit turn on surge.

    However, the cause of many problems are immediately obvious and have simple fixes - the blown chopper transistor or dried up main filter capacitor. Don't assume your problem is complex and convoluted. Most are not. You should not avoid attempting a repair just because there is a slight chance it will be more challenging!

    A low power (e.g., 25 W) fine tip soldering iron and fine rosin core solder will be needed if you should need to disconnect any soldered wires (on purpose or by accident) or replace soldered components. A higher power iron or small soldering gun will be needed for dealing with larger components. Never use acid core solder or the type used for sweating copper pipes!

    CAUTION: You can easily turn a simple repair (e.g., bad solder connections) into an expensive mess if you use inappropriate soldering equipment and/or lack the soldering skills to go along with it. If in doubt, find someone else to do the soldering or at least practice, practice, practice, soldering and desoldering on a junk circuit board first! See the document: Troubleshooting and Repair of Consumer Electronic Equipment for additional info on soldering and rework techniques.

    Test equipment

    The most valuable piece of test equipment (in addition to your senses) will be a DMM or VOM. These alone will suffice for most diagnosis of faulty components (like shorted semiconductors or open fusable resistors).

    CAUTION: If the SMPS (or any other piece of equipment) is capable of producing voltages beyond 1,000 V (or the max range on your meter), make sure you use a proper high voltage probe or high voltage meter - fault conditions could easily result in voltages in the system that are way beyond those that are expected, even if run at reduced input voltage and/or with a series current limiter.

    In designs using controller ICs, an oscilloscope comes in handy when there are startup or overcurrent/voltage shutdown or cycling problems. Since everything runs at a relatively low frequency, almost any scope will do.

    Incredibly handy widgets

    These are the little gadgets and homemade testers that are useful for many repair situations. Here are just a few of the most basic:

    Safe discharging of capacitors in switchmode power supplies

    A working SMPS may discharge its capacitors fairly quickly when it is shut off but DO NOT count on this. The main filter capacitors may have bleeder resistors to drain their charge relatively quickly - but resistors can fail and the term 'quickly' may be relative to the age of the universe. Don't depend on them.

    The technique I recommend is to use a high wattage resistor of about 5 to 50 ohms/V of the working voltage of the capacitor. This isn't critical - a bit more or less will be fine but will affect the time it takes to fully discharge the capacitor. The use of a current limiting resistor will prevent the arc-welding associated with screwdriver discharge but will have a short enough time constant so that the capacitor will drop to a low voltage in at most a few seconds (dependent of course on the RC time constant and its original voltage).

    Then check with a voltmeter to be double sure. Better yet, monitor while discharging.

    Obviously, make sure that you are well insulated!

    For the power supply filter capacitors which might be 400 uF at 200 V, a 2 K ohm 10 W resistor would be suitable. RC=.8 second. 5RC=4 seconds. A lower wattage resistor (compared to that calculated from V^^2 / R) can be used since the total energy stored in the capacitor is not that great (but still potentially lethal).

    The discharge tool and circuit described in the next two sections can be used to provide a visual indication of polarity and charge for TV, monitor, SMPS, power supply filter capacitors and small electronic flash energy storage capacitors, and microwave oven high voltage capacitors.

    Reasons to use a resistor and not a screwdriver to discharge capacitors:

    Capacitor discharge tool

    A suitable discharge tool for each of these applications can be made as quite easily. The capacitor discharge indicator circuit described below can be built into this tool to provide a visual display of polarity and charge (not really needed for CRTs as the discharge time constant is virtually instantaneous even with a multi-M ohm resistor.

    This discharge tool will keep you safely clear of the danger area.

    Again, always double check with a reliable voltmeter or by shorting with an insulated screwdriver!

    Capacitor discharge indicator circuit

    Here is a suggested circuit which will discharge the main filter capacitors in switchmode power supplies, TVs, and monitors. This circuit can be built into the discharge tool described above.

    A visual indication of charge and polarity is provided from maximum input down to a few volts.

    The total discharge time is approximately 1 second per 100 uF of capacitance (5RC with R = 2 K ohms).

    Safe capability of this circuit with values shown is about 500 V and 1000 uF maximum. Adjust the component values for your particular application.

    
    (Probe)
    <-------+
     In 1   |
            /
            \    2 K, 25 W     Unmarked diodes are 1N400X (where X is 1-7)
            /                   or other general purpose silicon rectifiers.
            \  
            |
            +-------+--------+
          __|__   __|__      |
          _\_/_   _/_\_      /
            |       |        \ 100 ohms
          __|__   __|__      /
          _\_/_   _/_\_      |
            |       |        +----------+
          __|__   __|__    __|__      __|__      Any general purpose LED type
          _\_/_   _/_\_    _\_/_ LED  _/_\_ LED   without an internal resistor.
            |       |        |    +     |    -   Use different colors to indicate
          __|__   __|__      +----------+         polarity if desired. 
          _\_/_   _/_\_      |                   
     In 2   |       |        |
    >-------+-------+--------+
    (GND Clip)
    
    
    The two sets of 4 diodes will maintain a nearly constant voltage drop of about 2.8-3 V across the LED+resistor as long as the input is greater than around 20 V. Note: this means that the brightness of the LED is NOT an indication of the value of the voltage on the capacitor until it drops below about 20 volts. The brightness will then decrease until it cuts off totally at around 3 volts.

    Safety note: always confirm discharge with a voltmeter before touching any high voltage capacitors!

    Voltage checkers

    Whereas a multimeter is intended to measure voltages (and other things), a checker is used mostly to just produce a quick indication of the presense of voltage, its polarity, and other basic parameters. One use is a quick, but reliable indication of the status of the charge on a BIG capacitor. An, example of a simple version of such a device is the "capacitor discharge indicator circuit" described above.

    (From: Ian Field (ionfieldmonitors@ic24.net).)

    The version of the checker that I have, also contains a miniature 12 V battery for continuity checking - any resistance less than about 22K will produce some glow. It's handy for quick checks of semiconductor junctions - in general if it produces a slight glow it's leaky, but transistor B/E junctions have an inherent zener voltage, so there is usually some glow. Also schottky-barrier diodes give a reverse leakage glow - this does not mean they're faulty, check the Vf with the diode-check on a DMM before binning! Any zener diode above 10-11 V can be given a quick test for S/C, lower Vz will produce some glow - again check Vf before binning.

    These checkers are getting hard to obtain, most of the component stockists here only carry vastly over complicated (and expensive) versions with built-in measurement computer and LCD - these wouldn't last 5 min's around flyback circuitry! Some Automotive accessory shops have a simpler version with no battery - always check that it's stated to be capable of measuring AC or DC at 4 to 380 V before parting with money! The internal circuit should contain the LED's, a 15 ohm resistor to limit the maximum surge current when the PTC is cold and the special PTC film-thermistor. The battery can be added with a button from a VCR front panel - but don't blame me if you kill yourself because you didn't insulate the added components properly! There is a more complicated non-battery version with 2 LED's close to the front of the handle to indicate polarity and a row of LED's along the length of the handle to indicate the voltage-range. This version contains 2 special PTC's and a discrete-transistor bargraph circuit - there might be room to add a battery inside the case. As for the special PTC this is the only place I've seen them - one possibility that might be worthy of looking into is the Siemens PTC SMPSU startup thermistor for TDA4600 control chips, this usually has a series resistor of at least 270 ohms and is more likely to turn-up in European TV set's, but I have seen it in early Matsushita IBM displays and a few others (possibly Tandon) the PTC thermistor is always blue and looks like a very-miniature copy of the Philips white-plastic PTC degauss thermistor.

    The series light bulb trick

    When powering up a monitor (or any other modern electronic devices with expensive power semiconductors) that has had work done on any power circuits, it is desirable to minimize the chance of blowing your newly installed parts should there still be a fault. There are two ways of doing this: Use of a Variac to bring up the AC line voltage gradually and the use of a series load to limit current to power semiconductors.

    Actually using a series load - a light bulb is just a readily available cheap load - is better than a Variac (well both might be better still) since it will limit current to (hopefully) non-destructive levels.

    CAUTION: Running any SMPS at greatly reduced line voltage will be stressful for it, especially if the output load is a significant fraction of its full load ratings. In addition, at some range of line voltage, the output regulation may not work properly and the output(s) may go much higher than expected. Use dummy loads in place of the valuable equipment if possible when doing such testing!

    What you want to do is limit current to the critical parts - usually the switchmode (chopper) power transistor of an SMPS or horizontal output transistor (HOT) of a TV or monitor. Most of the time you will get away with putting it in series with the AC line. However, sometimes, putting a light bulb directly in the B+ circuit will be needed to provide adequate protection. In that location, it will limit the current to the HOT from the main filter capacitors of line connected power supplies. This may also be required with some switchmode power supplies as they can still supply bursts of full (or excessive) current even if there is a light bulb in series with the AC line.

    Actually, an actual power resistor is probably better as its resistance is constant as opposed to a light bulb which will vary by 1:10 from cold to hot. The light bulb, however, provides a nice visual indication of the current drawn by the circuit under test. For example:

    Note: for a TV or monitor, it may be necessary (and desirable) to unplug the degauss coil as this represents a heavy initial load which may prevent the unit from starting up with the light bulb in the circuit.

    The following are suggested starting wattages:

    A 50/100/150 W (or similar) 3-way bulb in an appropriate socket comes in handy for this but mark the switch so that you know which setting is which!

    Depending on the power rating of the equipment, these wattages may need to be increased. However, start low. If the bulb lights at full brightness, you know there is still a major fault. If it flickers or the TV (or other device) does not quite come fully up, then it should be safe to go to a larger bulb. Resist the temptation to immediately remove the series light bulb totally from the circuit at this point - I have been screwed by doing this. Try a larger one first. The behavior should improve. If it does not, there is still a fault present.

    Note that some TVs and monitors simply will not power up at all with any kind of series load - at least not with one small enough (in terms of wattage) to provide any real protection. The microcontroller apparently senses the drop in voltage and shuts the unit down or continuously cycles power. Fortunately, these seem to be the exceptions.

    What about SMPSs in TVs and monitors?

    TVs and monitors have at least one SMPS - the horizontal deflection flyback circuit and may have an additional SMPS to provide the low voltages or the DC for the horizontal output transistor. Most of the theory of operation and troubleshooting techniques apply to these as well. However, manufacturers of TVs and monitors tend to be really creative (can you say, obscure?) when it comes to these designs so a little more head scratching is often necessary to decipher the circuit and get into the mind of the designer. However, the basic failure modes are similar and the same test procedures may be used.

    Comments on SMPS capacitor discharging and testing with series loads

    (From: Ian Field (ionfieldmonitors@ic24.net).)

    At a pinch, discharging BIG electrolytic capacitors with a test lamp (230 V, 60 W in the UK; 115 V, 25 W in series in the US) will do, but if the lamp has blown you are in for a nasty surprise! While I am not criticising the use of spare high-wattage resistors, I tend to find that these get tidied away, so there's none about when you need one!

    The lamp sometimes get's used if I can't find an NTC, but I always check with a voltage checker because of the risk! - power resistors can go O/C as well whereas NTC thermistors generally fail S/C - which usually happens as a result of some transient phenomenon such as a lightning-strike near the underground power line.

    This is unlikely with the energy dump of discharging an off-line electrolytic (unless the equipment is still powered at the time!). My bench isn't the tidiest in the world, so gadgets tend to get misplaced - including power resistors with added discharge-progress LED indicators. This is where an inrush-suppressor NTC comes into it's own, even without selecting the type - it will discharge a capacitor almost instantaneously with the minimum of arc-burn on the solder pads. Obviously the energy causes some heating - in the case of large electrolytics direct-off-line rectifier smoothing/reservoir the amount of heating is just sufficient to give an idea of the condition of the capacitor - capacitor failure is comparatively rare, so it's not often anticipated and can cause misleading symptoms - so making this double as a routine check occasionally saves a hell of a lot of time!

    The trick I have found works even better is to use a NTC inrush-current suppressor thermistor. These items can be salvaged from a scrap monitor or PSU, and careful selection may reveal some types with a "room temperature resistance" of several kohms - with the line-voltage on a capacitor discharging through them, self-heating reduces the resistance to a few ohms. This reduces the welding-sputter as the contact current is only a few milliamps - this rises to a few amperes as the capacitor "dumps" its charge as the NTC resistance fall's with self-heating.

    One point I would disagree on is that not all of the many electrolytics need discharging! Most SMPSU's of any appreciable power have high energy electrolytics in the secondary - whether this is expressed as high voltage or high current. In the case of monitors, the post PWM-B+ rail has a large storage electrolytic which can do appreciable damage in the event that line-drive failure has prevented use of it's energy. The NTC thermistor method helps here; after "dumping" the line voltage electrolytics - the NTC is at a lower resistance and ready for following up on the lower charge electrolytics.

    There is a point concerning "test-lamp dummy loads" this has more to do with monitors than SMPSU boxes. As well as the suggested use to limit inrush current to a safe value on SMPSU boxes - I also use this method on line-O/P stages especially to verify that flyback-transformer failure was not the original cause of B+PWM or SMPSU blow-up. Recently I have been caught-out a few times because some "energy-star" designs are so efficient that the inrush current of the lamp itself is ample to cause catastrophic damage! The UK 220/230 V 60 W test lamp I have here has a calculated operating resistance of 806.7/881.7 ohms compared to a measured cold resistance of about 67 ohms so the PTC effect of the filament tends to limit the advantage!

    To clarify my comment on confirming whether a faulty flyback transformer has damaged the B+PWM; older circuits use a MOSFET buck-regulator, in which S/C failure of the MOSFET feeds unregulated B+ to the line-O/P stage - This invariably destroys the HOT and sometimes the transformer, but either could as easily be the original cause. In any event - bypassing the B+PWM MOSFET via the test lamp passes just enough current to see if the transformer is operable - with the price of replacements, very few quotes are accepted - so it's well worth making sure before ordering an expensive replacement or doing too much repair work! More recently, the trend has been for flyback - step up B+ regulators. When the B+ MOSFET fails S/C it simply stalls the main SMPSU (sometimes destroying the rectifier!). Since this type of B+PWM is step-up, the operability of the flyback transformer can be checked by simply removing the S/C MOSFET. The most recent designs appear to be based on semi-resonant SMPSU topology - they resemble buck-regulator PWM controllers, but the PWM MOSFET is at chassis potential and the transformer primary is at full PSU-rail, the line-O/P transistor is between the two with the drive transformer connected to provide an emitter-coupled blocking oscillator configuration, to add "regen" to the base drive. The boost diode often includes the buck-regulators "ringing-choke" in the "net inductive component" that it recovers energy from! As the later configuration most closely resembles the buck-regulator type, the test lamp is required to confirm transformer operability - but the weird and wonderful circuit arrangements can make it lots of fun working out where to connect it!

    A voltage checker that I find indispensable is the Steinel Master check 3 from; Steinel GmbH & Co. (KG Dieselstrabe 80-86 D-4836 Hertzebrock 1, Germany). The version I have consists of a pair of "inverse-parallel" LED's in series with a metal-film PTC thermistor on a tiny ceramic tube former - this has a very low thermal inertia so the PTC thermistor limits the current to a safe value for the LED's for any applied voltage between 4 & 380 V the combination of 2 LED's give a clear indication of AC or DC polarity. When this checker is used around SMPSU's, you can clearly see the effect of minority carrier transition time losses in the rectifiers, because the leading-edge of the waveform pushes the rectifiers Vf well in excess of 0.7 V for the minority carrier injection delay - before the rectifier begins to conduct. Where a PSU rectifier has two electrolytics and a choke in a Pi filter, the checker will often reveal negative transients on the electrolytic closest to the rectifier - which is a clear sign of capacitor ESR failure.

    SMPS failure modes

    Also see the section: Sounds that SMPSs make.

    SMPS fail in many ways but the following are common:

    Note that the high frequency transformer does not make the top 10 list - failure rates for these components are relatively low. You better hope so in any case - replacements are usually only available from the original manufacturer at outrageous cost.

    Most other parts are readily available from places service parts distributors like MCM Electronics as well as general electronics distributors like DigiKey and Mouser.

    Rebuild kits are available for many common supplies used in VCRs, monitors, terminals. See the section: Repair parts sources.

    Also, while it is tempting to suspect any ICs or hybrid controllers since it is thought that replacements are difficult and expensive to obtain, these parts are pretty robust unless a catastrophic failure elsewhere sent current where it should not have gone. And, ICs at least, are usually readily available.

    Sounds that SMPSs make

    Most switchmode power supplies when operating normally produce little or no detectable sound. The switching frequencies are usually well above the range of human hearing, but your dog or pet dolphin might be driven nuts!

    However, under various fault conditions, and sometimes when lightly loaded, there may be tell-tail audible indications of the SMPS's state of happiness. The cause may be in the SMPS itself or its load.

    1. Tweet-tweet-tweet or chirp-chirp-chirp (sometimes flub-flub-flub) - Short circuit or current overload. This is usually an indication of a shorted secondary-side rectifier and/or if in a TV or monitor using an SMPS, a shorted horizontal output transistor. The power supply is in a repeating cycle attempting to start up, being dragged down by the overload, and shutting down.

    2. High pitched, but audible, whine - Excessive load. Like (1), this may be caused by shorted components. For example, a common failure a Panasonic VCR power supply is for the 18 V zener diode across the 15 V output to short due to dried up electrolytic capacitors. The result in an overload and whine, but usually not a catastrophic failure of anything else.

    Which of (1) or (2) actually present will depend on the particular design of the SMPS and the severity of the overload. If the design uses a hard SCR crowbar, an overvoltage condition may trigger one of the symptoms!

    1. Tick-tick-tick - Too little or no load. In a TV or monitor using an SMPS, this is likely due to a lack of horizontal drive or a blown fuse or fusable resistor in the horizontal deflection system. The power supply is in a repeating cycle of starting up, being unable to limit the regulated voltage to a safe value, and shutting down. Attempting to power up an SMPS without an adequate dummy load may result in these symptoms.

    2. Hissing or white noise - possibly from inductors - this may be normal under certain conditions:

      (From: Charlie Allen (charlie.allen@usa.net).)

      "Some switchmode power supply inductors will make a hissing or white noise sound, typically when the circuit is lightly loaded and running in a "pulse skip" or PFM mode. I have heard it on many DC/DC circuits. You could try removing the coil and pouring in some epoxy."

    General SMPS troubleshooting approach

    The following sections provide a set of guidelines for attacking SMPS problems. Those in the next 5 paragraphs are common to SMPS using both discrete and integrated controllers:

    1. First, determine that it is not something trivial like a blown fuse due to a legitimate overload (that has since been removed). I have a SCSI peripheral box that will blow its SMPS fuse if the SCSI cable is inserted live.

    2. Categorize the problem into: startup problem, catastrophic failure, incorrect outputs, or excessive ripple or noise.

    3. Determine what the proper output voltages should be. Identify the main (regulated) output.

    4. Disconnect the supply from the equipment it is powering if possible. This will prevent the possibility of expensive damage should the output voltages soar to stratospheric levels for some reason. If this is not possible, you will need to be extra careful - always use a Variac to bring up the input slowly and monitor the main output at all times.

      Note: Some SMPS designs require power to be applied instantly to provide the startup voltage to the controller. If this is the case with yours, it won't be possible to bring up the voltage slowly (unless you power that chip separately). However, it should still be possible to run the unit somewhat reduced line voltage.

      CAUTION: Running any SMPS at greatly reduced line voltage will be stressful for it, especially if the output load is a significant fraction of its full load ratings. In addition, at some range of line voltage, the output regulation may not work properly and the output(s) may go much higher than expected. Use dummy loads in place of the valuable equipment if possible when doing such testing!

    5. Determine an appropriate load for the outputs (if not connected to the equipment). A typical SMPS will want a minimum of 5% to 20% of full load current at least on the main output to regulate properly. Others may not need any load - it depends on the design or they may have an internal load. Here are some typical load currents:

      • VCR - 0.2 A on +5 V and +12 V outputs.
      • PC - 2 A on +5 V, 1 A on +12 V. A dual beam auto head light works well.
      • Monitor - 0.2 A on +60 V to +120 V output.
      • Typical 40 W switcher = 1 A on +5 V and +12 V.

    Troubleshooting SMPSs using discrete controllers

    The following paragraphs apply mainly to SMPSs using discrete circuitry (no ICs) for pulse width control. For those using integrated controller chips, see the next section: Troubleshooting SMPSs using integrated controllers.

    Troubleshooting SMPSs using integrated controllers

    Since there are usually several fault conditions that can result in an aborted startup or cycling behavior, the basic troubleshooting procedure needs to be modified when dealing with SMPS using controller ICs like the UC3840 or UC3842.

    Also see the section: Typical controller ICs found in small switchmode power supplies for descriptions of two common integrated controller ICs.

    The following paragraphs apply to SMPSs using integrated controllers. For those using discrete components only (no ICs), see the previous section: Troubleshooting SMPSs using discrete controllers.

    Initial post-repair testing

    Once defective parts have been replaced, if possible remove the normal load from the supply if you have not already done so just in case it decides to put excessive voltage on its outputs and replace with a dummy load. For a multiple output supply, the most important output to have a load on is the one that is used for regulation but some modest load on all the outputs is preferred. You should be able to determine a suitable value by considering the application. For something like a VCR, a few hundred mA on the main output is probably enough. This would require something like a 25 ohm 2 W resistor for a 5 or 6 volt output or 50 ohm 5 W resistor for a 12 volt output (depending on which is the primary output). For a PC power supply, a couple of amps may be needed - a 2 or 3 ohm 15 W resistor on the +5 output. The minimum load is sometimes indicated on the specification sticker. In the case of a TV or monitor, disconnecting the load may not be possible (or at least, easy).

    If available, use a Variac to bring up the input voltage slowly while observing the main output. You should see something at about 50% of normal input voltage - 50 or 60 V for a normal 115 VAC supply. With a small load, the output should very quickly reach or even exceed its normal value. Regulation at very low line voltage may be far off - this is often normal. Just make sure you're using dummy loads so your equipment can't be damaged.

    Note: Some SMPS designs require power to be applied instantly to provide the startup voltage to the controller. If this is the case with yours, it won't be possible to bring up the voltage slowly (unless you power that chip separately. So, if nothing happens when doing this, don't panic - it may be a feature, not a bug. :) It should still be possible to run the unit somewhat reduced line voltage on the Variac.

    If you do not have a Variac, put a light bulb in series with the line (this is desirable in any case). Use a 100 W bulb for a TV or PC, 40 W for a VCR typical. The light bulb should limit the current to a non-destructive value long enough to determine whether everything is OK. It may not permit normal operation under full load, however. When power is first applied, the light bulb will flash briefly but may just barely be glowing once the output has stabilized. If it is fairly bright continuously, there is likely still a problem in the supply. See the section: The series light bulb trick.

    Once you are finished, save your schematic and notes for the future. For example, multiple models of VCRs even from different manufacturers use the same basic design, maybe even the same supply.

    Some general switchmode power supply repair comments

    Any time the switchmode transistor requires replacement, check all semiconductors for shorts and fusable resistors for opens. even if you locate what is thought to be **the** problem early on. Multiple parts often fail and just replacing the transistor may cause it to fail as a result of something else still being bad. In particular, check primary side electrolytic capacitors for reduced capacity or opens. These conditions can result in a blown switchmode transistor as it attempt to supply adequate current during the troughs of the rectified high voltage DC. It only takes a few more minutes. For other problems like an open startup resistor this excessive caution is unnecessary as these are usually isolated failures. However, if any dried up electrolytics are found, it is good practice to test them all - or just replace them all since the cost and time will be minimal. As they say, 'peas in a pod fail at nearly the same time'.

    It is often helpful to trace the circuit by hand if a service manual is not available. You will gain a better understanding of this supply and be able to put the knowledge to use when the next one shows up on your bench - there is a lot of similarity even between different manufacturers. A bright light behind the circuit board may help to make the foil runs and jumpers more visible. The only difficult part will be determining how the transformer windings are hooked up. An ohmmeter will help but even if you cannot entirely determine this, just make a note. For most purposes, the exact topology of the windings is not critical for diagnostic procedures.

    Periodic power cycling problems

    These are of the form: tweet-tweet-tweet or flub-flub-flub or some other similar variation. Any LEDs may be flashing as well and in the case of something like a monitor or TV, there may be HV static or even a partial raster in synchrony with the sounds. These types of problems are more common with sophisticated implementations - the simple ones just blow up!

    As noted elsewhere, shorted secondary components are a very likely cause of this behavior. These include diodes, capacitors, and overvoltage SCRs. The fact that there is some output suggests that the main switchmode (chopper) transistor is working. There would likely be no output at all if it were bad.

    Note that an underloaded supply may be cycling due to overvoltage and there may actually be nothing wrong! Many SMPSs require a minimum load to maintain stability and to provide proper regulation. This is typically 20 percent of maximum on the primary output (the one which drives the feedback loop). However, minimum loads may also be needed on other outputs depending on design. The only way to be sure is to check the manufacturer's specs.

    Other possibilities for periodic or pulsing outputs:

    1. One of the diodes is failing at volage - quite possible. As long as you do not remove both from the output that is used for feeback, it should be safe to take them out one at a time and then substitute for the one remaining in the feedback voltage. Use a Variac and series light bulb when testing in this manner and constantly monitor the main output.

    2. Some other cause of excessive current - shorted capacitor, transformer (though not likely), etc.

    3. Faulty current sense circuit - open or increased value resistor.

    4. Faulty voltage sense circuit - detecting overvoltage or regulation defective and it is shutting down (correctly).

    5. Faulty component in the startup circuit. This could be a bad diode, resistor, or even an electrolytic capacitor that has changed value or is open at low voltage (when the controller is just waking up).

    6. Faulty controller IC (if applicable).

    Testing a SMPS without startup drive

    Where an SMPS doesn't start and it isn't obvious why, it might help to drive the chopper from an external signal source to see what then works. The only time this is really practical is where a single transistor or MOSFET is used - generating a push-pull waveform probably isn't worth it.

    This will always be a risky procedure both for you and the power supply. The switching frequency is likely unknown but for these tests you can assume it is in the 10 to kHz range. You can reduce the risk somewhat (to the supply at least) by using a series light bulb load and/or running on reduced line voltage. The most important thing to avoid is putting in an excessively long drive pulse which will result in the high frequency transformer saturating, huge amounts of current, and likely a dead transistor and possibly other parts if there is nothing to limit the current. If you have the option, start with a narrow pulse waveform to minimize on-time and don't push your luck! :)

    Similarly, where a power supply attempts to start but cycles or shuts down, consider powering the controller chip from a separate supply to eliminate any issues of the transformer derived voltage that normally runs it after startup.



  • Back to SMPS Repair FAQ Table of Contents.

    Components Found in Switchmode Power Supplies

    Common, unusual, and strange

    Most of the components used in switchmode power supplies are common and easily identified. However, some may be unfamiliar and unrecognizable. Others could be totally custom parts - ASICs or hybrid circuits - developed specifically for a particular model or product line. However, these rarely fail despite your temptation to blame them specifically *because* locating a replacement is difficult and most likely expensive.

    Common components like transistors, diodes, capacitors, and resistors, can usually be tested with a multimeter at least for total failure. Also see the documents: "Testing of Bipolar Transistors with a VOM or DMM" and "Testing Capacitors with a Multimeter and Safe Discharging".

    Of course, with catastrophic failures, no equipment beyond your eyeballs and nose may be needed.

    Switchmode (chopper) transistors and other semiconductors

    Also see the document: Basic Testing of Semiconductor Devices.

    Note: if your supply produces any output (say, more than 10% of rated voltage), it is unlikely that the chopper transistor is bad as it must be working to some extent and, as noted, these usually blow totally.

    Capacitors (filter and bypass)

    Resistors (normal and flameproof), NTC thermistors, MOVs

    Transformers and inductors

    Fans

    Many small SMPSs don't have any fans built in but expect there to be a fan or fans elsewhere in the equipment designed draw air over the power supply. Most computer power supplies do have a fan inside - and these are high failure items due to how cheaply they are made.

    A bad or tired fan, or even clogged air filters, can result in overheating and outright failure, or at the very least, increased stress on components and reduced life expectancy. Thus, periodic maintenance is highly recommended. Inspection of the fan(s) and filter(s) should be one of the first steps in any testing procedure.

    The most common problem with fans is dry/gummed up/worn bearings. Ball bearings are rarely found in PC power supplies (the manufacturer saved 25 cents). Even on expensive workstation computers, mediocre fans may be used (Sun Microsystems had to replace a whole bunch of fans on state-of-the-art Ultra-Sparc systems because of bad bearings). Quick test: With the power off, give the fan a spin. If it continues to coast for at least a couple of seconds, the bearings are probably good. If it stops instantly, they are gummed up. If in doubt, replace the fan with a good quality ball bearing type. It's really not worth attempting to disassemble and oil the bearings unless you have nothing better to do.

    Fan motors do go bad but this is much less common than bad bearings. With modern brushless DC motors, one phase could be defective resulting in sluggish operation and/or failure to start if stopped in just the wrong position.

    On more sophisticated equipment with temperature sensing to adjust fan speed, the speed control circuitry could also be bad.

    WARNING: Replacement of the fan on SMPSs requires access to the interior. Make sure the equipment is unplugged and the large filter capacitors are fully discharged before doing anything inside the case - both for your safety and to prevent damage to the supply.

    For more on fans, fan motors, and lubrication, see the document: Notes on the Troubleshooting and Repair of Small Household Appliance and Power tools.

    (From: Clive Cooper (clpc@cooperware.com).)

    I spent 3 days searching for a problem on a SMPS. It turned out to be a simple fault that eluded me for some time.

    The SMPS worked fine for about 10 minutes and then the output voltages dropped slowly and eventually the supply went dead.

    It turned out that the fan, although it appeared to be working fine was only getting 60% of the supply voltage it needed. This was due to a faulty temperature sensor that just told the fan that the supply was cold even when it was hot.

    Conclusions: A fan that is blowing is not necessarily blowing what it should be blowing and the fact that it seems to be working doesn't mean its working at maximum efficiency.



  • Back to SMPS Repair FAQ Table of Contents.

    Items of Interest

    Panasonic VCR SMPS

    The same power supply design is used with minor variations in a wide variety of Panasonic (and clone) VCRs from the 1980s and 1990s (and may continue to this day). Depending on the specific model, there may slightly different output voltages and number of outputs but the general organization is identical. These use discrete components throughout with feedback from the primary output (5 to 5.2 V depending on model) using an optoisolator to essentially short out the drive to the main chopper transistor (Q1) when the output equals the desired voltage. The most common problems found with any of these supplies is dried up electrolytic capacitors. Generally, the first to go will be C16 and C17 on the +5.1 VDC line and/or C21 in the feedback path (actual part type and number may vary slightly with model). Symptoms will be either that the primary output is somewhat low (4 to 4.5 VDC) or that the supply has gone overvoltage and blown the protection zener (D15) resulting in a high pitched whine as the chopper struggles to drive current into a short circuit (this usually doesn't damage any other parts if caught in a reasonably timely manner). If any capacitor related problems are found, it is a good idea to replace all the electrolytics in the supply. Model specific capacitor kits as well as total rebuild kits are available from places like Studio Sound Service and MCM Electronics.

    The Panasonic VCR power supply schematic is available in both PDF and GIF format:

    Typical controller ICs found in small switchmode power supplies

    Here is some information on the Unitrode UC3840 programmable off-line PWM controller and its simplified cousin, the UC3842. These are typical of the types of sophisticated inexpensive integrated SMPS controller ICs that are now readily available.

    A Web search should easily turn up other sources.

    The information below is just a summary.

    These devices generate the PWM pulse control to the switchmode (chopper) transistor as well as various fault sensing and other control functions.

    Parts such as these are now found in many small switchmode power supplies and provide much more precise control during startup and normal operation, and better handling of fault conditions compared to most implementations using discrete circuitry.

    However, they also result in additional head scratching when troubleshooting since many faults or incorrectly detected faults can shut down the unit or cause a power cycling type of behavior. Therefore, a datasheet for the controller chip will prove essential. In many cases a scope will be needed to monitor the various sense, control, and drive signals. A systematic troubleshooting approach must be used to eliminate power, startup, sensing, and control components one at a time once obvious shorted or open parts or bad connections have been eliminated from consideration.

    Unitrode UC3840 programmable off-line PWM controller

    Features of the Unitrode UC3840 include:

    1. Fixed frequency operation set by user selected components.

    2. A variable slope ramp generator for constant volt-second operation. providing open-loop line regulation and minimizing or in some cases, even eliminating the need for feedback control.

    3. A drive switch for low current start-up off of the high voltage line.

    4. A precision reference generator with internal over-voltage protection.

    5. Complete over-voltage, under-voltage, and over-current protection including programmable shutdown and restart.

    6. A high current single-ended PWM output optimized for fast turn-off of an external power switch.

    The following pin descriptions for the Unitrode UC3840 were derived from a Unitrode application note. Errors in interpretation are quite possible.

    Pin 1: Compensation         Error amplifier (op amp) compensation network.
    
    Pin 2: Start/U.V. lockout   This comparator performs three functions.  With
                                an increasing voltage, it generates a turn-on
                                signal at a start threshold. With a decreasing
                                voltage, it generates an under-voltage fault
                                signal at a lower level separated by a 200uA
                                hysteresis current.  At the under-voltage
                                threshold, it also resets the Error Latch if
                                the Reset Latch has been set.
    
    Pin 3: OV sense             Over-voltage input from power supply output(s).
    
    Pin 4: Stop (Ext stop)      External logic signal to inhibit power.
    
    Pin 5: Reset                External logic signal to reset error condition
                                caused by (1) over-voltage, (2) over-current, (3)
                                input under-voltage detect, (4) external stop.
    
    Pin 6: Current threshold    This voltage input sets the over-current trigger
                                levels for the internal comparators.
    
    Pin 7: Current sense        This is the pulse-by-pulse PWM current control.
                                The input is a voltage taken across a series
                                resistor in the switchmode transistor's return.
    
                                There are two internal comparators with a
                                difference in threshold of 400 mV.  The one
                                with the lower threshold limits the current
                                for each PWM cycle.  The one with the higher
                                threshold sets the error flop-flop and shuts
                                down the supply if its threshold is ever
                                exceeded.
    
    Pin 8: Slow start           This input limits the maximum PWM duty cycle.
                                During power-on, an RC delay can therefore
                                control the rate at which the output ramps up.
                                The final value limits the maximum PWM duty cycle
                                during normal operation.
    
    Pin 9: Rt/Ct                R and C determine the constant PWM oscillator
                                frequency.
    
    Pin 10: Ramp                Ramp generator output.
    
    Pin 11: Vi sense            This voltage is normally derived from the DC
                                input and controls the slope of the ramp.
    
    Pin 12: PWM output          This is the drive signal to the switchmode
                                transistor.  This is an open collector output
                                and will normally be used in conjunction with
                                the Driver bias (Pin 14) signal to provide
                                total drive to the switchmode transistor.
    
    Pin 13:	Ground              Signal and drive common.
    
    Pin 14: Driver bias         Supplies drive current to external power switch
                                to provide turn-on bias and pullup during normal
                                operation.  Disabled for shutdown if the Error
                                Latch is set.
    
    Pin 15: Vcc                 UC3840 chip supply derived from the DC input rail
                                during startup and secondary winding on high
                                frequency transformer during normal operation.
    
    Pin 16: 5 V reference       Stable voltage reference (output) for regulation
                                control.
    
    Pin 17: Inv input           Error amplifier inverting input.
    Pin 18: Non inv input       Error amplifier non-inverting input.
    
                                The difference between the inputs on Pins 17 and
                                18 control PWM duty cycle.  These will generally
                                be derived by comparing the main output with
                                the desired voltage reference.
    

    Unitrode UC3842 off-line PWM controller

    The UC3842 provides the necessary functions to implement an off-line fixed frequency current mode control schemes with a minimal external parts count. Note how most of the pin functions are subsets of those found in the more sophisticated UC3840. The UC3842 retains most of the features of the UC3840 but requires fewer external components and comes in a much smaller package (8 vs. 18 pins).

    The following pin descriptions for the Unitrode UC3842 were derived from a Unitrode application note. Errors in interpretation are quite possible.

    Pin 1: Compensation         Error amplifier (op amp) compensation network.
    
    Pin 2: Vfb                  Error amplifier (non-inverting) input for
                                regulation feedback.
    
                                This input is used to control PWM duty cycle
                                and is normally derived from the main regulated
                                output voltage.  It is similar in function to
                                The non-inverting input, Pin 18, of the UC3840.
    
    Pin 3: Current sense        This is the pulse-by-pulse PWM current control.
                                The input is a voltage taken across a series
                                resistor in the switchmode transistor's return.
    
    Pin 4: Rt/Ct                R and C determine the constant PWM oscillator
                                frequency.
    
    Pin 5: Ground               Signal and drive common.
    
    Pin 6: PWM output           This is the drive signal to the switchmode
                                transistor.  It uses a totem pole output which
                                has a high current drive capability both high
                                and low.
    
    Pin 7: Vcc                  UC3842 chip supply derived from the DC input rail
                                during startup and secondary winding on high
                                frequency transformer during normal operation.
    
    Pin 8: 5 V reference        Stable voltage reference (output) for regulation
                                control.
    

    Description of UC3842 startup operation and cycling problems

    Depending on the particular circuit design, a variety of fault conditions can result in cycling or shutdown of an SMPS controlled by a chip like the UC3842. And, an underloaded supply may be cycling due to overvoltage!

    In addition to the overload condition described below, a dried up electrolytic capacitor on the Vcc line can also result in this cycling behavior since it is unable to hold up the voltage between output pulses. In addition, the sense inputs can trigger shutdown. In all, an often complex difficult to understand and troubleshoot situation - sometimes too much so for its own good!

    (Portions from: Yves Houbion (yves.houbion@fundp.ac.be).)

    Pin 7 is the power supply (Vcc). The oscillator inside the 3842 begins to work above 16 V on Vcc and stops working when this voltage drops below 11 V. With a stopped oscillator, the current consumption is very low, around 1 mA; with a working oscillator, the current is much higher, about 12 mA. (The specific voltages and currents are typical values for one particular version of the 3842 and can vary from device to device and depending on model.)

    Vcc is generally powered in two ways: a high value power (startup) resistor connected to the main bridge (e.g., +300V) and a from a winding off the transformer (via a rectifier/filter capacitor). The value of the startup resistor is selected such that there is more than 16 V with 1 mA but less than 11 V at 12 mA. So the oscillator can't continue to work with only the startup resistor supplying power.

    Suppose we apply AC power to the supply. The +300V comes on. First, the 3842 consumes only 1 mA, Vcc reaches 16 V, and the oscillator starts up. If all is well (no overloads), the transformer provides the necessary 12 mA current to maintain Vcc at more than 11 V.

    However, if the transformer is overloaded, Vcc falls under 11 V and the oscillator stops working. The current decreases to 3 mA, the voltage increase (coming from the +300V) the oscillator start again, ad-infinitum.

    Tweet-tweet-tweet....

    Switching between 115 VAC and 230 VAC input

    Assuming it is not a wide compliance 'universal type', a common way to do this is with a jumper (or switch) in the line input circuitry below (also shown in Typical SMPS Input Voltage Select Circuit):
    
                      D1
        AC o-----+----|>|-------+---------+-----o DC (+)
                ~|    D2        |+        |
                 +----|<|----+  |       +_|_
                      D3     |  |     C1 ---
                 +----|>|----|--+       - |
                 |    D4     |    +--o-o--+     +320 VDC to chopper
        AC o---+-+----|<|----+ -  |  J1   |
               |~            |    |     +_|_
               +-------------|----+   C2 ---
                             |          - |
                             +------------+-----o DC (-)
    
    

    Changing the input voltage of a switchmode power supply

    Would it be possible to modify a power supply designed for operation on 120 VAC for use overseas where the power is 240 VAC?

    I don't advise it. There are many factors involved in changing a power supply unless it is designed for dual voltage or autoswitching. They saved a few cents if it is not easily switched, what can I say?

    The problem is that it is probably a flyback converter and these are pretty finicky about changes. In addition to the caps, and switching transistor, the transformer would probably saturate at the higher voltage unless the switching frequency were also doubled. Getting these things to work normally without blowing up is touchy enough. To change one without a thorough understanding of all the design parameters would be really risky.

    Going the other way may be more realistic if (and this is a big if) you will not be running at anywhere near full capacity. Many switchmode power supplies will run on much lower than their rated input voltage. However, regulation may be poor and the switchmode transistor will need to be passing much higher current to maintain the same power output. To maintain specifications could require extensive changes to the circuitry and replacement of the switchmode transistor and possibly transformer and other parts as well. Again, I do not recommend this.

    Use a small stepup or stepdown transformer instead. The only exceptions are:

    Also see the secton: "Switching between 115 VAC and 230 VAC input".

    Slightly modifying the output voltage of a PC power supply

    Surplus PC power supplies are widely available and inexpensive. However, what do you do if 5 V isn't exactly what you need for a project?

    (From: Winfield Hill (hill@rowland.org).)

    Some of the PC power supplies I've dissected do have pots, by they have a limited voltage-adjustment range. One interesting thing, every design used a TL431 chip, which is a 3-pin TO-92 regulating IC, as the voltage reference and opto-feedback component. Find this chip and trace out the resistors connected to it to determine which part to change to make a higher voltage.

    But, watch out for the SCR over-voltage circuit in some supplies. This is usually set to trip around 6 to 6.5 volts, and its trip point would need to be modified as well.

    As far as the step-down transformer turns ratio, there's little trouble one will encounter here, because the power supply is no doubt designed to function properly with reduced AC line voltages. The penalty one will pay for turning up the output voltage is a higher minimum AC voltage.

    In most designs, the +12 and -12 V supplies merely track the 5V supply, and are not separately regulated. They may soar to higher voltages anyway if unloaded, but will be additionally increased in voltage by the ratio of 5V output increase. Even though the rating of the 5V electrolytic may not be exceeded, and still have a sufficient safety margin, this may not be the case for the 12 V outputs. So that issue should be examined as well.

    Finally, a reminder for any reader tempted to break open the box and start experimenting. Voltages of up to 320 V are present, so be careful. Know what you're doing. For safety, stay away from open supplies when plugged in, or always keep one hand behind your back when probing. Remember a the AC bridge and HV DC and flyback transformer portion of all these supplies is operating straight from the AC line, so don't connect the ground of your oscilloscope to any of that circuitry. A battery-operated multimeter is best.

    Use of surge suppressors and line filters

    Should you always use a surge suppressor outlet strip or line circuit? Sure, it shouldn't hurt. Just don't depend on these to provide protection under all circumstances. Some are better than others and the marketing blurb is at best of little help in making an informed selection. Product literature - unless it is backed up by testing from a reputable lab - is usually pretty useless and often confusing.

    Line filters can also be useful if power in you area is noisy or prone to spikes or dips.

    However, keep in mind that most well designed electronic equipment already includes both surge suppressors like MOVs as well as L-C line filters. More is not necessarily better but may move the point of failure to a readily accessible outlet strip rather than the innards of your equipment if damage occurs.

    Very effective protection is possible through the use of a UPS (Uninterruptible Power Supply) which always runs the equipment off its battery from the internal inverter (not all do). This provides very effective isolation power line problems as the battery acts as a huge capacitor. If something is damaged, it will likely be the UPS and not your expensive equipment. Another option is to use a constant voltage transformer (SOLA) which provides voltage regulation, line conditioning, and isolation from power spikes and surges. Manufacturers of these products may even provide equipment damage warranties which will reimburse for surge damage to the powered equipment while using their products. I am not sure how one proves that the UPS was being used at the time, however!

    It is still best to unplug everything if the air raid sirens go off or you see an elephant wearing thick glasses running through the neighborhood (or an impending lightning storm).

    GFCI tripping with monitor (or other high tech equipment)

    Ground Fault Circuit Interrupters (GFCIs) are very important for minimizing shock hazards in kitchens, bathrooms, outdoors and other potentially wet areas. They are now generally required by the NEC Code in these locations. However, what the GFCI detects to protect people - an imbalance in the currents in the Hot and Neutral wires caused possibly by someone touching a live conductor - may exist safely by design in 3 wire grounded electronic equipment and result in false tripping of the GFCI. The reason is that there are usually small capacitors between all three wire - Hot, Neutral, and Ground in the RFI line filters of computer monitors, PCs, and printers. At power-on and even while operating, there may be enough leakage current through the capacitors between Hot and Ground in particular to trip the GFCI. Even for ungrounded 2 wire devices, the power-on surge into inductive or capacitive loads like switching power supplies may falsely trip the GFCI. This is more likely to happen with multiple devices plugged into the same GFCI protected outlet especially if they are controlled by a common power switch.

    Therefore, I do not recommend the use of a GFCI for computer equipment as long as all 3 wire devices are connected to properly grounded circuits. The safety ground provides all the protection that is needed.

    Why do power supplies seem to fail after a power outage?

    Startup is the most stressful time for a typical switchmode power supply. The output filter capacitors as well as the load must be driven while the input voltage is changing - possibly wildly. With careful design, these factors can be taken into consideration. Not all power supplies are designed carefully or thoroughly tested under all conditions. When power is restored, surges, dips, brownouts, and multiple on-off cycles are possible. This is why it is always recommended that electronic equipment be unplugged until power has been restored and is stable.

    Supplies that are autoselecting with respect to input power are vulnerable to voltages at an intermediate value between their low and high ranges. At some values, they may autoselect the incorrect input range:

    (From: Mike Diack (moby@kcbbs.gen.nz).)

    A subject dear to my heart due to a recent unpleasant experience - Was using a Picturelel videoconference ISDN codec on a job when, because of a powerline fault, the line voltage dropped to 170 volts. The PicTel has a big Onan switchmode PSU which is autoswitch