EEVblog Electronics Community Forum

Electronics => Beginners => Topic started by: aidilismadi on March 08, 2018, 10:01:46 am

Title: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on March 08, 2018, 10:01:46 am
(http://)
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on March 08, 2018, 10:08:02 am
circuit of precision 1A. can anyone explain me about the voltage and current flow. and what is the function of op amp and mosfet at the circuit.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: capt bullshot on March 08, 2018, 10:34:20 am
https://en.wikipedia.org/wiki/Current_source
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: Mechatrommer on March 08, 2018, 11:58:36 am
circuit of precision 1A. can anyone explain me about the voltage and current flow. and what is the function of op amp and mosfet at the circuit.
V = I x R, we use 1 ohm resistor, so for 1A to flow, there will be 1V across the resistor V = 1A x 1ohm = 1V. thats why Vref is set to 1V there. if less current flowing, there will be less than 1V across resistor, opamp output will go high to close (switch) (or turn on) the mosfet to allow more current, but when current exceeding 1A, bigger than 1V across resistor, opamp will sense this and output will go low to shutdown the mosfet. this will go on and on until power supply is removed. so opamp job is to control mosfet to make sure 1V across resistor, ie 1A current. if more current, switch off mosfet, if less current switch on mosfet. faham? ;)
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: ogden on March 08, 2018, 12:01:36 pm
circuit of precision 1A. can anyone explain me about the voltage and current flow. and what is the function of op amp and mosfet at the circuit.
V = I x R, we use 1 ohm resistor, so for 1A to flow, there will be 1V across the resistor V = 1A x 1ohm = 1V. thats why Vref is set to 1V there. if less current flowing, there will be less than 1V across resistor, opamp output will go high to close (switch) (or turn on) the mosfet to allow more current, but when current exceeding 1A, bigger than 1V across resistor, opamp will sense this and output will go low to shutdown the mosfet. this will go on and on until power supply is removed. so opamp job is to control mosfet to make sure 1V across resistor, ie 1A current. if more current, switch off mosfet, if less current switch on mosfet. faham? ;)

Right. In addition to that you have to understand how opamps work.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: Mechatrommer on March 08, 2018, 12:11:39 pm
Right. In addition to that you have to understand how opamps work.
opamp will try to make both of its +ve and -ve pin equal. +ve pin is fixed to 1V, so it will do whatever necessary to make sure -ve pin is also 1V. so if -ve pin is lower than 1V, it will output higher voltage with hope the -ve pin will rise accordingly, when -ve pin rise higher than 1V, opamp output will go lower. this is called negative feedback system.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on March 14, 2018, 12:35:54 pm
thank you. will definitely learn op amp :)
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on March 15, 2018, 04:44:27 pm
heyy, sorry to bother again. can you explain to me about the important of resistor at the output end of op-amp?. and if the output value of op amp 1A then what is the suitable value of resistor over there.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: Zero999 on March 15, 2018, 08:28:56 pm
That circuit can be very difficult to stabilise. It's very easy for it to oscilate. I'd recommend a Darlington transistor, such as the TIP121, rather than a MOSFET.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: Mechatrommer on March 16, 2018, 01:11:35 am
heyy, sorry to bother again. can you explain to me about the important of resistor at the output end of op-amp?. and if the output value of op amp 1A then what is the suitable value of resistor over there.
very seldomly you'll find an opamp that can source a 1A current, to be safe let it be realistic like 100mA, or maybe 0.2-0.3A pulsed.. to decide which R to use, you have to work out V = IR formula or R=V / I, I is 0.3A, V is whatever voltage you apply to the opamp which you havent provided..ymmv.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: ogden on March 17, 2018, 09:50:32 am
That circuit can be very difficult to stabilise. It's very easy for it to oscilate. I'd recommend a Darlington transistor, such as the TIP121, rather than a MOSFET.

No need to change transistor. You can add capacitor to opamp feedback loop. In current sink/source application you can overcompensate overstabilize circuit heavily because most likely fast response of regulation is not required.

Note 100pf capacitor:

