Homemade power supply for LED strip. Do-it-yourself conversion from old power supplies


Diagram and description

Somehow recently I came across a circuit on the Internet for a very simple power supply with the ability to adjust the voltage. The voltage could be adjusted from 1 Volt to 36 Volt, depending on the output voltage on the secondary winding of the transformer.

Take a close look at the LM317T in the circuit itself! The third leg (3) of the microcircuit is connected to capacitor C1, that is, the third leg is INPUT, and the second leg (2) is connected to capacitor C2 and a 200 Ohm resistor and is an OUTPUT.

Using a transformer, from a mains voltage of 220 Volts we get 25 Volts, no more. Less is possible, no more. Then we straighten the whole thing with a diode bridge and smooth out the ripples using capacitor C1. All this is described in detail in the article on how to obtain constant voltage from alternating voltage. And our most important trump card in the power supply is the highly stable voltage regulator LM317T chip. At the time of writing, the price of this chip was around 14 rubles. Even cheaper than a loaf of white bread.

5 volts is one of the most widely used voltages. Most programmable and non-programmable microcontrollers, all kinds of indicators and testers are powered from this voltage. In addition, 5 volts is used to charge all kinds of gadgets: phones, tablets, players, and so on. I'm sure every radio amateur can come up with many uses for this voltage. And in this regard, I have prepared for you three good, in my opinion, options for power supplies with a stabilized output voltage of 5 volts.

The first option is the simplest.

This option is distinguished by a minimal number of parts used, extreme ease of assembly and incredible 'survivability' - the block is almost impossible to kill. So let's move on to the diagram.

This circuit is copied from an inexpensive phone charger, has stabilization of the output voltage and is capable of delivering a current of up to 0.5 A. In fact, the unit can output more, but as the current at the output increases, the overload protection begins to operate and the output voltage begins to decrease. Protection against overloads and short circuits is implemented using a 10 ohm resistor in the emitter circuit of the power transistor and a low-power transistor s9014 . When the current through the primary winding of the transformer increases, a voltage drop is created on the emitter resistor sufficient to open s9014, which in turn pulls the base of the power transistor to negative, thereby closing it and reducing the duration of the pulses through the primary winding. By changing the value of this resistor, you can increase or decrease the protection operation current. You should not increase it too much, as this will entail an increase in heating of the power transistor and increase the likelihood of the latter failing.

Stabilization is performed using the common optocoupler pc817 and a 3.9 V zener diode (by changing the value of which you can change the output voltage). When the output voltage is exceeded, the optocoupler LED begins to glow brighter, causing an increase in the current through the optocoupler transistor to the s9014 base and, as a result, closing the power switch. When the output voltage decreases, on the contrary, the optocoupler transistor will begin to close and s9014 will not interrupt the pulses based on the power switch, thereby increasing their duration and, accordingly, increasing the output voltage.

Particular attention should be paid to winding the transformer. This is often a factor that pushes beginners away from switching power supplies. So, since the block is single-ended, we will need a transformer with a non-magnetic gap between the core halves. The gap is needed to quickly demagnetize the core and to prevent the ferrite from entering saturation. The calculation of the transformer should ideally be carried out in special programs, but for those who do not want to do this, I will say that in such low-power power supplies the primary winding consists of 190-220 turns of 0.08-0.1mm wire. Roughly speaking, the larger the core, the fewer turns. The base winding is wound on top of the primary in the same direction. It consists of 7 - 15 turns of the same wire. And at the end the secondary is wound with a thicker wire. The number of turns is 5-7. It is extremely important to wind all the windings in the same direction and remember where the beginning and end are. On the diagram and on the board (which you can download here), the dots indicate the beginning of the windings.

There is nothing more to add regarding the scheme; it is quite simple and does not require any special skills for assembly. All components can be changed within 25%, the unit will work perfectly. The power transistor can be installed with any reverse conductivity corresponding to the power and with a calculated collector voltage of at least 400 volts. The base transistor is any low-power NPN with the same pinout as s9014 .

This unit can be powerfully used where high current is not needed, but compactness is needed, for example, for powering Arduino or for charging devices with small-capacity batteries. The advantages of this power supply include its compactness, the presence of protection and stabilization, and, of course, ease of assembly. The only downside is, perhaps, the low output power, which, by the way, can be increased by increasing the capacity of the input filter capacitor.

