Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

Programmable current source

Status
Not open for further replies.

johnkaz77

New Member
Hi everyone,i want to make a programmable current source/sink (source or sink depending on a digital signal) but i am a beginner and i don't have a clue...It has to provide 0-10uA,10 bits resolution,can anyone help???
 
Here is a sink that is controlled by an ADC (assumed to be 0-5V). The sim shows its compliance is limited only by the supply voltage.
 

Attachments

  • CurrentReg1.png
    CurrentReg1.png
    44 KB · Views: 290
Thank you!!!But,as i told you i don't know much,so could you explain the circuit a little bit?Also,do you have specific parts (op. amps etch.) to suggest for the implementation because i don't have much experience.
 
The OpAmp has feedback around it such that it makes the voltage across R2 (the 10K shunt resistor) follow the voltage at the non-inverting input. That determines the current through R2, which must be the same as the current through the load resistor (because the gate current of a FET is ~0).

The voltage at the non-inverting input of the OpAmp is divided down from the output of an Digital to Analog Converter (DAC, not ADC like in the schematic), e.g. a DAC6571. There are hundreds of similar DACs from various IC makers available.

The OpAmp could be a TLC2272 (dip package), or any of hundreds of similar ones available from various IC makers.
 
Sorry to bother you again but i have couple more questions :eek: ... This is for sink,right? What do i have to do for source?
 
No time today, but it is a lot more complicated.
 
Sorry to bother you again but i have couple more questions :eek: ... This is for sink,right? What do i have to do for source?

Same circuit with the following modifications

1. Use a p-type mosfet instead
2. Swap op-amp inputs so it is positive feedback
3. Place the power supply on the source side of the mosfet
4. Place the sense resistor on the drain side, after the load, and before ground

Did I miss anything?
 
Hi,

Actually, what is the MOSFET for? Didnt he want low current like 10ua or something like that?
 
Hee hee, i just had to ask because normally MOSFETs are employed to provide fairly high currents and after all the little op amp can surely handle 10ua all by itself can it not? <chuckle>
 
Hee hee, i just had to ask because normally MOSFETs are employed to provide fairly high currents and after all the little op amp can surely handle 10ua all by itself can it not? <chuckle>

What is so funny??? If you notice, the NFET I specified is tiny; I used it as a voltage-controlled current-source. Do you have a circuit that makes a current-source for a ground/VDD referenced load using just an opamp and some resistors? Obviously, you can put the load in the feedback path, but that forces you to have a "floating" load.
 
Last edited:
What is so funny??? If you notice, the NFET I specified is tiny; I used it as a voltage-controlled current-source. Do you have a circuit that makes a current-source for a ground/VDD referenced load using just an opamp and some resistors? Obviously, you can put the load in the feedback path, but that forces you to have a "floating" load.

Modified yours
 

Attachments

  • op-amp-only.jpg
    op-amp-only.jpg
    146.9 KB · Views: 221
What is so funny??? If you notice, the NFET I specified is tiny; I used it as a voltage-controlled current-source. Do you have a circuit that makes a current-source for a ground/VDD referenced load using just an opamp and some resistors? Obviously, you can put the load in the feedback path, but that forces you to have a "floating" load.


Hi Mike,


Sorry, didnt mean to come off like i was mocking the circuit or something. When i looked at it i just couldnt help but wonder what an output transistor would be needed for when the output current requirement is a mere 10ua (ten microamps). It's not that bad of any idea though so dont get me wrong here.

Since the op amp can easily put out 10ua i believe we can find a circuit that will do this using the capability of the op amp alone without requiring an output drive stage, but i'd like to see what CafeLogic has to offer before i post if you dont mind waiting just a bit.

Op amps are such versatile devices and even though i've worked with them both theoretically and on the bench for years and years they never cease to amaze me.


CafeLogic:
Yes as Mike pointed out that circuit is not ground referenced. It has to be ground referenced to keep the OP happy :)

LATER: oh ok i see you want to use two op amps, right?
 
Last edited:
If someone had asked me to do the same thing, I also would have used a pass transistor and not thought twice and I didn't think twice about your circuit. It's not like the circuit wasn't good, it's just funny to me how my habits block my own innovation. Here is an abbreviated schematic as requested.
 

Attachments

  • no-floating-current-source.gif
    no-floating-current-source.gif
    8.8 KB · Views: 249
Hi again,


Oh yes, that's not bad either.

I had a hunch that this could be done using one single op amp though so that brought about the following circuit.
It should be noted though that the output equation contains the load resistance (R5) in at least one place and to cancel that resistance out requires the products as shown on the schematic to be the same. Also as noted, if all the resistances are made equal this is easily met. To find out the effects of a mismatch of these two products we could do a few simulations. It may require 1 percent tolerance resistors but again we'd have to do a quick study to find out for sure. I have a feeling it would mostly affect the gain.
Vin in the schematic is the assumed 5v DAC but the resistor values can be adjusted for other levels.
 

Attachments

  • GroundReferenced_CC_Source-01.gif
    GroundReferenced_CC_Source-01.gif
    12.3 KB · Views: 203
Last edited:
Mr Al's circuit has higher compliance if R3=R4 and R1=R2 but R1=n*R3, where n is 5 to 10.

If the opamp is powered with split supplies, and the DAC is bipolar, say -5V to +5V, then Mr Al's circuit both sources and sinks into a grounded load.
 
Last edited:
Status
Not open for further replies.

New Articles From Microcontroller Tips

Back
Top