lunes, 3 de abril de 2017

Guia 3 AC DC Conversion Lab Circuitos II


http://webpages.ursinus.edu/lriley/ref/circuits/node3.html




AC to DC Conversion


Half Wave Rectifier


Figure 8: A half wave rectifier.
\includegraphics{lab2-halfa.eps}
An important step in converting the 120 V AC power supplied by a standard wall outlet into 5 V DC power for your computer is voltage reduction. You have been provided with a variable transformer that can step the 120 V signal from the wall socket down to 7 V across the two red terminals, or 3.5 V across either black/red pair. In the following exercises, use the 7 V option.
In order to convert an AC current that spends equal amounts of time flowing in opposite directions into a DC current flowing in only one direction, we need a device that responds differently to applied voltages of different polarities. The standard device used for this purpose in modern electronics is the semiconductor diode. The circuit of Figure 8 is called a half wave rectifier, because the diode simply blocks the segments of the signal with negative polarity.
Set up the circuit of Figure 8 using a 10 k$\Omega $ load resistor, and compare the voltage across the load resistor to the input signal. Are you surprised by the peak voltage across the load? Make note of this. Also compare your observations with a Spice simulation (a transient analysis). If they agree, just hand in a graph of the simulation. Otherwise, also sketch your observed oscilloscope traces.
In your Spice simulation, do not explicitly include the transformer. Simply treat it as a sinusoidal voltage source. In order to use diodes in a circuit, include the following statement somewhere in your circuit file.
.MODEL D1 D
This tells Spice that device type D1 is a generic silicon diode. Then, diodes are specified with the syntax
[Name] [+] [-] D1
where the [Name] field must begin with a D, and current is allowed to flow from the [+] node to the [-] node.
Figure 9: A half wave rectifier with a filter.
\includegraphics{lab2-halfb.eps}
You should have found that the load is not being driven by a particularly steady DC signal, although the current always moves in one direction. (If you did not, perhaps we should look at what you discovered together.) The next step is to use a large capacitor to filter out most of the unwanted variation or ripple in the signal across the load resistor. The circuit of Figure 9 includes a filter capacitor in parallel with the load. Since the diode does not allow current to flow back through to the transformer, the capacitor discharges through the load resistor with a time constant $R_{Load}C$. Assuming $R_{Load}C >> \frac{1}{f}$ derive an expression for the peak to peak magnitude of the ripple in the output signal in terms of $C$ and $R_{Load}$. Assuming a 10 k$\Omega $ load, find the capacitances you would need to use to reduce the ripple to 10% and 1% of the DC output voltage.
Using the best filter capacitor you can find 3, measure the DC level and the magnitude of the ripple across the load. Use the DC (direct coupling) mode of the oscilloscope or a DVM to measure the the DC level, and use the AC (active coupling) mode of the oscilloscope to remove the DC component of the signal and zoom in on the ripple. Then change the load resistance, and determine whether the ripple changes as expected.

Full Wave Rectifier


Figure 10: A full wave rectifier with a filter.
\includegraphics{lab2-bridgeb.eps}
The configuration of four diodes in the circuit shown in Figure 10 is called a bridge rectifier. It is also a full wave rectifier, because it does not throw away any part of the input signal. Consequently, the filter for this circuit requires roughly half the time constant of the half wave rectifier.
Build the circuit of Figure 10 using a 10 k$\Omega $ load resistor and a suitable filter capacitor, and compare your observation of the voltage across the load resistor, with and without the filter capacitor, with Spice simulations. 4 If they agree, just hand in a graph of the simulation. Otherwise, also sketch your observed oscilloscope trace. Measure the magnitude of the ripple, change the load resistance, and determine whether the ripple changes as expected.

A ``Real'' DC Power Supply


