7

I want to create an adjustable µA Constant Current source using a LM317. It is typically stated to have a 5mA to 10mA minimum current for proper regulation. The On-Semi version linked above shows a graph where this actually depends on the Vin-Vout differential. Even then, I'm looking at 2mA minimum, which is higher than the 0.1mA I am looking for. While looking at circuits of a typical regulator constant current source, I came up with an idea, and am not sure if it will work properly or not.

enter image description here

Since the circuit depends on Iout being shared in a series circuit, and only cares that voltage drop across R1 equals Vref (1.25V), wouldn't a second circuit, parallel to R1, allow for a greater total current draw, but still allow for voltage regulation dependent on R1? My idea (Note: RRef would be an adjustable trim pot, 12.5k just a reference value for now):

schematic

simulate this circuit – Schematic created using CircuitLab

Since total Vout should be VRef + Vload, then Vout / RDummy = IDummy (For VOut 3~9 Volts, that's 10~27mA). The Led Load part should still only get 0.1mA (plus another 0.1mA from IAdj, this is okay) as desired.

Is there any reason this would not work?

I'm assuming if it will, then by paralleling the R2 and Led on a third circuit, that I can avoid the IAdj current as well?

Passerby
  • 72,580
  • 7
  • 90
  • 202
  • Regarding your edit note, no you can't get rid of the Iadj variation effect without buffering it somehow (for example, with an op-amp with low input bias current)-- and I'm afraid that might have stability issues at a system level. – Spehro Pefhany Jan 14 '16 at 07:47
  • @SpehroPefhany The 3rd schematic, CircuitLab's simulation is suggesting that the middle led "Alt" would only see 107µA, since the IAdj current would be going through the "Load" Led circuit. I would simply be using the "Alt" as the "true" measured output, no? – Passerby Jan 14 '16 at 07:57
  • 1
    Okay, I see what you're doing- using 'load' as a proxy for the voltage on Alt. Yeah, that would work, to the extent that the two forward voltages are matched in comparison to 1.25V (and the 12.5K resistors etc. are matched). They're at 2:1 different currents so a very close match is unlikely. Seems like a lot of extra work to use a part that's not particularly well suited, but that's up to you of course. ;-) – Spehro Pefhany Jan 14 '16 at 08:02
  • @SpehroPefhany Between this and a super long lasting Joule Thief, it's just a thinking exercise for myself. :) – Passerby Jan 14 '16 at 08:10
  • 3
    This is like attaching a scalpel to the digger arm of a backhoe and performing surgery from the cab. –  Jan 14 '16 at 12:06
  • 2
    @BrianDrummond The surgery was a triumph! I'm making a note here: **Huge success!**. – Passerby Jan 17 '16 at 04:06
  • The LM317 is a bad beetle and its featured in www.badbeetles.com Its cool what you are doing but why must you use the 317 ? – Autistic Jan 17 '16 at 05:58
  • @autistic is the most common adjustable regulator, the original design is based on it, I had one handy, and I needed a simple constant current led tester. The micro amp design was a self imposed challenge. – Passerby Jan 17 '16 at 06:03
  • If you just want an LED tester with minimum part count, use a current limiting diode. They make 0.1mA current limiter diodes. And, as a bonus for it being expensive, it can drop anywhere from 0.5V to 100V and still be in regulation. This is convenient when you only have a 24V supply or a 9V battery, etc etc. – Dave Jan 19 '16 at 22:06
  • @Dave not arbitrarily adjustable. But I did check those for use later. – Passerby Jan 19 '16 at 22:18

3 Answers3

12

Yes, that is clever, I think it would 'work', however the problem is that Iadj is 50-100uA so that you will not be able to get an accurate load current. First, it is large, so your 200uA current might actually be 300uA.

Also, the temperature coefficient is fairly large:

enter image description here

And it varies with input-output voltage.

enter image description here

If you're looking to put a constant 200uA current through a grounded diode, there are better ways (even a resistor to a fixed 8V source would be better than the proposed circuit in several ways)

For example:

schematic

simulate this circuit – Schematic created using CircuitLab

