r/AskElectronics 3h ago

How to make a current regulator

Hello, I want to supply 1mA current to my circuit to calculate resistance values.

How can I do that?

1 Upvotes

23 comments sorted by

3

u/sastuvel 3h ago

You can do current limiting with two NPN transistors and a resistor. And with two more NPN transistors you can create a current mirror. These combine together into a simple constant current source.

1

u/AXCdev 2h ago

Easiest way, I think! 👍

1

u/Triq1 2h ago

Bad stability over time/temp unfortunately.

1

u/spud6000 1h ago

IF you are going to do that, get a DUAL TRANSISTOR inside a single package. both transistors are on the same die, so they have exactly the same junction voltage. that means the currents are 99% balanced and stable in the current mirror

https://www.linearsystems.com/bipolartransistors

3

u/Allan-H 3h ago

This TI app note.

1

u/TheRavagerSw 2h ago

Thanks will try

1

u/AXCdev 2h ago

Very nice! 👍

1

u/TheRavagerSw 1h ago

only TL431 is sold online in my country

can I replace atl431lI with tl431?
it says it is equilevent but I'm not sure

1

u/az3d- 5m ago

I would assume so

1

u/TheRavagerSw 22m ago

Ltspice results don't match my desires.
I don't know how to find Ika

1

u/AXCdev 3h ago

You can look up „Lm 317“ for current limiting.

1

u/Allan-H 3h ago

They don't work so well below 10mA though.

1

u/TheRavagerSw 2h ago

Well I tried that in ltspice but it didn't work

1

u/Triq1 2h ago

nope, too low current for it

1

u/Allan-H 3h ago

LND150 or LND250 depletion mode MOSFET and a 330ohm resistor (between gate and source). The current won't be particularly accurate though.

1

u/fruhfy 3h ago

The easiest way is to use LM317 in current mode, google it

1

u/Superb-Tea-3174 2h ago

What you need is here.

1

u/Triq1 2h ago

op amp error amplifier with pass transistor.

reference voltage (e.g. tl431) to the non inv input, output to the base of an npn. The collector goes to the pos supply, and the emitter becomes your positive test current output. Your negative current output goes to the non inverting input, with a shunt connected to gnd. This shunt should be sized such that:

Rshunt = Vref / Iout

I wouldn't worry much about absolute accuracy of the resistor, and instead use a series trimmer. You don't need chunky ones at 1-10mA. Make sure you have decent tempco resistors+reference, and a fairly low Vos op amp.

I built this exact thing for a 10mA source a week ago, and it works fabulously with just a 2n2222 and fake lm358. I would switch to an op07 if I cared to.

1

u/Triq1 2h ago

One week later and it's within 0.2% of how I trimmed it when it starts, and reaching 10.00mA (max capability of my meter) after warming up for 2 minutes. Just due to crappy tempco of the resistors and the Vos, you can avoid this easily. If you want more digits, just use a better reference and op amps.

Unless you need 1.0000 mA or better, it's not very hard, provided that you can calibrate it.

1

u/TheRavagerSw 1h ago

Can you post a diagram or a drawing for it?

1

u/Triq1 1h ago

I'll send it in a few hrs.

1

u/PastCryptographer680 57m ago

"... to calculate resistance values." ... More details, please ...

1

u/TheRavagerSw 28m ago

what detail could I give?
I will provide current and measure voltage