Figure 11: A full wave rectifier with a voltage regulator.
\includegraphics{lab2-bridgec.eps}
You have been given an open power supply constructed as shown in Figure 11. This supply is a full wave rectifier with a filter and a device called a voltage regulator that removes the remaining ripple. This device is an integrated circuit (IC) that contains lots of very small resistors, capacitors, diodes and transistors manufactured on a single silicon wafer. For the moment, we will treat it as a ``black box.'' Its function is to deliver or accept current as needed to maintain a constant output voltage. The 78XX series of voltage regulator maintains an output voltage of XX Volts. Your supply has a 7806, so the DC output voltage should be close to 6 V.
Poke around carefully with the oscilloscope. The filter capacitor is physically the largest capacitor. It also has the largest capacitance. (The other two capacitors, labelled $C_{in}$ and $C_{out}$ are recommended by the manufacturer of the voltage regulator.) Measure the DC and ripple voltages both at the output and at the filter capacitor.

AC Circuit Analysis Exercises


Figure 12: Various filter circuits.
(a) \includegraphics{lab2-filter1.eps} (b) \includegraphics{lab2-filter2.eps}
(c) \includegraphics{lab2-filter3.eps}
For each circuit shown in Figure 12:
  • Apply whichever method you wish (Node Voltage, Mesh Current, ``voltage divider thinking'') to derive expressions for $S = \left\vert \frac{V_{out}}{V_{in}} \right\vert$ and the phase angle.
  • Check your calculations against a Spice simulation.
  • Find the Thevenin equivalent voltage and impedance for the output terminals indicated.
  • Comment on the function of the circuit as a filter converting $V_{in}$ into $V_{out}$.

Single Supply Operational Amplifier Design : Audio PreAmplifier

Single Supply Operational Amplifier Design : Audio PreAmplifie

https://www.youtube.com/watch?v=1uw0YINv7W8


 

Simple Serial program in Python for commuinication with Arduino

Arduino and Python Serial Communication with PySerial Part 

 


https://www.youtube.com/watch?v=KB67cuaEJOU

Transitorio analisis en el tiempo Transient Circuits RL RC RLC Differential equations solution step by step very nice solution

Transitorio analisis en el tiempo Transient Circuits RL RC RLC Differential equations solution step by step very nice solution
http://www.intmath.com/differential-equations/5-rl-circuits.php

Application of Ordinary Differential Equations: Series RL Circuit

Series RL circuit diagram
RL circuit diagram
The RL circuit shown above has a resistor and an inductor connected in series. A constant voltage V is applied when the switch is closed.
The (variable) voltage across the resistor is given by:
VR=iR\displaystyle{V}_{{R}}={i}{R}V​R​​=iR
The (variable) voltage across the inductor is given by:
VL=Ldidt\displaystyle{V}_{{L}}={L}\frac{{{d}{i}}}{{{\left.{d}{t}\right.}}}V​L​​=L​dt​​di​​
Kirchhoff's voltage law says that the directed sum of the voltages around a circuit must be zero. This results in the following differential equation:
Ri+Ldidt=V\displaystyle{R}{i}+{L}\frac{{{d}{i}}}{{{\left.{d}{t}\right.}}}={V}Ri+L​dt​​di​​=V
Once the switch is closed, the current in the circuit is not constant. Instead, it will build up from zero to some steady state.
Continues below ⇩

Solving the DE for a Series RL Circuit

