In a Previous Video: Converting an ATX Power Supply into a Lab Bench Power Supply
The following is the content of a file:
The previous video showed you how to convert a common ATX power supply into a crude lab bench power supply, which features a 12-volt, 5-volt, and 3.3-volt output. Such a supply is definitely a decent start when it comes to testing your electronic circuits. However, it comes nowhere close to the convenience of a proper lab bench power supply with a variable voltage output.
Of course, you could add a buck-boost converter to the outputs of the ATX power supply and thus create a variable voltage output as well. However, this would require additional space inside the supply housing, which is not desirable. Therefore, there must be another solution to this problem.
That's why in this video, we will have a closer look at the circuit of a switched-mode power supply and find out whether it makes sense to modify it to achieve a variable output voltage as well.
Let's Get Started
First off, I removed all the case screws from my ATX power supply test subject and removed the top cover of the housing. At first glance, the circuit looks very big and confusing. However, when we consider the functional principle of a switch-mode power supply, it becomes much easier to understand.
On the left side, we have our 230-volt AC mains voltage, which firstly gets rectified by a full-bridge rectifier. And then smoothed out by capacitors in order to create a DC voltage of around 325 volts. This DC voltage is then switched on and off rapidly by some kind of transistor, thus creating a PWM signal with a high frequency of around 100 Kilo Hertz.
Next, this high-voltage high-frequency PWM voltage is connected to the primary side of a transformer, which therefore induces a low-voltage high-frequency PWM voltage into the secondary side. Last but not least, this voltage gets once again smoothed out by capacitors in order to create the initially targeted 12-volt DC.
Now we can check this output voltage by connecting the green wire of our supply with a black wire. Plugging in the power and measuring the voltage between a yellow and black wire. As you can see here, the voltage is around eleven point three five volts. And if we connect different loads to this 12-volt output, we can see that the voltage stays pretty much constant.
No matter how much current we draw from it. That means that if we go back to the switching transistor part of the circuit, there has to be some kind of feedback from the 12-volt output. Which tells the transistor to increase the duty cycle of the PWM signal if we draw more current. Because we need more energy on the output side to sustain the 12 volts.
So let's remove the circuit board from the housing and have a closer look at the ICs to find out which one was responsible for the PWM signal. The two ones in the top left corner were LM358 and thus operational amplifiers. While the third one in the same corner was a TPS3510, and thus a PC power supply protection IC.
The last IC was a UC3842, which according to its datasheet seems to be the IC we've been looking for. Sadly though, there was no direct feedback connection between 12-volt output and the pins of the IC. Instead, the 12-volt output was connected to an optocoupler which on the other side connected to pin 2 of the IC. This is a voltage feedback pin.
While measuring the voltage of this pin while the supply was powered on, I asserted a voltage of 2.5 volts. In conclusion that means that there exists a kind of voltage divider between the 12-volt output and the voltage feedback pin. Whose resistor values are chosen in a way that the 12 volts create a 2.5-voltage drop at the voltage feedback pin.
That means that by varying the resistor values, the feedback pin will regulate the duty cycles so that the output voltage will always create the 2.5 volts at the feedback pin and thus we can achieve a variable output voltage. So I had a closer look at the passive components around the IC and noticed a suspicious 10 kilo ohm SMD resistor.
After removing it, I soldered the two wires to a 50 kilo ohm potentiometer and soldered it to the pads of the SMD resistor. This would allow us to vary the voltage divider and thus achieve a variable output voltage.
Due to my sheer luck, this worked out quite well. So let's test the result by connecting different loads to the supply and measure the output voltage.