How is capacitor voltage going above source, in this circuit ?

crutschow

Joined Mar 14, 2008
38,316
No, the voltage cannot go above +12V in that circuit, so there is some sort of error in the simulation.

How do I know that it's looking at the capacitor voltage?
 

bertus

Joined Apr 5, 2008
22,882
Hello,

I have tried several diodes, but all show the 10 volts voltage drop.
This is a simulation part failure.

Bertus
 

Thread Starter

silv3r.m00n

Joined Apr 15, 2010
70
Hello,

I have tried several diodes, but all show the 10 volts voltage drop.
This is a simulation part failure.

Bertus
technically a -10 volt drop, or a 10 volt rise

removing the diode does solve the problem partially, but then another interesting problem comes up, damped oscillations.
 

BobaMosfet

Joined Jul 1, 2009
2,211
You cannot exceed the voltage level on the source side. If anything, it will be 11.7, or thereabouts, due to the diode. Your simulator is buggy. Try everycircuit.com instead, for simple things.

upload_2019-9-26_10-39-27.png

Plus, this way you can see the voltage behavior, showing how the capacitor is fluctuating.
 

panic mode

Joined Oct 10, 2011
4,864
what was initial state of the capacitor? was it already at 22V? then of course diode will be reverse biased, have 10V accross and output will be steady.
 

panic mode

Joined Oct 10, 2011
4,864
i just deleted everything and started from scratch. looks good. i guess that capacitor was part of previous circuit and was charged above voltage source then the circuit was modified. maybe just voltage source was dropped from 22+ V to 12V.

then went to original link, changed R from 1 milliOhm to 500 Ohms, put jumper across C and as expected voltage across cap dropped to zero. then when jumper was removed, capacitor charged as expected.
 
Last edited:

Thread Starter

silv3r.m00n

Joined Apr 15, 2010
70
i just deleted everything and started from scratch. looks good. i guess that capacitor was part of previous circuit and was charged above voltage source then the circuit was modified. maybe just voltage source was dropped from 22+ V to 12V.

then went to original link, changed R from 1 milliOhm to 500 Ohms, put jumper across C and as expected voltage across cap dropped to zero. then when jumper was removed, capacitor charged as expected.
no, the capacitor was not having any charge previously.
could you share a link of your simulation, where the capacitor charges as expected.
 

panic mode

Joined Oct 10, 2011
4,864
i think it did, once it got discharged, it behaved the way you expected. as mentioned, i just increased resistor value and added switch in parallel to be able to force discharging. you can add another switch to charge capacitor to higher voltage (or you can increase 12V if like). when you reduce supply to 12V capacitor remains charged and simulator does not reset this even if you delete and add capacitor.

here you go, just close then open switch
https://tinyurl.com/yygup6pu

EDIT

simulator really does not like low resistor values. anything below 1Ohm will produce overshoot related to used resistance. if you set resistor value to 500mOhm, you will see vertical spike. the 1mOhm value is too small for practical circuits anyway. set few ohms or hindreds of ohms and this may work for you.
 
Last edited:

Thread Starter

silv3r.m00n

Joined Apr 15, 2010
70
RE: ""Does it really happen or is it a simulation error""
Check for parasythic inductance of resistor. If it creates the time constant larger than diode`s delay, the multiplication of voltage is reality.



Falstad link:
https://bit.ly/2lhXmKM
[/QUOTE]

that's very interesting.
yes if there is an inductor it would cause the capacitor voltage to go above source in real.
and the diode would prevent it from discharging.

for the simulator too, there might be some inductance counted as a part of the resistor.

indeed the simulator is not wrong actually !!
 
Top