<html>
https://i.postimg.cc/1Xmc10FT/circuit-sim-series.jpg<br>
[Custom Thumbnail]<br>
All the Code of the series can be found at the <strong>Github repository</strong>:
https://github.com/drifter1/circuitsim
<hr>
<h1>Introduction</h1> Hello it's a me again @drifter1! Today we continue with the <strong>Electric Circuit Simulation series</strong>, a tutorial series where we will be implementing a full-on electronic circuit simulator (like SPICE) studying the whole concept and mainly physics behind it! In this article we will cover <strong>Electronic Circuits</strong> and more specifically:<br>
<ul>
<li>Resistor Combinations (Series, Parallel and Mixed)</li>
<li>Current and Voltage Dividers</li>
<li>Electronic Circuit Terminology</li>
<li>Kirchhoff's Laws</li>
<li>Electric Components (Active and Passive)</li>
<li>Capacitors and Inductors</li>
</ul>
<h2>Requirements:</h2>
<ul>
<li>Physics and more specifically <strong>Electromagnetism Knowledge</strong></li>
<li>Knowing <strong>how to solve Linear Systems</strong> using Linear Algebra</li>
<li>Some understanding of the <strong>Programming Language Python</strong></li>
</ul>
<h2>Difficulty:</h2>Talking about the <strong>series in general</strong> this series can be rated:
<ul><li>Intermediate to Advanced</li></ul>
<strong>Today's topic(s)</strong> can be rated:
<ul><li>Basic</li></ul>
<hr>
<h1>Actual Tutorial Content</h1>
<h2>Resistor Combinations</h2> Resistors can be combined together forming networks that are known as Resistor Combinations. Instead of having a dozen Resistors connected to each other in series, parallel or even mixed, we tend to calculate the so called <strong>Equivalent Resistance</strong> of them, which replaces many Resistors with a single one! To do that easily we think of the circuit as parts which have Resistors connected "in series" or "in parallel" and solve the whole problem in specific steps. So, let's get into these two cases and how we solve them, and also how we solve Mixed Problems...
<h3>Series</h3> Consider Resistors where Current flows through them <strong>sequentially</strong>, which means that all of them have the <strong>same Current</strong>, like in the following diagram:<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Resistors_in_series.svg/800px-Resistors_in_series.svg.png">
[<a href="https://commons.wikimedia.org/wiki/File:Resistors_in_series.svg">Image 1</a>]<br><br>
The sum of the voltages of each resistor in such a combination is equal to the total voltage given by the voltage supply they are connected to. Therefore using Ohm's Law, we easily get the following equation for <strong>Equivalent Resistance</strong>:<br>
<img src="https://quicklatex.com/cache3/11/ql_58e187fcc2a43b8e180c2d3214ecef11_l3.png">
<h3>Parallel</h3> Consider Resistors that are <strong>connected directly to the same voltage source</strong>, meaning that they have the <strong>same Voltage</strong>, like in the following diagram:<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Resistors_in_parallel.svg/800px-Resistors_in_parallel.svg.png">
[<a href="https://commons.wikimedia.org/wiki/File:Resistors_in_parallel.svg">Image 2</a>]<br><br>
In this case, the Current will split, making the total sum of the individual Current through each Resistor equal to the total "supplied" current. Using Ohm'w law again we end up with the following equation for the <strong>Equivalent Resistance</strong>:
<img src="https://quicklatex.com/cache3/10/ql_e13de9f4f3b889f1c355aa32cb733a10_l3.png">
<h3>Mixed</h3>From the previous two cases we know that:
<ul>
<li>Series Resistors have the same Current</li>
<li>Parallel Resistors have the same Voltage</li>
</ul>
In a mixed situation we just have to find these two types of connections and to substitute them with their individual equivalent resistance. For example think about the following diagram:<br>
<img src="https://upload.wikimedia.org/wikipedia/commons/thumb/6/67/Resistors_in_series_and_parallel.svg/529px-Resistors_in_series_and_parallel.svg.png"><br>
[<a href="https://commons.wikimedia.org/wiki/File:Resistors_in_series_and_parallel.svg">Image 3</a>]<br><br>
Here R<sub>2</sub> and R<sub>3</sub> are connected in Parallel, whilst R<sub>1</sub> is connected in Series to each of them. So, we first have to calculate the equivalent Resistance of R<sub>2</sub> and R<sub>3</sub>, let's say R<sub>2,3</sub>, and then the equivalent resistance of R<sub>1</sub> and R<sub>2,3</sub>, lets' say R<sub>1,2,3</sub> or R<sub>eq</sub>. In equations this looks like this:<br>
<img src="https://quicklatex.com/cache3/58/ql_ae20a5e543a831a92f4888fe44d25c58_l3.png"><br><br>
For Resistor Combinations you can also check out my article:<br>
<a href="https://steemit.com/physics/@drifter1/physics-electromagnetism-resistor-combinations">Physics - Electromagnetism - Resistor Combinations</a>
<br><br>
These equations will be quite useful in our simulator as we will be able to calculate equivalent resistances, as the impact of lots of Resistors in an electronic circuit can be measured by one Resistor that substitutes the others with an Equivalent Resistance...
<hr>
<h2>Current and Voltage Dividers</h2> Two quite useful circuits in Electronics are the so called Current and Voltage Dividers. As their name suggests, the first gives us the ability to divide the total current into fractional parts (think about Resistors in parallel), whilst the second gives us the ability to divide the total voltage into fractional parts (think about Resistors in series). Using specific formulas, someone can calculate the Current and Voltage respectively for specific parts of an circuits where such combinations occur. So, let's now get into how each of them and which Formula can be used to determine the Current and Voltage correspondingly...
<h3>Current Divider</h3> Suppose that we have some Resistors connected in Parallel. The current through the Resistor is equal to the voltage applied to it, which is also the same for all Resistors, divided by its Resistance. Thinking about the Equivalent Resistance R<sub>total</sub>, the voltage can also be written as a product between the total current times R<sub>total</sub>. So, the current that flows through any resistor n is:<br>
<img src="https://quicklatex.com/cache3/32/ql_6a1b24864ffd794c2eaae935e3a95532_l3.png"><br><br>
The Current Divider Formula
<h3>Voltage Divider</h3> Let's now suppose that we have some Resistors connected in Series. The voltage of each resistor is equal to the product of the current that flows through it, which is also the same for all of the resistors, times its Resistance. Knowing that the current is the same for all resistors, it's also the same when thinking about the Equivalent Resistance, and so we can write the total current as the division between the total voltage and equivalent Resistance. So, in the end we get:<br>
<img src="https://quicklatex.com/cache3/1d/ql_70c9ae563ab681e800559732cb3cf41d_l3.png"><br><br>
The Voltage Divider Formula
<br><br>
These two equations can also become quite handy as we will be able to calculate the current and voltage respectively, knowing only the resistances and total current and voltage respectively!
<hr>
<h2>Electronic Circuit Terminology</h2> To understand the various terms that we will be using in our Electronic Circuit Analysis, we should give a small definition for the most important of them:
<ul>
<li><strong>Branch</strong>: A branch <strong>represents a single circuit element</strong> like a voltage source or a resistor and so any two-terminal element.</li>
<li><strong>Node</strong>: A node is the <strong>point of connection between two or more branches</strong>, and so circuit elements.</li>
<li><strong>Junction</strong>: A junction is the <strong>point where different wires are interconnected</strong>, which means that nodes could be made up of more than one junctions!</li>
<li><strong>Loop</strong>: A loop is <strong>any closed path in a circuit</strong>.</li>
<li><strong>Mesh</strong>: A mesh is <strong>a loop with no other loops inside it</strong>.</li>
</ul>
<br>
For example let's suppose that we have the following circuit schematic:<br>
<img src="https://i.postimg.cc/dQBVBhRL/Untitled.png"><br>
[<a href="https://www.khanacademy.org/science/electrical-engineering/ee-circuit-analysis-topic/circuit-elements/a/ee-circuit-terminology">Image 4</a>]<br><br>
These circuit has:<br>
<ul>
<li><strong>6 branches</strong>, cause there are five resistors and one voltage source, giving a total of 5 + 1 = 6 circuit elements</li>
<li><strong>4 nodes</strong>, connecting V0-R1, R1-R2-R3, R2-R4-R5 and V0-R3-R4-R5 correspondingly</li>
<li><strong>6 loops</strong>, the outer loop (V0-R1-R2-R5), three small loops (V0-R1-R3, R3-R2-R4, R4-R5) and two larger loops (V0-R1-R2-R4, R3-R2-R5)</li>
<li><strong>3 meshes</strong>, which are the three smaller loops (V0-R1-R3, R3-R2-R4, R4-R5)</li>
</ul>
<br>
Understanding this terminology will be very important in the Mesh and Nodal Analysis that we will be starting from next time...
<hr>
<h2>Kirchhoff's Laws</h2> Anyone who did Electromagnetism in school or university has learned about Kirchhoff's Laws alongside Ohm's law. Let's refresh your knowledge about them!
<h3>KCL</h3> Kirchhoff's Current Law (KCL) tells us that <strong>the total current or charge entering a junction or node is equal to the charge leaving the node</strong>, cause the charge has no other place to go except to leave as no charge is lost within the node (conservation of charge). Mathematically this can be represented as:<br>
<img src="https://quicklatex.com/cache3/1f/ql_9cfaa5a39e98335ca66626330ab0811f_l3.png">
<h3>KVL</h3> Kirchhoff's Voltage Law (KVL) tells us that <strong>the total voltage around a loop is zero</strong> and equal to the sum of all the voltage drops within the same loop. Mathematically we have:<br>
<img src="https://quicklatex.com/cache3/13/ql_2f28bd6335d99dcae7cd0ca8650d6f13_l3.png">
<br><br>
To remember how we solve problems using KCL and KVL you can read my article:<br>
<a href="https://steemit.com/physics/@drifter1/physics-electromagnetism-kirchhoff-s-laws-with-applications">Physics - Electromagnetism - Kirchhoff's laws with applications</a>
<hr>
<h2>Electric Components</h2> Electric Components are split into two different categories:
<ol>
<li><strong>Active</strong>: Components which produce energy in form of Voltage or Current (e.g. independent voltage or current sources)</li>
<li><strong>Passive</strong>: Components which store or convert Energy in form of Voltage and Current (e.g. resistors, capacitors, inductors that convert into thermal, electric and magnetic energy correspondingly)</li>
</ol>
<hr>
<h2>Capacitors and Inductors</h2> Capacitors and Inductors are two very important circuit elements for Transient Analysis mostly, as their behavior is quite unique. I'm not sure if we will get into TA, in the moment, but why not give some basic knowledge about them?<br><br>
<h3>Capacitor</h3> A Capacitor is characterized by its property known as <strong>Capacitance</strong>, symbolized with C and calculated in Farad (F). This quantity is given by the equation:<br>
<img src="https://quicklatex.com/cache3/ea/ql_05bbac6bb1b26674ee22743fc0dd65ea_l3.png"><br><br>
Thinking about current, current is equal to the rate of change of charge over time, meaning that we can end up with the following Current-Voltage Relationship:<br>
<img src="https://quicklatex.com/cache3/ba/ql_7ea97f644c65875533cc7110936230ba_l3.png"><br><br>
The voltage can be given by the following integral:<br>
<img src="https://quicklatex.com/cache3/5a/ql_5501557d081805085cc5419b863cd85a_l3.png">
<h3>Inductor</h3> An Inductor is characterized by it's property known as <strong>Inductance</strong>, symbolized by L and calculated in Henry (H). For a coil this quantity is given by the equation:<br>
<img src="https://quicklatex.com/cache3/cb/ql_fd8136a06746a64b808783386306fdcb_l3.png"><br><br>
where:
<ul>
<li>ΞΌ is is the magnetic permeability of the coil</li>
<li>N the number of turns of a coil</li>
<li>A the area of the coil</li>
<li>l the length of the coil</li>
</ul>
From Electromagnetic Induction we know that the Induced Voltage is given by:<br>
<img src="https://quicklatex.com/cache3/5c/ql_16c8fad19983cbd0c2b2ed59a772d05c_l3.png"><br><br>
Using this we can also calculate the current as an integral:<br>
<img src="https://quicklatex.com/cache3/18/ql_8ab777afbdea24bf09f982b4404e6118_l3.png"><br><br>
For more information around Capacitors you can also check out my articles:<br>
<a href="https://steemit.com/physics/@drifter1/physics-electromagnetism-capacitors-condensers-and-capacitance">Physics - Electromagnetism - Capacitors (Condensers) and Capacitance</a><br>
<a href="https://steemit.com/physics/@drifter1/physics-electromagnetism-how-to-solve-problems-around-capacitors">Physics - Electromagnetism - How to solve problems around Capacitors</a><br><br>
In the same way, for Inductors you can also check out:<br>
<a href="https://steemit.com/physics/@drifter1/physics-electromagnetism-self-induction">Physics - Electromagnetism - Self Induction</a>
<hr>
<h2>RESOURCES</h2>
<h3>References:</h3>
<ol>
<li>https://www.electronics-tutorials.ws/resistor/res_5.html</li>
<li>https://www.allaboutcircuits.com/textbook/direct-current/chpt-6/current-divider-circuits/</li>
<li>https://www.allaboutcircuits.com/textbook/direct-current/chpt-6/voltage-divider-circuits/</li>
<li>https://electrical-engineering-portal.com/electric-circuits-nodes-branches-loops</li>
<li>https://www.khanacademy.org/science/electrical-engineering/ee-circuit-analysis-topic/circuit-elements/a/ee-circuit-terminology</li>
<li>https://isaacphysics.org/concepts/cp_kirchhoffs_laws</li>
<li>https://www.electricaltechnology.org/2013/06/the-main-difference-between-active-and.html</li>
<li>https://www.codrey.com/dc-circuits/active-and-passive-elements/</li>
<li>https://www.electronics-tutorials.ws/capacitor/cap_1.html</li>
<li>https://www.electronics-tutorials.ws/inductor/inductor.html</li>
</ol>
<h3>Images:</h3>
<ol>
<li><a href="https://commons.wikimedia.org/wiki/File:Resistors_in_series.svg">https://commons.wikimedia.org/wiki/File:Resistors_in_series.svg</a></li>
<li><a href="https://commons.wikimedia.org/wiki/File:Resistors_in_parallel.svg">https://commons.wikimedia.org/wiki/File:Resistors_in_parallel.svg</a></li>
<li><a href="https://commons.wikimedia.org/wiki/File:Resistors_in_series_and_parallel.svg">https://commons.wikimedia.org/wiki/File:Resistors_in_series_and_parallel.svg</a></li>
<li>https://www.khanacademy.org/science/electrical-engineering/ee-circuit-analysis-topic/circuit-elements/a/ee-circuit-terminology</li>
</ol>
<br>
Mathematical Equations were made using <a href="https://www.quicklatex.com/">quicklatex</a>
<hr>
<h2>Previous parts of the series</h2>
<ul>
<li><a href="https://steemit.com/utopian-io/@drifter1/electronic-circuit-simulation-introduction-python">Introduction</a></li>
<li><a href="https://steemit.com/utopian-io/@drifter1/electronic-circuit-simulation-electromagnetism-background-part-1-python">Electromagnetism Background (part 1)</a></li>
</ul>
<hr>
<h2>Final words | Next up on the project</h2> And this is actually it for today's post! I hope that I helped you refresh your knowledge about Electronic Circuits! <br><br>
Next up on this series are the solving methods: <strong>Mesh and Nodal Analysis</strong>.<br><br>
So, see ya next time!
<hr>
<h2>GitHub Account:</h2>
https://github.com/drifter1<br>
https://steemitimages.com/0x0/https://media.giphy.com/media/ybITzMzIyabIs/giphy.gif
<br>
Keep on drifting! ;)
</html>