Control an LM317T with a PWM signal
http://www.edn.com/design/analog/4363990/Control-an-LM317T-with-a-PWM-signal
The LM317T from NationalSemiconductor is a popular adjustable-voltageregulator that
provides output voltagesof 1.25 to 37V with maximum 1.5Acurrent. You can adjust the output
voltagewith a potentiometer. The circuit inFigure 1 replaces the potentiometerwith an analog
voltage that you cancontrol from a PWM (pulse-width-modulation)signal. You control
thissignal with a microcontroller or anyother digital circuit. You can use thesame
microcontroller to dynamicallymonitor the output and adjust theLM317T.
Using an RC lowpass filter and anop amp, you can convert the PWMsignal to a dc level that
can adjust the LM317T’s voltage output. Varying thepulse width of the input signal lets
yougenerate an analog voltage of 0 to 5V atthe output of the lowpass filter. The opamp
multiplies the voltage to achievethe desired voltage range.
For scenarios in which you mustmultiply the input voltage by two, theLM317T’s adjustment
pin receives 0 to10V. Its output-voltage range is 1.25 to11.25V.
The equation VOUT=VADJ+1.25V governs the LM3175T’s output voltage.
You can change the op amp’s gainby choosing proper values for R4 and R2.
You must be able to remove offset voltages from the op amp.
Use an opamp, such as a National Semiconductor LM741, with null adjustment.
The selection of values for the capacitor and resistor for the RC lowpass filter
depends onthe PWM signal’s frequency. This circuituses values for a 1-kHz PWM signal.
You can improve the circuit by replacingthe RC lowpass filter with an activefilter and then
feeding a feedback signalfrom the circuit’s output into the microcontrollerfor dynamic
adjustments.
【推荐】国内首个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搭建本