I have a few questions regarding some basic circuitry involving Flyback Diodes and Wee Blinky. They have been haunting me for some time now. I'd be grateful if you could shed some light to me.
Flyback diodes.
In a basic arduino circuit when we want to control a DC Motor, with a MOSFET/transistor and a diode, I understand that a diode should be attached, but why is the diode attached in parallel with the motor? (As shown here It is Page 96 from the Starter kit) Shouldn't it be attached in "series" with the motor, so that the current doesn't flow in the other direction?
And also, how does it help if its in parallel? Can you provide me some reason behind it? Maybe a diagram would help. I'm not able to see this, as I think a diode in parallel doesn't help much.
Wee Blinky.
I have seen the schematics for the Wee blinky, given here.
I've made the circuit in a breadboard, and have seen it to blink; however I just can't figure out how it blinks like that. I tried to write down what's happening, but am getting confused: (Are they right?)
In the beginning, current starts flowing from Vcc and then to all the resistors, and some current passes through the two transistors, and switching them in their "ON" state. R2 is charging C1, similarly R3 is charging C2. So the capacitor takes around 5*RC ~ 1.65 sec to fully charge. Once it gets charged, it emits a pulse, fading away. This keeps happening, and we get a blinking effect.
...is what I think is happening. However, I fail to see why they should blink consecutively. Shouldn't they be blinking together?
And while we are using Wikipedia as a reference (which is accurate the vast majority of the time, and dead wrong in a lesser proportion), then here is the explanation to your second question.
Flyback diodes.
In a basic arduino circuit when we want to control a DC Motor, with a MOSFET/transistor and a diode, I understand that a diode should be attached, but why is the diode attached in parallel with the motor?
Because the inductive load forces current to keep flowing, the diode just provides
an easy (and safe) path for the current so that high voltages aren't generated (inductors
generate any voltage necessary, which can be very destructive).
I'm not able to see this, as I think a diode in parallel doesn't help much.
Without it the current is forced through the rest of the circuit and typically burns it out
since the switching transistor has just turned off and the inductor just generates
enough volts to blast through it.
Wee Blinky.
I have seen the schematics for the Wee blinky, given here.
Classic astable multivibrator circuit (what an awful name!). Its a form
of relaxation oscillator where an RC circuit discharges until the circuit
suddenly changes state (positive feedback causes the fast change).
At any one time one transistor is on and the other off. At switch-on it
will fall into one of these states due to any slight asymmetry.
Thank you for your replies.
As for the Flyer Diodes - I can understand much better now, but still don't get why they don't put it in series. If we put it in series (Assuming the diode can withstand high voltage) - the current will not flow in the opposite direction, hence saving the circuitry.
Now, as for the Blinky - isn't the diagram very symmetric? That makes me think the capacitors to charge in a similar fashion.
That said, the more I think about them - the more confusing this whole thing gets. I've googled it up and checked out a few question-answers in Stackexchange. (This one : here) and even looked up the current diagram, etc with the java applet given there. (I couldn't get it to work on my ubuntu machine, so I made the diagram myself and saw the current flow etc)
Most of the explanations I've seen assume Q1 (the left side transistor) to start out with an on state, etc.
I've tried to explain my side of reasoning, and would be great if someone points out the mistake.
My Explanation
(Of course, in step (3) - the arrow shown is not the current, but indicates the capacitors are getting charging)
In the beginning, current starts flowing from the battery. (Shown in red) The current flows to the base, hence turning both of them on. This induces the current to flow from the collector to the emitter (2). This enables the capacitors to start charging (3). They start charging the capacitors to the same voltage as its symmetrical.
And then - I think that at the intersection point b/w C1 and R2 - voltage starts to decrease, a consequence of the capacitors getting charged. Similarly at the junction b/w C2 and R3. This turns both of the transistors off.
As they discharge - both the transistors turn on again, and this process repeats.
This is what I think - both the LEDs should blink together, not successively. This is so baffling.
PS) It'd be great if you could guide me to the correct way, I've recently started Electronics as a hobby. I've learnt a great deal of Electronics in my High School days, but its been years and have long forgotten.
MagicalOrb:
Thank you for your replies.
As for the Flyer Diodes - I can understand much better now, but still don't get why they don't put it in series. If we put it in series (Assuming the diode can withstand high voltage) - the current will not flow in the opposite direction, hence saving the circuitry.
NO! If it was in series the current would run through it and the "off" transistor, blowing it up
just the same as if there was no diode.
You have to provide an easy, alternate current path because the current is going to flow...
[ Actually there is an easy analog here: You have a speeding train. You want to stop
it getting to the station. Using the diode is like diverting it with some points to an alternate
track. Without the diode you are trying to stop the train by putting a wall in the way. Train beats wall. Inductor beats silicon...
I liked your analogy of the train. Somehow I had a misconception about the inductive current. (Thought the induced current was in the opposite direction) Looking at the wiki again cleared it up for me. Thanks!
As for the Astable multivibrator, I still can't figure it out.
How is it asymmetrical? Atleast the circuit diagram is symmetrical. How is one transistor on and the other off at any one time? I can't get that part. And what is wrong with my reasoning, as shown in the previous post?
MagicalOrb:
As for the Astable multivibrator, I still can't figure it out.
How is it asymmetrical? Atleast the circuit diagram is symmetrical. How is one transistor on and the other off at any one time? I can't get that part. And what is wrong with my reasoning, as shown in the previous post?
No two transistors, resistors, or capacitors are absolutely identical. In addition there is random noise in every circuit. So the probability that both transistors will turn on at the same time from startup is zero (or at least very nearly so). If you start with the assumption that one transistor is on and the other is off and then work through your reasoning again all should become clear.
Yeah, once you assume that one transistor is on and the other is off - I get that they keep changing their states. However - not getting how we arrived at that situation from the beginning.
No, the values are same - see the original circuit diagram in the first post. R1 = R4 = 1k, R2 = R3 = 33k, C1 = C2 = 10uF, Q1 = Q2 = any general NPN transistor. (I used 2N2222)
When I tried running it with the java applet - it does show this - in the first 60 ms or so, both transistors were on; however during that time something was going on with the capacitors which I didn't fully understand - and then it suddenly started to change their states alternatively. What I am trying to figure out is this - from both transistors to being in an ON state, how does it arrive at both transistors alternating their states?
The toggling action results from the fact that a transistor has control over the charge/discharge status of it's neighbors capacitor. The capacitor "charge" state has control over the "on" state of each transistor. The capacitor "activity" you saw initially was the charging that occurred until 0.7V (or so) was attained at EITHER transistor. Chances of this being EXACTLY the same in an analog world are minuscule. (lockup is not impossible, just improbable)
The moment either side reaches that "on" state due to base cap charge, it's like a game show buzzer... it locks out the neighbor, turns on and it immediately changes the charging paths. Now the neighbor cap gets charged while the active transistor's cap discharges. ...then the cycle repeats.
It actually does not matter in the slightest which of the two transistors in the multivibrator does what at turn-on.
The fact is that both are biased on, and there is strong overall positive feedback. This means that on switch-on, both transistors will tend to be biased to conduct, not only because of the base resistors, but because also of the capacitor to each transistor's base whose other end is at that point, being pulled up by the opposite transistor's collector resistor. As the capacitor starts to charge, it feeds current into the base of the corresponding transistor but that now turns the transistor on, pulling down the capacitor on its collector and thereby tending to turn off the opposite transistor.
So what you have is each transistor negatively controlling its opposite, but the overall loop feedback is strongly positive. This leads to a potential "standoff" but the point is that neither transistor is fully turned off or fully turned off at that initial (infinitesimal) moment, they are both in a region of linear amplification generating a positive feedback with considerable amplification. So any fluctuation whatsoever in the circuit, even if all resistors, capacitors and transistors were perfectly matched, merely random noise generated by any component will be amplified and cause the circuit to initially switch in one direction.
Now note that there is a possible metastable state where both transistors are saturated, which is to say that each base resistor delivers sufficient current to pull its collector down so low that small fluctuations in the base current do not result in any significant change in collector voltage and the overall gain is less than unity. While this is quite possible with the values shown (that is, the base resistor is significantly less than the compound collector resistance multiplied by the transistor β), saturation implies that the collector voltage is less than the base voltage and both capacitors would be negatively charged. Since the capacitors start with zero charge, this condition will not occur at start-up and consequently, will never occur later.
.