2

I'm a beginner trying to learn electronics reading a book with this circuit diagram: enter image description here The text accompanying the diagram states:

C1 charges through R1 and R2 until the charge on C1 is high enough to turn on Q1, which in turn causes Q2 is then switched on.

What I am having difficulty with is the current path when current is flowing through the speaker. As I understand the most basic definition for a transistor, a small current at the base allows a much larger current to flow between emitter and collector, like a switch or gate. In the previous example in the same book it appears much clearer that current flows from the 6V source to the collector and then emitter and then to buzzer:

enter image description here

So how, in the first circuit, is current flowing into Q1's collector if it's source is the base of Q2? I know that Q1 is a NPN and Q2 is a PNP but does that mean current is flowing out of the base of Q2?

At a more general level I am having trouble with picturing current flow for all circuits and want to think of like a linear flow like on a flowchart, but that must not be correct.

Roberto
  • 121
  • 3
  • Welcome to EE.SE. HINT: A tiny amount of current does flow out of the base of Q2. Since it is a common emitter to 4.5 volts you do get voltage gain in the form of its beta, or hFE. C1 causes positive feedback so the circuit should make clicking noises. –  Feb 11 '18 at 00:38
  • 1
    Its a relaxation Oscillating switch using positive feedback. This should help visualize http://tinyurl.com/ycs3g75g – Tony Stewart EE75 Feb 11 '18 at 02:31
  • @TonyStewart.EEsince'75 Yeah. Except you took your feedback from a different place than the OP's book says. Can you fix that? – jonk Feb 11 '18 at 02:40
  • I can change it http://tinyurl.com/ybm8pnp5 but that cause Vbe breakdown with a large output current spike My solution is better – Tony Stewart EE75 Feb 11 '18 at 03:50
  • @TonyStewart.EEsince'75 Just worrying about the OP seeing it and probably still struggling to understand their circuit. There is a deep subtlety in it that so far hasn't been discussed, which will explain the circumstances when this whole circuit won't oscillate at all and why. I keep waiting for someone to discuss the quantitative criteria for oscillation. – jonk Feb 11 '18 at 04:07
  • Roberto do you understand anything yet? – Tony Stewart EE75 Feb 11 '18 at 12:13
  • @jonk can you guess the ratio needed for starting or stopping oscillation? (not same) using mine – Tony Stewart EE75 Feb 11 '18 at 12:41
  • @jonk the stability criteria is when Rpot =Vin/In of Q1 where it will oscillate at 100Mhz or GBW of the transistors and below this resistance start as a Relaxation impulse generator. ( good for tuning the spectrum of your audio system) But the Vin/In must be DC biased where loop gain exceeds attenuation ratio. On my mod. this will be around 500mV for Vbe – Tony Stewart EE75 Feb 11 '18 at 12:55
  • 2ndary question for the Pro EE's here. What is the minimum duty cycle here possible? Or what ratio determines that? Experts shud take about 1 minute to answer. – Tony Stewart EE75 Feb 11 '18 at 13:39
  • @TonyStewart.EEsince'75 Not yet. I think what I am still having trouble with is getting past the one description of the NPN where the current flows from base and collector to emitter, but looking at these other examples it appears the current flows into and out of any of these? In the example by jonk below it appears the current is colliding at the base and collector of Q2? – Roberto Feb 11 '18 at 14:29
  • It seems you must go back to basics of a single transistor. Current in base to emitter amplifies the current into the collector and as it inverts the change in voltage from base. We think simple, like if Base goes up, then collector comes down to base then 2nd collectors goes back up even faster which feeds back to base thru 100R*C as positive spike to Q1 base which then turns it offf fast and creates a sawtooth postive pullup ramp again starting from some -V on the cap. But the book is wrong. the cap should feedback from the Speaker to reduce the positive spike base current – Tony Stewart EE75 Feb 11 '18 at 14:43
  • So Q2 act as a fast inverting switch pumped by Q1 . while the pot becomes a tiny current source into the cap so it is a positive ramp generator until it conducts in Q1 Vbe> 0.5V or so then the chain reaction accelerates quickly on the output with a loop gain >> 10k from Vbe1 input current to turn on fast then off just as fast so you get a very narrow repeating pulse and the input Vbe1 looks like a sawtooth with a big negative spike (~Vbat) which is excessive and you only need to drop Vbe << 0.5V not -4.5V then + 100mA or whatever so 100R limits the base current as well with my correction. – Tony Stewart EE75 Feb 11 '18 at 14:52
  • Does any of this make sense? – Tony Stewart EE75 Feb 11 '18 at 15:30
  • @TonyStewart.EEsince'75 Not yet, I need to find another example of a circuit with two transistors I think. – Roberto Feb 11 '18 at 17:29

2 Answers2

3

Let's look at a slightly simplified version. Since the \$100\:\Omega\$ resistor and the speaker are in series in your circuit, I just combined them into a single resistor (actually, the speaker is more complex than a simple resistor; but this is fine for purposes of understanding things here.) Also, I combined the variable and fixed resistors near the base of the NPN. No harm there, because we are assuming that there is some magical combined value that makes things work well. We don't need to worry about the exact value used in order to follow the circuit ideas.

So here it is, simplified:

schematic

simulate this circuit – Schematic created using CircuitLab


From just a qualitative standpoint (hand-waving) and looking at the blue arrows I added, you can see that the two BJTs are arranged so that rising voltage signal (should it occur) at the base of \$Q_2\$ will cause a falling voltage signal at the collector of \$Q_2\$ (it's an inverter, after all.) This falling voltage appears at the base of \$Q_1\$ and is again inverted at \$Q_1\$'s collector -- making it a rising signal again. This is now "fed back" via \$C_1\$ to the base of \$Q_2\$ where it "supports" the initial rising voltage signal and adding to it. This is called positive feedback and it can cause oscillation to occur.


Now forget the capacitor for a moment and imagine that this feedback line has been completely erased and doesn't exist. \$C_1\$ is missing, for now.

\$Q_2\$'s base will be supplied with some current via \$R_1\$. This current is amplified a bit to create \$Q_2\$'s sinking collector current that pulls its current out of \$Q_1\$'s base. This current is again amplified a bit to create \$Q_1\$'s sourcing collector current. So after two stages of current amplification, \$Q_1\$ is now sourcing a fair bit of current into \$R_2\$.

If \$R_1\$ is reduced in value, the base current in \$Q_2\$ will be higher. If this higher base current, twice-amplified, is enough to saturate \$Q_1\$ (by way of dropping a voltage across \$R_2\$) then the circuit will not oscillate. Instead, \$R_1\$ will wind up just saturating \$Q_1\$ and there will be a current in \$R_2\$ about the same as if you'd simply hooked \$R_2\$ directly up to the supply voltage. But no oscillation will take place if \$R_1\$ is arranged to supply too much base current into \$Q_2\$.

How much is too much? Well, you can assume that \$Q_2\$ isn't saturated so its full \$\beta_2\$ will apply here. Perhaps somewhere between \$\beta_2=120\$ and \$\beta_2=250\$ for the usual spate of junkbox NPN BJTs. However, we are discussing saturation of \$Q_1\$ and its \$\beta_1\$ value will be more towards a value typical for saturation. The actual point that matters here is right at shallow saturation -- perhaps at \$\beta_1=75\$, or so.

So the total current gain will be somewhere between \$A_I=120\cdot 75\approx 9000\$ and \$A_I=250\cdot 75\approx 18000\$. This is about a factor of two between them, but that's how this falls out. Assuming the voltage rail is given as \$4.5\:\text{V}\$ and the value of \$R_2\$ as shown, we're talking about any \$R_1\le A_I\cdot\frac{4.5\:\text{V}-700\:\text{mV}}{40\:\text{mA}}\$.

The upshot of all this is that I'd expect that if \$R_1\ge 1.7\:\text{M}\Omega\$ then perhaps the circuit should work okay for oscillation. Any value where \$R_1\le 850\:\text{k}\Omega\$ will probably fail to cause oscillation. And values where \$850\:\text{k}\Omega\le R_1\le 1.70\:\text{M}\Omega \$ would be a question mark. Maybe. But probably not.

So if I were laying this out for others to use, aside from the fact that I think the voltage supply is too high already (see later), then I'd use \$R_1\ge 1.8\:\text{M}\Omega\$ to be safer about it.


If \$R_1\$ is large enough, and therefore reduces the base current into \$Q_2\$ enough, then the circuit should oscillate.

The reasoning isn't too difficult. With \$R_1\$ large enough, then \$Q_1\$ doesn't start out saturated and its collector will be near ground (held there by \$R_2\$.) Meanwhile, \$R_1\$ supplies its meager current. Earlier, most of this goes into charging \$C_1\$. But a little later on, as \$C_1\$ develops enough voltage across it, the current from \$R_1\$ diverts more and more into the base of \$Q_2\$. Soon, it's enough (with the high current gain here) to cause \$Q_1\$ to haul upward on its collector voltage, pulling it rapidly towards the positive voltage rail as \$Q_1\$ moves towards saturation.

This rapid rise in \$Q_1\$'s collector voltage is transmitted via \$C_1\$ to the base of \$Q_2\$ and dumping a large (but short-duration) pulse of added current that goes into the base of \$Q_2\$ and probably tries to saturate \$Q_2\$ in the process (which is cruel to \$Q_1\$'s base-emitter.) This cinches the deal and \$Q_1\$ is pushed almost instantly into deep saturation.

