Path: EDN Asia >> Design Ideas >> IC/Board/Systems Design >> Controlling LM317T with PWM signal
IC/Board/Systems Design Share print

Controlling LM317T with PWM signal

03 Jul 2013  | Aruna Prabath Rubasinghe

Share this page with your friends

National Semiconductor's LM317T is a popular adjustable-voltage regulator that provides output voltages of 1.25 to 37V with maximum 1.5A current. You can adjust the output voltage with a potentiometer. The circuit in figure 1 replaces the potentiometer with an analogue voltage that you can control from a PWM (pulse-width-modulation) signal. You control this signal with a microcontroller or any other digital circuit. You can use the same microcontroller to dynamically monitor the output and adjust the LM317T.

Using an RC lowpass filter and an op amp, you can convert the PWM signal to a dc level that can adjust the LM317T's voltage output. Varying the pulse width of the input signal lets you generate an analogue voltage of 0 to 5V at the output of the lowpass filter. The op amp multiplies the voltage to achieve the desired voltage range.

For scenarios in which you must multiply the input voltage by two, the LM317T's adjustment pin receives 0 to 10V. Its output-voltage range is 1.25 to 11.25V. The equation VOUT=VADJ+1.25V governs the LM3175T's output voltage. You can change the op amp's gain by choosing proper values for R4 and R2. You must be able to remove offset voltages from the op amp. Use an op amp, such as a National Semiconductor LM741, with null adjustment. The selection of values for the capacitor and resistor for the RC lowpass filter depends on the PWM signal's frequency. This circuit uses values for a 1kHz PWM signal.

You can improve the circuit by replacing the RC lowpass filter with an active filter and then feeding a feedback signal from the circuit's output into the microcontroller for dynamic adjustments.

About the author
Aruna Prabath Rubasinghe is from the University of Moratuwa in Moratuwa, Sri Lanka.

This article is a Design Idea selected for re-publication by the editors. It was first published on February 11, 2011 in

To download the PDF version of this article, click here.

Want to more of this to be delivered to you for FREE?

Subscribe to EDN Asia alerts and receive the latest design ideas and product news in your inbox.

Got to make sure you're not a robot. Please enter the code displayed on the right.

Time to activate your subscription - it's easy!

We have sent an activate request to your registerd e-email. Simply click on the link to activate your subscription.

We're doing this to protect your privacy and ensure you successfully receive your e-mail alerts.

Add New Comment
Visitor (To avoid code verification, simply login or register with us. It is fast and free!)
*Verify code:
Tech Impact

Regional Roundup
Control this smart glass with the blink of an eye
K-Glass 2 detects users' eye movements to point the cursor to recognise computer icons or objects in the Internet, and uses winks for commands. The researchers call this interface the "i-Mouse."

GlobalFoundries extends grants to Singapore students
ARM, Tencent Games team up to improve mobile gaming

News | Products | Design Features | Regional Roundup | Tech Impact