By the way, the block looks like this:

The second option is more powerful.

This option is very similar to the previous one, but more powerful. The block has improved feedback and, therefore, better stabilization. Let's take a look at the diagram.

The circuit is a standby power supply unit for a computer power supply. Unlike the previous circuit, this one has a more powerful power transistor, a larger input filter capacitor and, most importantly, a transformer with a larger overall power. All this just affects the output power. Also in this circuit, unlike the first, normal stabilization is done on the TL431 - the reference voltage source.

The principle of operation here is the same as the previous option. An initial bias voltage is applied through a 560 kOhm resistor to the base of the power switch, it opens slightly and current begins to flow through the primary winding. An increase in current in the primary causes an increase in current in all other windings, which means that the current arising in the base winding will open the transistor even more, and this process will continue until the transistor is completely open. When it opens, the current through the primary will stop changing, which means the secondary will stop flowing and the transistor will close and the cycle will repeat.

I spoke in detail about the operation of current protection and stabilization above and see no point in repeating myself, since everything works exactly the same here.

Since this power supply is made on the basis of a computer unit, I used a ready-made transformer and did not rewind it. Transformer EEL-19B. Estimated overall power 15 – 20 W.

As in the previous circuit, the component values ​​can be deviated within 25%, since in different computer power supplies this circuit works perfectly with different components. This instance, thanks to the output current of 2 A, can be used as a charger for phones and tablets or for other consumers requiring high current. One of the advantages of this design is the ease of obtaining radio components, because everyone probably has a non-working power supply from an old computer or TV, and there the elementary base is enough for 3 - 4 such power supplies. Also a plus can be considered a considerable output current and good stabilization. Of the minuses, we can rightly note the size of the board (it is quite high due to the transformer) and the possibility of whistling during idle. The whistle may appear due to a malfunction of some element, or simply due to the conversion frequency being too low at idle. Under load the frequency increases.

The block looks like this:

The third option is the most powerful.

This option is for those who need enormous power and excellent stabilization. If you don't mind sacrificing compactness, this unit is especially for you. So, let's look at the diagram.

Unlike the previous two options, this one uses a specialized PWM controller UC3843 , which, unlike transistors, can change the pulse width and is specially made for use in single-ended power supplies. Also, with UC, the frequency does not change depending on the load and it can be clearly calculated in specialized calculators.

So the principle of operation. The initial power is supplied through a 300 kOhm resistor to the 7th leg of the microcircuit, it starts up and begins to generate pulses that come out from the 6th leg and go to the field device. The frequency of these same pulses depends on the elements Rt and Ct. With the specified components, the output frequency is 78.876 kHz. By the way, here is the device of the microcircuit:

This microcircuit is very convenient to implement current protection; it has a special output for this – current sense. If the voltage is more than 1 volt, the protection will work on this leg and the controller will reduce the duration of the pulses. Stabilization here is done using the built-in error amplifier current sense comparator. Since we have 0 volts at pin 2, the amplifier is error amp. It always produces a logical one and it goes to the input of the current sense comparator amplifier, thereby forming a reference voltage of 1 volt at its inverting input. When the voltage at the output of the power supply exceeds, the phototransistor of the optocoupler opens and shunts 1 pin of the microcircuit to minus. In this case, the voltage at the inverting input of the current sense comparator decreases, and since the voltage at its non-inverting transistor at the moment of opening increases, at some point it will exceed the voltage at the inverting input (the same thing happens during a short circuit) and the current sense comparator will produce a logical unit, which in turn will lead to a decrease in the pulse duration and, ultimately, to a decrease in the voltage at the output of the power supply. The stabilization in this power supply is very good, so that you understand how good it is, when you connect a 1 Ohm resistor to the output, the voltage drops by only 0.06 volts, while 25 W of heat is dissipated on it and it burns out in a couple of seconds. In general, this unit can output both 30 W and 35 W, since a field-effect transistor is used here as a key. The diagram shows 4n60, but I used irf840 since I have a lot of them. The microcircuit can supply a current of up to 1 A to control the field switch, which makes it possible to control fairly powerful field switches without an additional driver.

