Electronics-Related.com
Forums

keepalive

Started by John Larkin August 11, 2023
We have a mosfet closed-loop programmable current sink that works fine
most of the time but behaves badly at startup from zero current or at
very low currents. The fix is to drool in a bit of keepalive current
so that the loop never goes open and rails low.

https://www.dropbox.com/scl/fi/3ql0ew6a2elh562wbsx96/Keepalive.jpg?rlkey=fujknponcgtf31mi3rf072x5e&dl=0

The 400 volt MMBD5004 would be better for high-voltage versions.

On Friday, August 11, 2023 at 11:01:02 AM UTC-4, John Larkin wrote:
> We have a mosfet closed-loop programmable current sink that works fine > most of the time but behaves badly at startup from zero current or at > very low currents. The fix is to drool in a bit of keepalive current > so that the loop never goes open and rails low. > > https://www.dropbox.com/scl/fi/3ql0ew6a2elh562wbsx96/Keepalive.jpg?rlkey=fujknponcgtf31mi3rf072x5e&dl=0 > > The 400 volt MMBD5004 would be better for high-voltage versions.
Isn't 0.12V on that drain rather scanty?
On Fri, 11 Aug 2023 08:51:43 -0700 (PDT), Fred Bloggs
<bloggs.fredbloggs.fred@gmail.com> wrote:

>On Friday, August 11, 2023 at 11:01:02?AM UTC-4, John Larkin wrote: >> We have a mosfet closed-loop programmable current sink that works fine >> most of the time but behaves badly at startup from zero current or at >> very low currents. The fix is to drool in a bit of keepalive current >> so that the loop never goes open and rails low. >> >> https://www.dropbox.com/scl/fi/3ql0ew6a2elh562wbsx96/Keepalive.jpg?rlkey=fujknponcgtf31mi3rf072x5e&dl=0 >> >> The 400 volt MMBD5004 would be better for high-voltage versions. > >Isn't 0.12V on that drain rather scanty?
The 10 ohm resistor can always be tweaked, but this works in simulation. The opamp that closes the loop has a 3 uV max offset and the fet goes to milli-ohms. My project engineer can make it work; I just donated the idea. Of course dual diodes are usually separate chips and don't exactly match. But they do have exponential i-v curves and some ohms, not brick walls. If we specify a minimum input voltage, 2.5 maybe, the keepalive shuts itself off when the voltage is applied so contributes no error.
On 11/08/2023 16:00, John Larkin wrote:
> We have a mosfet closed-loop programmable current sink that works fine > most of the time but behaves badly at startup from zero current or at > very low currents. The fix is to drool in a bit of keepalive current > so that the loop never goes open and rails low. > > https://www.dropbox.com/scl/fi/3ql0ew6a2elh562wbsx96/Keepalive.jpg?rlkey=fujknponcgtf31mi3rf072x5e&dl=0 > > The 400 volt MMBD5004 would be better for high-voltage versions. >
Ingenious! At very low terminal voltages the user will see it sourcing a low current - don't know if that will be a problem in their application? piglet
On 11/08/2023 16:00, John Larkin wrote:
> We have a mosfet closed-loop programmable current sink that works fine > most of the time but behaves badly at startup from zero current or at > very low currents. The fix is to drool in a bit of keepalive current > so that the loop never goes open and rails low. > > https://www.dropbox.com/scl/fi/3ql0ew6a2elh562wbsx96/Keepalive.jpg?rlkey=fujknponcgtf31mi3rf072x5e&dl=0 > > The 400 volt MMBD5004 would be better for high-voltage versions. >
Does the sink device have to be a FET - a BJT or Darlington might be better in startup? piglet
On Fri, 11 Aug 2023 19:09:34 +0100, piglet <erichpwagner@hotmail.com>
wrote:

>On 11/08/2023 16:00, John Larkin wrote: >> We have a mosfet closed-loop programmable current sink that works fine >> most of the time but behaves badly at startup from zero current or at >> very low currents. The fix is to drool in a bit of keepalive current >> so that the loop never goes open and rails low. >> >> https://www.dropbox.com/scl/fi/3ql0ew6a2elh562wbsx96/Keepalive.jpg?rlkey=fujknponcgtf31mi3rf072x5e&dl=0 >> >> The 400 volt MMBD5004 would be better for high-voltage versions. >> >Ingenious! At very low terminal voltages the user will see it sourcing a >low current - don't know if that will be a problem in their application? > >piglet
This will be an 8-channel dummy load module and we'll specify some minimum operating voltage, 2.5 or 3 maybe. The launch customer will almost always use 28 volts DC, the nominal aircraft DC supply voltage. Once they apply their 3 volts, the keepalive diode back-biases and contributes no error. But this is a dummy load to simulate solenoids and motors, not a precision instrument.
On Fri, 11 Aug 2023 19:19:14 +0100, piglet <erichpwagner@hotmail.com>
wrote:

