Linear regulator=low-cost dc/dc converter
The circuit in Figure 1 is a good choice if you need a power supply with high efficiency and you don't want to use expensive dc/dc-converter ICs. The heart of the circuit is IC1, the common, inexpensive LM7805 linear regulator. The external switch is a pnp transistor; the circuit can easily source more than 1A output current. As an additional feature, the switching circuit automatically turns off if the load draws no or only a few milliamperes of currents. Under these conditions, the circuit works as a normal linear regulator. When you first apply input voltage, current flows through resistor R1 and through the LM7805 to the output. Current also flows through the emitter-base junction of Q1 and turns on the transistor. The current through inductor L1 now rises, and the output capacitor, C2, charges. When the output reaches the rated output of the linear regulator (5V for the LM7805), the regulator switches off its output .
Now, transistor Q1 switches off, because the LM7805 cuts off Q1's base current. When the switch turns off, the voltage across the inductor changes polarity, and current flows through diode D1. The current delivers more charge to C2, until all the energy stored in L1 transfers to C2. If a load is present at the output, the load current discharges C2. When the output voltage drops a few millivolts below the 5V output voltage of the LM7805, the LM7805 again starts sourcing current to the load. This action switches on Q1, and the cycle starts again. Under light- or no-load conditions, all the output current flows through the LM7805, and Q1 always stays off. You can adjust the switcher's start current by selecting the value of R1.
You can also use this circuit for output voltages greater than 5V. You can replace the LM7805 with an LM7812 or an LM7815 to obtain 12 or 15V at the output. For these higher voltages, you should add resistors R2 and R3. These resistors add some hysteresis to the circuit, reducing the switching frequency. Typical values are 2.2 and 2.2 kΩ, respectively. With the circuit in Figure 1, you can attain efficiency approximately of 75% when you convert 24V to 12V. If you use a 5V regulator, efficiency drops to 65%, but that figure is still better than that of a pure linear regulator.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 被坑几百块钱后,我竟然真的恢复了删除的微信聊天记录!
· 【自荐】一款简洁、开源的在线白板工具 Drawnix
· 没有Manus邀请码?试试免邀请码的MGX或者开源的OpenManus吧
· 园子的第一款AI主题卫衣上架——"HELLO! HOW CAN I ASSIST YOU TODAY
· 无需6万激活码!GitHub神秘组织3小时极速复刻Manus,手把手教你使用OpenManus搭建本