Can someone please explain what this circuit does. Or even tell me the name of this circuit.

Discussion in 'Analog & Mixed-Signal Design' started by Rutvik Narayana, Aug 11, 2016.

  1. Rutvik Narayana

    Thread Starter New Member

    Aug 11, 2016
    1
    0
  2. AnalogKid

    AAC Fanatic!

    Aug 1, 2013
    5,653
    1,605
    It is an overly complex constant current regulator for the LED. The two MOSFETs are incorrect.

    Why?

    ak
     
    OBW0549 likes this.
  3. dannyf

    Well-Known Member

    Sep 13, 2015
    2,196
    421
    The opamp on the right detects the current going through the LED, and the opamp on the left integrates the current.

    Once the integral reaches a threshold set by r1 and r2, the opamp on the left turns off the MOSFET thus discharges the integrator.

    So it is a pwm controller, with its duty cycle controlled by r1 and r2.
     
  4. OBW0549

    Well-Known Member

    Mar 2, 2015
    1,871
    1,533
    Ummm... no.

    It could be a PWM controller, if there were something to force the MOSFET on the right to function as a switch instead of just a linear pass element, AND if there were some hysteresis mechanism built into the feedback loop. Without these, however, this is merely a linear constant current regulator which will hold the LED current at a level such that the voltage drop across the 1Ω sense resistor is equal to the voltage at the junction of R1 and R2.
     
  5. AnalogKid

    AAC Fanatic!

    Aug 1, 2013
    5,653
    1,605
    OBW is on a roll. The opamp on the right is performing a function similar to the "DC servo" in audio amplifiers that have no coupling capacitors.

    ak
     
    OBW0549 likes this.
  6. johndeaton

    Member

    Sep 23, 2015
    62
    4
    What is the purpose of R3 and the capacitor?
     
  7. OBW0549

    Well-Known Member

    Mar 2, 2015
    1,871
    1,533
    R3 and capacitor C, along with the op amp whose (-) input they are connected to, form an integrator which serves as the error amplifier portion of the closed-loop current controller.

    The error amplifier, in turn, controls the gate voltage of the MOSFET and thereby adjusts its drain current, keeping the current at such a level as to make the voltage being applied to R3 the same as the reference (i.e., setpoint) level established by R1 and R2.

    The op amp on the right, along with its network of resistors, operates as a unity gain differential amplifier which translates the differential voltage across the 1Ω current sense resistor into a single-ended (i.e., ground-referenced) voltage for input to the integrator.
     
    johndeaton likes this.
  8. johndeaton

    Member

    Sep 23, 2015
    62
    4

    That makes sense, but could the left op amp, R3, and C be replaced with a simple comparator circuit that just turns off the MOSFET drive voltage when the output of the differential op amp is higher than the voltage at R1 and R2? If not, why?
     
    Last edited: Aug 21, 2016
    OBW0549 likes this.
  9. OBW0549

    Well-Known Member

    Mar 2, 2015
    1,871
    1,533
    Not really-- at least, not and have the circuit work very well.

    What would happen is that the comparator would oscillate extremely rapidly at an uncontrolled frequency, turning the MOSFET on and off as fast as it could (depending on the comparator used, this could range well into the low RF frequencies).

    This would waste a lot of power, make the MOSFET hotter than a stolen handgun, generate tons of RF interference that would radiate all over the place, and end up doing a rather crappy job of regulating the LED brightness.

    If you're aiming to create an LED drive circuit that will avoid the power wastage associated with linear controllers, the best thing to do would probably be to start with some sort of current-feedback switching regulator and go from there.
     
    johndeaton likes this.
  10. johndeaton

    Member

    Sep 23, 2015
    62
    4
    Thanks OBW. Great explanation as always.
     
    OBW0549 likes this.
  11. OBW0549

    Well-Known Member

    Mar 2, 2015
    1,871
    1,533
    One example of a current-feedback switching regulator such as I mentioned above would be Linear Tech's LT3474 1 Amp Step-Down LED Driver chip. It's a basic buck-type stepdown switching regulator; but instead of controlling its output to a constant voltage, it controls its output to maintain a constant LED current. Figure 1 on page 7 of the data sheet shows a block diagram of the chip's innards.
     
    johndeaton likes this.
  12. ci139

    Member

    Jul 11, 2016
    343
    39
    _Draft-led-ctrl.png
    _______________________________
    @2017CE :: Ran with different OpAmp -- the circuit first seemed an idiot proof one , but as my psychiatrist has given up , i managed to prove an opposite for the LT6240 (chosen because likely the best one they got ?)
    cc_Draft_CC0100.png
    just FYI -- i won't be discussing the subj. here
     
    Last edited: Jul 20, 2017
  13. johndeaton

    Member

    Sep 23, 2015
    62
    4
    What are the formulas around sizing R3 and C in this circuit? Anyone have a good link to more information?
     
  14. OBW0549

    Well-Known Member

    Mar 2, 2015
    1,871
    1,533
    I doubt the values are critical; R3 = 10 kΩ and C = 0.1 μF would probably work, or any other combination that would yield an RC time constant of somewhere around 0.1 to 100 milliseconds.

    But as AnalogKid indicated in post #2, this circuit is way more complex than it needs to be; I would never use it, not in a million years.
     
    johndeaton likes this.
  15. johndeaton

    Member

    Sep 23, 2015
    62
    4
    Hopefully some teacher was using it as a learning example instead of a practical circuit :)
     
  16. OBW0549

    Well-Known Member

    Mar 2, 2015
    1,871
    1,533
    Agreed.

    The way the circuit is designed, it looks to me like it was intended to supply the LED with an extremely precise current that would be absolutely constant. I've seen constant-current control circuits like that, but never for a trivial task like regulating LED current. If I wanted constant current for an LED, I'd probably use something like the attached:
     
    johndeaton likes this.
Loading...