The solution of the differential equation Ri+Ldidt=V\displaystyle{R}{i}+{L}\frac{{{d}{i}}}{{{\left.{d}{t}\right.}}}={V}Ri+L​dt​​di​​=V is:
i=VR(1−e−(R/L)t)\displaystyle{i}=\frac{V}{{R}}{\left({1}-{e}^{{-{\left({R}\text{/}{L}\right)}{t}}}\right)}i=​R​​V​​(1−e​−(R/L)t​​)
We start with:
Ri+Ldidt=V\displaystyle{R}{i}+{L}\frac{{{d}{i}}}{{{\left.{d}{t}\right.}}}={V}Ri+L​dt​​di​​=V
Subtracting Ri from both sides:
Ldidt=V−Ri\displaystyle{L}\frac{{{d}{i}}}{{{\left.{d}{t}\right.}}}={V}-{R}{i}L​dt​​di​​=V−Ri
Divide both sides by L:
didt=V−RiL\displaystyle\frac{{{d}{i}}}{{{\left.{d}{t}\right.}}}=\frac{{{V}-{R}{i}}}{{L}}​dt​​di​​=​L​​V−Ri​​
Multiply both sides by dt and divide both by (V - Ri):
diV−Ri=dtL\displaystyle\frac{{{d}{i}}}{{{V}-{R}{i}}}=\frac{{{\left.{d}{t}\right.}}}{{L}}​V−Ri​​di​​=​L​​dt​​
Integrate (see Integration: Basic Logarithm Form):
∫diV−Ri=∫dtL\displaystyle\int\frac{{{d}{i}}}{{{V}-{R}{i}}}=\int\frac{{{\left.{d}{t}\right.}}}{{L}}∫​V−Ri​​di​​=∫​L​​dt​​
−ln(V−Ri)R=1Lt+K\displaystyle-\frac{{ \ln{{\left({V}-{R}{i}\right)}}}}{{R}}=\frac{1}{{L}}{t}+{K}−​R​​ln(V−Ri)​​=​L​​1​​t+K
Now, since i=0\displaystyle{i}={0}i=0 when t=0\displaystyle{t}={0}t=0, we have:
K=−ln VR\displaystyle{K}=-\frac{{ \ln{\ }{V}}}{{R}}K=−​R​​ln V​​
Substituting K back into our expression:
−ln(V−Ri)R=1Lt−lnVR\displaystyle-\frac{{ \ln{{\left({V}-{R}{i}\right)}}}}{{R}}=\frac{1}{{L}}{t}-\frac{{ \ln{{V}}}}{{R}}−​R​​ln(V−Ri)​​=​L​​1​​t−​R​​lnV​​
Rearranging:
ln VR−ln(V−Ri)R=1Lt\displaystyle\frac{{ \ln{\ }{V}}}{{R}}-\frac{{ \ln{{\left({V}-{R}{i}\right)}}}}{{R}}=\frac{1}{{L}}{t}​R​​ln V​​−​R​​ln(V−Ri)​​=​L​​1​​t
Multiplying throughout by -R:
−ln V+ln(V−Ri)=−RLt\displaystyle- \ln{\ }{V}+ \ln{{\left({V}-{R}{i}\right)}}=-\frac{R}{{L}}{t}−ln V+ln(V−Ri)=−​L​​R​​t
Collecting the logarithm parts together:
ln(V−RiV)=−RLt\displaystyle \ln{{\left(\frac{{{V}-{R}{i}}}{{V}}\right)}}=-\frac{R}{{L}}{t}ln(​V​​V−Ri​​)=−​L​​R​​t
Taking "e to both sides":
V−RiV=e−(R/L)t\displaystyle\frac{{{V}-{R}{i}}}{{V}}={e}^{{-{\left({R}\text{/}{L}\right)}{t}}}​V​​V−Ri​​=e​−(R/L)t​​
1−RVi=e−(R/L)t\displaystyle{1}-\frac{R}{{V}}{i}={e}^{{-{\left({R}\text{/}{L}\right)}{t}}}1−​V​​R​​i=e​−(R/L)t​​
Subtracting 1 from both sides:
−RVi=−1+e−(R/L)t\displaystyle-\frac{R}{{V}}{i}=-{1}+{e}^{{-{\left({R}\text{/}{L}\right)}{t}}}−​V​​R​​i=−1+e​−(R/L)t​​
Multiplying both sides by −(VR)\displaystyle-{\left(\frac{V}{{R}}\right)}−(​R​​V​​):
i=VR(1−e−(R/L)t)\displaystyle{i}=\frac{V}{{R}}{\left({1}-{e}^{{-{\left({R}\text{/}{L}\right)}{t}}}\right)}i=​R​​V​​(1−e​−(R/L)t​​)
Please support IntMath!
[We did the same problem but with particular values back in section 2. Separation of Variables]
Here is the graph of this equation:
t i τ 2τ 3τ 4τ 5τ 6τ
VR\displaystyle\frac{V}{{R}}​R​​V​​
Graph of i=VR(1−e−(R/L)t)\displaystyle{i}=\frac{V}{{R}}{\left({1}-{e}^{{-{\left({R}\text{/}{L}\right)}{t}}}\right)}i=​R​​V​​(1−e​−(R/L)t​​).
The plot shows the transition period during which the current adjusts from its initial value of zero to the final value VR\displaystyle\frac{V}{{R}}​R​​V​​, which is the steady state.

