Q: Help me really understand discharging and Charging of a capacitor

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












I feel bad at this point. This will be my last post about it, however, I will explain myself more clearly and more transparent so everyone doesn't need to guess my issues.



Never been so confused with a circuit before.



I am trying to analyze a precision Rectifier circuit with a capacitor at its load/output.



The end goal is: Trying to predict the circuit's output as well see the behaviour of the circuit to see if it needs further improvement.



I am going to go thru this circuit step - by - step and my thinking process and hopefully you can tell me where I went wrong, and show you where I get stuck.





schematic





simulate this circuit – Schematic created using CircuitLab




  • How I am going to approach this circuit is: Assumptions



    1. DC analysis because due to the diode changing the topology or state of the circuit depending on the uprising or down rising of the wave.


    2. Steady - State. I am going to assume the capacitor will be significantly charged


    3. We need to know which state the diode is in (Forward bias or reverse bias).


    4. Current travels from High electrical Potential to Low electrical Potential


    Starting the analysis:



Since we are working with a diode I would assume you will have to work out the math at each "positive cycle" and "negative cycle" of the wave.
enter image description here





schematic





simulate this circuit



In order to find if the current is positive coming out of the OP-AMP, we need to find all the missing voltages (Vout). In matter of fact to find the current of the components, we need to find the missing voltages anyways.



$ Node "0V": frac0-52kOmega + frac0-V_out2kOmega = 0$



$ frac-52kOmega - fracV_out2kOmega = 0$



$ frac-52kOmega = fracV_out2kOmega$



$ V_out = -5$



Concluding all our missing voltages, putting this back into the schematic.





schematic





simulate this circuit




I get stuck here at this point



What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown



$ In = Iout $



$ 2.5mA + ??? = ??? $



and I don't know how to get the rest of the current, if I knew how to get at least the current out of the capacitor I would be able to find out the op-amp's current plugging it into the equation above.



The thing is, I said assume steady state so I guess I can have the Capacitor become short, however, another problem is that it doesn't tell me if the capacitor is charging or discharging them.




schematic





simulate this circuit



Same strategy here, finding the voltage, however this time the topology of the circuit change as the op-amp isn't connected via feedback anymore. Thus we can assume this is just a simple RC Circuit (simplified).



$ H(s) = frac10.0004*s+1$



We take the lim s -> 0 we get:



$ H(0) = 5 $



Putting it back in the schematic:





schematic





simulate this circuit



Looks like our diode assumption worked out, thus when the sine wave is rising up (0-90 degrees) the diode is in R.B.




I get stuck here at this point



What I am thinking to myself right now: I still don't know if the capacitor is in a charging state or a discharging state.



If I were to give it a guess the capacitor is just a short and the current has no current flowing through it, but this is all due to the steady state assumption. Once again gives me the problem if not knowing if the capacitor is charging or discharging during the period of (0-90 degrees) during the rise of the sine wave.




schematic





simulate this circuit




I get stuck here at this point



What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown



$ In = Iout $



$ 2.5mA + ??? = ??? $



and I dont know how to get the rest of the current, if I knew how to get at least the current out of the capacitor I would be able to find out the op-amp's current plugging it into the equation above.



The thing is, I said assume steady state so I guess I can have the Capacitor become short, however, another problem is that it doesn't tell me if the capacitor is charging or discharging them.




schematic





simulate this circuit



Same thing finding all the voltages, but this time all the voltages are found due to the previous rising wave charging the capacitor. Applying it to the schematic.





schematic





simulate this circuit




What I am thinking to myself right now: This is the only thing that makes sense as I guess the capacitor is now acting like a voltage source, so its evident that the current is flowing out of the capacitor and discharging. However, I am confused about the assumption of the diode wouldn't it always be open for any Vout > 0 the? and input > 0?




This is long enough and hopefully explains my points, I won't go into the negative cycles, as hopefully its the same thing as the positive. Sorry If I got messier towards the end it got pretty late writing this.










