Switching power supply - a selection of circuits for self-production

In everyday life, a powerful power source with a fixed voltage is often needed. It can be used as a charger, to power audio equipment (amplifiers), etc. It is advisable to make such power supplies using a pulse circuit. This circuitry allows you to create lightweight and powerful DC voltage sources. The complexity of the circuit begins to fade into the background compared to its advantages already at load currents of more than 2A. You can make a switching power supply with your own hands if you have the equipment and certain qualifications.

Types and principle of operation of switching power supplies

The basic operating principle of a switching power supply (SMPS) is that direct voltage (rectified mains voltage or from a third-party source) is converted into pulsed voltage with a frequency of up to hundreds of kilohertz. Due to this, the winding parts (transformers, chokes) are light and compact.

Fundamentally, IIPs are divided into two categories:

  • with pulse transformer;
  • with storage inductance (it can also have secondary windings)

The former are similar to conventional transformer mains power supplies; their output voltage is regulated by changing the average current through the transformer winding. The latter work on a different principle - they are regulated by changing the amount of accumulated energy.

Based on other characteristics, IIP can be divided into unstabilized and stabilized, unipolar and bipolar, etc. These features are not of such a fundamental nature.

⇡#What power is needed for modern gaming PCs

Let me note again: this article is to a certain extent tied to the “Computer of the Month” section. Therefore, if you are visiting us for the first time, I recommend that you at least read the August issue. Each “Computer of the Month” covers six assemblies, mostly gaming ones. I used similar systems for this article. Let's get acquainted:

  • The combination of Ryzen 5 1600 + Radeon RX 570 + 16 GB of RAM is an analogue of the starting assembly (35,000-37,000 rubles per system unit, excluding the cost of software).
  • The combination of Ryzen 5 2600X + GeForce GTX 1660 + 16 GB of RAM is an analogue of the basic assembly (50,000-55,000 rubles).
  • A combination of Core i5-9500F + GeForce RTX 2060 + 16 GB of RAM is an analogue of the optimal assembly (70,000-75,000 rubles).
  • A combination of Core i5-9600K + GeForce RTX 2060 + 16 GB of RAM is another optimal build option.
  • A combination of Ryzen 7 2700X + GeForce RTX 2070 + 16 GB of RAM is an analogue of an advanced build (100,000 rubles).
  • The Ryzen 7 2700X + Radeon VII + 32 GB RAM combination is similar to the maximum build (130,000-140,000 rubles).
  • A combination of Core i7-9700K + Radeon VII + 32 GB of RAM is another option for the maximum build.
  • A combination of Core i9-9900K + GeForce RTX 2080 Ti + 32 GB of RAM is an analogue of an extreme build (220,000-235,000 rubles).

Unfortunately, I was not able to get Ryzen 3000 processors at the time of conducting all the tests, but the results obtained will not become less useful. The same Ryzen 9 3900X consumes less than the Core i9-9900K - it turns out that within the framework of an extreme build, studying the power consumption of an 8-core Intel processor will be even more interesting and important.

And also, as you may have noticed, the article uses only mainstream platforms, namely AMD AM4 and Intel LGA1151-v2. I did not use HEDT systems such as TR4 and LGA2066. Firstly, we abandoned them in the “Computer of the Month” a long time ago. Secondly, with the advent of the 12-core Ryzen 9 3900X in the mass segment and in anticipation of the imminent release of the 16-core Ryzen 9 3950X, such systems have become extremely highly specialized. Thirdly, because the Core i9-9900K still gives everyone a run for their money in terms of power consumption, once again proving that the calculated thermal power declared by the manufacturer tells the consumer little.

Now let's move on to the test results.

To be honest, I present the results of testing in programs such as Prime95 and Adobe Premier Pro 2022 more for information purposes - for those who do not play or use discrete video cards. You can safely rely on these data. Basically, here we are interested in the behavior of test systems under loads close to maximum.

