![]() | ![]() | ![]() |
| | |||||||
| 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. |
| | LinkBack | Thread Tools | Display Modes |
| | (permalink) |
| 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. | |
| |
| | (permalink) |
| 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 | |
| |
| | (permalink) |
| Thanks for reply. Can you post a simple block diagram to show the idea? or your design is basically similar to voltage follower ? | |
| |
| | (permalink) | |
| Quote:
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. | ||
| |
| | (permalink) |
| 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.
__________________ --- The days of the digital watch are numbered. --- | |
| |
| | (permalink) |
| 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. | |
| |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
| |
| | ||||
| 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 |