share|improve this question



























    up vote
    3
    down vote

    favorite












    I feel bad at this point. This will be my last post about it, however, I will explain myself more clearly and more transparent so everyone doesn't need to guess my issues.



    Never been so confused with a circuit before.



    I am trying to analyze a precision Rectifier circuit with a capacitor at its load/output.



    The end goal is: Trying to predict the circuit's output as well see the behaviour of the circuit to see if it needs further improvement.



    I am going to go thru this circuit step - by - step and my thinking process and hopefully you can tell me where I went wrong, and show you where I get stuck.





    schematic





    simulate this circuit – Schematic created using CircuitLab




    • How I am going to approach this circuit is: Assumptions



      1. DC analysis because due to the diode changing the topology or state of the circuit depending on the uprising or down rising of the wave.


      2. Steady - State. I am going to assume the capacitor will be significantly charged


      3. We need to know which state the diode is in (Forward bias or reverse bias).


      4. Current travels from High electrical Potential to Low electrical Potential


      Starting the analysis:



    Since we are working with a diode I would assume you will have to work out the math at each "positive cycle" and "negative cycle" of the wave.
    enter image description here





    schematic





    simulate this circuit



    In order to find if the current is positive coming out of the OP-AMP, we need to find all the missing voltages (Vout). In matter of fact to find the current of the components, we need to find the missing voltages anyways.



    $ Node "0V": frac0-52kOmega + frac0-V_out2kOmega = 0$



    $ frac-52kOmega - fracV_out2kOmega = 0$



    $ frac-52kOmega = fracV_out2kOmega$



    $ V_out = -5$



    Concluding all our missing voltages, putting this back into the schematic.





    schematic





    simulate this circuit




    I get stuck here at this point



    What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown



    $ In = Iout $



    $ 2.5mA + ??? = ??? $



    and I don't know how to get the rest of the current, if I knew how to get at least the current out of the capacitor I would be able to find out the op-amp's current plugging it into the equation above.



    The thing is, I said assume steady state so I guess I can have the Capacitor become short, however, another problem is that it doesn't tell me if the capacitor is charging or discharging them.




    schematic





    simulate this circuit



    Same strategy here, finding the voltage, however this time the topology of the circuit change as the op-amp isn't connected via feedback anymore. Thus we can assume this is just a simple RC Circuit (simplified).



    $ H(s) = frac10.0004*s+1$



    We take the lim s -> 0 we get:



    $ H(0) = 5 $



    Putting it back in the schematic:





    schematic





    simulate this circuit



    Looks like our diode assumption worked out, thus when the sine wave is rising up (0-90 degrees) the diode is in R.B.




    I get stuck here at this point



    What I am thinking to myself right now: I still don't know if the capacitor is in a charging state or a discharging state.



    If I were to give it a guess the capacitor is just a short and the current has no current flowing through it, but this is all due to the steady state assumption. Once again gives me the problem if not knowing if the capacitor is charging or discharging during the period of (0-90 degrees) during the rise of the sine wave.




    schematic





    simulate this circuit




    I get stuck here at this point



    What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown



    $ In = Iout $



    $ 2.5mA + ??? = ??? $



    and I dont know how to get the rest of the current, if I knew how to get at least the current out of the capacitor I would be able to find out the op-amp's current plugging it into the equation above.



    The thing is, I said assume steady state so I guess I can have the Capacitor become short, however, another problem is that it doesn't tell me if the capacitor is charging or discharging them.




    schematic





    simulate this circuit



    Same thing finding all the voltages, but this time all the voltages are found due to the previous rising wave charging the capacitor. Applying it to the schematic.





    schematic





    simulate this circuit




    What I am thinking to myself right now: This is the only thing that makes sense as I guess the capacitor is now acting like a voltage source, so its evident that the current is flowing out of the capacitor and discharging. However, I am confused about the assumption of the diode wouldn't it always be open for any Vout > 0 the? and input > 0?




    This is long enough and hopefully explains my points, I won't go into the negative cycles, as hopefully its the same thing as the positive. Sorry If I got messier towards the end it got pretty late writing this.










    share|improve this question

























      up vote
      3
      down vote

      favorite









      up vote
      3
      down vote

      favorite











      I feel bad at this point. This will be my last post about it, however, I will explain myself more clearly and more transparent so everyone doesn't need to guess my issues.



      Never been so confused with a circuit before.



      I am trying to analyze a precision Rectifier circuit with a capacitor at its load/output.



      The end goal is: Trying to predict the circuit's output as well see the behaviour of the circuit to see if it needs further improvement.



      I am going to go thru this circuit step - by - step and my thinking process and hopefully you can tell me where I went wrong, and show you where I get stuck.





      schematic





      simulate this circuit – Schematic created using CircuitLab




      • How I am going to approach this circuit is: Assumptions



        1. DC analysis because due to the diode changing the topology or state of the circuit depending on the uprising or down rising of the wave.


        2. Steady - State. I am going to assume the capacitor will be significantly charged


        3. We need to know which state the diode is in (Forward bias or reverse bias).


        4. Current travels from High electrical Potential to Low electrical Potential


        Starting the analysis:



      Since we are working with a diode I would assume you will have to work out the math at each "positive cycle" and "negative cycle" of the wave.
      enter image description here





      schematic





      simulate this circuit



      In order to find if the current is positive coming out of the OP-AMP, we need to find all the missing voltages (Vout). In matter of fact to find the current of the components, we need to find the missing voltages anyways.



      $ Node "0V": frac0-52kOmega + frac0-V_out2kOmega = 0$



      $ frac-52kOmega - fracV_out2kOmega = 0$



      $ frac-52kOmega = fracV_out2kOmega$



      $ V_out = -5$



      Concluding all our missing voltages, putting this back into the schematic.





      schematic





      simulate this circuit




      I get stuck here at this point



      What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown



      $ In = Iout $



      $ 2.5mA + ??? = ??? $



      and I don't know how to get the rest of the current, if I knew how to get at least the current out of the capacitor I would be able to find out the op-amp's current plugging it into the equation above.



      The thing is, I said assume steady state so I guess I can have the Capacitor become short, however, another problem is that it doesn't tell me if the capacitor is charging or discharging them.




      schematic





      simulate this circuit



      Same strategy here, finding the voltage, however this time the topology of the circuit change as the op-amp isn't connected via feedback anymore. Thus we can assume this is just a simple RC Circuit (simplified).



      $ H(s) = frac10.0004*s+1$



      We take the lim s -> 0 we get:



      $ H(0) = 5 $



      Putting it back in the schematic:





      schematic





      simulate this circuit



      Looks like our diode assumption worked out, thus when the sine wave is rising up (0-90 degrees) the diode is in R.B.




      I get stuck here at this point



      What I am thinking to myself right now: I still don't know if the capacitor is in a charging state or a discharging state.



      If I were to give it a guess the capacitor is just a short and the current has no current flowing through it, but this is all due to the steady state assumption. Once again gives me the problem if not knowing if the capacitor is charging or discharging during the period of (0-90 degrees) during the rise of the sine wave.




      schematic





      simulate this circuit




      I get stuck here at this point



      What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown



      $ In = Iout $



      $ 2.5mA + ??? = ??? $



      and I dont know how to get the rest of the current, if I knew how to get at least the current out of the capacitor I would be able to find out the op-amp's current plugging it into the equation above.



      The thing is, I said assume steady state so I guess I can have the Capacitor become short, however, another problem is that it doesn't tell me if the capacitor is charging or discharging them.




      schematic





      simulate this circuit



      Same thing finding all the voltages, but this time all the voltages are found due to the previous rising wave charging the capacitor. Applying it to the schematic.





      schematic





      simulate this circuit




      What I am thinking to myself right now: This is the only thing that makes sense as I guess the capacitor is now acting like a voltage source, so its evident that the current is flowing out of the capacitor and discharging. However, I am confused about the assumption of the diode wouldn't it always be open for any Vout > 0 the? and input > 0?




      This is long enough and hopefully explains my points, I won't go into the negative cycles, as hopefully its the same thing as the positive. Sorry If I got messier towards the end it got pretty late writing this.










      share|improve this question















      I feel bad at this point. This will be my last post about it, however, I will explain myself more clearly and more transparent so everyone doesn't need to guess my issues.



      Never been so confused with a circuit before.



      I am trying to analyze a precision Rectifier circuit with a capacitor at its load/output.



      The end goal is: Trying to predict the circuit's output as well see the behaviour of the circuit to see if it needs further improvement.



      I am going to go thru this circuit step - by - step and my thinking process and hopefully you can tell me where I went wrong, and show you where I get stuck.





      schematic





      simulate this circuit – Schematic created using CircuitLab




      • How I am going to approach this circuit is: Assumptions



        1. DC analysis because due to the diode changing the topology or state of the circuit depending on the uprising or down rising of the wave.


        2. Steady - State. I am going to assume the capacitor will be significantly charged


        3. We need to know which state the diode is in (Forward bias or reverse bias).


        4. Current travels from High electrical Potential to Low electrical Potential


        Starting the analysis:



      Since we are working with a diode I would assume you will have to work out the math at each "positive cycle" and "negative cycle" of the wave.
      enter image description here





      schematic





      simulate this circuit



      In order to find if the current is positive coming out of the OP-AMP, we need to find all the missing voltages (Vout). In matter of fact to find the current of the components, we need to find the missing voltages anyways.



      $ Node "0V": frac0-52kOmega + frac0-V_out2kOmega = 0$



      $ frac-52kOmega - fracV_out2kOmega = 0$



      $ frac-52kOmega = fracV_out2kOmega$



      $ V_out = -5$



      Concluding all our missing voltages, putting this back into the schematic.





      schematic





      simulate this circuit




      I get stuck here at this point



      What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown



      $ In = Iout $



      $ 2.5mA + ??? = ??? $



      and I don't know how to get the rest of the current, if I knew how to get at least the current out of the capacitor I would be able to find out the op-amp's current plugging it into the equation above.



      The thing is, I said assume steady state so I guess I can have the Capacitor become short, however, another problem is that it doesn't tell me if the capacitor is charging or discharging them.




      schematic





      simulate this circuit



      Same strategy here, finding the voltage, however this time the topology of the circuit change as the op-amp isn't connected via feedback anymore. Thus we can assume this is just a simple RC Circuit (simplified).



      $ H(s) = frac10.0004*s+1$



      We take the lim s -> 0 we get:



      $ H(0) = 5 $



      Putting it back in the schematic:





      schematic





      simulate this circuit



      Looks like our diode assumption worked out, thus when the sine wave is rising up (0-90 degrees) the diode is in R.B.




      I get stuck here at this point



      What I am thinking to myself right now: I still don't know if the capacitor is in a charging state or a discharging state.



      If I were to give it a guess the capacitor is just a short and the current has no current flowing through it, but this is all due to the steady state assumption. Once again gives me the problem if not knowing if the capacitor is charging or discharging during the period of (0-90 degrees) during the rise of the sine wave.




      schematic





      simulate this circuit




      I get stuck here at this point



      What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown



      $ In = Iout $



      $ 2.5mA + ??? = ??? $



      and I dont know how to get the rest of the current, if I knew how to get at least the current out of the capacitor I would be able to find out the op-amp's current plugging it into the equation above.



      The thing is, I said assume steady state so I guess I can have the Capacitor become short, however, another problem is that it doesn't tell me if the capacitor is charging or discharging them.




      schematic





      simulate this circuit



      Same thing finding all the voltages, but this time all the voltages are found due to the previous rising wave charging the capacitor. Applying it to the schematic.





      schematic





      simulate this circuit




      What I am thinking to myself right now: This is the only thing that makes sense as I guess the capacitor is now acting like a voltage source, so its evident that the current is flowing out of the capacitor and discharging. However, I am confused about the assumption of the diode wouldn't it always be open for any Vout > 0 the? and input > 0?




      This is long enough and hopefully explains my points, I won't go into the negative cycles, as hopefully its the same thing as the positive. Sorry If I got messier towards the end it got pretty late writing this.







      op-amp capacitor circuit-analysis






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 3 hours ago









      Niteesh Shanbog

      977




      977










      asked 3 hours ago









      Pllsz

      1348




      1348




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          3
          down vote














          What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown




          You're already off track at this point.



          You don't need to solve KCL to understand the circuit. You basically already have it solved. The input voltage is +5 V, and the op-amp inverting input is virtual ground. Therefore 2.5 mA through R1, therefore 2.5 mA through R2. Therefore the capacitor node is at -5 V. That's it.



          You know to get to -5 V, therefore 0.5 uC must have at some point flowed out of the capacitor to charge it to that voltage.



          But wait, the diode has its anode at the op-amp output and its cathode at the capacitor. So the op-amp couldn't have drawn charge off the capacitor this way. You should have been modeling the diode as an open and not a short for this part of the input cycle.



          So now go back and analyze this part of the cycle with the diode as an open. And remember that when the negative feedback loop is broken, the inverting input no longer acts as a virtual ground.






          share|improve this answer




















          • 1. I mean I still want to know if the capacitor is discharging or charging, and I cant know this if I dont know the current coming from the capacitor branch 2. I dont know that, can you explain to me in detail how is that 3. I dont understand this as well, but I did do an analysis of a R.B diode if you keep reading down
            – Pllsz
            2 hours ago











          • @Pilsz, you know which way the current is going by how the voltage is changing. And you can find how the voltage is changing without using KCL (for the case where the diode is forward biased).
            – The Photon
            2 hours ago










          • I agree you can find the current is going by the change in voltage, but doesnt current "split" once it hits a branch (when more than one wire meet up). So I wouldnt know which way current is going after that branch
            – Pllsz
            1 hour ago










          Your Answer




          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["\$", "\$"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("schematics", function ()
          StackExchange.schematics.init();
          );
          , "cicuitlab");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "135"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          convertImagesToLinks: false,
          noModals: false,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













           

          draft saved


          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f402703%2fq-help-me-really-understand-discharging-and-charging-of-a-capacitor%23new-answer', 'question_page');

          );

          Post as a guest






























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          up vote
          3
          down vote














          What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown




          You're already off track at this point.



          You don't need to solve KCL to understand the circuit. You basically already have it solved. The input voltage is +5 V, and the op-amp inverting input is virtual ground. Therefore 2.5 mA through R1, therefore 2.5 mA through R2. Therefore the capacitor node is at -5 V. That's it.



          You know to get to -5 V, therefore 0.5 uC must have at some point flowed out of the capacitor to charge it to that voltage.



          But wait, the diode has its anode at the op-amp output and its cathode at the capacitor. So the op-amp couldn't have drawn charge off the capacitor this way. You should have been modeling the diode as an open and not a short for this part of the input cycle.



          So now go back and analyze this part of the cycle with the diode as an open. And remember that when the negative feedback loop is broken, the inverting input no longer acts as a virtual ground.






          share|improve this answer




















          • 1. I mean I still want to know if the capacitor is discharging or charging, and I cant know this if I dont know the current coming from the capacitor branch 2. I dont know that, can you explain to me in detail how is that 3. I dont understand this as well, but I did do an analysis of a R.B diode if you keep reading down
            – Pllsz
            2 hours ago











          • @Pilsz, you know which way the current is going by how the voltage is changing. And you can find how the voltage is changing without using KCL (for the case where the diode is forward biased).
            – The Photon
            2 hours ago










          • I agree you can find the current is going by the change in voltage, but doesnt current "split" once it hits a branch (when more than one wire meet up). So I wouldnt know which way current is going after that branch
            – Pllsz
            1 hour ago














          up vote
          3
          down vote














          What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown




          You're already off track at this point.



          You don't need to solve KCL to understand the circuit. You basically already have it solved. The input voltage is +5 V, and the op-amp inverting input is virtual ground. Therefore 2.5 mA through R1, therefore 2.5 mA through R2. Therefore the capacitor node is at -5 V. That's it.



          You know to get to -5 V, therefore 0.5 uC must have at some point flowed out of the capacitor to charge it to that voltage.



          But wait, the diode has its anode at the op-amp output and its cathode at the capacitor. So the op-amp couldn't have drawn charge off the capacitor this way. You should have been modeling the diode as an open and not a short for this part of the input cycle.



          So now go back and analyze this part of the cycle with the diode as an open. And remember that when the negative feedback loop is broken, the inverting input no longer acts as a virtual ground.






          share|improve this answer




















          • 1. I mean I still want to know if the capacitor is discharging or charging, and I cant know this if I dont know the current coming from the capacitor branch 2. I dont know that, can you explain to me in detail how is that 3. I dont understand this as well, but I did do an analysis of a R.B diode if you keep reading down
            – Pllsz
            2 hours ago











          • @Pilsz, you know which way the current is going by how the voltage is changing. And you can find how the voltage is changing without using KCL (for the case where the diode is forward biased).
            – The Photon
            2 hours ago










          • I agree you can find the current is going by the change in voltage, but doesnt current "split" once it hits a branch (when more than one wire meet up). So I wouldnt know which way current is going after that branch
            – Pllsz
            1 hour ago












          up vote
          3
          down vote










          up vote
          3
          down vote










          What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown




          You're already off track at this point.



          You don't need to solve KCL to understand the circuit. You basically already have it solved. The input voltage is +5 V, and the op-amp inverting input is virtual ground. Therefore 2.5 mA through R1, therefore 2.5 mA through R2. Therefore the capacitor node is at -5 V. That's it.



          You know to get to -5 V, therefore 0.5 uC must have at some point flowed out of the capacitor to charge it to that voltage.



          But wait, the diode has its anode at the op-amp output and its cathode at the capacitor. So the op-amp couldn't have drawn charge off the capacitor this way. You should have been modeling the diode as an open and not a short for this part of the input cycle.



          So now go back and analyze this part of the cycle with the diode as an open. And remember that when the negative feedback loop is broken, the inverting input no longer acts as a virtual ground.






          share|improve this answer













          What I am thinking to myself right now: is that I want to do the current law where In = Iout, however, I only have one current going into a node thus I can't find the rest as shown




          You're already off track at this point.



          You don't need to solve KCL to understand the circuit. You basically already have it solved. The input voltage is +5 V, and the op-amp inverting input is virtual ground. Therefore 2.5 mA through R1, therefore 2.5 mA through R2. Therefore the capacitor node is at -5 V. That's it.



          You know to get to -5 V, therefore 0.5 uC must have at some point flowed out of the capacitor to charge it to that voltage.



          But wait, the diode has its anode at the op-amp output and its cathode at the capacitor. So the op-amp couldn't have drawn charge off the capacitor this way. You should have been modeling the diode as an open and not a short for this part of the input cycle.



          So now go back and analyze this part of the cycle with the diode as an open. And remember that when the negative feedback loop is broken, the inverting input no longer acts as a virtual ground.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered 2 hours ago









          The Photon

          80.6k394190




          80.6k394190











          • 1. I mean I still want to know if the capacitor is discharging or charging, and I cant know this if I dont know the current coming from the capacitor branch 2. I dont know that, can you explain to me in detail how is that 3. I dont understand this as well, but I did do an analysis of a R.B diode if you keep reading down
            – Pllsz
            2 hours ago











          • @Pilsz, you know which way the current is going by how the voltage is changing. And you can find how the voltage is changing without using KCL (for the case where the diode is forward biased).
            – The Photon
            2 hours ago










          • I agree you can find the current is going by the change in voltage, but doesnt current "split" once it hits a branch (when more than one wire meet up). So I wouldnt know which way current is going after that branch
            – Pllsz
            1 hour ago
















          • 1. I mean I still want to know if the capacitor is discharging or charging, and I cant know this if I dont know the current coming from the capacitor branch 2. I dont know that, can you explain to me in detail how is that 3. I dont understand this as well, but I did do an analysis of a R.B diode if you keep reading down
            – Pllsz
            2 hours ago











          • @Pilsz, you know which way the current is going by how the voltage is changing. And you can find how the voltage is changing without using KCL (for the case where the diode is forward biased).
            – The Photon
            2 hours ago










          • I agree you can find the current is going by the change in voltage, but doesnt current "split" once it hits a branch (when more than one wire meet up). So I wouldnt know which way current is going after that branch
            – Pllsz
            1 hour ago















          1. I mean I still want to know if the capacitor is discharging or charging, and I cant know this if I dont know the current coming from the capacitor branch 2. I dont know that, can you explain to me in detail how is that 3. I dont understand this as well, but I did do an analysis of a R.B diode if you keep reading down
          – Pllsz
          2 hours ago





          1. I mean I still want to know if the capacitor is discharging or charging, and I cant know this if I dont know the current coming from the capacitor branch 2. I dont know that, can you explain to me in detail how is that 3. I dont understand this as well, but I did do an analysis of a R.B diode if you keep reading down
          – Pllsz
          2 hours ago













          @Pilsz, you know which way the current is going by how the voltage is changing. And you can find how the voltage is changing without using KCL (for the case where the diode is forward biased).
          – The Photon
          2 hours ago




          @Pilsz, you know which way the current is going by how the voltage is changing. And you can find how the voltage is changing without using KCL (for the case where the diode is forward biased).
          – The Photon
          2 hours ago












          I agree you can find the current is going by the change in voltage, but doesnt current "split" once it hits a branch (when more than one wire meet up). So I wouldnt know which way current is going after that branch
          – Pllsz
          1 hour ago




          I agree you can find the current is going by the change in voltage, but doesnt current "split" once it hits a branch (when more than one wire meet up). So I wouldnt know which way current is going after that branch
          – Pllsz
          1 hour ago

















           

          draft saved


          draft discarded















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2felectronics.stackexchange.com%2fquestions%2f402703%2fq-help-me-really-understand-discharging-and-charging-of-a-capacitor%23new-answer', 'question_page');

          );

          Post as a guest













































































          Comments

          Popular posts from this blog

          What does second last employer means? [closed]

          List of Gilmore Girls characters

          Confectionery