And here some very interesting things are observed. In general, we see that all the systems considered do not consume very much energy. The most voracious, which is quite logical, was the system with Core i9-9900K and GeForce RTX 2080 Ti, but even it in stock (read - without overclocking) consumes 338 W when it comes to games, and 468 W at maximum PC load. It turns out that such a system will have enough power supply for an honest 500 W. It is so?

Structural and schematic diagram of the main parts of the block


Generalized block diagram of a pulse power supply.

A surge filter is installed at the input of the power supply. In principle, it does not affect the operation of a homemade or industrial switching power supply - everything will function without it. But you cannot abandon the filtering circuit - due to the extremely nonlinear shape of the consumed current, pulsed sources intensively “sprinkle” interference into a 220-volt household network. For this reason, devices running on the same network on microprocessors and microcontrollers - from electronic watches to computers - will malfunction.


Network filter circuit.

The purpose of the input device is to protect against two types of interference:

  • common-mode (asymmetrical) – occurs between any wire and the ground (case) of the power supply unit;
  • differential (symmetrical) – between the power wires (poles).

The filter, like the entire power supply, is protected at the input by fuse F (fuseable or self-recovering). After the fuse there is a varistor - a resistor whose resistance depends on the applied voltage. As long as the input voltage is normal, the resistance of the varistor is high and it has no effect on the operation of the circuit. If the voltage increases, the resistance of the varistor drops sharply, which causes an increase in current and the fuse burns.

Capacitors Cx block differential noise at the input and output of the filter in the range up to 30 MHz. At a frequency of 50 Hz their resistance is high, so they do not affect the mains voltage. Their capacitance can be selected from 10 to 330 nF. Resistor Rd is installed for safety - the capacitors are discharged through it after the power is turned off.

Common-mode interference is suppressed by a filter on Cy and L. Their values ​​for the cutoff frequency f are related by the Thompson formula:

f=1/(2*π*√L*C) , where:

  • f – cutoff frequency in kHz (the conversion frequency of the pulse generator is taken);
  • L – inductance of the inductor, μH;
  • C – capacitance Cy, µF.

The common mode choke is wound on a ferrite ring. The windings are identical, winding on opposite sides.


Common mode choke design.

Unlike the output filter, the rated current of the power supply unit does not affect the calculation of the noise protection filter elements, with the exception of the wire with which the inductor is wound.

After the filter, the mains voltage is rectified. In most cases, a standard full-wave bridge rectifier is used.

Assembling a switching power supply with your own hands

Let's consider the circuit of a simple power supply, where the above-described principle of operation is applied.


Schematic diagram of a pulse power supply

Designations:

  • Resistors: R1 – 100 Ohm, R2 – from 150 kOhm to 300 kOhm (selectable), R3 – 1 kOhm.
  • Capacitances: C1 and C2 - 0.01 µF x 630 V, C3 -22 µF x 450 V, C4 - 0.22 µF x 400 V, C5 - 6800 -15000 pF (selectable), 012 µF, C6 - 10 µF x 50 V, C7 – 220 µF x 25 V, C8 – 22 µF x 25 V.
  • Diodes: VD1-4 - KD258V, VD5 and VD7 - KD510A, VD6 - KS156A, VD8-11 - KD258A.
  • Transistor VT1 – KT872A.
  • Voltage stabilizer D1 - microcircuit KR142 with index EH5 - EH8 (depending on the required output voltage).
  • Transformer T1 - a w-shaped ferrite core with dimensions 5x5 is used. The primary winding is wound with 600 turns of wire Ø 0.1 mm, the secondary (pins 3-4) contains 44 turns Ø 0.25 mm, and the last winding contains 5 turns Ø 0.1 mm.
  • Fuse FU1 – 0.25A.

The setup comes down to selecting the values ​​of R2 and C5, which ensure excitation of the generator at an input voltage of 185-240 V.

Inverter circuits