The transformer for this unit was taken from a burnt-out 100-watt energy-saving lamp. The primary consists of 120 turns of 0.3 mm wire, the self-powering winding is 20 turns of the same wire, and the power output winding is 5 turns of two 1 mm wires. At the output there is a full-fledged interference filter, which allows you to use this power supply where interference is not needed.

PSUs can be used in very powerful chargers for gadgets. It can easily charge 6 or even 7 devices simultaneously, while providing a stable 5 V output.

It all looks something like this:

Here are their relative sizes:

Printed circuit boards

Well, that's all. If there are any points that interest you that I have not mentioned, please email them to me. The email address is being protected from spambots. Javascript must be enabled in your browser to view the address.

Dmitry4202

Description of the chip

LM317T is a voltage regulator. If the transformer produces up to 27-28 volts on the secondary winding, then we can easily regulate the voltage from 1.2 to 37 volts, but I would not raise the bar to more than 25 volts at the transformer output.

The microcircuit can be executed in the TO-220 package:

or in D2 Pack housing

It can pass a maximum current of 1.5 Amps, which is enough to power your electronic gadgets without voltage drop. That is, we can output a voltage of 36 Volts with a current load of up to 1.5 Amps, and at the same time our microcircuit will still output 36 Volts - this, of course, is ideal. In reality, fractions of volts will drop, which is not very critical. With a large current in the load, it is more advisable to install this microcircuit on a radiator.

In order to assemble the circuit, we also need a variable resistor of 6.8 Kilo-Ohms, or even 10 Kilo-Ohms, as well as a constant resistor of 200 Ohms, preferably from 1 Watt. Well, we put a 100 µF capacitor at the output. Absolutely simple scheme!

Input filter capacitance and voltage ripple.

In the input filters of electronic ballasts, to save space, small capacitors are used, on which the magnitude of voltage ripple with a frequency of 100 Hz depends.

To reduce the level of voltage ripple at the power supply output, you need to increase the capacitance of the input filter capacitor. It is advisable that for every watt of PSU power there is one microfarad or so. An increase in capacitance C0 will entail an increase in the peak current flowing through the rectifier diodes at the moment the power supply is turned on. To limit this current, a resistor R0 is needed. But, the power of the original CFL resistor is small for such currents and it should be replaced with a more powerful one.

If you need to build a compact power supply, you can use electrolytic capacitors, which are used in film flash lamps. For example, Kodak disposable cameras have miniature capacitors without identification marks, but their capacity is as much as 100µF at a voltage of 350 Volts.

Return to top menu

Assembly in hardware

Previously, I had a very bad power supply with transistors. I thought, why not remake it? Here is the result ;-)

Here we see the imported GBU606 diode bridge. It is designed for a current of up to 6 Amps, which is more than enough for our power supply, since it will deliver a maximum of 1.5 Amps to the load. I installed the LM on the radiator using KPT-8 paste to improve heat transfer. Well, everything else, I think, is familiar to you.

And here is an antediluvian transformer that gives me a voltage of 12 volts on the secondary winding.

We carefully pack all this into the case and remove the wires.

So what do you think ? ;-)

The minimum voltage I got was 1.25 Volts, and the maximum was 15 Volts.

I set any voltage, in this case the most common are 12 Volts and 5 Volts

Everything works great!

This power supply is very convenient for adjusting the speed of a mini-drill, which is used for drilling circuit boards.

How to set up a switching power supply?

Actually, a power supply assembled on the basis of a working electronic ballast does not require any special adjustment.

It needs to be connected to the load equivalent and make sure that the power supply is capable of delivering the calculated power.

During a run under maximum load, you need to monitor the dynamics of the temperature rise of the transistors and transformer. If the transformer heats up too much, then you need to either increase the cross-section of the wire, or increase the overall power of the magnetic circuit, or both.

If the transistors get very hot, you need to install them on radiators.

If a home-wound inductor from a CFL is used as a pulse transformer, and its temperature exceeds 60... 65ºС, then the load power must be reduced.

It is not recommended to raise the temperature of the transformer above 60... 65ºС, and of transistors above 80... 85ºС.

Return to top menu

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]