The Time Constant

The time constant (TC), known as τ, of the function
i=VR(1−e−(R/L)t)\displaystyle{i}=\frac{V}{{R}}{\left({1}-{e}^{{-{\left({R}\text{/}{L}\right)}{t}}}\right)}i=​R​​V​​(1−e​−(R/L)t​​)
is the time at which RL\displaystyle\frac{R}{{L}}​L​​R​​ is unity ( = 1). Thus for the RL transient, the time constant is τ=LR\displaystyle\tau=\frac{L}{{R}}τ=​R​​L​​ seconds.
NOTE: τ is the Greek letter "tau" and is not the same as T or the time variable t, even though it looks very similar.
At 1 τ
1−e−(R/L)t\displaystyle{1}-{e}^{{-{\left({R}\text{/}{L}\right)}{t}}}1−e​−(R/L)t​​
=1−e−1\displaystyle={1}-{e}^{ -{{1}}}=1−e​−1​​
=1−0.368\displaystyle={1}-{0.368}=1−0.368
=0.632\displaystyle={0.632}=0.632
At this time the current is 63.2% of its final value.
Similarly at 2 τ,
1−e−2=1−0.135=0.865\displaystyle{1}-{e}^{ -{{2}}}={1}-{0.135}={0.865}1−e​−2​​=1−0.135=0.865
The current is 86.5% of its final value.
After 5 τ the transient is generally regarded as terminated. For convenience, the time constant τ is the unit used to plot the current of the equation
i=VR(1−e−(R/L)t)\displaystyle{i}=\frac{V}{{R}}{\left({1}-{e}^{{-{\left({R}\text{/}{L}\right)}{t}}}\right)}i=​R​​V​​(1−e​−(R/L)t​​)
That is, since τ=LR\displaystyle\tau=\frac{L}{{R}}τ=​R​​L​​, we think of it as:
i=VR(1−e−t/τ)\displaystyle{i}=\frac{V}{{R}}{\left({1}-{e}^{{-{t}\text{/}\tau}}\right)}i=​R​​V​​(1−e​−t/τ​​)
Let's now look at some examples of RL circuits.

Example 1

An RL circuit has an emf of 5 V, a resistance of 50 Ω, an inductance of 1 H, and no initial current.
Find the current in the circuit at any time t. Distinguish between the transient and steady-state current.

Example 2

A series RL circuit with R = 50 Ω and L = 10 H has a constant voltage V = 100 V applied at t = 0 by the closing of a switch.
Find
(a) the equation for i (you may use the formula rather than DE),
(b) the current at t = 0.5 s
(c) the expressions for VR and VL
(d) the time at which VR = VL

Two-mesh Circuits

The next two examples are "two-mesh" types where the differential equations become more sophisticated. We will use Scientific Notebook to do the grunt work once we have set up the correct equations.

Example 3

In the two-mesh network shown below, the switch is closed at t = 0 and the voltage source is given by V = 150 sin 1000t V. Find the mesh currents i1 and i2 as given in the diagram.
2 mesh circuit diagram

Example 4

The switch is closed at t = 0 in the two-mesh network shown below. The voltage source is given by V = 30 sin 100t V. Find the mesh currents i1 and i2 as given in the diagram.
2 mesh circuit diagram