The resulting rectified voltage is supplied to the converter (inverter). It is performed on bipolar or field-effect transistors, as well as on IGBT elements that combine the properties of field-effect and bipolar ones. In recent years, high-power, low-cost insulated gate field-effect transistors (MOSFETs) have become widespread. It is convenient to build key inverter circuits on such elements. Switching power supply circuits use various options for connecting MOSFETs, but push-pull circuits are mainly used due to their simplicity and the ability to increase power without significant modifications.

Push-pull scheme


Push-pull converter circuit.

A push-pull inverter (push - push, pull - pull) is an example of a push-pull converter. Transistor switches operate on the primary winding of the transformer, consisting of two half-windings I and II. The transistors open alternately for a given period of time. When the top transistor in the circuit is open, current flows through half-winding I (red arrow), when the second one flows through half-winding II (green). To avoid a situation where both switches are open (due to the finite speed of the transistors), the control circuit creates a pause called Dead time.


Transistor control taking into account Dead time.

This circuit works well at low supply voltage (up to +12 volts). The downside is the presence of surges with an amplitude equal to twice the supply voltage. This entails the use of transistors designed for twice the voltage.

Bridge circuit

The push-pull bridge is free from the main drawback of the previous scheme.


Push-pull bridge inverter circuit.

Here, a pair of transistors T1 and T4 , then T2 and T3 (the key control signal is generated taking into account Dead time). In this case, the primary winding is connected to the power source first on one side, then on the other. The pulse amplitude is equal to the full supply voltage, and there are no voltage surges. The disadvantages include the use of four transistors instead of two. In addition to increasing the size of the power supply, this leads to doubled voltage losses.

Half bridge circuit

In practice, a half-bridge inverter circuit is often used - to a certain extent, a compromise between the previous two circuits.


Half-bridge circuit.

In this case, one side of the winding is switched by alternately opening transistors T1 and T2, and the other is connected to the midpoint of the capacitive divider C1, C2. Advantages of the scheme:

  • unlike push-pull, there are no voltage surges;
  • unlike bridge, only two transistors are used.

On the other side of the scale, the transformer winding is powered by only half the supply voltage.

Single-ended circuits

In the circuitry of converters, single-cycle circuits are also used - forward and flyback. Their fundamental difference from push-pull ones is that the transformer (more precisely, its primary winding) simultaneously serves as a storage inductance. In flyback circuits, energy is accumulated in the primary winding during the open state of the transistor, and is transferred to the load through the secondary winding during the closed state. In direct thrusters, energy accumulation and release to the consumer occur simultaneously.


Two phases of operation of a flyback single-cycle inverter.

Parametric stabilizer

If for some reason an integrated stabilizer is not available, you can make a unit on a zener diode. It is necessary to select a zener diode with a stabilization voltage of 12 V and designed for the corresponding load current. The highest current for some 12-volt domestic and imported zener diodes is indicated in the table.

Zener diode typeD814GD815DKS620A1N4742ABZV55C121N5242B
Load current5 mA0.5 A50 mA25 mA5 mA40 mA
Stabilization voltage12 volts


Circuit diagram of a simple parametric stabilizer.

The resistor value is calculated using the formula:

R= (Uin min-Ust)/(In max+Ist min), where:

  • Uin min – minimum input unstabilized voltage (must be at least 1.4 Ust), volts;
  • Ust – zener diode stabilization voltage (reference value), volts;
  • In max – highest load current;
  • Ist min – minimum stabilization current (reference value).

If a zener diode for the required voltage is not available, it can be made up of two connected in series. In this case, the total voltage should be 12 V (for example, D815A at 5.6 volts plus D815B at 6.8 volts will give 12.4 V).

Important! You cannot connect zener diodes (even of the same type) in parallel “to increase the stabilization current!”

Zener diodes are not connected in parallel.

You can power up the parametric stabilizer in the same way - by turning on an external transistor.

Powerful stabilizer circuit.

