EEVblog Electronics Community Forum

EEVblog => EEVblog Specific => Topic started by: Eliminateur on January 22, 2011, 08:53:54 pm

Title: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 22, 2011, 08:53:54 pm
Hello,
this episode has been proven extremely useful to me, can't believe i'd already watched it before and forgot about it.

Anyway, sine i need to set it up for far more current than the example i setup to do some simulations as the parts can get quite expensive and wanted to try some variables...

first thing, Dave, where did you pull out that Vgs to Vs graph from?, i've tried to find it in the datasheet and couldn't find anything, the closest is the transfer characteristic(but doesn't has much detail on the interesting part we care about)
http://www.datasheetcatalog.org/datasheets/90/489299_DS.pdf (http://www.datasheetcatalog.org/datasheets/90/489299_DS.pdf)

So, i set up the circuit on multisim, changing the opamp to a rail-to-rail output one(shouldn't affect it much) and went to test it...
And found some oddities, specially, the output to hte gate of the mosfet reads "7v" at full power when power is 5V :D, way to go multiFAIL!(unless i'm doing something WRONG)...
(http://img408.imageshack.us/img408/8991/multifail.th.png) (http://img408.imageshack.us/i/multifail.png/)

other than that, the circuit behaves as expected drawing the same ammount of current as the voltage in the divider.... so far, so good.

So i went about to change components, first a higher power transistor in a TO-247 package(i need to check the PSU parts bin in my office to see if i can scrounge something from there!). i found Vishay IRFP048 device to comply(and far exceed) my power needs http://www.vishay.com/docs/91198/91198.pdf (http://www.vishay.com/docs/91198/91198.pdf)
i reran the simulation and all values remain(gate voltage again returns whatever crazy value it can come up with, 7.95v this time)

Then a r-t-r opamp that can take >12V (since the gate voltage would probably far exceed 5V), i'm having some trouble here as a first model using LM6142 started oscillating wildly -suspect the gain bandwidth is too high-, so i changed to an LMC6462 with 15.5vcc max (i have to see if i can get this component here) but i can't get the simulation to output more than 4.93A at 15Vcc.

Revising the parametrics in natsemi i can't find something with low BW gain, dual/quad package and high VCC with r-t-r output and DIP package(the 4MHz gain ones are soic)..

but oh wait, the LM324D can get to 30V, so if i supply the system with +12V.... and yes.. looks like it could work!
(http://img255.imageshack.us/img255/4431/highpower.th.png) (http://img255.imageshack.us/i/highpower.png/)

am i missing something, could this work?
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: alm on January 23, 2011, 06:09:51 am
Revising the parametrics in natsemi i can't find something with low BW gain, dual/quad package and high VCC with r-t-r output and DIP package(the 4MHz gain ones are soic)..
You could limit the bandwidth by bypassing the feedback resistor with a small cap. Limiting bandwidth is much easier than increasing bandwidth ;).
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: tyblu on January 23, 2011, 06:16:45 am
what are you trying to do? Do you need fast response time/large bandwidth?
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: jahonen on January 23, 2011, 10:41:41 am
I think the current controller error amplifier gain should be rolled off suitably so that it stops the oscillation. Try putting a 10k resistor in between of shunt resistor and inverting input, and 1k resistor and 100n capacitor in series between inverting input and opamp output. Then experiment with resistor/capacitor values, if you get acceptable transient response.

Regards,
Janne
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 24, 2011, 03:49:33 am
Thanks for the tips guys.
Tyblu: i'm trying to build a much higher power dummy load(5A-20V), i don't require anything remotely fast speed no transient responsive, in fact, the slower the better.
Janne: i've tested the simulation with a much more normal "off the shelf" op amp, a LF353 and i haven't noticed any oscillations in simulation.
After narrowing down components, i figured i could do without rail to rail just by using a higher Vcc (what worries me a little is the bottom rail, but i know there are some "half rail" opamps..., or i could offset the zero somehow).
Also, check my last line, with the LM324D i could make it work as well.

Anyway, another thing i've just noticed is Sense resistor troubles, with 5A the sense resistor will sink 25W, even with 10 resistors in parallel, i can't get any supplier that has 10R 3W 1% resistors, it's 5% everywhere.
of course i could go with 15 or 20 resistors but that gets bulky pretty fast, and i'd still need 1.5W to 2W precision 20/15R resistors....

So i was thinking, what about going to .5R?, i halve the power that way to 12.5W with 10 x 5R but i still need 5R-1.5W resistors(crud, i'm pretty sure i can't get that either).
If i go with 15 x 7.5R then it's 333mA per part... still 1W :'(
and again we end up with a 20 resistor bulk of 10R resistors for 625mW each  :'(, argh this is getting ridiculous...

What would be the problems of lowering the sense resistor even more?, do i risk losing resolution at lower currents due to opamp offsets?(meaning i'd need to use precision opamps?), or by multiplying the sense voltage(with another opamp maybe?, or i can do it in the loops itself, like Janne suggested?) i'd be safe?
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: johnmx on January 24, 2011, 01:57:12 pm
I recommend you to use a small shunt resistor. In fact I’m building one current load (10A max) with a 0.005Ohm shunt resistor. I’m planning to use the MAX430 (chopper-stabilized opamp).

As soon I finish my project (maybe before the end of the week) I’ll post everything about it, construction plans, schematic, problems detected, etc.
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 24, 2011, 02:24:31 pm
Awesome John, i'm looking forward to your design.

How do you deal with Rds on active mode in the MOSFET with such a small shunt?.
Also, how do you reliably get such a small shunt value?(i'm guessing you're not using resistors either, am i right?, as even a 1% tolerance would throw the results all over the place)
I didn't knew about chopper-stab opamps, just did a quick research and looks like a very interesting device indeed(specially for very low level signals), bad thing is availability....

I recommend you to use a small shunt resistor. In fact I’m building one current load (10A max) with a 0.005Ohm shunt resistor. I’m planning to use the MAX430 (chopper-stabilized opamp).

As soon I finish my project (maybe before the end of the week) I’ll post everything about it, construction plans, schematic, problems detected, etc.
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 24, 2011, 05:22:45 pm
umfortunately i can't, not here at least(i need to try and use local sources as much as possible to reduce costs, and we're in the stoneage of electronics with a total lack of any precision components) and it's not viable to pay 100$ of shipping from digi-key for a 2~3$ component
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Time on January 24, 2011, 05:24:27 pm
You use the real time simulation feature for NIs EDA package?  I always prefered transient analysis, personally.
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: johnmx on January 25, 2011, 01:05:46 am
How do you deal with Rds on active mode in the MOSFET with such a small shunt?.
Also, how do you reliably get such a small shunt value?(i'm guessing you're not using resistors either, am i right?, as even a 1% tolerance would throw the results all over the place)

I will use a BJT Darlington transistor (BU941ZP). Why? Just because I have one that can dissipate 155W and the most powerful MOSFET that I have can only dissipate 80W. At first glance I see a limitation in my circuit, it will only operate at full current above 2.5V. But I don’t plan to use this current load on sources lower than 3V.

About the shunt resistor, I will use the one included in the ammeter.
Let me say that this project is meant to be done at the lowest cost as possible, that’s why I’m using some used and old parts. The total cost of this project is 1.5€, spent on the small wood box.

The box and the power section are done, check the picture above. Now I need to design the control circuit and try if it works ;D
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 25, 2011, 01:20:10 am
hahah i love the steampunk tone that vintage ammeter provides!

yeah, my circuit will be working all the time above 15V, so i'm not too worried about the low end.
Again, i'm looking forward to the completed "report", even thought you're using a BJT the principles should stay the same.

I'm still bashing my head against the local providers because they don't seem to even heard of a precision resistor smaller than 1R T_T
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: johnmx on January 25, 2011, 10:46:06 am
If you don’t need high accuracy you can always use the shunt resistor of any cheap multimeter. You can buy multimeters starting at 5€ in local Chinese stores, at least here in Portugal you can.
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 25, 2011, 11:48:05 am
@Johnmx:
i need 1.953mV accuracy (0.5v/256 A/D-D/A steps), and the cheap DMM shunts aren't rated AFAIK, so i'd have no way of knowing what the value is(and measuring sub 1R values is.... complicated)
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: DJPhil on January 25, 2011, 05:20:51 pm
With a mulitmeter adapter for milliohm resistance measurement (like this) (http://www.aeroelectric.com/articles/LowOhmsAdapter_3.pdf) you might be able to make your own shunt out of thick copper wire by trimming it to length.

Do you think that would help?
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 25, 2011, 06:04:01 pm
Very useful Phil, i need to get my paws on a LM317(i don't think i have any lying around...) and a 12R precision resistor....(actually it would be advisable to get a precision Vreg as well...).

i'd need to substract the parasitic resistance of the wires(as i don't have a relative value DMM) and that's it!.

i have tons of shunts from defunct computer PSUs, now i can test them!
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: DJPhil on January 26, 2011, 03:22:36 am
Glad I could help. :)

If you want to go completely wild you could use a precision voltage reference and an opamp to make a precision current source. There's lots of ways to get a precise current, but this one always comes to mind as I found it in an old Burr Brown appnote (http://focus.ti.com.cn/cn/general/docs/lit/getliterature.tsp?literatureNumber=sbva001&fileType=pdf). It'd essentially replace the LM317 and set resistor in the previous project. It's a bit of overkill, and expensive in comparison, but I thought I'd mention it in case.
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Psi on January 26, 2011, 03:39:01 am
If you ever need a high wattage dummy load and you just dont have one. A glass or bucket of water will act as a very good heatsink for a large resistor if you have the resistor underwater.
You can overrate a 10W resistor to handle 100W or more quite easy doing this, especially if your only testing and dont need it to be on continuously.

Obviously it isn't a good idea with high voltage though.
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: alm on January 26, 2011, 05:48:07 am
i need 1.953mV accuracy (0.5v/256 A/D-D/A steps), and the cheap DMM shunts aren't rated AFAIK, so i'd have no way of knowing what the value is(and measuring sub 1R values is.... complicated)
Just shove a lot of current through the shunt (10A or so, whatever your DMM and shunt can handle). Put a DMM in current mode in series with the shunt. Read current from the first DMM, measure voltage over the shunt with the second DMM, use Ohm's law to calculate resistance. Note that resistance may depend on current, so for max. accuracy, you may want to measure at various currents.
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: allanw on January 26, 2011, 06:56:28 am
If you ever need a high wattage dummy load and you just dont have one. A glass or bucket of water will act as a very good heatsink for a large resistor if you have the resistor underwater.
You can overrate a 10W resistor to handle 100W or more quite easy doing this, especially if your only testing and dont need it to be on continuously.

Obviously it isn't a good idea with high voltage though.

Tap water is pretty conductive though, right? Pure water should be fine though.
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 26, 2011, 01:12:13 pm
@DJphil: excellent, i might just use that, i need the utmost precision in measuring the shunt as it's a very low value(or having a 0.01R precision DMM which i don't have....)
@psi: not very useful for a "production" equipment sealed/repeatable/easy-to-use/automated device
"prior to use, sink resistor in a buckets of distilled water", no, i don't see that happening :D
@alm: i could try that to characteriuze, but again, using a dmm shunt is not very useful for a production run

All in all, what i'm worried about when using such a low value shunt is that the parasitic effects of traces and SNR suddenly become pronounced for low currents, opamp selection also becomes crucial with -Vcm having to be rail in or <Vss with ultra low offset.
But if i go to higher shunt values, resistor power skyrockets( with 0.1 i'm under 2.5W, but too close to use a 3W resistor for my taste, with 0.2 i already need a >5W resistor)
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: johnmx on January 26, 2011, 06:55:58 pm
Pay attention to the resistivity temperature dependence. If you want precise measures you need to keep the temperature of the shunt resistor as constant as possible. A higher resistor value dissipates more energy and will affect more.
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: alm on January 26, 2011, 07:37:24 pm
All in all, what i'm worried about when using such a low value shunt is that the parasitic effects of traces
This can be reduced by using kelvin connections.

and SNR suddenly become pronounced for low currents, opamp selection also becomes crucial with -Vcm having to be rail in or <Vss with ultra low offset.
But if i go to higher shunt values, resistor power skyrockets( with 0.1 i'm under 2.5W, but too close to use a 3W resistor for my taste, with 0.2 i already need a >5W resistor)
This is why most DMM's use several shunts, depending on the range. You could also look at Dave's µcurrent, it also handles pretty low voltage drops over the low-resistance shunts. But it's a trade-off between resolution/accuracy and voltage drop/dissipation.
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 27, 2011, 02:12:42 pm
Dave ucurrent is nice, i took a look and found interesting things for my project.
Yeah.. i'm still pondering about resolution/accuracy vs power, i don't really care much about dissipation, as the power will go either to the MOSFET or the Shunt so it's all the same to me having it in one or the other part(albeit having it in the mosfet makes it easier to dissipate)

The other issue is that -at least for the very few stores that i've found that don't charge 100$ shipping to me, well, 40.... the best and has pretty limited supply- a 0.2R 10W 1% resistor costs eight times as much and comes in Axial config(so that adding wires for the board would add even more parasitics) vs through-hole OAR-style ones that cost less than a buck for 0.1R 3W.
Even Vishay LVR 5W is 10c more than the OAR.... ( i think i'll go with that one if i buy one).

Hadn't thought of multiple shunts, the idea is nice but adds problems with switching the banks as i'd need at least one extra power resistor, 2 more mosfets to switch the shunt banks(i could use a TO-220 logic level cheap mosfet for this as it shouldn't dissipate much), some kind of driver for those mosfets, another precision opamp for the second shunt and that would end up rising the complexity, board layout and costs through the roof

ofc i'm thinking about kelvin connections(even though the kelvin leads could add to parasitics also)

Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 29, 2011, 01:34:48 am
hmmm i have a couple design "problems" with changing to 0.1R which i hope you can give me a hand:
Ifi choose a 0.1R resistor and want to keep the adjustment from 0-5V on NI then i need to add a gain of 10 from the sense to the NI input of main OP, i though about adding a second opamp with gain of 10 to feed the 1st one AND i can also use it as my ADC input.
BUt i'm having a stupid problem, how do i get a gain of 10 with normal commercial resistors?
Also, is my choice a sound one?, because i'd essentially be killing two birds with one stone as i'd still need to map the Vsense to 0-5V...

Also 2, to get rid of the offset in Vout from that amplifying amp, what can i do?, virtual ground?, rail to rail out?,m but there don't seem to be many R-t-r out low offset ones...
here's the circuit...
(http://img11.imageshack.us/img11/6766/feedbackproblem.th.png) (http://img11.imageshack.us/i/feedbackproblem.png/)

i'm at a complete loss, i don't know how to put a gain of 10 in the same loop or how to deal with the output offset of ~1V, another option is to completely use split power supply, then the 0 would be possible....(also, i'm trying to stay away from SMD, it would be a problem later to mount)
ideas?

Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: jahonen on January 29, 2011, 08:27:59 am
You can get gain of 10 for example with E12 resistors of 2.7k from output to inverting input and 330 ohms in parallel with 3.3k from inverting input to ground.

Be careful if you use an opamp in feedback loop, you can create all kinds of oscillators if the feedback amplifier is not fast enough. That can be solved by limiting the error amplifier gain at higher frequencies like I described above.

If you want to be absolutely sure that you can go to 0 volts, you must use a split supply. If your VDD is +5, then you can create the negative voltage using ICL7660 (or MAX660 for more current), or even with ubiquitous 555 with bit more components and less efficiency.

Regards,
Janne
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 29, 2011, 07:22:11 pm
@jahonen: yeah i'm experiencing those oscillations(figured out whilst sleeping that the response speed of the feedback amplifier wasn't fast enough so it was causing U4B output to overshoot until U3 responds that would continue in a cycle, it was kind of a Doc moment without the head bang hehehe).
I re-read your post in page 1 and i did a quick simulation using a 100nF cap on the feedback resistor and... it appears to be working!, i'll have to do some quick math to see what cutoff freq it is.. hmm with 27K and 100nF it seems to be 60Hz~, if i raise to 330nF i lower the cutoff to 20Hz(then again, i'm calculating an RC filter to ground so i'm probably doing it wrong... but looks sound)

@achmed: yeah, i'm not worried about U4B output because with 0 input the 1V offset is below FET threshold, if i where to be worried i'd also split U4 supply.
I can't scale reference from 0 to 0.5V as i'd need to VERY reliable supply a 0.5V source, the pot is only for the simulation anyway, the real deal will use a 256-tap 10k or 50K digital potentiometer. I don't think i have an accurate enough(to be cost effective) 5V supply as it will supply the entire rest of the circuit.

¿Why add a resistor to the gate if there isn't any current flowing?

Thanks for that TI reference!, very useful it ended up calculating 27K and 3K values for a gain of 10 with no offset!, many thanks!
about the mosfet: Even if the model isn't very accurate, it will give me an idea and the rest will be taken care by the opamp(in fact, i could probably chose whatever power MOSFET i can find and it would work ok as long as gate threshold is above OP Voutmin and the Vgate for 5A is enough from my 12V supply

About the offset values, the sense output will be read by a 0-5V ADC, if the sense output has a 1v offset it will skew(i can compensate in software to zero it) and i'd end up loosing a large portion of readouts in the lower end(from 0 to 1A in the Sense resistor), if i need -5V supply it's no problem(i'll have to deal with power supply issues later in the project anyway, i'm gonna take note of those 2 parts you mention).

I've ran a quick sim with the sense amp at split +-5V and the set potentiometer with a 0.5V supply, the circuit works as expected, and now i have 0v offset in the sense amp for the ADC, i still have the 0-0.5V input that i want to amplify...
(http://img155.imageshack.us/img155/9440/senseampok.th.png) (http://img155.imageshack.us/i/senseampok.png/)

Taking jahonen low-pass filter suggestion into account thus adding a 100nF cap in parallel to feedback resistor in U3A with split supply i think i have the best-of-both-worlds, 0-5V select +direct sense output to ADC:
(http://img130.imageshack.us/img130/1869/amplifiedokcutoff.th.png) (http://img130.imageshack.us/i/amplifiedokcutoff.png/)

Is it sound or multisim is pulling my leg?, sim has occasional low freq spikes that i can't seem to capture with XSC, weirdness...
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 30, 2011, 04:14:18 pm
The higher the step count and the lower the resistance the finer the resolution.
I follow you on higher step count, but why with lower resistance?, given the same step count, why does the 10K pot have better resolucion than the 50K one?, tolerance should affect them both the same...
i chose the 256-value one because that's what i can get locally and any larger than that(1024 steps for example) would be overkill and lost in tolerances downwards

Your mosfet is a capacitive load. Read through this for more info about phase shift.
http://tangentsoft.net/audio/hs-opamp.html (http://tangentsoft.net/audio/hs-opamp.html)
Forgot about that since i'm using DC signals, the resistor shouldn't do any harm so i'll add it for the end design, interesting link too.

For simple gain (no offset) TI has a calculator for that as well.
http://focus.ti.com/docs/toolsw/folders/print/gain-stage-calc.html (http://focus.ti.com/docs/toolsw/folders/print/gain-stage-calc.html)
Ah, a simpler version of the one you psoted earlier, bookmarking it.
Nice thing that it compensates for open loop gain(didn't make a difference with my choice amp, but good to know)

You asked earlier why Vgs/Vds discrepancy.Trans conductance isn't model in the fet accurately if at all that's why.
i see, that's why i'm seeing weird Vgs values, i guess i'll have to simulate it in "Solder '11" ;)

What you’re doing is getting difficult to follow. It sounds like your trying to condition your circuit around your ADC. Why don’t you just condition your 0-0.5V sense signal to your ADC?
See.
http://www.sensorsmag.com/da-control/hitting-sweet-spot-range-adcs-1549# (http://www.sensorsmag.com/da-control/hitting-sweet-spot-range-adcs-1549#)
You can say for example 0.5V from the opamp output is zero for your ADC input. This is the offset at the output of your U3A for a zero current. See the screen shots below for Using the TI tool for gain and offset.

Letsee if i can clarify a little on your question: i am in fact conditioning the 0-0.5v sense to my 0-5V ADC, that's what x10 gain U3 is for, with the added benefit of using the same output to allow me to use a 0-5V input for current select input(the "pot" part).
Both current select and sense will come/go to a microcontroller

i'm not following, ¿why would i want to set the full scale 0.5v as 0 for output?,i kind of find that would complicate things if i can simply put 0 to 5v as output with 2 less resistors and simply Rf+Rg
Nice url as well, good to bookmark when dealing with negative inputs(which i won't have in this circuit, that simplifies thing so i don't need floating input offsets).

Thanks for your patience and work on the post Achmed, i appreciate it a lot
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 30, 2011, 07:45:32 pm
but i'd like to avoid having to use a 0 to 0.5v in the digital potentiometer Vcc, getting a reliable precision low noise 0.5v supply there would be akin to having a negative rail regulator(hence my insistence/interest on using the same *10 sense amp as the feedback input, something i could also do is add a /10 attenuation opamp after the pot, but i really don't want to go there, it would introduce more errors and design issues with such low offsets yadda yadda).

hmm i see where you went with the 0.5 min, actually a regular opamp would be somewhat higher than that, around Vss+1V. Problem with all the RR I-O amps i've found(tried to use them first) is their very high offset voltage and limited supply range(the latter i can ignore since the sense amp would be +5V~).

Hmm i was forgetting about the upper swing when using +5V as opamp supply, i'll never get full swing(not with the opa277 at least best case is v+ -1V), so it's either another power rail for that part OR using the same +12V supply for FET gate... but it's a design quirk i'll have to look into i think later....

letme process the numbers........
why do you use a gain of 9?, ahh... it is to get 4.5v at full scale....
but same thing applies as i said before, to get 0.5v i'd need a r-t-t ultra low offset amp(rare) OR split supply(which negates the need for this), so i'd need to experiment with higher values but i end up with the 0.5V problem for the potentiometer...
i see where you go, the difference due to offset is negligible in the rest of the components tolerances when using *9 or *10

yeah i'm not planning to meaure anything below 100mA(or for that matter, i'm pretty sure anything below 0.5A, but i'd like to be flexible and future proof).
so, let's say i use the sense amp for the ADC with 0.5v offset, or even 1v to be safe..., so it's 1 to 4v, etc etc.
how do i reliably get a precise 0.5v with less than 5mV regulation supply for the digital pot?, do i use a precision voltage reference?(so i'm trading a standard negative inverter for a precision reference?, a quickie search shows some AD references, ofc i wouldn't dream of getting one of those exotic devices here....)

bleh i also discovered that 3K ain't a precision commercial value, closest is 3.01K but with 27K/3.01K is 9.97 and skews result a little too much for my taste.... i'll have to find some combo with what i can scrounge...(trimpots only go to 5%....), it also doesn't helps that all 0.1% resistors i can find are SMD 0805 or 0603, that sucks....

hehe yeah, everyone has their own "design taste" to account, i'm approaching the limits for simulation i'll have to start building a prototype soon...

sound like your project also has lots of headbutting with low-value precision stuff
 
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on January 31, 2011, 08:28:40 pm
it's not much inability as cost-effectiveness, i could supply anything from mauser/digikey, i'm just not willing to pay 40$ to 100$ of shipping for half the components net value because the project cost would skyrocket.

the current translation sounds much too complicated and i really don't want to get myself into having to finetune with input impedances and current converters, i rather deal with straight voltage values.

i could trim from 5V, but that 5V supply will have all the logic and load will vary, and i feel it will introduce too much error plus all the manual nuisance of having to trimpot for 0.5V at full scale so i'm gonna try the opamp feedback to noninverting and see if i can deal with transients and runaway oscilations.
I've been searching for ultra low voltage references, there are almost none and all of them start at 1V(apart from one programmable source from maxim, but it uses SOT23.....)

i'll use the OPA277 variants where precision is needed as i can get them here, LF353 and similar for blunt work(if needed at all), will use split supply as generating it is trivial compared to the math nuisance of maping the ranges(at least for me).

the problem now are the voltages, 7660 variants only support 10V, for the fet drive i'm gonna need from 10 to 15V or more(still can't decide, testing needed), i was hoping on using that same 15v for the feedback amp but with the 7660 is impossible, and +-5V won't cut it, so i'm gonna need a precision low dropout reg for ~7V

and to make matters worse, i want to make this battery powered so i'm gonna have to deal with all kinds of step-up/down converters from the 9V supply(step up for fet drive, linear LDO for logic, and for 7V i haven't got the slightest idea....), i fear i'm gonna have to forget about battery power for now and use a LM317 to supply the feedback amp from the 15V supply :S or use split transformer to generate +-9V, hmmm that sounds doable...
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on February 01, 2011, 01:42:00 am
for FET i'm looking at IRFP048, IRFP064 but first prototype units will probably use a ST STW20NB50 that i jacked from the main switcher of large PSUs, 20A continuous, +-30 Vgs rating
but Multisim does not have it's model so i don't know for certain how many gate voltage i'll need to drive it to 5Ax20V, if i take the datasheet output characteristic, for 20Vds and 5A i shoudln't need more than 6V.... but multisim says otherwise(i wonder who's bullshitting me..., guess i'll discover it in protoboard).

ah so you're using the 12K and 3K to divide the 5Vcc and make 0.5v then you use the AD8629 to isolate it, nice idea, i thought about that too but kept thinking it couldn't work due to output offset, but then again if i chose a simple RtR opamp output...., then i could also use a precision 1v voltage reference or something of the sort to get over noisy Vcc(same with U2).
where do you get the 2.5v "ref3125"?, and i'm sure R7 and R8 need to be precision 1% or 0.1% parts as well which worries me

the idea is to test things by module, but i worry what would happen when all is put together, the 5V line feeds the LCD, backlight, microcontroller, some of the opamps(and some parts i haven't even begun to design yet for interfaces and testing), then the 12~15V line feeds the main FET, a 12V line for the HSF etc etc
i guess with proper decoupling i shouldn't worry(lcd and backlight should be the hungriest at 140mA~), i could also use a ULN/tight regulated linear reg off the bridge rectifier for precision voltages....

So far then, from your feedback i can guess 3 variations:
v1: "the simpler" with feedback amp, 2 opamps total with split +- 7v rail, prone to oscillations and weird stuff
v2a: "elegant", 0.5V precision supply, divider with opamp follower into digipot input, then another opamp for sense amp into ADC with split +-7V rail, 3 OPs total and precision resistors
v2b: same as a, but using 0.5~0.8V offset to 4~4.5v(the OPA277 datasheet specs that output for 10K load is V-+0.5v and V+ -1.2V whiuch leaves me with 0.5 to 3.8V, best case from graph is -1V), no split rails but i tradeoff dynamic range and software "complexity"(which is somewhat trivial), smae 3 OPs

I live in Argentina, distributors here suck(the ones that have stuff have minimum order ammount to ship -at your expense-) and are in the stoneage, the current component selection is based on what i can get from them should i chose to go into production(otherwise id just be ordering free samples of every device i need disregarding supply), Sense resistor is proving to be nigh impossible to get(but i found one from my fathers electro-stash, a old Dale 0.1R 0.1% unknown power resistor).
i can't even get a SMD breadboard, let alone almost any smd component or 1% resistors
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on February 01, 2011, 02:19:39 pm
that AD8638 opamp looks awesome(i'll have to run a simulation with that opamp), i'm pretty sure it would be perfect for my device, but i can't get it here, AND it's SMD(i'm staying clear of SMD) and it's impossible to get free samples as well. That's why i'm using the opa277 variants, even when they're not RtR
and i have a ton of problems sourcing 0.1R, they're all SMD :(
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: johnmx on February 09, 2011, 02:34:37 am
Eliminateur, check my recent post about my current dummy load:

https://www.eevblog.com/forum/index.php?topic=2487.0 (https://www.eevblog.com/forum/index.php?topic=2487.0)
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on February 09, 2011, 12:39:35 pm
john, very nice and complete!.
I see that you went for a setup with an amplifying NI opamp U3 and then the main opamp in U4, how did you control oscillation problems?(or you didn't experienced any?)
i should get me some MAX430 from the local stores, looks awesome for my need AND it's DIP!.
¿Why R2 between amps?
¿and C9 in the feedback loop?(or is it part of a RC filter between the 2?).
that TC962/TC7662 looks nice and higher voltage than the 7660 i have, taking note of it...
¿how do you handle the large VI offset of the LM258, doing a quick math, with a 1mA signal you get ~375uV on U4A input, or is that way below your min current?
good thing about the fuse, hadn't tought of that!, adding....
Good protection circuitry, luckily i can dispense it since the fet can handle 270W continuous and i'm using a ucontroller to drive the circuit so i can limit it over there

umfortunately this module of the project is in the backburner for a while whilst i finish an arduino-controlled lead-acid battery charger. I also need to focus on other modules to see if i need components in common or not but i've still made some design choices to narrow down the build:

1) i'm gonna use split supply for the feedback opamp alone i think, because a 1V vout offset is way below the MOSFET threshold voltage.
2) forget about battery power, i'm gonna need an active heatsink like the one you used(gonna use an old P4 one and screw it on that) plus microcontroller, display, associated circuitry... too much hassle and cost to power it by battery. What's left is to determine the minimum supply voltage for the maximum power output and then build a "central" power distribution module
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: johnmx on February 09, 2011, 10:59:23 pm
- The main purpose of R2 and C9 is to stabilize the circuit. The same for R20 and C22, but in this case it’s desired to have a slower response on the limiting circuit (U4B) than in the current control circuit (U4A). That’s why R20*C22 > R2*C9. If you don’t follow this rule then the whole circuit will probably oscillate when it reaches a power limit situation.

- All components are through-hole. I believe MAX430 is now obsolete, but you can use any equivalent part.

- 1mA is too low for this circuit. The potentiometer has a mechanical counting dial on it with a resolution of 20mA.

Let me give you an advise, keep your circuit as simple as possible. If you turn it into something very complex then the chances to not finish it will increase a lot. I prefer to have a limited but working project than an unfinished high-tech top project.
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on February 10, 2011, 01:52:53 am
John,
thanks for the clarifications and the advice, i want to keep things as simple as possible too, this module on my project will be simpler than your device as i won't have the protection circuitry you added.
i'm gonna have to add those R/C networks to stabilize the system as well, yeah the MAX430 is obsolete, but that means there's a high chance i'll be able to get it here as a "state of the art" device :D. Umfortunately, Maxim seems to have abandoned DIP packages for precision parts, so there aren't any more chopper-stab opamps from them in DIP, and TI chopper-amps are very old "outdated" designs that need external caps and have limited supply and horrible output swing.
I wonder how the MAX430 deals with single-rail...
Linear has some nice devices but they refused to send free samples to my country for "small volume" projects with all kinds of BS red-tape(wankers)

I don't know if i mentioned this before but this is gonna be a part of my laptop PSU tester, and that has some hurdles even if i don't go into feature-creep(which i want to avoid!!!), at least i've set the goals and began doing design choices to mold it, so i'll be opening other threads with request for assistance when i'm up against the wall hehe ;)

Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on February 28, 2011, 02:03:11 pm
Back again on this project part...
i've found(no idea where, it was there on my desktop :D) this circuit of a current source, built it in multisim just for kicks and it works -as expected-, but i have some questions about it that maybe you guys can enlighten(and so i can apply to the "big daddy").
What i understand is the divider choice, to get 495mV from 5V adjust equals the drop on Rsense@1.5A, so far so good...:

1) What's R4 for?, i'v tried removing it and makes no difference in loop gain, or is it part of a snubber with C4?.
2) Why does it put C3/R3 in series with FET, and why those values in particular?(should i calculate it as an RC filter, but C isn't to ground..., if i calculate it as a normal Rc filter, it gives a cutoff of 153kHz)
3) why is C4 across output and NI input?
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: johnmx on February 28, 2011, 02:43:06 pm
You already asked those questions before. Those components are there in order to stabilize the circuit.
You need to read some info about loop stability. Check the following docs:
http://www.en-genius.net/site/zones/acquisitionZONE/technical_notes/acqt_092407 (http://www.en-genius.net/site/zones/acquisitionZONE/technical_notes/acqt_092407)
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on February 28, 2011, 08:16:07 pm
hmm yes.. i thinki did, for the other circuits, but i don't understand why those exact values and for what frequencies they where thought for...

i've *tried* to digest that note you pasted and it's way more complex for my rusty state than i'd hoped, far too complicated and theoretical :(

thanks for it anyway, i'll have to take a further look into it
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on March 29, 2011, 03:34:38 am
oook, back in the saddle!
i finally moved my ass and built the damn thing on a protoboard and the power part in a universal board with kelvin connections and all, but i have to say the results are somewhat dissapointing....
letme go by parts:
1) attached is the circuit i'm building now
2) i find it very hard to calibrate/make it do what i want, maybe it's my crap DMMs and i don't have a precision Amperimeter at hand and the 10A range is horrid...
3) even with kelvin connections, the measure i do on the sense resistor and the ones on the other end of the kelvin cables is way off, almost by +5mV @ 17mV in the rsense!.(which explains why i had to fiddle the loop gain)
I was guessing some sort of ground loop/return issue, so i "joined" the load ground to the protoboard and moved the setting potentiometer closer to the input and that kind of solved the large difference i was seeing...
this will be a problem when laying out the PCB, with return paths and stuff, and how to keep the kelvin connection as close as possible, but i have no idea how to do it efficiently because i'm not doing differential sense, so only 1 pin(the high side of the resense) goes to the 4277 that has split supply, the ground... returns via ground, so how do i take advantage of the 2nd Kelvin connection(the gnd one)?
should i connect it closest to the R10 ground?

4) after twiddling with those ground problems and tweaking the trimpot i'm seeing a close relation between the potentiometer voltage and the load current, looks stable also...

5) i'm not seeing problems with the mosfet threshold(the schematic shows a IRFP451 but i'm using a IRFP460), but my lab supply OCP started kicking at around 1.5A so i couldn't push it more, sense resistor is ice cold at that current..., i could even go to +-12V since Vgs never goes above 5~6V, i'm sure that at higher Load voltages i'm going to need higher gate, i only tested at 5V and 12V

6) seeing the adjustment problems, cable loses and the inherent tolerance of the sense resistor, i'm going to have to use a trimpot in the final circuit for the X10 path, right now it's measuring 26.9K for the 27K 5% one i put and 3.59K in the trimpot, so instead of x10 i'm seeing

i'm also attaching a photo of the little monster for your reference...

So here i am, wondering how to calibrate this, how to deal with the PCB routing and how to make best use of both kelvin connections(as right now the gnd one is kind of unused) and all that!
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: scrat on March 29, 2011, 04:05:15 pm
A few things come up to my mind...

Why did you use that opamp configuration? U1B is not used as a differential amplifier, nor an integrator, nor a real low-pass... U1A is not a real integrator... I think a common PI would have worked.
Why is there an RC parallel on the gate? It introduces a zero in the transfer function...
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on March 29, 2011, 04:32:56 pm
Scrat:
U1b is a x10 amp for the feedback path, since i'm using a 0.1ohm sense resistor and need to maintain 0-5V(0-5A in turn) control voltage, thus needing to amplify the feedback path.
I don't follow you on U1A integrator... U1A is the same as Dave's original circuit, it's a negative-feedback amplifier i think....
the R4/C4 RC i took it from suggestions made before and other circuits i found(including the one i posted in an earlier post and johnmx circuit), to stabilize the loop, wheter or not the values i chose work.. it's another issue... i haven't found a way to effectively calculate which are the best values(johnmx posted an article but i found it very hard to follow)
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: scrat on March 29, 2011, 05:16:29 pm
I was thinking of using only differential proportional+integrator, but there is the problem related to the low voltage from the current sense, which is why you put the gain there. If your idea was to filter and amplify the feedback signal, you should have also put a capacitor to ground (same as C1) at the + pin of U1B.

The differential configuration (that can still be used for the 10x amplifier) could have solved a possible drop on the sense connection, although it is quite strange what you get (R4 is 10000x the sense resistance, and ground is specifically wired).

BTW, U1A is there as an integrator, since the feedback is through a capacitor, and if you calculate the gain from U1B output, it results 1/(R4*C5)*integral(input). It seems that the loop gain is stable, not taking into account the R2-C4-Cgate (gate equivalent capacitance is variable).
Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on March 29, 2011, 07:11:07 pm
Nice pointers scrat.

i hadn't considered decoupling the NI input of U1B, i'm going to add it as well, .01uF or 47nF should do it i think...

the R4 is on the schematic but not on the protoboard(in simulation i didn't notice any difference with or without R4, i should add it as well to the built circuit).
in my original circuit, C5 also wasn't there, i borrowed it from johnmx current sink circuit.

how would you do a differential config for the Rsense with x10/variable gain?, i've been looking at some circuits using opamps and i'd need to balance and match the 4 gain resistors and have to deal with the decreased impedance as well(unless using some specific differential amp like the INA106 that has fixed +10 gain, then again if i have to do gain adjust i'm screwed with that device).
Even without going differential, should the ground point being close/same as R10 do the trick?

Yeah i don't know why i'm getting such large difference with a straight soldered single-core wire, i'll redo the ground path to do single point ground today when i get home and add the missing R4 and the decoupling cap to ground.

BTW, forgot to add, tested the sink from 0 to 30V and the current didn't even blink, Vgate wasn't any different as well(i thought it would change, but i guess not).
i'm going to lower supply to +-12V as well, after all the only reason i'm using -rail is because the OPA4277 isn't RtR so U1B would never go to 0V.
I'm still seeing differences in set value to current measured even after setting the trimpot, but i can't be sure if it's because of the DMM inaccuracy in 10A range or those funky differences (side note: i need to get a good dmm, but no cash at hand atm).

Edit: After these issues it occurred to me:
1) Since the initial idea is to feed the output of U1B to the on-board ADC of a micro, thus having a direct current readout and i could calibrate via software, problem is that if the U1B output =! to the Vshuntx10(or to be more precise, straight Current across Rsense) i have no way of knowing what the "real" value is, as i'm using U1B as the sense amp as well which could lead me to over/undercompensate and have false data....
So... why don't i calibrate the sink in "best guess" scenario, without much precision issues and don't use U1B as sense?, then...

2) I use a low-side current sense like this one: http://focus.ti.com/docs/prod/folders/print/ina220.html (http://focus.ti.com/docs/prod/folders/print/ina220.html) which as a bonus has I2C output, Vbus sense, etc etc and thus use that value as true feedback for the current sink(in software doing something like: rise Sink current by ".2 amps"(or whatever value) -> small delay -> read INA -> use difference as feedback, readjust), trick would be to do a feedback calculation that won't end in oscillation....

i don't know why i hadn't come up with that idea before... probably because i thought i wouldn't encounter these issues with the feedback amp being so imprecise

Title: Re: EEVblog #102 - DIY dummy load - higher current?
Post by: Eliminateur on March 30, 2011, 03:47:24 am
Well, i'm back home and twiddled a bit..., oh and i brought my old fluke 8020A

here's what i did:
1) added the 1K R4 resistor, added the decoupling cap to NI of U1B(0.1u)
2) the low side ground return of the rsense(the black wire in the "joined ground") i put it directly to the PSU gnd terminal, thus ensuring the most direct path for current return, i also dejoined that ground position.
3) changed Vcc/Vss to +-12V
4) calibrated the trimpot using the fluke as amperimeter, kind of hard as the value moves slow and all the sudden jump some mA.
5) connected a croc from the DUT GND to the insertion point for GND on the protoboard(single point ground on the left), this cable is much longer than the Rsense ground return of course

now, if i leave the Kelvin GND connection open(meaning no GND connection between power supply and DUT GND), current draw peaks hard up to 1.5A and moves everywhere
but depending on what part of the protoboard ground plane i connect it to, the current sinked also changes!, and the more current i draw, the more pronounced the difference is(close to 100mA @1.5A).
I put the fluke between that wire and protoboard ground and i measured around 50uA at full scale, surely that ammount of current shouldn't induce a ground path return potential on the trimpot?

in the end i left it connected to the trimpot GND for cal purposes...

but i'm still baffled, i should do a quick PCB of this and replace the caps and resistors(if i ever get around to knowing how to use a PCB design soft as i have a some nonstandard sized components)