How does the DC-DC converter work?
DIY voltage-boosting LED driver
Hi! My secret helper wrote this post.
She's in love with electronics, guitars, and cats.
Kevin (teardownit.com editor)
This isn’t just a joule thief, but a stabilized converter that maintains a predetermined voltage at the output. However, my goal today is not to make a 12V power supply, instead, I want to make an LED flashlight with continuously variable brightness. In other words, I’m going to make a controlled boost current regulator for the LED.
So, today we are going to study the feedback of pulse power converters and as a result, we will be able to build a converter with the properties that we need. Or we can modify an existing converter to the one we need, specifically, one where we can add or change the current or voltage feedback. Or we can make the existing feedback controllable, i.e. add the possibility of reconfiguration.
The main component of a step-up converter is the coil. In electronics, coils and capacitors are called reactors because there is a reaction, i.e., a counteraction.
Converter operating principle
Properties of the inductor coil
The voltage at the output of the inverter depends on the discharging capacitor’s current consumption and its charging energy given by the coil in each duty cycle. The magnetic field energy of the coil with current is equal to the inductance of the coil multiplied by the square of the current in it.
For its part, the strength of the current running through the coil depends on the voltage of the original source and the time during which it was charged. This is because as magnetic energy accumulates, the current strength increases gradually in the coil.
We can observe that the current gradually increases. The oscilloscope shows the voltage on the series resistor, which depends on the current as per Ohm's law.
A resistor that converts current to voltage for the purpose of measuring the current or current feedback is called a shunt.
We can observe a beautiful exponential fragment of the magnetization curve because the coil is charged with current just like a capacitor is charged with voltage. When we break the circuit, we can observe the neon bulb light up.
Study the diagram
The resistor R1 limits the base current of the output transistor. It is not a shunt because this resistor does not turn the current into a voltage that controls anything, but simply limits the current according to Ohm's law.
An idle load is a mandatory part of any inverter or stabilizer since neither can operate when no power is being consumed because there would be nothing to convert or stabilize.
Now for the best part. Any stabilizer has a feedback input. The stabilizer controls the movement of something, such as an electric current, in such a way that the feedback voltage always equals a certain value.
The linear voltage regulator opens the output transistor so that the voltage between the output and the feedback pin is 5 volts if it is a 7805, or 1.25 V in the case of an LM317.
All excess voltage falls on the line stabilizer transistor. This transistor is connected in series with the power consumer. Therefore the current through them is the same.
In the schematic, the voltage divider R3R4 is connected to the feedback pin. The resistor R4 has a resistance of 1.2 kΩ. The voltage across it is nearly 1.2 volts, so the current will be one milliampere.
Therefore, the resistor R3, with a resistance of 10 kΩ, will have a voltage of 10 V. 10 + 1.2 = 11.2, that is, almost 12 V at the output of the inverter. This is the voltage feedback.
To get the current feedback, you need a shunt the voltage of which is 1.25V at the desired current. The kit page on the developer's website, http://www.icstation.com/icstation-step-module-boost-converter-power-supply-module-p-4151.html, says that the converter can handle 60 milliamps at five volts on the input and 12 volts on the output.
I plan to use an LED matrix with an operating voltage of about 10 volts. This matrix consists of three white LEDs connected in series. It turns out that the output voltage of the converter will be the same: 10V at the LED plus 1.25V at the shunt.
However, I won’t be powering the converter from a five-volt USB power bank, but rather from a lithium battery. Its minimum voltage is 3.7 V.
The lower the input voltage is, the higher the load on the coil and the transistor of the step-up converter.
The chip in this kit is quite powerful, but the coil is weak. Therefore, it is possible to draw a current of (60/5)*3.7 = 44 milliamps from the output of the inverter. Hence, the shunt resistance should be 30 Ω.
This huge LED can draw up to 900 mA, but it needs a heat sink in this case. If I were to use a more powerful coil, it would be possible to make a step-up converter with a higher output current.
Accordingly, I could set a higher peak current with the resistor R2, but not more than 1.5 amperes, because this is the limit for our chip.
I also want to add gradual brightness control. To this end, I won’t connect the shunt directly to the feedback input, but with a 1.2 kΩ resistor. The feedback input of the chip has a high resistance, so this resistor will not change anything on its own.
We’ll add a 50 kΩ variable resistor and a 5 kΩ ordinary resistor in series to prevent a direct connection of the feedback pin to the inverter output.
Now the feedback voltage will be equal to the sum of the shunt voltage and the additional 1.2 kΩ resistor. The chip keeps the feedback voltage constant. It will always be at 1.25 volts.
Therefore the voltage at the shunt, and therefore the LED current, will be lower by the value of the voltage at the additional resistor. This voltage depends on the current running through the variable resistor.
If this current value is one milliampere, the shunt is left with zero volts in total. In other words, the LED is not powered.
Everyone, or at least nearly everyone, knows that LEDs are powered by current; the higher the current, the brighter the light. At the same time, the voltage of the LED remains practically constant at different current values.
Sometimes LEDs are even used as stabilizers, i.e. voltage regulators. Thus, we’ll consider that the voltage across these three resistors (50k, 5k, and 1.2k) is ten volts.
If the variable resistor knob is in the 0 Ω position, the resistance of this circuit is 6.2 kΩ. The current is above 1 milliampere, that is, the LED is off.
If the knob is in the 50 kΩ position, the total resistance is 56 kΩ and the current is 180 microamperes.
This is eighteen percent of one milliampere. Therefore, the shunt resistance can be reduced by eighteen percent. So we get 26 Ω for the shunt.
As a result, we get a brightness controller. If the LED is always connected to the output of the inverter, nothing else needed to be done. The LED will limit the output voltage of the inverter.
If there’s no LED or the output voltage is lower than the operating voltage of the LED, that is, it is closed and does not take part in the operation of the circuit, the brightness control circuit operates as voltage feedback.
The current of the divider is one milliampere. Specifically, the number of volts at the output is equal to the number of kΩ of the total resistance of the divider. The lowest voltage output is 6.2 volts. This is acceptable.
However, the highest voltage is 56 volts, which is too high. This can damage the electrolytic capacitor and the diode.
What can we do with the voltage feedback so that it doesn't interfere with the brightness controller? A Zener diode can save the day. This is a special diode that is connected in the reverse direction.
If the voltage on it is lower than its operating voltage, it stays closed and does nothing. If the voltage reaches the operating voltage, it opens and stabilizes the voltage.
Therefore, I made a matrix of 2p3s (two in parallel, three in series) from ordinary 5mm white LEDs. Thus, the allowable current is 2*20 = 40 mA and the operating voltage is 3*3.3 = 10 V. I didn’t decrease the shunt resistance to 26 Ω, but left it at 30. Moreover, I had just the right resistor in stock.
The video shows tests of the resulting driver at different supply voltages. The brightness adjusts perfectly. The boost converter actually starts working at 1.75 volts of the input supply which is much sooner than at the 3 volts that the chip datasheet proclaims.
To measure the power conversion efficiency, I connected voltmeters and ammeters to the input and output. The results can be observed in the following table, which shows the measurements at different input voltages and brightness control positions.
The abundance of information can look intimidating, especially in its raw form. However, we only need to look at the columns that display the input voltage, output power, and efficiency. Electrical power is equal to the product of voltage and current, while efficiency is the ratio of output power to input power.
And this is a graph of efficiency vs. output power. Judging from this, we can say that in the case of our flashlight, the higher the power, the more efficient the conversion is. Again, we see smooth lines, but this time they’re "drawn" by turning the supply voltage regulatorWhy is the efficiency of our flashlight so low? First of all, the shunt loses as much as 1.25 volts. This is more than 12 percent of the LED matrix’s voltage, so it’s more than 12 percent of the efficiency.
Why is the efficiency of our flashlight so low? First of all, the shunt loses as much as 1.25 volts. This is more than 12 percent of the LED matrix’s voltage, so it’s more than 12 percent of the efficiency.
Secondly, the supply current of the red indicator LED is comparable to the current of the matrix. At the same time, this indicator is not powered by the input, but by the output. Its current draw resistor R5 simply converts part of the power consumption into heat.
Furthermore, the voltage drops on the Schottky diode D1 and the output power switch that’s built into the MC34063 chip. This switch is a bipolar transistor.
If we were to use a more modern DC-DC converter chip with a MOSFET transistor as an output switch, a lower feedback voltage, and correspondingly, lower shunt losses, the efficiency of the flashlight would be much higher.
DC-DC converters with a synchronous converter that uses a MOSFET instead of a Schottky diode are even more advanced than that.
Alternatively, we could add a shunt signal amplifier, or reduce its resistance and shift up the bias range from the brightness regulator. For example, this could be done in such a way that at maximum LED current, 0.25 volt falls on the shunt and 1 volt comes from the regulator, then the brightness is at its maximum, up to 1.25, then the LED doesn’t shine at all.
Conclusion
In conclusion, today we found out that the world of DC-DC converters is diverse and complex, but it is possible to achieve the desired result through simple means.
To do this, it’s enough to understand how feedback works and how to form the feedback voltage.
A shunt can be used to convert the output current to voltage and, as a result, get a current regulator.
The output voltage can be stabilized with an output voltage divider.
The output voltage can be limited by a Zener diode, without interfering with the current regulator.
With a bias current through a variable resistor, it’s possible to add the desired value to the feedback voltage, making the current regulator adjustable.
Thank you for your attention!
Demo video
Comments
Post a Comment