In a very short time, though, there is no more rapid voltage change at the collector of \$Q_1\$ (which is saturated and can't do more) and so the current through \$C_1\$ in that direction halts. Instead, \$Q_2\$'s base current charges \$C_1\$ in the opposite direction and drives its own base voltage very rapidly back downward.

At this point, \$C_1\$ is no longer accepting current from the base of \$Q_2\$ and so all of it is once again supplied by \$R_1\$, which by definition isn't enough to keep \$Q_1\$ saturated. So the voltage at the collector of \$Q_1\$ falls (due to lack of sufficient base drive support) back downward. In doing so, it pulls downward on the base of \$Q_2\$ and still further reduces the ability of \$Q_2\$ to support \$Q_1\$'s base drive needs. So \$Q_1\$'s collector falls still further, into near collapse under the high load requirements of \$R_2\$ (which is now pulling the collector hard and close to ground, again.)

Now, \$R_1\$ slowly discharges \$C_1\$ (whose left-side terminal had plunged below ground voltage) and then re-charges it in the other direction causing \$Q_2\$'s base voltage to become slightly (and then still more) forward biased again.

And the cycle repeats.


This circuit actually is a little "nicer" to the BJTs if you operate it from a lower \$1.5\:\text{V}\$ supply -- which by the way it does well with. This isn't so good to use with high voltage supplies because of the high reverse biasing that can zener the base-emitter junction of \$Q_2\$ and because of the collector-to-base coupling between \$Q_2\$ and \$Q_1\$. It needs to be modified for voltages much above \$2-3\:\text{V}\$ and I probably wouldn't use \$4.5\:\text{V}\$ on this particular circuit without any modifications.

jonk
  • 77,876
  • 6
  • 77
  • 188
  • Here https://electronics.stackexchange.com/questions/261288/understand-2-transistors-npn-pnp-flasher-circuit-working/261407#261407 I was trying to explain the "complementary" version. – G36 Feb 11 '18 at 09:24
  • @G36 At least your complementary circuit has a resistor between collector and base of the two bjts. I'd thought about adding that to the circuit and decided against it here. – jonk Feb 11 '18 at 09:35
  • Yep, but if my memory serves me well you have shown the "alternative" version of this oscillator circuit. But I can find it now. – G36 Feb 11 '18 at 09:44
  • The power going into C to Q1-base is GREATER THAN 100 Ohm to speaker. No good. The schematic in the book is sub-optimal and violates base current max. Using the Cap feedback from the speaker fixes the problem and permits a wide supply ranger. As it stands 8/108 * 4.5V = is about 1/3 of a volt which would be a quiet tick sound. With proper feedback as I have simulated, there is no loss in power and it works better, but still not optimal. – Tony Stewart EE75 Feb 11 '18 at 12:11
  • @jonk Is current colliding at the base and emitter of Q2 in your reinterpretation of the circuit? I'm still having trouble following the current flow. – Roberto Feb 11 '18 at 14:31
  • @Roberto No collisions. Current doesn't do that. Perhaps you can ask your question in a different way? I don't understand it, right now. – jonk Feb 11 '18 at 15:50
  • @jonk Just trying to understand the blue arrows in your diagram. They are directions of current flow? – Roberto Feb 11 '18 at 16:42
  • @Roberto No. Not at all. Imagine those as "sudden, tiny voltage changes in the indicated direction." This is one way people try and see about feedback type (which has gray areas, but most interesting is whether or not it is positive or negative (re-inforcing or countering).) – jonk Feb 11 '18 at 16:54
0

First of all, look at the circuit without C1 being there. What you have is a simple 2 stage cascade amplifier. R1 with R2 control the base current of Q1.

Since it is wired as a common emitter this base current is amplified by Q1's gain, or beta. It in turn draws a tiny amount of current from the base of Q2.

At some point R2 will allow enough current to flow so that Q2 is saturated ON and its collector voltage will be very close to 4.5 VDC.

So far so good, but add C1 for positive feedback and just schottky noise alone starts the circuit to oscillate, as Q1 and Q2 each invert the 'signal' 180 degrees, so all total you have a 360 inversion, hence the positive feed back. The overall gain is Q1*Q2.

Now R2 becomes a frequency adjust as it changes the time-constant set up by 2*pi*(R1+R2)*C1 (approximation). It is not as linear as a professional oscillator and will change frequency with supply voltage and temperature.

It is easier to understand multi-stage transistor circuits if you break them down into individual stages. This includes any feedback loops like C1, so that you can analyze each stage starting at the beginning, Q1.

Though it is not an exact match, check out the link provided by Tony Stewart in comments.