For a powerful transistor, a radiator must be provided. The supply voltage in this case will be less than Ust of the zener diode by 0.6 V. If necessary, the output voltage can be adjusted upward by turning on a silicon diode (or chain of diodes). Each element in the chain will increase Uout by approximately 0.6 V.


Stabilizer circuit with zener diode and diode.

Power transformer

The power transformer operates at high frequencies (up to several tens of kilohertz), so it can be made on a core made of ferrite rather than transformer iron. Also, due to the increased frequency, its dimensions will be smaller than that of a network one, designed for conversion at a frequency of 50 Hz. The calculation of a pulse transformer is quite extensive. You can understand it for general development, but for practical purposes it is better to use some program, including online services.


Interface of the Lite-CalcIT program.

The Lite-CalcIT program is popular. She can calculate a transformer for an existing core, or she can select the optimal one based on the entered data.

Components of the device

The mechanism we are assembling today consists of three parts:

step-down transformer, which is the most important and integral part; a capacitor, with the help of which the current voltage is stabilized to optimal readings; diodes that are necessary to assemble a diode bridge with your own hands.

Each part is very important. If an error is made in any of them during assembly, this will lead to the fact that the assembled unit and the household electrical appliance connected to the system will not work correctly. And also the assembled device may not turn on at all. Let's look at each of the components of the mechanism in more detail.

Snubber

To compensate for current and voltage surges that inevitably arise when switching the primary winding of a transformer, damper circuits are used, called snubbers in English technical literature. Such circuits can be installed along the power supply (parallel to the primary winding of the transformer) or separately on each switch. The design of snubbers can be different, but the most widespread are dampers in the form of a sequential RC chain (diagram b in the figure).


Various damper schemes.

There is no substantiated method for calculating a snubber. To do this, it is necessary to take into account all parasitic inductances (windings, tracks, capacitors) at many frequencies and for unknown wave impedances. Therefore, all existing calculations are empirical in nature.

The main (and only) active element of the damper is the capacitor. It “absorbs” impulse emissions. The resistor only worsens the damping properties, but limits the current through the capacitor, which can reach significant values, albeit for a short time. This scheme is more relevant in thyristor converters.

You can find out what a snubber or damper is by watching the video.

The RCD snubber circuits (c and d in the figure) contain diodes. They can be useful for limiting reverse polarity pulses in thyristor and bipolar transistor circuits. If the switches are assembled on field-effect or IGBT transistors, then there is no point in installing valves - they duplicate the diodes present inside these transistors.

The capacitance of the capacitor is selected in the range of 0.1–0.33 μF. In 90+ percent of cases this is enough. An increase or decrease in value is used for keys operating under non-standard conditions (increased conversion frequency, etc.)

Rectifier

The voltage of the secondary winding must be rectified. For levels up to 12 volts, it is advisable to use a full-wave, midpoint circuit.


Diagram of a rectifier with a midpoint and the passage of current through it.

The advantage of this circuit is that the current flows in each direction through only one diode, and the voltage drop across the valves, in contrast to the classic bridge circuit, is half as much. This can significantly reduce the required number of turns of the secondary winding. The same purpose is served by the use of Schottky diodes and assemblies of them.


Bridge rectifier circuit and current flow through it.

If the output voltage of the power supply is higher than +12 volts, then saving 0.6 volts becomes insignificant, and you can make a rectifier according to the standard circuit and use a transformer without a tap.

If the output of a switching power supply must be bipolar, tapping from the midpoint again becomes rational. In this case, 4 diodes and radiators for them are saved at once - the gain in size can be significant.


Bipolar rectifier with midpoint.

Mains voltage rectifier: the most popular design

Rule No. 3: after the output from the filter, the voltage is supplied to the rectifier circuit , which in the basic version consists of a diode bridge and an electrolytic capacitor.

During the electrical conversion, the shape of a sine wave, consisting of half-waves of opposite signs, first changes to a signal in a positive direction after the diode assembly, and then these pulsations are smoothed out to an almost constant amplitude value of 311 volts.

Such a network voltage rectifier is included in the operation of all power supplies.

Filter

The output voltage must be filtered - it contains a large number of conversion products. Since the inverter operates at a fairly high frequency, filters containing not only capacitors, but also small-sized chokes with relatively low inductance become effective.


L- and U-shaped LC filters.

To calculate the filter elements, it is necessary to specify the pulsation coefficient Kp. It is selected from the expected load:

  • sensitive equipment for radio reception, preliminary stages of audio equipment, microphone amplifiers - Kp = 10-5..10-4 ;
  • audio frequency amplifiers – Кп=10-4..10-3 ;
  • middle and low class receiving and sound reproducing equipment – ​​Kp=10-2..10-3 .

For an L-shaped filter installed after a full-wave rectifier, the following relations apply:

  • L*C=25000/(f2+Kp);
  • L/C=1000/R2н.

In these formulas:

  • L – inductance of the inductor in µH;
  • C is the capacitance of the capacitor in microfarads;
  • f – conversion frequency in Hz;
  • – load resistance in Ohms.

For U-shaped filter:

  • С1=С2=С;
  • L/C=1176/R2н.

The dimension of the values ​​is the same as for the previous filter.

Frame

It is very convenient to make the housing for the power supply from aluminum. First, a frame is assembled from corners, which is then sheathed with aluminum plates. There are at least two advantages of this solution - firstly, aluminum is easy to work with, and secondly, it conducts heat very well, which will protect the power supply from overheating.

If you don’t want to assemble the frame yourself, you can borrow it from an old microwave. This solution has certain advantages - light weight, aesthetic appearance and spaciousness.

Circuits and manufacturing of switching power supplies

Switching power supplies are assembled on various element bases. Typically, specialized microcircuits specially designed for creating such devices are used to build SMPS. Except for the simplest blocks.

Powerful pulse unit on ir2153

Simple power supplies can be built on the IR2153 chip. It is a powerful integrated driver with a timer similar to the NE555. The generation frequency is set by external elements. The microcircuit does not have inputs for organizing feedback, so current and voltage stabilization cannot be obtained using the PWM method.

Pin layout of the IR2153 chip.

The assignment of the pins is given in the table.

DesignationPurposePurposeDesignation
1VccPower supply for logic and driversPower output switchesVb8
2RtFrequency setting resistorTop Driver OutputHO7
3CtFrequency setting capacitorTop Driver Power ReturnVs6
4COMGeneralBottom Driver OutputL.O.5


Internal circuit of IR2153.

To better understand the operation and pin assignments, it is best to study the internal circuitry. The main point that you need to pay attention to is that the output switches are assembled using a half-bridge circuit.

Using this chip you can assemble a simple power supply.


Scheme of a simple power supply based on IR2153.

The IR2153 is powered by 220 volts through a quenching resistor R1, a diode rectifier VD3, and a filter on C4. The generation frequency is set by elements C5, R2 (with the values ​​​​indicated in the diagram, it turns out to be about 47 kHz). A transformer can be considered a program. The author's version used a power transformer from a computer power supply. The standard windings have been removed, the primary is wound into two cores with enamel insulated wire with a diameter of 0.6 mm.

Rules for choosing components

To make your own power supply with a transformer, you need to select the right components. In this article, we figured out how to calculate the values ​​of the necessary elements of the device, which transformers, rectifiers and filters can be used in a power supply of this type. For convenience, I offer the table below, it will help when choosing components:

This table shows the optimal values ​​and ratios of device power and technical characteristics of all components used in the design. The capacitance of the capacitors must provide the specified ripple at the rate of 1 µF per 1 W in terms of output power. The electrolytic capacitor must be selected for a voltage of 350V or more.

Rating
( 2 ratings, average 4.5 out of 5 )
Did you like the article? Share with friends:
For any suggestions regarding the site: [email protected]
Для любых предложений по сайту: [email protected]