>On 11/08/2023 16:00, John Larkin wrote: >> We have a mosfet closed-loop programmable current sink that works fine >> most of the time but behaves badly at startup from zero current or at >> very low currents. The fix is to drool in a bit of keepalive current >> so that the loop never goes open and rails low. >> >> https://www.dropbox.com/scl/fi/3ql0ew6a2elh562wbsx96/Keepalive.jpg?rlkey=fujknponcgtf31mi3rf072x5e&dl=0 >> >> The 400 volt MMBD5004 would be better for high-voltage versions. >> >Does the sink device have to be a FET - a BJT or Darlington might be >better in startup? > >piglet
The fet is sure nice. It goes to milliohms and is easy to drive from an opamp. The thing about startup, with any transistor, is to not let the servo opamp see zero-zero inputs and wind up to some rail. In fact we want the fet to be biased slightly ON and be ready to go. Audio amps have the same issue, wanting to keep the output transistors always on a bit.
On 11/08/2023 20:38, John Larkin wrote:
> On Fri, 11 Aug 2023 19:19:14 +0100, piglet <erichpwagner@hotmail.com> > wrote: > >> On 11/08/2023 16:00, John Larkin wrote: >>> We have a mosfet closed-loop programmable current sink that works fine >>> most of the time but behaves badly at startup from zero current or at >>> very low currents. The fix is to drool in a bit of keepalive current >>> so that the loop never goes open and rails low. >>> >>> https://www.dropbox.com/scl/fi/3ql0ew6a2elh562wbsx96/Keepalive.jpg?rlkey=fujknponcgtf31mi3rf072x5e&dl=0 >>> >>> The 400 volt MMBD5004 would be better for high-voltage versions. >>> >> Does the sink device have to be a FET - a BJT or Darlington might be >> better in startup? >> >> piglet > > The fet is sure nice. It goes to milliohms and is easy to drive from > an opamp. > > The thing about startup, with any transistor, is to not let the servo > opamp see zero-zero inputs and wind up to some rail. In fact we want > the fet to be biased slightly ON and be ready to go. Audio amps have > the same issue, wanting to keep the output transistors always on a > bit. >
Yes, I am hoping with a BJT the base current should guarantee the opamp is always servoing and not railed. piglet
On Friday, August 11, 2023 at 12:12:18&#8239;PM UTC-4, John Larkin wrote:
> On Fri, 11 Aug 2023 08:51:43 -0700 (PDT), Fred Bloggs > <bloggs.fred...@gmail.com> wrote: > >On Friday, August 11, 2023 at 11:01:02?AM UTC-4, John Larkin wrote: > >> We have a mosfet closed-loop programmable current sink that works fine > >> most of the time but behaves badly at startup from zero current or at > >> very low currents. The fix is to drool in a bit of keepalive current > >> so that the loop never goes open and rails low. > >> > >> https://www.dropbox.com/scl/fi/3ql0ew6a2elh562wbsx96/Keepalive.jpg?rlkey=fujknponcgtf31mi3rf072x5e&dl=0 > >> > >> The 400 volt MMBD5004 would be better for high-voltage versions. > > > >Isn't 0.12V on that drain rather scanty? > The 10 ohm resistor can always be tweaked, but this works in > simulation. The opamp that closes the loop has a 3 uV max offset and > the fet goes to milli-ohms. My project engineer can make it work; I > just donated the idea. > > Of course dual diodes are usually separate chips and don't exactly > match. But they do have exponential i-v curves and some ohms, not > brick walls. > > If we specify a minimum input voltage, 2.5 maybe, the keepalive shuts > itself off when the voltage is applied so contributes no error.
Is this a current source or variable resistor?
On Fri, 11 Aug 2023 21:22:10 +0100, piglet <erichpwagner@hotmail.com>
wrote:

>On 11/08/2023 20:38, John Larkin wrote: >> On Fri, 11 Aug 2023 19:19:14 +0100, piglet <erichpwagner@hotmail.com> >> wrote: >> >>> On 11/08/2023 16:00, John Larkin wrote: >>>> We have a mosfet closed-loop programmable current sink that works fine >>>> most of the time but behaves badly at startup from zero current or at >>>> very low currents. The fix is to drool in a bit of keepalive current >>>> so that the loop never goes open and rails low. >>>> >>>> https://www.dropbox.com/scl/fi/3ql0ew6a2elh562wbsx96/Keepalive.jpg?rlkey=fujknponcgtf31mi3rf072x5e&dl=0 >>>> >>>> The 400 volt MMBD5004 would be better for high-voltage versions. >>>> >>> Does the sink device have to be a FET - a BJT or Darlington might be >>> better in startup? >>> >>> piglet >> >> The fet is sure nice. It goes to milliohms and is easy to drive from >> an opamp. >> >> The thing about startup, with any transistor, is to not let the servo >> opamp see zero-zero inputs and wind up to some rail. In fact we want >> the fet to be biased slightly ON and be ready to go. Audio amps have >> the same issue, wanting to keep the output transistors always on a >> bit. >> > >Yes, I am hoping with a BJT the base current should guarantee the opamp >is always servoing and not railed. > >piglet
If both the opamp inputs are zero volts, and it has any offset, it will rail high or low. The keepalive, and a tiny DAC offset, makes the opamp regulate a small constant mosfet current, and that's nice. This is a textbook opamp+mosfet controlled current sink, which can go bananas at zero current. Right, a BJT and some minimum demand offset will keep the loop closed even with nothing available on the collector. A gate-source resistor on the mosfet might have a similar effect. Kill its infinite beta!