Author Topic: help , what does the C8 do?  (Read 2138 times)

0 Members and 1 Guest are viewing this topic.

Offline Touch3Topic starter

  • Newbie
  • Posts: 3
  • Country: cn
help , what does the C8 do?
« on: November 25, 2023, 10:06:50 am »
This is a comparator circuit as shown. The negative terminal is ISEN taken from the current detection resistor of the brushless motor, and the positive terminal is the set level. What I wonder is what the function of C8 is? Who can help me look at it? Thank you.
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16362
  • Country: za
Re: help , what does the C8 do?
« Reply #1 on: November 25, 2023, 10:15:04 am »
C8 is a filter, to remove high frequency noise from the input, and to average the current, so the turn on spike as the capacitance of the wiring and mosfets will not falsely trigger the comparator, as it slows the rise of the current sense voltage, allowing for the motor inductance to be the dominant source of voltage, so the driver can switch off the mosfet switch when the current in the coil has exceeded the required current cut off point.

If it is not there the charge injection of turning on the mosfet Q2,4,6 will otherwise appear as an extra current flow in the sense resistor, and thus with a moderately high current in the coil turn off the driver early, before the current is correct to provide the required torque in the motor.
 

Offline Touch3Topic starter

  • Newbie
  • Posts: 3
  • Country: cn
Re: help , what does the C8 do?
« Reply #2 on: November 25, 2023, 10:45:38 am »
 Are you saying C8 is a filter? So the filter loop of interference signal is C8->C14->GND?
 

Offline SeanB

  • Super Contributor
  • ***
  • Posts: 16362
  • Country: za
Re: help , what does the C8 do?
« Reply #3 on: November 25, 2023, 11:14:58 am »
C8 is removing noise from the comparator input, as the desired trigger voltage is between the 2 comparator inputs, the filtering is there, so that it slows down the response of the input, only R4 and C8 are the filter, C18 is going to allow the reference to rise up with the edge of the impulse, so the comparator will still not trigger on this edge, but only after a RC time constant when the voltage finally settles down to steady state, and thus the comparator input will have inverting input above non inverting input. Roughly 2ms, so enough time for transients in thew wiring and the motor to have settled, and the current to have ramped up through motor inductance to the desired current.
 
The following users thanked this post: Touch3

Offline Touch3Topic starter

  • Newbie
  • Posts: 3
  • Country: cn
Re: help , what does the C8 do?
« Reply #4 on: November 25, 2023, 11:40:46 am »


C8 is connected between the two ends of the op amp input. Does it have any other function besides filtering?

Can I change C8 like this? One end of C8 is connected to the negative terminal of the amplifier, and the other end is grounded.
 

Offline Konkedout

  • Regular Contributor
  • *
  • Posts: 122
  • Country: us
Re: help , what does the C8 do?
« Reply #5 on: November 26, 2023, 06:01:39 am »
I think that might work, but layout (component placement) is an under-appreciated consideration.  Ignoring the exact bandwidth differences and assuming no layout issues, yeah that is OK.  But f there is a lot of current flowing through ground, or if there is a lot of wiring distance that is not shown and the environment is noisy it might not work as well.  C8 should be a small capacitor that is up close to the comparator input.

I find it interesting that one capacitor is shown as 220 nF while the other one is shown as 0.1 uF.  Two different conventions of nomenclature.  I personally prefer nF rather than decimal uF.  But neither is as bad as uuF which was common once upon a time.
 
The following users thanked this post: Touch3

Offline dietert1

  • Super Contributor
  • ***
  • Posts: 2375
  • Country: br
    • CADT Homepage
Re: help , what does the C8 do?
« Reply #6 on: November 26, 2023, 07:46:33 am »
It may be possible that C8 = 220 pF (not nF) was meant initially. With the 10K resistor R4 the filter time constant would be 2.2 usec, certainly enough to suppress mosfet turn-on and turn-off spikes.
Power mosfets often have some nF of input capacitance, times 10R gate resistor gives 50 nsec or so.

Regards, Dieter
 
The following users thanked this post: Victorman222, Touch3

Online David Hess

  • Super Contributor
  • ***
  • Posts: 17117
  • Country: us
  • DavidH
Re: help , what does the C8 do?
« Reply #7 on: November 26, 2023, 03:25:15 pm »
C8 is connected between the two ends of the op amp input. Does it have any other function besides filtering?

C8 also delays the signal to the comparator.

Quote
Can I change C8 like this? One end of C8 is connected to the negative terminal of the amplifier, and the other end is grounded.

That will almost always still work, however placing C8 between the inputs has the advantage of not turning common mode noise into differential noise.  If C8 is grounded, then common mode noise in the ground will affect the two inputs differently and could possibly trip the comparator.

But this is unlikely and either connection should work fine.
 
The following users thanked this post: Touch3


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf