Circuits
Circuits
A circuit is a closed loop or pathway through which electric current can flow. It consists of various electrical components connected together to perform a specific function, such as controlling the flow of current, storing energy, or amplifying signals. Circuits can be found in a wide range of electronic devices, from simple light switches to complex computer systems.
Circuits at fundamental level
Circuit is movement of electrons in a closed loop. Density of electrons is higher at the negative terminal of the battery and lower at the positive terminal. The electrons move from the negative terminal to the positive terminal, creating a current flow.
Conventionally, the direction of current flow is taken to be from the positive terminal to the negative terminal, even though the actual flow of electrons is in the opposite direction. This is known as conventional current flow. It is due to the historical development of electrical theory, where the direction of current flow was defined before the discovery of the electron.
Types of circuits
- series circuits (the components are connected end-to-end, forming a single path for current flow)
- parallel circuits (the components are connected across each other, providing multiple paths for current flow).
- combination circuits (a mix of series and parallel circuits).
Circuit elements
- Current Source: I
- Voltage Source: V
- Switch: S
- Resistor: R
- Capacitor: C
- Inductor: L
- Diode: D
- Transistor: Q
We will look at each in turn and briefly discuss their functions and key equations, along with an example on how to draw them using schemdraw in Python.
We also recommend using Falstad Circuit Simulator for more advanced simulations.
In LaTeX, you can use the Circuitikz package to draw circuits.
Current
In physics and electrical engineering, electric current refers to the flow of electric charge. Most commonly, these charges are carried by electrons moving through a conductor (such as a metal wire). We can write the electric current \(I\) in terms of the charge \(Q\) flowing per unit time \(t\):
\[ I = \frac{dQ}{dt} \]
Current is measured in amperes \([A]\), where 1 Amper corresponds to 1 coulomb of charge passing a point in 1 second.
When a current flows through a circuit element, we often speak of it in terms of a current direction, which, by convention, is taken to be the direction a positive charge would move. This is sometimes referred to as conventional current.
In materials such as wood or glass, all the electrons are bound to nearby atoms and none can move freely. These materials are called insulators.
In many materials, such as copper and other metals, some of the electrons are free to move about the entire material. Such materials are called conductors.
Voltage
Voltage (or electric potential difference) is the measure of the potential energy difference per unit charge between two points in a circuit. It can be thought of as the “pressure” that pushes charges through a conductor. We use the symbol \(V\) for voltage, and it is measured in volts \([V]\). Mathematically, voltage between two points \(a\) and \(b\) can be expressed as:
\[ V_{ab} = \phi_b- \phi_a \]
where \(\phi\) represents the electric potential at a given point. At the same time we can write the voltage as the work done per unit charge to move a charge from point \(a\) to point \(b\):
\[ V_{ab} = \frac{W_{ab}}{q} \]
In practical terms, if you have a voltage source like a battery, it provides a certain potential difference that drives current around a circuit.
SchemeDraw symbol for a voltage source:
Battery
A battery is an electrochemical device that stores electrical energy and provides a voltage source for electronic circuits. It consists of one or more cells that convert chemical energy into electrical energy through a chemical reaction. The voltaic pile, invented by link: Alessandro Volta in the early 19th century, marks a pivotal moment in the history of electricity and electrochemistry.
The voltaic pile is considered one of the first electrochemical cells, consisting of two distinct electrodes and an electrolyte. The cell is structured as follows:
- Electrodes: One made of zinc and the other of copper.
- Electrolyte: Sulfuric acid mixed with water or a saltwater brine, composed of ions (2 H+ and SO4 2−).
When the electrodes are connected by a wire, a chemical reaction occurs at the zinc electrode, releasing electrons that flow through the wire to the copper electrode. This flow of electrons constitutes an electric current that can be used to power electrical devices.
Ground
Ground is a reference point in an electrical circuit that serves as a common return path for current flow. It is typically connected to the earth or a conductive material to provide a stable reference voltage for the circuit. Ground is used to establish a zero voltage reference point and ensure safe operation of electrical devices and systems.
SchemeDraw symbol for a ground:
Switch
A switch is a device used to control the flow of current in an electrical circuit. It can be opened (off) or closed (on) to allow or block the flow of electricity. Switches are commonly used to turn devices on and off, change the direction of current flow, and control the operation of electrical systems.
SchemeDraw symbol for a switch:
Resistors
A resistor is a passive component that opposes the flow of current. The relationship between the voltage \(V\) across a resistor and the current \(I\) flowing through it is described by Ohm’s Law: \[ R=\frac{V}{I} \] or \[ V = IR \]
where \(V\) is the voltage (measured in volts \([V]\)), \(I\) is the current (measured in amperes \([A]\)), and \(R\) is the resistance (measured in ohms \([\Omega]\)). Resistors can be used to control current levels, voltage regulation, and dissipate energy in a circuit, current limiting, and signal conditioning.
Power dissipated by a resistor can be calculated using
\[
P = IV = I^2 R = \frac{V^2}{R}.
\]
Symbols:
Symbol in circuit diagrams: a zig-zag line (US):
Show the code
or a rectangular box (EU):
Show the code
Resistivity \(\rho\) is a material property that describes how well a material resists the flow of electric current. It is measured in ohm-meters \([\Omega m]\).
\[ R = \rho \frac{L}{A} \]
where \(R\) is the resistance, \(\rho\) is the resistivity, \(L\) is the length of the resistor, and \(A\) is the cross-sectional area.
Adding resistors to a circuit
To add a resistor to a circuit, you need to connect it in series or parallel with other components.
In a series circuit, the resistor is connected end-to-end with other components, forming a single path for current flow.
In a parallel circuit, the resistor is connected across other components, providing multiple paths for current flow.
Parallel = voltage across all components are the same
Series = current through all components is the same
Series Resistors
To calculate the total resistance of a series circuit, you need to add the resistance values of all the components in the circuit.
\[R_{total} = R1 + R2 + R3 + ...\]
where R_total is the total resistance of the circuit and \(R1, R2, R3, ...\) are the resistance values of the components in series.
Example in SchemaDraw:
Show the code
import schemdraw
import schemdraw.elements as elm
with schemdraw.Drawing() as d:
d += elm.Dot() # Starting point
d += elm.Resistor().right().label('R1') # Resistor R1
d += elm.Resistor().right().label('R2') # Resistor R2
d += elm.Resistor().right().label('R3') # Resistor R3
d += elm.Dot() # Ending point
is equivalent to:
Parallel Resistors
To calculate the total resistance of a parallel circuit, you need to use the formula:
\[\frac{1}{R_{total}} = \frac{1}{R1} + \frac{1}{R2} + \frac{1}{R3} + ...\]
\[R_{total} = \frac{1}{\frac{1}{R1} + \frac{1}{R2} + \frac{1}{R3} + ...} \]
where \(R_{total}\) is the total resistance of the circuit and \(R1, R2, R3, ...\) are the resistance values of the components in parallel.
Example in SchemaDraw:
Show the code
import schemdraw
import schemdraw.elements as elm
with schemdraw.Drawing() as d:
d += elm.Line().right().length(1) # Line to the right
d += elm.Dot() # Starting point
d += elm.Line().up().length(2) # Line up
d += elm.Resistor().right().label('R1') # Resistor R1 to the right
d += elm.Line().down().length(2) # Line down
d += elm.Resistor().left().label('R2') # Resistor R2 to the left
d += elm.Line().down().length(2) # Line down
d += elm.Resistor().right().label('R3') # Resistor R3 to the right
d += elm.Line().up().length(2) # Line up
d += elm.Dot() # Ending point
d += elm.Line().right().length(1) # Line to the right
is equivalent to:
Show the code
Example of a circuit with a parallel and series sections:
Thevenin’s Theorem
Thevenin’s Theorem states that any linear circuit containing resistors and voltage/current sources can be replaced by a single voltage source \(V_{th}\) in series with a single resistor \(R_{th}\), where \(V_{th}\) is the open-circuit voltage at the terminals of the circuit and \(R_{th}\) is the equivalent resistance of the circuit when all voltage/current sources are turned off.
The equivalent voltage \(V_{th}\) is the voltage across the terminals of the circuit when no current is flowing, while the equivalent resistance \(R_{th}\) is the resistance seen by the circuit when all voltage/current sources are turned off.
The Thevenin equivalent circuit is useful for simplifying complex circuits and analyzing their behavior under different conditions: Falstad example.
Capacitors
A capacitor is a device that stores energy in the form of an electric field between two conductive plates separated by an insulator (dielectric). The basic relationship between voltage \(V\) across a capacitor and the charge \(Q\) it holds is:
\[ Q = C \, V \]
where \(C\) is the capacitance (measured in farads \([F]\)). In circuits, the current \(i(t)\) and voltage \(v(t)\) for a capacitor relate as:
\[ i(t) = C \frac{dv(t)}{dt} \]
Capacitors resist changes in voltage — they charge up and discharge according to
\[
v(t) = \frac{1}{C} \int i(t) \, dt.
\] - Commonly used for filtering, decoupling, and timing applications.
Symbol in circuit diagrams: two parallel lines
Show the code
Adding capacitors to a circuit is opposite to adding resistors. You can connect them in series or parallel with other components.
In a series circuit, the capacitors are connected end-to-end with other components, forming a single path for current flow.
Show the code
import schemdraw
import schemdraw.elements as elm
with schemdraw.Drawing() as d:
d += elm.Dot() # Starting point
d += elm.Capacitor().right().label('C1') # Capacitor C1
d += elm.Capacitor().right().label('C2') # Capacitor C2
d += elm.Capacitor().right().label('C3') # Capacitor C3
d += elm.Dot() # Ending point
In a parallel circuit, the capacitors are connected across other components, providing multiple paths for current flow.
Show the code
import schemdraw
import schemdraw.elements as elm
with schemdraw.Drawing() as d:
d += elm.Line().right().length(1) # Line to the right
d += elm.Dot() # Starting point
d += elm.Line().up().length(2) # Line up
d += elm.Capacitor().right().label('C1') # Capacitor C1 to the right
d += elm.Line().down().length(2) # Line down
d += elm.Capacitor().left().label('C2') # Capacitor C2 to the left
d += elm.Line().down().length(2) # Line down
d += elm.Capacitor().right().label('C3') # Capacitor C3 to the right
d += elm.Line().up().length(2) # Line up
d += elm.Dot() # Ending point
d += elm.Line().right().length(1) # Line to the right
Capacitance is a measure of a capacitor’s ability to store electrical charge and energy. It is defined as the ratio of the charge stored on the plates to the voltage across the plates. The SI unit of capacitance is the farad (F), which is equal to one coulomb per volt.
Formula for total capacitance in a series circuit:
\[ \frac{1}{C_{\text{total}}} = \frac{1}{C_1} + \frac{1}{C_2} + \frac{1}{C_3} + \ldots \]
Formula for total capacitance in a parallel circuit:
\[ C_{\text{total}} = C_1 + C_2 + C_3 + \ldots \]
Interestingly, behind the touch screen there are two parallel layers, one behind the other, of thin strips of a transparent conductor. A voltage is maintained between the two layers. In touch screen on a mobile phone/tablet, when you bring your finger (a conductor) up to a point on the screen, your finger and the front conducting layer act like a second capacitor in series at that point. The circuitry attached to the conducting layers detects the location of the capacitance change, and detects where you touched the screen.
Inductors
An Inductor is a component that stores energy in a magnetic field when current flows through it. The voltage \(V\) across an inductor of inductance \(L\) is given by:
\[ V = L \frac{d I}{dt} \]
Inductors resist changes in current. When current changes, the inductor induces a voltage that opposes the change.
Often used in filters, transformers, and power supplies.
Inductance is a measure of an inductor’s ability to store energy in a magnetic field. It is defined as the ratio of the magnetic flux linkage to the current flowing through the inductor. The SI unit of inductance is the henry (H), which is equal to one volt-second per ampere.
\[ L=\frac{N^2 \mu A}{l} \]
where \(L\) is the inductance, \(N\) is the number of turns, \(\mu\) is the permeability of the core material, \(A\) is the cross-sectional area of the coil, and \(l\) is the length of the coil.
Symbol in circuit diagrams: a coiled wire
Show the code
You can connect inductors in series or parallel with other components. The total inductance in a series circuit is (like in resistors) the sum of the individual inductances, while in a parallel circuit, the reciprocal of the total inductance is the sum of the reciprocals of the individual inductances.
Transformers
Transformer is a passive component that transfers electrical energy from one electrical circuit to another circuit, or multiple circuits. A varying current in any coil of the transformer produces a varying magnetic flux in the transformer’s core, which induces a varying electromotive force (EMF) across any other coils wound around the same core. Electrical energy can be transferred between separate coils without a metallic (conductive) connection between the two circuits.
Transformers operate on mutual induction, allowing voltage levels to be modified. The transformer equation relates the primary \(V_P\) and secondary \(V_S\) voltages to their respective turns \(N_P\) and \(N_S\):
\[\frac{V_P}{V_S} = \frac{N_P}{N_S} \]
A transformer with \(1000\) winding turns changes the primary voltage of \(120\) V into a secondary voltage of \(230\) V. What is the number of winding turns on the second voltage?
\[120/230 = 1000/N_S\]
\[N_S = 1000 * 230 / 120 = 1916 \text{ turns}\]
Measuring Instruments
An ammeter is a device used to measure the current flowing through an electrical circuit. It is connected in series with the circuit to measure the current passing through it. Ammeters are designed to have a low resistance to minimize the voltage drop across them and ensure accurate current measurements. They are commonly used in electronic circuits to monitor current flow and troubleshoot circuit issues. Measuring: ampers.
A voltmeter is a device used to measure the voltage across an electrical circuit. It is connected in parallel with the circuit to measure the voltage difference between two points. Voltmeters are designed to have a high resistance to minimize the current flow through them and ensure accurate voltage measurements. They are commonly used in electronic circuits to monitor voltage levels and troubleshoot circuit issues. Measuring: volts.
An ohmmeter is a device used to measure the resistance of an electrical component. It is connected to the component being tested to measure its resistance value. Ohmmeters are commonly used to check the continuity of wires, test the resistance of resistors, and troubleshoot circuit issues. Measuring: ohms.
A multimeter is a versatile device that combines the functions of an ammeter, voltmeter, and ohmmeter in a single instrument.
Kirchhoff’s Laws
To analyze and understand how currents and voltages distribute themselves around a circuit, we use Kirchhoff’s Laws:
Kirchhoff’s Current Law (KCL)
- States that the algebraic sum of all currents entering a node (junction) is zero.
- Another way to put it: the current flowing into a node equals the current flowing out.
- Written mathematically:
\[ \sum I_{\text{in}} = \sum I_{\text{out}} \]
Example in SchemaDraw with \(I_2=I_1+I_3+I_4+I_5\)
Show the code
import schemdraw
import schemdraw.elements as elm
with schemdraw.Drawing() as d:
d += elm.Arrow().right().label('I2') # Current I2 entering
# Central node
d += elm.Dot()
start_pos = d.here
d.push()
d += elm.Arrow().right().label('I3') # Current I3 leaving
d.pop() # Return to the saved position
d.push()
d += elm.Arrow().up().label('I1') # Current I1 leaving
d.pop() # Return to the saved position
d.push()
d += elm.Arrow(theta=45).label('I5', loc='right') # Current I5 leaving
d.pop() # Return to the saved position
d.push()
d += elm.Arrow(theta=315).label('I4', loc='right') # Current I4 leaving
Kirchhoff’s Voltage Law (KVL)
- States that the algebraic sum of all voltages around any closed loop in a circuit is zero.
- Another way to put it: what goes up (in voltage) must come down around a complete path.
- Written mathematically:
\[ \sum V_{\text{around a loop}} = 0 \]
Strategy for solving circuits using Kirchhoff’s Laws:
By combining the definitions of current and voltage with the properties of resistors, capacitors, inductors, and applying Kirchhoff’s Laws, one can systematically analyze any linear circuit.
- Use Kirchhoff’s Current Law to ensure current conservation at each node.
- Use Kirchhoff’s Voltage Law to ensure voltage consistency around loops.
- Apply the constitutive relationships for each circuit element (Ohm’s law for resistors, capacitor current-voltage relationship, inductor current-voltage relationship).
With these tools, you can solve for unknown currents and voltages throughout the circuit. By looking at the signs of the currents you can determine the direction of current flow.
Example:
Assume an electric network consisting of two voltage sources and three resistors.
According to the first law:
\(I_1 - I_2 - I_3 = 0\)
Applying the second law to the closed circuit \(s_1\), and substituting for voltage using Ohm’s law gives:
\(-R_2 I_2 + \mathcal{E}_1 - R_1 I_1 = 0\)
The second law, again combined with Ohm’s law, applied to the closed circuit \(s_2\) gives:
\(-R_3 I_3 - \mathcal{E}_2 - \mathcal{E}_1 + R_2 I_2 = 0\)
\[\begin{cases} I_1 - I_2 - I_3 = 0 \\ -R_2 I_2 + \mathcal{E}_1 - R_1 I_1 = 0 \\ -R_3 I_3 - \mathcal{E}_2 - \mathcal{E}_1 + R_2 I_2 = 0 \end{cases}\] which is equivalent to:
\[\begin{cases} I_1 + (-I_2) + (-I_3) = 0 \\ R_1 I_1 + R_2 I_2 + 0I_3 = \mathcal{E}_1 \\ 0I_1 + R_2 I_2 - R_3 I_3 = \mathcal{E}_1 + \mathcal{E}_2 \end{cases}\] Assuming:
\[\begin{aligned} R_1 &= 100 \, \Omega, & R_2 &= 200 \, \Omega, & R_3 &= 300 \, \Omega, \\ \mathcal{E}_1 &= 3 \, \text{V}, & \mathcal{E}_2 &= 4 \, \text{V} \end{aligned}\] the solution is:
\[\begin{cases} I_1 = \frac{1}{1100} \, \text{A} \\ I_2 = \frac{4}{275} \, \text{A} \\ I_3 = -\frac{3}{220} \, \text{A} \end{cases}\]
The current \(I_3\) has a negative sign which means the assumed direction of \(I_3\) was incorrect and \(I_3\) is actually flowing in the direction opposite to the assumed one. The current in \(R_3\) flows from left to right.
Modern circuits
This part covers the non-trivial aspects of electrical circuits, including alternating current (AC) circuits, diodes, transistors, and RLC circuit description. Understanding these concepts is essential for designing and analyzing electronic devices and systems.
We also present the Falstad Circuit Simulator, a powerful online tool for visualizing and analyzing electrical circuits.
Altering current and voltage
Current is the flow of electric charge through a conductor, measured in amperes (A). Along we also provide voltage characteristics measured in volts (V).
AC and DC currents
Alternating Current (AC) is characterized by its ability to change direction periodically, in contrast to Direct Current (DC), which flows in the same direction.
AC is the standard for electricity distribution due to its efficiency over long distances. It is also easier to convert AC to different voltages using transformers. DC is used in batteries and electronic devices.
The mathematical representation of AC is given by:
\[V(t) = V_{max} \sin(\omega t + \phi) \]
\[I(t) = I_{max} \sin(\omega t + \phi) \]
where:
- \(V(t)\) is the voltage at time \(t\)$,
- \(V_{max}\) is the maximum voltage,
- \(I(t)\) is the current at time \(t\)$,
- \(I\)_{max}$ is the maximum current.
- \(\omega\) is the angular frequency,
- \(\phi\) is the phase angle.
Animation: AC generator and AC vs DC generators
Three-Phase AC Systems
Three-phase systems use three AC currents, each phase shifted by 120° from the others. They are commonly used in industrial applications due to their efficiency and power distribution capabilities.
This arrangement enhances power distribution efficiency by the \(\sqrt{3}\) factor. The total power in a three-phase system is given by:
\[P_{\text{total}} = 3 \cdot V_{\text{line}} \cdot I_{\text{line}} \cdot \cos(\phi) \]
where \(V_{\text{line}}\) is the line voltage, \(I_{\text{line}}\) is the line current, and \(\phi\) is the phase angle.
Electromotive Force (EMF)
Electromotive force (EMF)is the voltage generated by a source of electrical energy, such as a battery or generator. We will use the symbol \(\epsilon\) for EMF. It is measured in volts (V) and represents the electrical potential difference between two points in a circuit. EMF is responsible for driving current through a circuit and powering electrical devices.
EMF is not a force in the traditional sense but rather a measure of the energy per unit charge provided by the source. It is analogous to the pressure in a hydraulic system that drives the flow of water. EMF is the total energy provided by the source per unit charge, including the energy lost due to internal resistance.
The EMF of a source is equal to the potential difference across its terminals when no current is flowing. When current flows, the voltage across the terminals may drop due to internal resistance, leading to a lower terminal voltage.
The SI unit of EM is the same as that for potential, the volt \([V]=[J/C]\). A typical flashlight battery has an EMF of 1.5 V; this means that the battery does 1.5 J of work on every coulomb of charge that passes through it.
Modern Electronics
Electrical properties of materials are critical for designing electronic components:
- Insulators exhibit high resistivity.
- Semiconductors have variable resistivity (influenced by doping and temperature).
- Conductors exhibit low resistivity.
In semiconductors, the valence band is the highest energy band that is fully occupied by electrons, while the conduction band is the next highest energy band that is empty or partially filled. The energy gap between the valence and conduction bands determines the conductivity of the semiconductor.
Valence Band is the highest range of electron energies. Electrons are bound to atoms and participate in chemical reactions. When these electrons gain sufficient energy, they can move to the conduction band, becoming free to conduct electricity.
- Insulators: Have a large band gap (e.g., diamond), making it difficult for electrons to move from the valence band to the conduction band, thus they do not conduct electricity well.
- Semiconductors: Have a smaller band gap (e.g., silicon, germanium). They can conduct electricity under certain conditions, such as when doped with other elements or when exposed to light.
- Conductors: Have no band gap because the valence band and conduction band overlap, allowing electrons to move freely and conduct electricity efficiently (e.g., metals like copper).
Doping and the P-N Junction
Semiconductor doping (process of adding impurities to a semiconductor material) introduces carriers, enhancing conductivity. Doping can be done with different types of impurities, such as boron, phosphorus, and arsenic, to create p-type and n-type semiconductors.
Timeline of Key Discoveries in Physics and Electronics:
- 1896: Electron Discovered
- 1911: Superconductivity
- 1925: Quantum Mechanics
- 1935: Semiconductors (Significant Progress)
- 1948: Transistor
- 1957: Tunnel Diode
- 1960s: Semiconductor Laser
- 1980: Quantum Hall Effect
- 1986: High-Temperature Superconductivity
- 2010s: Topological Insulators
A doped semiconductor is a semiconductor with impurities added to it to alter its electrical properties. The impurities are called dopants.
The two types of doped semiconductors are:
P-Type Semiconductor
- Made by dding a small amount of an element that has one less valence electron than the semiconductor material (like silicon).
- Result: Creates “holes” or POSITIVE charge carriers because there’s a spot where an electron could be, but isn’t.
N-Type Semiconductor
- Made by dding a bit of an element that has one more valence electron than the semiconductor material.
- Result: Extra electrons are available, creating NEGATIVE charge carriers.
P-N Junction is a boundary between p-type and n-type semiconductors. It is a key component in diodes, transistors, and solar cells.
Why It’s Important?
- Unidirectional Conductivity: A PN junction allows current to flow more easily in one direction than the other. When you apply a voltage in one direction, it pushes the electrons and holes towards the junction, allowing current to flow. When you reverse the voltage, it pulls them away from the junction, making it hard for current to flow. This is how diodes work.
- Applications: This principle is what makes semiconductors so useful in electronics. They can be used to control electrical current flow in circuits, which is foundational for creating all kinds of electronic devices.
Diode
A diode is a passive two-terminal electrical component that allows current to flow in one direction only. It consists of a semiconductor material with two regions: a p-type region with an excess of positive charge carriers (holes) and an n-type region with an excess of negative charge carriers (electrons).
Positive bias (forward bias) allows current to flow, while negative bias (reverse bias) blocks current flow.
Practical uses: rectification (converting AC to DC), protection circuits, and signal demodulation.
Diodes are commonly used in electronic circuits for various purposes, such as rectification, signal demodulation, and voltage regulation. They are represented by the symbol “D” in circuit diagrams.
In SchmeaDraw, the symbol for a diode is given by:
Show the code
Falstad simulation: Diode
Equation for diode
The (Shockley) ideal diode equation describes the current-voltage relationship of a diode. It is given by the equation:
\[I = I_s \left( e^{\frac{V}{n V_T}} - 1 \right)\]
where:
- \(I\) is the current through the diode.
- \(I_s\) is the saturation current, a parameter that characterizes the diode.
- \(V\) is the voltage across the diode.
- \(n\) is the ideality factor, a parameter that accounts for non-ideal behavior.
- \(V_T\) is the thermal voltage, approximately 25 mV at room temperature.
The diode equation is an exponential relationship between current and voltage, with the saturation current setting the scale of the current and the ideality factor affecting the shape of the curve.
Diode Characteristics:
Forward Bias: When the voltage across the diode is positive, it allows current to flow in the forward direction. The diode has a low resistance and conducts electricity.
Reverse Bias: When the voltage across the diode is negative, it blocks current flow in the reverse direction. The diode has a high resistance and does not conduct electricity.
Breakdown Voltage: If the reverse voltage exceeds a certain threshold, the diode breaks down and conducts in the reverse direction. This is known as the breakdown voltage.
Forward Voltage Drop: The voltage drop across the diode when it is conducting current in the forward direction. It is typically around 0.7 volts for silicon diodes and 0.3 volts for germanium diodes.
Main Types of diodes:
Rectifier diode: converts AC voltage to DC voltage by allowing current to flow in one direction only.
Zener diode: regulates voltage by maintaining a constant voltage across its terminals.
Light-emitting diode (LED): emits light when current flows through it.
Varactor diode: changes capacitance with applied voltage, used in tuning circuits. Varactor diodes are used in voltage-controlled oscillators, phase-locked loops, and frequency synthesizers.
Photodiode: converts light into electrical current, used in light sensors and solar cells.
Rectifier diode
A rectifier diode is a type of diode that converts alternating current (AC) to direct current (DC) by allowing current to flow in one direction only. It is used in power supplies, battery chargers, and other electronic devices that require DC voltage. Rectifier diodes are commonly used in bridge rectifiers, half-wave rectifiers, and full-wave rectifiers to convert AC voltage to DC voltage.
The rectifier diode operates by allowing current to flow when the voltage across its terminals is positive and blocking current flow when the voltage is negative. This process converts the AC voltage into a pulsating DC voltage that can be smoothed using capacitors and filters to produce a stable DC voltage.
Rectifier diodes are available in different types, such as silicon diodes, germanium diodes, Schottky diodes, and fast-recovery diodes, each with specific characteristics and applications.
Single diode:
Four diodes in a bridge rectifier:
Diode with somothing out condensator:
Zener Diode
A Zener diode is a special type of diode designed to reliably allow current to flow “backwards” (inverted polarity) when a certain threshold of reverse voltage, known as the Zener voltage, is reached.
They are used to generate low-power stabilized supply rails from a higher voltage and to provide reference voltages for circuits, especially stabilized power supplies.
Zener effect is a phenomenon that occurs in a reverse-biased p-n junction diode when the electric field enables tunneling of electrons from the valence band of the p-type material to the conduction band of the n-type material, creating a population of minority carriers in the p-type material, which suddenly increase the reverse current.
This makes it useful for stabilizing voltage levels in electronic circuits. They are also used to protect circuits from overvoltage, especially electrostatic discharge.
Transistor
A transistor is an active three-terminal electrical component that amplifies or switches electronic signals and electrical power. It consists of three layers of semiconductor material: an emitter, a base, and a collector.
- Collector is the terminal that collects the current.
- Emitter is the terminal that emits the current.
- Base is the terminal that controls the current flow between the collector.
The base terminal controls the flow of current between the emitter and collector terminals, allowing the transistor to amplify or switch signals.
Transistors are commonly used in electronic circuits for various applications, such as amplification, switching, and signal processing. They are represented by the symbol “Q” in circuit diagrams.
Before transistors were developed, vacuum (electron) tubes (or in the UK “thermionic valves” or just “valves”) were the main active components in electronic equipment. Transistors revolutionized the field of electronics and paved the way for smaller and cheaper radios, calculators, computers, and other electronic devices.
Link: video about transitors
Main Types of transistors:
Bipolar junction transistor (BJT): consists of p-n-p or n-p-n layers, used in amplification and switching circuits.
Field-effect transistor (FET): consists of gate, source, and drain terminals, used in amplification and switching circuits.
Metal-oxide-semiconductor field-effect transistor (MOSFET): consists of metal, oxide, and semiconductor layers, used in power amplifiers and digital circuits.
RLC Circuits
An RLC circuit is a type of electrical circuit that contains:
- resistors R,
- inductors L,
- and capacitors C.
These components interact to control the flow of current and energy in the circuit. RLC circuits are used in a wide range of electronic devices and systems for various applications, such as filtering, tuning, and signal processing.
One can have DC or AC RLC circuits. Elements in the circuit can be connected in series or parallel.
Example of (series type) RLC circuit in SchemaDraw:
Show the code
import schemdraw
import schemdraw.elements as elm
# Create the drawing
with schemdraw.Drawing():
L = elm.Inductor().label('$L$').length(6)
C = elm.Capacitor().down().label('$C$', loc='right').length(6)
Vs= elm.SourceV().left().label('$V_s$', loc='bottom').length(6)
R = elm.Resistor().up().label('$R$').length(6)
elm.LoopCurrent([L, C, Vs, R], direction='cw').label('$I$')
Using Kirchhoff’s Voltage Law (KVL) for an RLC circuit, we have drop in voltage across the resistor, inductor, and capacitor equal to the source voltage:
\[V_s - V_R - V_L - V_C = 0, \] where \(V_s=\varepsilon\) is the source voltage, V_R is the voltage across the resistor, V_L is the voltage across the inductor, and V_C is the voltage across the capacitor.
Substituting the respective expressions for \(V_R\), \(V_L\), and \(V_C\) gives us:
\[\varepsilon- IR - L \frac{d I}{dt} - \frac{Q}{C} = 0 \]
After substituting \(I = \frac{dQ}{dt}\), the differential equation for an RLC circuit becomes:
\[L\frac{d^2Q}{dt^2} +R\frac{dQ}{dt} + \frac{1}{C}Q=\varepsilon \]
where \(I\) is the current through the resistor, \(R\) is the resistance, \(L\) is the inductance, \(\frac{d I}{dt}\) is the rate of change of current with respect to time, \(Q\) is the charge on the capacitor, and \(C\) is the capacitance.
The solution to the differential equation depends on the initial conditions of the circuit, such as the initial current and voltage values. By solving the differential equation, you can determine the transient and steady-state response of the RLC circuit to different input signals.
Link 1: WolframAlpha example
Link 2: Falstad RLC circuit
Applications of RLC circuits
RLC circuits are essential components of a wide range electronic devices and systems, allowing engineers to control the flow of current, store energy, filtering, tuning and filter signals.
Some common applications of RLC circuits include:
Bandpass filters: RLC circuits can be used to filter out unwanted frequencies and pass only the desired frequencies in electronic circuits. Bandpass filters are commonly used in radio receivers, audio amplifiers, and communication systems.
Oscillators: RLC circuits can be used to generate oscillating signals at specific frequencies in electronic circuits. Oscillators are commonly used in clock circuits, signal generators, and radio transmitters.
Amplifiers: RLC circuits can be used to amplify signals and control the gain of electronic circuits. Amplifiers are commonly used in audio amplifiers, power amplifiers, and signal processing systems.
Resonant circuits: RLC circuits can be used to create resonant circuits that exhibit maximum current flow and minimum impedance at specific frequencies. Resonant circuits are commonly used in tuning circuits, filtering signals, and amplifying signals.
RLC and harmonic oscillator analogy
The behavior of the RLC circuit can be compared to the motion of a harmonic oscillator under different conditions.
In a series RLC circuit, the resistor, inductor, and capacitor interact to control the flow of current and energy in the circuit. The resistor dissipates energy, the inductor stores energy in a magnetic field, and the capacitor stores energy in an electric field. The behavior of the RLC circuit is influenced by the values of the resistance, inductance, and capacitance of the components.
In a harmonic oscillator system, the damping force, mass, and spring constant interact to control the motion of the oscillator. The damping force dissipates energy, the mass stores kinetic energy, and the spring constant stores potential energy. The behavior of the harmonic oscillator system is influenced by the values of the damping force, mass, and spring constant.
A damped harmonic oscillator with the external force: \[m\frac{d^2x}{dt^2} + b\frac{dx}{dt} + kx = F_{ext} \]
where \(m\) is the mass, \(b\) is the damping coefficient, \(k\) is the spring constant, \(x\) is the displacement of the oscillator, \(t\) is time, and \(F_{ext}\) is the external (driven) force.
In comparison with the RLC circuit:
\[L\frac{d^2Q}{dt^2} +R\frac{dQ}{dt} + \frac{1}{C}Q=\varepsilon \]
where \(L\) is the inductance, \(R\) is the resistance, \(C\) is the capacitance, \(Q\) is the charge on the capacitor, \(t\) is time, and \(\varepsilon\) is the source voltage.
Therefore, the RLC circuit and the harmonic oscillator system share similar characteristics and can be analyzed using similar mathematical models.
inductor represents the mass of the oscillator \(m\),
resistor represents the damping force \(F_{damping}= -b * v\),
capacitor represents the spring constant of the oscillator \(k\).
source voltage (emf) represents the external driven force \(F_{ext}\).
RLC Impedance
Alternating current in RLC circuits is analyzed using Kirchhoff’s equations and Ohm’s Law. It is characterized by impedance, which determines the resistance of the circuit to alternating current.
The impedance of an RLC circuit is the total opposition to the flow of current in the circuit. It is a complex quantity that includes both resistance and reactance components.
Reactance is the opposition to the flow of alternating current caused by inductance and capacitance in the circuit. It is a measure of the circuit’s ability to store and release energy in the form of a magnetic field (inductive reactance) or an electric field (capacitive reactance). We denote inductive reactance as \(X_L=2\pi f L\) and capacitive reactance as \(X_C=\frac{1}{2\pi f C}\). Additionally the reprocity of impedance is called admittance.
We often use the magnitude of the impedance (to avoid complex numbers). For series RLC: \[|Z| = \sqrt{R^2 + (X_L - X_C)^2}= \sqrt{R^2 + (2\pi f L - \frac{1}{2\pi f C})^2} \]
where \(R\) is the resistance, \(X_L\) is the inductive reactance, \(X_C\) is the capacitive reactance, \(f\) is the frequency of the input signal, \(L\) is the inductance, and \(C\) is the capacitance.
The impedance of an RLC circuit depends on the frequency of the input signal. At low frequencies, the inductive reactance is dominant, and the impedance is mainly resistive. At high frequencies, the capacitive reactance is dominant, and the impedance is mainly reactive.
The impedance of an RLC circuit can be calculated using Ohm’s law and the voltage-current relationship for resistors, inductors, and capacitors. By analyzing the impedance of the circuit, you can determine the current response of the circuit to different input signals and frequencies.
RLC Resonance
RLC resonance is a phenomenon that occurs in electrical circuits when the inductive and capacitive reactances cancel each other out (\(X_L = X_C\)), resulting in a maximum current flow and minimum impedance. RLC resonance is characterized by a sharp peak in the current response of the circuit at a specific frequency called the resonant frequency.
The resonant frequency:
\[ f_0 = \frac{1}{2\pi\sqrt{LC}} \]
where \(f_0\) is the resonant frequency, \(L\) is the inductance of the circuit, \(C\) is the capacitance of the circuit, and \(\pi\) is the mathematical constant pi.
The parallel and series RLC circuits will have the same resonant frequency. However, the impedance in a parallel RLC circuit is maximized at resonance (minimal current flow through the circuit), whereas it is minimized in the series RLC circuit at resonance (maximum current flow through the circuit).
At resonance, the total impedance of the circuit is minimized, resulting in a maximum current flow through the circuit. In this way, the two types of RLC circuits provide two different types of filtering behavior: bandpass and bandstop.
Falstad Circuit Simulator
The Falstad Circuit Simulator is a powerful online tool for visualizing and analyzing electrical circuits. It provides an intuitive interface for building, simulating, and observing circuit behavior in real-time. The simulator supports a wide range of components, including resistors, capacitors, inductors, diodes, transistors, and more.
Instructions for Using Falstad
Open the Falstad Circuit Simulator in your web browser to access the tool.
How to build and simulate circuits:
- Click on “File/New Blank Circuit”. It with start a blank canvas to build your circuit from scratch.
- Click on “Draw/Add Resistor” and place it on the canvas using your mouse (left-right direction). By the default value is \(1k\, \Omega\), that is 1000 ohms.
- Double-click on the resistor to change its resistance value, for example, to \(R = 10 \, \Omega\).
- Click on “Draw/Inputs an Sources/Add Voltage Source (2 terminal)” and place it on the canvas connecting it to the resistor. Double-click on the voltage source to set its value, for example, to \(V = 20 \, \text{V}\).
- Click on “Draw/Add Resistor” again and place it on the canvas to add another resistor. Double-click on the resistor to set its value, for example, to \(R = 5 \, \Omega\).
- Click on “Draw/Add Wire” and connect the components by clicking on one terminal and dragging the wire to the other terminal.
- Adjust the Simulation Speed and Current Speed using the sliders on the right.
As the result you should obtain: the following circuit.
Remarks
- start with the disconnected elements like resistors, capacitors, inductors in the ritht places
- depending on the case adding sources DC, diodes, etc. pay attention to the direction of the element (Voltage has a defined direction and it matters if you draw it from the left to right or opposite).
- at the end connect everything with wires.
- make sure that the circuit is closed (no open ends)!
- change values by double-clicking on the element
- use mouse to drag the elements and make sure that the circuit is clear and readable:
- Ctr + Left Mouse Click = to drag the elements.
- Shift + Left Mouse Click = to move the element.
List of defined examples
References
- D. Halliday, R. Resnick, and J. Walker, Fundamentals of Physics.
- J.D. Irwin, Basic Engineering Circuit Analysis.
- Thomas L. Floyd, Electronic Devices.
- HyperPhysics website for quick reference.
- electronics-tutorials- Circuit Builder I
- Circuit Builder II
- Schemdraw package to draw circuits.
- Falstad Circuit Simulator for visualizing and analyzing electrical circuits.
- Circuitikz package to draw circuits in documents.