Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 24th April 2008, 02:03 AM   (permalink)
Question LM317 control by PIC MCU

Hi,

I like to build a simple PIC Based Variable power supply.

First I thinking on using LM317, + a digital POT (10k) + PIC MCU to control the output voltage of LM317.

However, I worry the idea may not work , because the digital pot may only take 1mA max only, but the LM317 may need 5mA from the adj to ground.

Is there any other way I can control LM317?

Thank you,
Victor

P/s: reason choosing LM317 is because it 's great performance, and cheap.
VictorPS is offline  
Old 24th April 2008, 02:14 AM   (permalink)
Default

Yes, you can use the digital pot... but the pot is limited to 0-5v. You will need an op-amp as well. I have been using a circuit like this in a project for more than a year, but as it's a commercial product I'm not at liberty to post the circuit.

Paul
aussiepoof is offline  
Old 24th April 2008, 02:21 AM   (permalink)
Default

Thanks for reply.
Can you post a simple block diagram to show the idea?
or your design is basically similar to voltage follower ?
VictorPS is offline  
Old 24th April 2008, 02:33 AM   (permalink)
Default

Quote:
Originally Posted by VictorPS
Thanks for reply.
Can you post a simple block diagram to show the idea?
or your design is basically similar to voltage follower ?
What output voltage are you trying to get on the LM317? If it is less than 5V then you could use the digital pot without anything. If it's more than 5V...

But if you need an output voltage higher than the digital pot, couldn't you just feed the digital pot's center tap into the input of a opamp voltage follower? This would still limit you to 5V though. If you replaced the buffer with an amplifier though, you could feed a 0-5V signal into the amplifier and you could get it to produce an output larger than 5V with a <5V input (which the digital pot can do).

A few things:
-Of course, you would need to use a big-op amp for current capability since you are using this as a power supply. Possible opamps that might be used for high current capability are the OPA547, 548 or 549.
-obviously, the op-amp is a linear device so the supply voltage must always be higher than the than its output voltage.
-the PIC and digital pot need their own separate fixed voltage regulator

Last edited by dknguyen; 24th April 2008 at 02:44 AM.
dknguyen is online now  
Old 24th April 2008, 03:38 AM   (permalink)
Default

Something like this should work. I've left out the bypass caps, some resistor values, etc because I don't know your output requirements. The LM317 needs only 10ma to control it and the output voltage would sit 1.2V above the output voltage of the OpAmp.
Attached Images
File Type: png LM317.PNG (6.3 KB, 44 views)
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline  
Old 24th April 2008, 05:56 AM   (permalink)
Default

Thank you to dknguyen and kchriste.
From the circuit. By putting 10k x2 for the opamp, it have a gain of x2, so a 5V input to the non inverting of Opamp will control the Lm317 from 1.25 to 11.25V, which is enough for my application.

beside using DPot, I think I can also using a DAC / PWM DAC to inject the analog voltage to the opamp for controlling.
VictorPS is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
LCD backlight control during PIC "sleep" Andy_123 Micro Controllers 9 21st March 2008 04:21 AM
1 or 2 Wire transmission and servo control (PIC) weegee Micro Controllers 3 21st January 2008 02:23 PM
How to use Pic MCU amit.abet Micro Controllers 2 4th January 2008 06:32 AM
MCU control Contant Current Source VictorPS Micro Controllers 5 24th October 2007 01:54 AM
Fan control circuit for cooling a LM317 bogdanfirst Electronic Projects Design/Ideas/Reviews 8 1st August 2004 11:38 AM



All times are GMT. The time now is 08:45 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker