EEVblog #479 - Opamp Input Bias Current - Page 1
Forum section: electronics / general

author: EEVblog
author_rank: Unknown
timestamp: June 06, 2013, 11:26:55 pm
content: Fundamentals FridayAll about opamp input bias currents.Dave goes through the theory, and then does some practical measurements and tweaking.

author: AlfBaz
author_rank: Super Contributor
timestamp: June 07, 2013, 01:42:27 am
content: Great vid Dave, I think what you have highlighted here for me is the difficulty in knowing which of these parameters causes unexpected output errors. Not to mention the many other things that can go wrong especially when working in the device extremes, such as precision, HF, small signal etc

author: EEVblog
author_rank: Unknown
timestamp: June 07, 2013, 02:49:16 am
content: Quote from: AlfBaz on June 07, 2013, 01:42:27 amYes, that's one of the major things I was trying to convey.

author: ChadSeibert
author_rank: Newbie
timestamp: June 07, 2013, 04:07:34 am
content: Quote from: EEVblog on June 07, 2013, 02:49:16 amAD's opamphandbookhas been demonstrating that quite handily as well. More info about bias current compensation can be found in chapter 1, page 38, for those interested.

author: Rufus
author_rank: Super Contributor
timestamp: June 07, 2013, 04:22:00 am
content: We said in the previous thread the bias currents are not significant enough for the output error you were getting.You can consider the bias current to flow in 1k//100k and multiply that by the circuit gain. You can roughly consider the bias current to flow through the 100k to get the output offset but you can't say it flows through the 100k and then multiply by the circuit gain.

author: kkp
author_rank: Contributor
timestamp: June 07, 2013, 06:31:46 am
content: I'm with Rufus (and Kirchhoff) on this one. But:What flux are you using? If you used the water washable kind, either as pen or in the solder, or have been using the water washable kind a lot with the sponge on the soldering station, it could explain the 3nA flowing in the 100k. It is quite conductive.(hey, that's a good opportunity to revisit guard traces.)

author: colotron
author_rank: Contributor
timestamp: June 07, 2013, 09:39:51 am
content: Nice video. One more test to do:Put a mid-rail voltage on both inputs, before the 1K resistors. With mid-rail a refer to (positive supply - negative supply) / 2. This way we will have a 0V differential input with mid-rail common mode. Does it improve the input bias current? (I don't know, but I will like to see it!!!).Being a rail to rail opamp this mid-rail voltage is used when we have to measure negative voltages.If the last works, the input bias problem will still be there for close-to-rail voltages on non-inverting input.

author: ftransform
author_rank: Frequent Contributor
timestamp: June 07, 2013, 11:36:05 am
content: Are these hardware based solutions to op-amp offsets actually recommended though? Is it not better to eliminate the offsets through software, i.e. hook up a voltage reference to the input, measure the output in steps, then form a polynomial equation to deal with it? I swear I have read something along those lines in an app note but I can't find it.I believe the app note pretty much said that on the longer term scale trimmed op-amp parameters would end up drifting more then software, like the strain/tempco in the resistors will lead to a summed error with the op-amps drift vs just the op amps drift, and that it is just a messier and more expensive solution over all.

author: EEVblog
author_rank: Unknown
timestamp: June 07, 2013, 11:47:55 am
content: Quote from: colotron on June 07, 2013, 09:39:51 amI was doing that using a split supply.

author: EEVblog
author_rank: Unknown
timestamp: June 07, 2013, 11:49:13 am
content: Quote from: ftransform on June 07, 2013, 11:36:05 amYes, but depends entirely on your system requirements. Either solution can work (or both at once).

author: ftransform
author_rank: Frequent Contributor
timestamp: June 07, 2013, 11:50:30 am
content: Quote from: EEVblog on June 07, 2013, 11:49:13 amWhat is the advantage of using both? I figure it would be worse because there are more parts that can drift, so its better to use one or the other.

author: EEVblog
author_rank: Unknown
timestamp: June 07, 2013, 11:58:26 am
content: Quote from: ftransform on June 07, 2013, 11:50:30 amIt won't drift if you do it right. Low ppm resistors are cheap, and either way you have to use low ppm resistors anyway to prevent any drift.Doing both might for example allow "good enough" performance from the factory using default cal values, that could potentially be software tweaked better if really required.

author: free_electron
author_rank: Super Contributor
timestamp: June 07, 2013, 04:28:18 pm
content: One thing to stress is that there are opamps that actually DELIVER current.Dave mentioned that in the first minute but I find this important enough to re-state this here.So , if you connect a large resistor, say 10 megaohm to such an opamp to ground... you can see a few 100 mV dc across it . have any kind of gain in such a system and it goes banana's... this is a frequent problem when making systems that need to interface with high impedance sensors. the sensor resistance itself will muck things up.JFet opamps are especially dangerous. The gate of the JFET is essentially a diode in reverse. pull that pin low and you will pull current out of the gate as the gate diode now conducts !That is why JFET opamps like TL071 can be 'annoying' to work with. The current source sits on top and the gates of the jfets come out. you can actually pull the entire current bias current out of those pins... if you do that the opamp starts working. As you deviate the current you effectively limit the input swing rate of the opamp.

author: free_electron
author_rank: Super Contributor
timestamp: June 07, 2013, 04:48:50 pm
content: in the AD8628 circuit the typical trick is to use a trimpot with its wiper to ground.you would connect a 2k trimpot with its outer ends connected to _ input and + input and the wiper to ground. this let's you balance the input currents.Code:----------|+\| | >---+-----| --|-/ || | || +----| |-[2 k]-/|\|_|_GNDthis lets you trim the effect of the input bias away ( on classical opamps )if you don't want to use a multiturn trimpot you can take a 200 ohm trimpot and put a 900 ohm resistor left and right.

author: Galaxyrise
author_rank: Frequent Contributor
timestamp: June 07, 2013, 04:49:56 pm
content: Excellent! I believe this video answers my first question inhttps://www.eevblog.com/forum/projects/keithley-2000-gain-repair/Thank you

author: Rufus
author_rank: Super Contributor
timestamp: June 07, 2013, 05:13:53 pm
content: Quote from: kkp on June 07, 2013, 06:31:46 amIn the previous video the output offset changed with a change in the decoupling arrangement of the chip power supply. That indicates at least some of what is going on is not related to dc currents and voltages.

author: gerrysweeney
author_rank: Regular Contributor
timestamp: June 07, 2013, 09:35:52 pm
content: Great explanation Dave, its funny I ran into exactly this problem in the PSU I am designing just a few weeks ago and posted in my vblog. I did not manage to articulate the problem as well as you have in your video but the exact same problem I had to resolve. It was ultimately resolvable for me by putting in that +input resistor to balance input offset current and ultimately better op-amp selection. My less articulate explanation starts at about 14 mins into the video.http://gerrysweeney.com/fully-programmable-modular-bench-power-supply-part-13/Gerry

author: kg4arn
author_rank: Unknown
timestamp: June 08, 2013, 03:41:01 pm
content: Quote from: Rufus on June 07, 2013, 04:22:00 amI agree with Rufus. The bias current flows through both resistors in parallel, not mainly the higher valued feedback resistor. This is why the compensating resistor value is Rin || Rf. But don't take my word for it: see The Art of Electronics page 194. Something else is at play here.

author: Dave
author_rank: Super Contributor
timestamp: June 09, 2013, 02:29:14 am
content: I don't think your current measurement with the Keithley 480 was accurate. The input burden voltage of that meter is supposed to be below 200uV. While this figure is very low, it's still way more than those microvolts of error that the bias current caused in the circuit.

author: P_Doped
author_rank: Contributor
timestamp: June 09, 2013, 02:30:32 pm
content: I think the current measurement was fine. There was no indication that the ammeter was in the circuit when the output referred voltage measurements were being taken. The input bias current would be independent of how balanced the inputs were, so the impedance imbalance introduced by the ammeter should not have affected the measurement of the current.

author: The Chump
author_rank: Contributor
timestamp: June 09, 2013, 04:03:49 pm
content: Another agreement with rufus here. You've applied a rule of thumb and forgotten how to use it properlyWhy not just calculate the current in the 100k feedback resistor due to 300uV of output voltage.You will find that 3nA is far in excess of either input bias current or input offset current specs.Time to be really really sure that you've built what you think you've built:have you checked that the resistors are the correct value? (both by inspection and measurement)have you checked the gain eg with a 100Hz sine input?have you checked that the split rails are symmetrical? (you are only metering the total rail)have you checked that the circuit is not oscillating?have you checked all the other things I've not thought of?If the error remains after you've eliminated all these other things, i'ts time to ask AD why the parts appear to be way out of spec.CheersAlex

author: mrflibble
author_rank: Super Contributor
timestamp: June 09, 2013, 04:43:04 pm
content: Quote from: free_electron on June 07, 2013, 04:28:18 pmThanks! Do you happen to have more information or reading material on this? Assuming that the exact same issues can occur on TL072's...

author: dtweed
author_rank: Newbie
timestamp: June 12, 2013, 05:24:02 pm
content: Quote from: Rufus on June 07, 2013, 04:22:00 amSomeone said this in the YouTube comments too, but so far, Dave has ignored this point.You are, of course, quite correct.

author: free_electron
author_rank: Super Contributor
timestamp: June 12, 2013, 07:46:30 pm
content: Quote from: dtweed on June 12, 2013, 05:24:02 pmbut most of it flows through the lowest value ... so that portion does get amplified.

author: dtweed
author_rank: Newbie
timestamp: June 12, 2013, 08:11:41 pm
content: Quote from: free_electron on June 12, 2013, 07:46:30 pmNo, the "lowest value" has no voltage across it. All of the voltage is across the feedback resistor, and the input bias current flows through it.

author: Rufus
author_rank: Super Contributor
timestamp: June 12, 2013, 09:01:40 pm
content: Quote from: dtweed on June 12, 2013, 05:24:02 pmDave makes mistakes like the rest of us (on live video probably less than the rest of us would).We should point them out but he doesn't have to fess up or apologize or anything. He isn't arguing about it which I just take as acceptance.

author: kg4arn
author_rank: Unknown
timestamp: June 12, 2013, 09:16:57 pm
content: Quote from: dtweed on June 12, 2013, 08:11:41 pm@dtweedAre you serious or are you mocking the video?

author: dtweed
author_rank: Newbie
timestamp: June 13, 2013, 01:44:59 am
content: Quote from: Rufus on June 12, 2013, 09:01:40 pmOrdinarily, I'd agree with you. But in this case, Dave makes the error at about 20:00 in the video, and much of what follows is based on this erroneous calculation.Also, this isn't just some hobbiest putting out random videos, this is now Dave's livelihood, and I would think he'd have a vested interested in getting the fundamentals right.

author: dtweed
author_rank: Newbie
timestamp: June 13, 2013, 01:51:09 am
content: Quote from: kg4arn on June 12, 2013, 09:16:57 pmQuite serious. As @Rufus said, you can etiher think of the current as going though the parallel resistors, and apply the gain to the resulting voltage, or you can think of it as going only though the feedback resistor --but you can't do both.

author: EEVblog
author_rank: Unknown
timestamp: June 13, 2013, 02:04:28 am
content: Quote from: Rufus on June 12, 2013, 09:01:40 pmYes, I goofed that up.But it's not like I can pull the video. The best I can do is post-annotate.

author: EEVblog
author_rank: Unknown
timestamp: June 13, 2013, 02:11:22 am
content: Quote from: dtweed on June 13, 2013, 01:44:59 amIt is my livelihood, yes, but the videos are still "off the cuff".I am not teaching university here, nor producing paid-for content or some course.I shoot the video and don't review it, so unless I catch myself at the time I'll miss any errors. I try to sanity check as I edit it, and if there are any errors that's were I'll catch it. But proof checking your own stuff is useless as most will know. Then I upload and it's too late at that point.No matter how hard I try to check for errors, they are always going to slip through. Heck, even textbooks have errors.The fact that the errors dropped as expected during the practical measurements when dropping the resistor values probably reinforced in my mind that I made no mistakes in the theory part.

author: xrunner
author_rank: Super Contributor
timestamp: June 13, 2013, 02:41:48 am
content: Quote from: dtweed on June 13, 2013, 01:44:59 amWarning - Analogy coming at full speed ...dt - have you ever watched reality TV shows? My favs areMan vs. WildandSurvival Man. Basically they are survival experts thrown into a new environment on each show. Being experts, they can manage quite well yet, even so, they can't always be perfect in a survival setting. That's the way I look at these videos and enjoy them. It's a survival expert trying to tackle a new island or a new situation where you are running out of water. You do what you can at the moment, and later in the studio you can see how a perfect show could have been made.But, that's not what people want to watch.

author: EEVblog
author_rank: Unknown
timestamp: June 13, 2013, 03:13:17 am
content: Perhaps I've painted myself into a corner with calling it Fundamentals Friday and people expect it to be somehow different/better fact checked to my regular content?The analogy to a textbook highlights the difference I think. You can spend a couple of years writing an electronics textbook, check it a dozen times, have a third party technical review, andstillhave a dozen technical errors creep into the final print.I conceive, shoot, build, and edit a video in less than a day with a streamlined process that has minimal checking. The odds of technical errors creeping in will always be high I'm afraid, that's just the way it is.In the end, only a few people actually picked up on the error, out of how many, 15,000+In this case, if the practical measurements didn't show anything to support the theory, then I would have noticed something and went back to review my theory material and likely found the error.

author: EEVblog
author_rank: Unknown
timestamp: June 13, 2013, 03:15:38 am
content: Quote from: Dave on June 09, 2013, 02:29:14 amSure, but it at least still showed the current to within an order, and showed it change value and go negative, which was the intent.

author: free_electron
author_rank: Super Contributor
timestamp: June 13, 2013, 05:14:06 am
content: Quote from: dtweed on June 12, 2013, 08:11:41 pmTheoretically yes... Measure it and you will see there is a voltage.

author: EEVblog
author_rank: Unknown
timestamp: June 13, 2013, 06:33:47 am
content: Quote from: wilfred on June 13, 2013, 05:35:04 amHmm, unfortunately it wasn't.For any of my videos to take extra time to fact check, produce, refine, spin and release, that is time I simply do not have available.No doubt some will say "but it doesn't take much effort", but unfortunately it does. And errors will still creep through.I doubt there is a single technical video I have done that doesn't has some form of error or slip of the tongue/brain fart etc in it.QuoteGood idea in theory, in practice probably not workable. It would lead me to having to do the usual edit/process/upload cycle, and then have to refine any errors and repeat the cycle. Ok, if they are gross errors, fine, that needs to be done. But that's also a possible slippery slope toward "perfecting" videos.That could also involve having to go back and re-shoot scenes, keep continuity etc, days after the fact too.And then, take the current video for example, only a few people out of 15,000+ were able to spot the error. And no one person or small select group would be able to be knowledgeable and fact check everything right on every subject. So errors would likely still slip through.It would also lead to the inevitable ticked-off reviewer because they might come back with a bunch of suggestions on a better way to explain something etc, and then for the sake of the not "perfecting" things above, I'd have to politely decline to do/fix that. And they would get peeved and won't bother any more etc.I can see it being a very messy business...And with having to try and push out maybe 3 videos a week on average, it's a tough enough ask already.

author: dtweed
author_rank: Newbie
timestamp: June 13, 2013, 11:34:58 am
content: Quote from: EEVblog on June 13, 2013, 03:13:17 amNo, not really. But I think this particualr error deserves at least one of your "post-annotations", since it keeps getting mentioned through the rest of the video.I never really expected that your video production process would be any different for Fundamental Fridays, but I do have some expectation that you do a little more preparation before starting to shoot, including making a list of the points you intend to cover, and thinking about the sequencing of the presentation.Overall, I think you're doing a great job!

author: EEVblog
author_rank: Unknown
timestamp: June 13, 2013, 11:46:05 am
content: Quote from: dtweed on June 13, 2013, 11:34:58 amI put a little bit of thought into it, but it's still essentially press record then figure out what to say.e.g. I don't recall exactly, but for this one I knew I wanted to structure the sequence pretty much as you see it.eg. what is IBC, simplistic diff input circuit, a couple of problem scenarios, showing that Ib will flow through Rf in an ideal situation (not often known), and work from there to explain how complex it can get to figure it out, or that you often can't really figure it out because the specs are so wide and interacting etc.It's often much better in my head than what eventually comes out of my mouth

author: dtweed
author_rank: Newbie
timestamp: June 13, 2013, 11:51:59 am
content: Quote from: free_electron on June 13, 2013, 05:14:06 amAny voltage you measure at the inputs is basically the result of the amplifier correcting for VOS, which is a completely separate issue (as Dave described). The effects of IOS, and IBappear only at the output, and the voltage shift at the input as a result of this would be the output shift divided by the open-loop gain of the opamp.

author: wilheldp
author_rank: Regular Contributor
timestamp: June 14, 2013, 01:50:30 am
content: I saw Dave's tweet about the Owon scope video getting twice as many YouTube views as his "Fundamental Fridays" video on opamp bias current. I'm admittedly not as up-to-date as many members of this Forum on electronics design, so I don't find in-depth design discussion or white-board diagramming very interesting. I tend to find the "theory" videos like this one kind of dry, and they don't hold my attention as well as reviews or teardowns. I will still watch any video that Dave produces because I like his style and find the vast majority of the videos interesting and engaging. I'm just not a huge fan of the Fundamental Fridays series.

author: EEVblog
author_rank: Unknown
timestamp: June 14, 2013, 02:47:38 am
content: Quote from: wilheldp on June 14, 2013, 01:50:30 amCool, thanks for the feedback.I guess the FF Friday videos simply aren't of much interest to those who know about the topic, or as you say, watch more for the entertainment/infotainment value (which I know is a lot of people).The FF videos really don't have much if any of the "entertainment" aspect.As always, it comes down the fact that not everyone is going to like every video style.But it's not like they are not getting any views, so still very worthwhile doing, and feedback is very good.

author: wilheldp
author_rank: Regular Contributor
timestamp: June 14, 2013, 02:52:53 am
content: I'll continue to watch them, Dave, and they are valuable. But as you said, the entertainment value is fairly low. Electronics aren't my business...just my hobby. You will inevitably hit on a topic that will be applicable to one of my projects, so in that respect, I don't want to discourage more of the FF videos.Keep up the good work.

author: 3roomlab
author_rank: Frequent Contributor
timestamp: May 27, 2017, 08:40:33 am
content: i have a noob questionwhen a opamp datasheet says bias is -10nAis it trying to say current is going in or out? or it doesnt matter and we can take the value as +/-10nA?

author: EEVblog
author_rank: Unknown
timestamp: May 27, 2017, 11:19:32 am
content: Quote from: 3roomlab on May 27, 2017, 08:40:33 amIt means it will source (output) 10nA.So if you put a 10M resistor across the input to ground you'll measure about 100mV at the input pin.

author: David Hess
author_rank: Super Contributor
timestamp: May 27, 2017, 02:37:51 pm
content: Quote from: EEVblog on May 27, 2017, 11:19:32 amUnfortunately you cannot depend on the polarity specified in the datasheet meaning anything; you have to be very careful about the polarity of the input bias current specification. (1)Datasheets for the 324 list a 50nA input bias current but datasheets for the 741 list an 80nA input bias current. They cannot both be positive or negative because the 324 uses a PNP input stage and the 741 uses an NPN input stage. If you want to know the direction in these cases, you have to see a schematic of the input stage. A 301 operational amplifier is kind of like a single supply *positive* rail version of a 324 so it uses NPN input transistors but its input bias current specification is the same, just 70nA without indicating direction.Does this ever matter? The 741 has an NPN input stage so the input bias current goes to the negative supply. But what about the old 4136 which was advertised as a quad "741 performance" operational amplifier? It has a PNP input stage so the bias current goes to the positive supply. Both datasheets just list 40nA without anything to distinguish the direction so you have to check the device schematics. (2)There are more sophisticated ways than simple resistors to cancel input bias current. A single transistor can be used or another of the same type of operational amplifier. When this is done, the direction of the input bias current matters or you will end up doubling it.(1) None of the old or new datasheets I reviewed for this post indicated the direction of the input bias current *except* when it could go either way (usually but not always do to input bias current cancellation) in which case "+/-" was included.(2) The details are lost in the fog of time but I know some designers got caught by this when they tried to use the 4136 in an application where the direction of the input bias current mattered. I suspect this involved external input bias current cancellation.

author: 3roomlab
author_rank: Frequent Contributor
timestamp: May 27, 2017, 05:13:14 pm
content: i have a nearly unrelated question about input impedancein extremely high input impedance opamps, many have opted for "air" deadbug build as air is very high resistance (40TOhm/cm?) compared to PCB. from one of dave's vids which spoke about ohm/square resistance of copper, since we know the resistivity of FR4 (about 30G/cm?) and the thickness of FR4 (1.6mm?), that would make FR4 sit at 187GOhm/square. is my deduction of this resistance correct? (http://www.edn.com/electronics-blogs/all-aboard-/4431390/Sheet-resistance-of-copper-foil--Rule-of-Thumb--13)(PTFE @ 1e+15Ohm/cm, would result in 6250T Ohm/square !?)if then assuming @ 187GOhm/square, and we are mapping FR4 with blue squares (see pic). will it be right to assume that pads with long-ish footfalls adjacent to other similar pads suffer a higher leakage as more squares get to fit into the "spaces" ?ie : 3 squares fitting between 2 pads = 187/3 = 62GOhm (what do we call this? actual creep resistance?)so with that in mind, would it make sense to use/edit pads that will connect lesser "leaking" squares? i wonder do any PCB designer use this ohm/square method to design high resistance designs?but strangely, does using a thinner FR4 PCB = higher resistance? ie : 0.8mm board = 375GOhm/square? (i suspect something is wrong with my fundamentals again ha !)**updatei had a go editting the SOIC8, and was able to get 2 - 2.5 squares in series between pads (reduced pad size and staggering in and out alternate). if only i could measure how much that is ... ha! 375GOhms? 560G ? anyone want to try and measure actual creepage?

author: David Hess
author_rank: Super Contributor
timestamp: May 27, 2017, 06:56:30 pm
content: Quote from: 3roomlab on May 27, 2017, 05:13:14 pmI think you did it right however I have never seen any designer bother with this because ...Quote... the larger problem is surface resistance do to contamination. There is also a question about how consistent the printed circuit board material is. Manufacturers seem to be better about the material used for parts packaging than FR4 board material.The one exception I have seen is when guard traces are used. Then adding vias from top to bottom through the guard traces will intercept leakage through the volume of the board material but you have to be doing something pretty extreme for this to matter and it may have more importance preventing coupling capacitance to other nodes. The RF guys use via like this for completely different reasons.The surface contamination problem is a real killer and especially so with surface mount parts where air wiring is even more difficult and spacings are closer. The closest I have seen this done with surface mount parts is cutting slots through the board and not for high voltage isolation but how do you do this with such small pin spacings? Unfortunately the newest ultra low bias current parts are not available in through hole DIP packages somewhat limiting their ultimate performance.