Previous in Forum: Characteristics of Equal Percentage Control Valve   Next in Forum: Flow & Pressure Transmitter
Close
Close
Close
5 comments
Rate Comments: Nested
Participant

Join Date: Nov 2010
Posts: 1

0 to 1 Amps Variable Milli Amps Source

11/20/2010 9:44 AM

How to make 0 to 1Amps variable milli amps circuit by using LM 317

Register to Reply
Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#1

Re: 0 to 1 amps variable milli amps source

11/20/2010 10:45 AM

The LM 317 is an old, reliable linear voltage regulator designed by National Instruments. Since it regulates the voltage applied to a load, it does not regulate the current drawn by that load if the load changes impedance. It regulates the voltage by changing the amount of current permitted from the source voltage through the regulator to the load. There is a small minimum current parameter but one chooses the sensing resistors values to guarantee that this minimum current will always be drawn during regulation.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
2
Power-User

Join Date: May 2010
Location: Cambridge, MA
Posts: 390
Good Answers: 82
#2
In reply to #1

Re: 0 to 1 amps variable milli amps source

11/20/2010 4:22 PM

Yes, the LM317 three-terminal regulator was designed to be a voltage source, rather than a current source, but nonetheless it's long been a rather popular CS chip, thanks to its low 1.2-volt reference voltage. For example, to get a 1A current source, just add a 1.2-ohm current-sensing resistor to drop 1.2V at 1A, satisfying the ADJ-input's reference voltage (right, from NSC datasheet).

The exact current is Iout = VADJ / R1 + IADJ where VADJ = 1.23 volts and IADJ = 50 uA typ, or 100 uA max. Some people recommend a capacitor across the load. The compliance voltage is up to VIN - VDROPOUT - 1.2V, where the dropout voltage is 1.7V at 250mA and 25ºC, rising to 2.3V at 1.5A.

If R1 is a fixed plus a variable resistor, the output current can be reduced as R1 is increased, but at currents above say 10mA, i.e., with a 100-ohm pot, this is impractical. But there are many good solutions to this issue.

In the old days at s.e.d. (the usenet group, sci.electronics.design) we used to toss variable LM317 current-source circuits back and forth at each other for hours on end. We also specialized in voltage-controlled CS circuits using LM317. We found the LM317 more attractive to use than a big old BJT output-pass transistor in our circuits, because it featured thermal protection and was easy to drive with its tiny 50uA VADJ-pin current. The 3-pin TO-220 package was just like a classic power transistor, and the cost wasn't much higher. Here's one circuit, from a post on 2002-03-22.

For Vin = 0 the output current Iout = 1.25/Rs, but if you raise the control voltage to Vin = 1.25 volts, Iout will be reduced 0 (ignoring the LM317's 3.5mA typ minimum-load requirement). This circuit uses an opamp acting as a difference amplifier to control the LM317's ADJ pin forcing the Rs sense voltage - VADJ = vin. The output diodes insure that the op-amp outputs have operating room.

I commented at the time, "if you use an IC difference amplifier such as the Burr-Brown INA105, with its 0.01% resistor matching, you'll have more accurate results at low currents. Don't forget that TI offers free samples! http://focus.ti.com/docs/prod/folders/print/ina105.html"

You'll note the schematic is a famous ASCII drawing, which uses a fixed-font. This was necessary because usenet didn't allow pictures or html. Here I'm forced to use a picture to reproduce the ASCII drawing because CR4 doesn't allow us to select fonts, even Courier, or any other fixed-pitch font.

We quickly improved on the circuit, first adding a 15mA current-sink to handle the LM317's quiescent current, and moving the difference-amplifier sensing across Rs. Then we used a 10:1 amplifier, so the sense resistor could be reduced by 10x, saving power dissipation at 1A. The circuit did require a negative supply.

The file I took these ASCII drawings from has dozens of more interesting and complex examples. Yep, those were the days!

We can't leave this topic without mentioning the new Linear Technology parts meant to replace the LM317 in CS circuits, the LT3080 and the LT3092. Instead of a 1.2-volt VADJ they feature a precision 10.0 uA ±0.1 uA current-programming SET pin, and you add a resistor to pick your voltage, e.g. 120k for 1.2 volts, or 12k for 120mV. Nice, huh? The latter part is guaranteed to work without Cout capacitors.

__________________
Thanks, Win
Register to Reply Good Answer (Score 2)
Power-User

Join Date: May 2010
Location: Cambridge, MA
Posts: 390
Good Answers: 82
#3
In reply to #2

Re: 0 to 1 amps variable milli amps source

11/20/2010 5:43 PM

Here's a circuit that's more responsive to the O.P's question. It's basically the standard LM317 CS circuit with Iout = Vadj / Rs, but with the ability to reduce the current by developing a voltage across R2, proportional to VEE - 1.2 * R2/Rp where Rp can be varied to vary Iout.

The 1.2-volt offset and opamp is used with Q2, so the LM317's ADJ pin can go to -1.5V, allowing Vout to go to 0V and in fact even further to -0.3V, below ground, if necessary. The opamp can be eliminated and Q2's base tied to ground if the restriction Vout > 1 volt is allowed.

Q1 can be eliminated if the further restriction Iout > 10mA is allowed. In that case the circuit is quite simple, just two resistors and a BJT over the fixed current source.

__________________
Thanks, Win
Register to Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#4
In reply to #3

Re: 0 to 1 amps variable milli amps source

11/20/2010 10:46 PM

All quite true. But I am still not sure what the OP actually wants from the one sentence that started this discussion. Do they want a 0→1 amp manually adjustable current source that is adjustable and stable to milliampere resolution? If so then I'd like to know over what voltage range do they want this current source to operate? Maybe they want to create a current amplifier that has a dynamic range of 0→1 amperes? If so does that mean this amplifier has a current gain transfer ratio on the order of 1000 for the milliampere to ampere transfer ratio? Again, I would then want to know the voltage range that linear operation would occur. In this case I would also like to know the desired bandwidth for this amplifier. There's just insufficient information from the OP for me to offer a circuit.

__________________
"Don't disturb my circles." translation of Archimedes last words
Register to Reply
Commentator

Join Date: Jan 2011
Posts: 61
#5
In reply to #1

Re: 0 to 1 amps variable milli amps source

03/27/2011 12:36 PM

01 10 11

Kid: Oh, what day is it?

Mama: Depends what country you're in.

Used the LM 317 with success in switch mode. Base stopper resistor in o/p transisrors. In this case, the Belt And Braces were necessary. Had to get rid of the output cap, and use base chokes, to improve switching speed. The transistors were BUY24. http://html.alldatasheet.com/html-pdf/81942/SEME-LAB/BUY24/319/1/BUY24.html

Register to Reply
Register to Reply 5 comments

Good Answers:

These comments received enough positive votes to make them "good answers".
Copy to Clipboard

Users who posted comments:

Dave Simpson (1); redfred (2); Winfield Hill (2)

Previous in Forum: Characteristics of Equal Percentage Control Valve   Next in Forum: Flow & Pressure Transmitter

Advertisement