Spehro Pefhany
  • 376,485
  • 21
  • 320
  • 842
  • The 200 µA is already accounting for the Load and IAdj current, as far as Circuit Lab is concerned (Took me a few minutes to figure that out). The main goal is a Low current LED Tester, just for fun, don't need µA precision or anything. See the 3rd image for how I plan to avoid the IAdj issue. – Passerby Jan 14 '16 at 07:48
  • But the Circuitlab simulated 317 won't be the same as a real one or the next one. Well- as I said it should work, more or less, just not very well. If your LEDs vary from 1.5V to 2.5V at 200uA then a simple 35K resistor to +9 will only cause the current to vary +/-7%. – Spehro Pefhany Jan 14 '16 at 07:54
  • 2
    +1 for suggesting a much more suitable circuit for this purpose. – Bimpelrekkie Jan 14 '16 at 07:59
  • In the TL431 + comparator, wouldn't I need to change both R2 and R1 if I wanted to adjust the output to any arbitrary amperage like 500µA or 50µA ? – Passerby Jan 14 '16 at 08:07
  • 1
    Nope, just change R1. Iout ~= 2.495/R1. R2 has to provide >1mA at the minimum supply voltage so you only need to change it if you change the supply voltage. The output current will be a bit (0.3% maybe) low because of the base current, but we'll ignore that. It's an op-amp, not comparator, BTW. – Spehro Pefhany Jan 14 '16 at 08:24
  • Is the output transistor actually necessary? At these currents, why doesn't the op-amp just turn on one of the two output transistors sufficiently to meet the feedback loop requirement? – Warren Young Jan 14 '16 at 11:17
  • @WarrenYoung if the load can be connected between op-amp output and inverting input then that will work. The transistor allows the load to be grounded. There is another type of configuration that avoids the transistor and allows the load to be grounded called the Howland current pump, but it is quite dependent on resistor matching for good performance and actually has a higher parts count so I don't recommend it in this case. – Spehro Pefhany Jan 14 '16 at 13:40
  • @WarrenYoung Although not very important in this case, using a transistor also allows the constant current to be higher than the op-amp can handle, and could allow the maximum output voltage to be higher than the op-amp can handle (imagine this circuit hung on the top of a +300V bus with the op-amp negative rail at +300-9V = 291V). – Spehro Pefhany Jan 14 '16 at 13:48
  • @SpehroPefhany - "The output current will be a bit (0.3% maybe) low because of the base current" More like 1 to 1.5%, actually. The Fairchild data sheet gives a minimum hfe of 60 at 100 uA. The higher (200 uA) will increase this, but not enormously. – WhatRoughBeast Jan 14 '16 at 17:00
  • @WhatRoughBeast Okay, use a ZTX968. Or a p-channel MOSFET. The number is about right for the complementary circuit using a 2N4401. – Spehro Pefhany Jan 14 '16 at 17:33
  • 1
    I wired the LM317 up. At 10.25kΩ with target 100µA, without the Dummy (I used 260Ω + a Green LED), There is 4.14 Volts/400µA across RRef/Adjust pin, and with the Dummy, its a solid 0.16mA (so 60µA IAdj/Operating Current). I'm going to accept my own answer, but Bounty yours. – Passerby Jan 16 '16 at 22:49
  • Or I will, once Warren awards his bounty. He beat me to the start a bounty option :D – Passerby Jan 16 '16 at 23:36
  • I think Dave's EEVBlog Video on designing low precision constant current source may help someone. See [here](https://www.youtube.com/watch?v=OYOYI_IPKGY). – Unknown123 Mar 30 '19 at 14:25
1

The typical current into the ADJ pin ot the LM317 is 50 uA, see TI datasheet, page 10. There it also says that the 50 uA should be negligible in most applications. In your application it is not. That would lead me to the conclusion that the LM317 is not the IC you should be using.

For the low current you want, you also need a high value resistor between OUT and ADJ. Now look at the datasheet, what are the values of the resistors being used ? A few kilo ohms at the most. You would need 12.5 kohms. Then I predict that you might get stability issues.

I would ditch the LM317 for this and look for a different solution.

Bimpelrekkie
  • 80,139
  • 2
  • 93
  • 183
  • I know the typical circuit would not work well, hence my questioning if the second circuit, my idea, would work. Would paralleling a dummy load avoid the stability problem? And the third circuit, should avoid the IAdj problem. – Passerby Jan 14 '16 at 07:51
  • 1
    Probably you can make that work. But personally I **strongly dislike** such workarounds. If you have no other option then fine, use a workaround. But what you want can be solved much more elegantly by using a different circuit. Like the one suggested by Spehro. – Bimpelrekkie Jan 14 '16 at 07:58
1

After wiring it up, this works as theorized. When the Dummy circuit is included, the output is stable and the target current is accurate at 120µA (Plus IAdj). When the Dummy circuit is removed, IAdj and VRef rise to out of spec values (~400µA, 4.14V). So the Dummy Load allows this to be used in microamp ranges. Hooray.

Final Schematic:

schematic

simulate this circuit – Schematic created using CircuitLab

Instead of just a Dummy Resistor, I used a LED and a Resistor. The draw with that LED is approximately 6mA when the Load is set as low as 120µA. This is enough to stabilize this ST LM317T, adjust RDummy down if your LM317 needs a slightly higher dummy load.

My Values for Reference:

  • VRef: 1.24V Volts
  • RRef: 10.25kΩ Kilo-Ohms
  • IRef: 120µA Micro-Amps
  • IAdj: 40µA Micro-Amps
  • ILoad: 160µA Micro-Amps
  • IDummy: ~6mA Milli-Amps

Results: Even when my Load is a string of 5 White LEDs in parallel and the target current is 1mA (Plus IAdj), they are still pretty damn bright. 0.2mA each, thats ridiculously low power yet strongly visible in a bright room, let alone dark one.

Remember, the Load VF @ IRef will be VRef - VRef. Now you can figure out what resistance you need for your LED at the target current.

Passerby
  • 72,580
  • 7
  • 90
  • 202
  • Now to switch to a TI REG104FA-A, which is a real LDO. 0.2V Drop out at 1 amp compared to the 2.5V of the LM317, which means I can ditch the 9V battery and use a USB power bank or power supply. – Passerby Jan 16 '16 at 23:34
  • I remember reading years ago that human perception and brightness are not the same thing. The old 7 segment and dot matrix LED displays were MUXed between 8:1 and 30:1 in TDM with little perceived drop in brightness. Is this another option? Haven't got time to play with everything interesting. This of course may not work for illumination. A 'joule firing' technique perhaps? – ChrisR Jan 27 '16 at 07:33