# Why does electricity flow into a capacitor (charged the other way round) but not into into a diode in this circuit?

I'm trying to understand the workings of the following circuit that I've both emulated and built physically so I know it does work (I did it in a different simulator, but I've redrawn it here for your convenience - animated gifs from the simulator will follow):

simulate this circuit – Schematic created using CircuitLab

I understand the way NPN and PNP transistor work there with the 10uF capacitor C1 draining the current away from the base of the NPN transistor until the capacitor charges, upon which the current is applied to the NPN transistor base and it allows electricity to flow through it, which in turn "opens" the PNP transistor.

What I fail to understand is what happens with the capacitor and resistor under the emitter of the NPN transistor - the current seems to drawn upwards through the 100 uF capacitor C2. The capacitor is charged through the emitter at the beginning of the simulation, so it's indeed blocking the current from going downwards from the NPN emitter, but why would it take up the current the opposite way?

This gets even more mysterious if I replace it with a diode that goes the same way - it should have almost 0 resistance so if the current was drawn upwards through the capacitor, it should also be drawn through the diode.

Specifically, what I see in the simulator:

Now if I replace it with a diode it doesn't flow upwards at all, and I'd expect this to happen if an inversely charged capacitor causes it:

And if I replace it with another resistor it obviously flows downwards as expected through it:

Can you explain to me what is exactly happening here?

Here is the link to this circuit made in the original circuit simulator I've been using:

Circuit in the original online simulator

ADDITION: Indeed I see now on the circuit simulation reworked by Tony Stewart EE75 that the capacitor does get in fact discharged and then charged again.

One thing that still somewhat puzzles me - on the simulator it still shows that the current is flowing from a lower voltage (grey) to higher voltage (green) through the capacitor, which is normally not the case - even next to it we see the current flowing from high (green) voltage to low (grey). Is this a glitch of the simulator rendering the colours or something? Here's what I'm referring to (animated GIF from Tony Stewart EE75's circuit):

• The current through the capacitor should not flow indefinitely in one direction. It should flow one way, and then the other. It is weird that Falstad shows the current through both capacitors in one direction only. Commented Oct 17, 2021 at 14:30
• You do not see the charging current in the animation because the charging current (emitter current) is a very short pulse of current that you can only see on the oscilloscope (the yellow spikes).
– G36
Commented Oct 17, 2021 at 14:53
• "opens" the PNP transistor - we don't use hydraulic valve terminology in electronics because it becomes confusing when we talk about open-circuits. Try the terminology "activate" or deactivate" if that helps. Commented Oct 17, 2021 at 14:56
• And why do you expect to see a current flowing through a diode? You connected the diode with an anode to GND. So, to turn on the diode the voltage at the emitter needs to be negative. Wich is not the case here.
– G36
Commented Oct 17, 2021 at 15:01
• Animated gifs are pretty useless for digging into the details. The last 5 words of the previous sentence were added just for the hobbyists amongst you not to feel too downtrodden. Commented Oct 17, 2021 at 15:05

There is a lot to say about each component changes I made to improve this design. But Rather than explain how your circuit works and why it overstresses an LED and why the frequency control of the pot is suboptimal, allow me to show a better solution with slight changes in values to reduce base drive currents and LED output powers from 10W pulses to 50 mW pulses suitable for small LED's .

Generally LEDs are not made for high current pulses ( e.g. typically <2x the DC rated , because the gold wire bond to Anode in LEDs with lens to be less visible and with excess current pulses becomes a fuse.

But the fundamentals are in the diode clamp position, just a linear current amplifier but lacking the necessary current limiting resistor values on the base or better on the LED to limit the current drive .

The right side switch position is your fundamental BJT Relaxation Oscillator except using a PNP instead of an NPN with diodes for positive feedback thru two inverting transistors NPN+PNP.

It is better you ask questions on the purpose of each part in doubt.

• You don't even need the emitter diode. You can feel free to change any R or C value to see the effect of the duty cycle of this slow Beacon pulse generator or make it more sinusoidal oscillation by R and C ratios. Now the Pot lowers the DC bias current to the right and slows the pulses to every 10 seconds or 1 second on the left. tinyurl.com/yjbkb2oj Commented Oct 17, 2021 at 16:18
• Another variation tinyurl.com/yjv9rvlx Where the Pot goes from full ON to OFF with a variable duty cycle and freq. < 1 Pulse / s Commented Oct 17, 2021 at 19:26
• Thank you, your reworked circuit indeed has shown me that the capacitor does get charged/discharged (in the original one it seemed as if it's allowing the current to flow through it continuously, which seemed very weird). Commented Oct 18, 2021 at 0:34
• I've added a supplementary question in the text (since I couldn't add a gif in the comment): I'm still a bit puzzled as to why does the simulator show the voltages (high - green, low - grey) unchanged during the discharge of the capacitor...? Is this a glitch in the simulator itself? Commented Oct 18, 2021 at 0:53
• its not a glitch. Feedback dumps a pulse into base-emitter cap which then decays into resistor. See bottom trace of voltage and current from emitter and current circulates to R with decayed voltage. and current spike. What is you Gif capture tool? Commented Oct 18, 2021 at 1:10