(https://static.electronicsweekly.com/wp-content/uploads/2015/10/14142455/Linear-Tech-AN105-current-sink.jpg)

Circuit from Linear appnote 105

Further reading about opamp compensation stabilization (http://www.analog.com/en/analog-dialogue/articles/ask-the-applications-engineer-25.html)
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on May 19, 2018, 08:48:10 am
thank you for the recommendation
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on May 19, 2018, 08:53:37 am
thank you for the recommendation. sorry to bother again, thus the v+ on mosfet connected with same voltage as the amp-omp dc source. in this circuit what is the preference dc source on v+ and vin.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: Gyro on May 19, 2018, 09:02:54 am
Is this just a theoretical question or do you have some specific application in mind? If so, it may help to give you more specific advice.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on May 19, 2018, 09:05:27 am
sorry to bother again, i  clearly had a few problem with the circuit. can u guys give an opinion on the basic connection. if there is a problem with the dc supply to the mosfet or the ideal dc supply volt to the mosfet. the second one is why the dc supply on the om-amp did not give any current supply. thank you.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on May 19, 2018, 09:08:16 am
just doing an experiment on specific 1A current source for my college project. i did not get 1A current at the Resistor.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: Gyro on May 19, 2018, 09:16:55 am
One thing that immediately comes to mind is the breadboard layout and stability. The MOSFET will be very sensitive to stray coupling at its gate. I would advise putting a 100 ohm resistor right at the Gate pin - no jumpers, plug the resistor in directly at the package. Also check that you are only sensing voltage across the current sense resistor and not measuring the voltage across the jumper leads too.

It would be best (and easier to follow) to tidy up the layout and use short lengths of solid core wire rather a long jumper leads.

Also, I don't see any supply decoupling capacitors for the the opamp and MOSFET, this will significantly affect stability too.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on June 08, 2018, 08:16:55 pm
thank you for the help. sorry late reply :)
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on June 08, 2018, 08:44:26 pm
hey everyone, thank you for the help so far. one more things to ask, how thus the mosfet working in this circuit, like specifically how the mosfet function and interface with op-amp. how can we know that specific current will flow through the mosfet when 1V is applied at the gate to source. in simply form, what is the main function of mosfet in this circuit.

the second question, if the resistor R1 which is 1ohms is change to 2ohms thus the value of current change at R2?. next can u guys explain the current flow through dc source to mosfet and to the node at the source of the mosfet and inverting input of op-amp. and from the node to the R1 and ground. 

the third question, how to determine if we have to put value of Rs at the input of voltage reference? if not stated in the datasheet. secondly if we have to put Rs how to determine the value of Rs. noted that im using ltc1798.

ps thank you so much guys for giving a wonderful explanation so far :). i hope to have an understanding of the circuit like u guys one day.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: rstofer on June 08, 2018, 09:09:55 pm
hey everyone, thank you for the help so far. one more things to ask, how thus the mosfet working in this circuit, like specifically how the mosfet function and interface with op-amp. how can we know that specific current will flow through the mosfet when 1V is applied at the gate to source. in simply form, what is the main function of mosfet in this circuit.


The MOSFET simply passes current based on its gate voltage.  The Op Amp tells the MOSFET how hard to turn on based on the difference between the feedback voltage (the MOSFET current times the 1 Ohm resistor) and the reference voltage 1V.  The output of the op amp will keep rising, turning the MOSFET on harder and harder, until the voltage drop across the  1 Ohm resistor is exactly the same as the voltage on the + input.

Quote

the second question, if the resistor R1 which is 1ohms is change to 2ohms thus the value of current change at R2?. next can u guys explain the current flow through dc source to mosfet and to the node at the source of the mosfet and inverting input of op-amp. and from the node to the R1 and ground.


As long as the reference voltage is fixed at 1V, the current flow through the sense resistor has to produce the same voltage.  If the sense resistor is set to 2 Ohms, it takes 500 mA to create the 1V feedback.

The simple way to think about this is to separate the MOSFET gate issue from the drain-source issue.  The drain-source current wants to be 1A.  At some level of gate voltage the MOSFET will deliver that amount of current.  We don't know what the gate voltage has to be and we don't care.  That's the problem of the op amp.  If will put out as much voltage as necessary to get the MOSFET to turn on hard enough to get 1V across the sense resistor.

Remember, the open loop gain of an op amp is HUGE!  If there is a voltage difference at the input terminals, the output will change enough to reduce the difference to 0V.  That's why these circuits oscillate.  The output voltage goes all the way to the op amp rail, the MOSFET turns on harder, the sense voltage increases, the op amp swings all the way to the other rail and the MOSFET turns off.  This is the very definition of oscillation.  That's why that little extra capacitor slows things down.  The math of what it is doing is a little hairy but basically, it is anticipating a change in the sense voltage before it happens based on how much the op amp output changes.  It does this to provide a little extra sense voltage (or less voltage if the op amp is going low) in anticipation of the larger change across the sense resistor.

Quote


the third question, how to determine if we have to put value of Rs at the input of voltage reference? if not stated in the datasheet. secondly if we have to put Rs how to determine the value of Rs. noted that im using ltc1798.


That resistor on the + input is just there to limit any fault current that might get involved with the input.  It's value is pretty much irrelevant.  No current flows into either of the op amp inputs (ideal op amp laws).  As a result, there is no voltage drop across that resistor under any reasonable condition.  Since there is no voltage drop and no current flowing, the value isn't important.  There really is SOME current flow into the + input so keep the value reasonable - 1k seems ok, 100 Ohms seems ok, 1 gigaohm doesn't seem ok.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on June 09, 2018, 07:29:19 pm
thank you so much :) the mosfet part is a little complicated but i'll try to understand :)
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: rstofer on June 09, 2018, 09:05:28 pm
The simple way to think of the MOSFET is as a water valve.  More water flows when the valve is open and in the case of the MOSFET, the water valve is the gate voltage.  As the gate voltage goes higher, the valve is more open and more water/current flows.  When the gate voltage goes down, the valve is more closed and the water/current flow decreases.

There are many details like Vgs and the various gate capacitances, in fact, there is an entire datasheet full of numbers.  In the end, the MOSFET is nothing more than a voltage controlled water valve with some details around the edges.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on June 10, 2018, 02:56:05 pm
thank you so much :) for the explanation on mosfet
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: RandallMcRee on June 10, 2018, 03:17:35 pm

That MOSFET explanation does not cover the fact that a MOSFET has polarity. An N type wants a positive gate voltage and a P type wants negative with respect to source.

Its very important in your circuit to have the correct MOSFET both polarity and current rating.

Do you know that a MOSFET (or transistor) will simply self-destruct at high current if not heat-sinked?
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: Audioguru on June 10, 2018, 04:13:04 pm
The datasheet for the TL082 opamp shows that it has two opamps in it. The unused opamp might be interfering with the opamp in it that you are using. Use a single opamp instead.
The datasheet for the TL082 opamp also shows that its Common Mode Input Voltage Range is 4V more positive than its negative supply voltage so its inputs DO NOT WORK if their voltage is less than +4V in your circuit. The TL08x opamps have the Phase Inversion Problem then its output will go as high as it can if an input voltage is within a few volts from 0V in your circuit. It needs an additional negative supply of -3V or more.

Instead you could use an opamp that has inputs that work as low as +1V in your circuit. 
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on June 15, 2018, 06:41:42 pm
thank you for the help :)
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on June 27, 2018, 07:13:43 am
thank you so much for the info
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on June 27, 2018, 07:23:12 am
heyy everyone thank you so far for the helping :)

this is the result of the non-inverting input.
1 did get 1.082 for the input.
Title: Re: circuit of precision 1A current source, how thus this circuit work?
Post by: aidilismadi on June 27, 2018, 07:27:27 am
i do have a problem regarding the connection of om-amp to the dc dual power supply. i really appreciate if u guys could show me the explanation and how to the om-amp be functional in that connection.