<?xml version="1.0" encoding="iso-8859-1"?><!-- generator="b2evolution/3.3.3" -->
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Circuits and YOU!</title>
		<link>http://mcuplace.com/mcu/blog5.php</link>
		<atom:link rel="self" type="application/rss+xml" href="http://mcuplace.com/mcu/blog5.php?tempskin=_rss2" />
		<description></description>
		<language>en-US</language>
		<docs>http://blogs.law.harvard.edu/tech/rss</docs>
		<admin:generatorAgent rdf:resource="http://b2evolution.net/?v=3.3.3"/>
		<ttl>60</ttl>
				<item>
			<title>The Transistor</title>
			<link>http://mcuplace.com/mcu/blog5.php/2010/08/08/the-transistor</link>
			<pubDate>Sun, 08 Aug 2010 15:52:01 +0000</pubDate>			<dc:creator>anthony</dc:creator>
			<category domain="main">Informative</category>			<guid isPermaLink="false">55@http://mcuplace.com/mcu/</guid>
						<description>&lt;p&gt;One of the most valuable elements in modern electronics is the transistor. The transistor has allowed electronics to go from a hobby to an industry. The transistor allows your circuit to work with large signals, small signals and interface between the two. Transistors are at the base of amplifiers, digital systems and practically all sensors. &lt;/p&gt;

&lt;p&gt;The biggest thing with transistors is that they no longer follow ohm's law. We will now start working with elements that follow relationships not governed by simply V=IR. The relationships between our voltages and currents will be determined by transistor configuration. KVL and KCL will still hold, but where going to have to be careful when we use them. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;The Theory&lt;/b&gt;&lt;br /&gt;
Transistors are made possible by semiconductors. A semiconductor is a material that can be in a conducting state, or an insulating state based upon the voltage applied to it and its intrinsic properties. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;Charged Silicon&lt;/b&gt; &lt;br /&gt;
Silicon by itself, is neither a good conductor or insulator. Its just a pretty decent resistor. One of the things we can do is to &quot;dope&quot; silicon. doping is when we add impurities to the silicon to change its conductive properties a little bit. What gives silicon it's conductive properties is the fact that silicon likes to bond to itself and form a crystal lattice. In this lattice, the silicon's valance electrons are all shared with neighboring silicon atoms. Since all the spare electrons are help up in this bond, any extra electrons (your electric current) have a hard time jumping from silicon to silicon. However, the energy needed to bump an electron out of its orbit, isn't that much, so there still is a flow of current through regular silicon, it just isn't that much. &lt;/p&gt;

&lt;p&gt;When we dope silicon we take atoms which have one extra valance electrons, or one fewer electrons. What this does is either gives us a material with an overall positive charge (P type silicon) with excess holes (positive charged nucleus)  or overall negative charge with excess electrons (N type silicon) This excess of movable charge allows current to flow. So p type and n type silicon are themselves decent conductors. How conductive a piece of p-type or n-type silicon is, is determined by carrier concentration and charge mobility (along with other factors). We can choose carrier concentration by how much we dope the silicon and mobility is determined by the majority charge carrier (electrons for n-type and holes for p-type). Naturally, electrons are more mobile so n type is usually more conductive than p type with similar doping. This is all fine and dandy, and is great science for making really good resistors, but to make a silicon device we have to look at the barrier between a piece of p-type silicon and n-type silicon. &lt;/p&gt;

&lt;p&gt;&lt;b&gt; Band Theory for dummies&lt;/b&gt;&lt;br /&gt;
I am not going to go in depth into band theory, but I will go over as much as you need to know to have an understanding of our devices. We know that like charges repel and opposite charges attract. Charges in our silicon are mobile and can move around. When we put a piece of nSilicon and a piece of pSilicon we form what is called a depletion region. The holes combine with the electrons and we get neutral charged silicon. This forms a barrier between between the pSilicon and nSilicon and charge no longer flows. Because we have a separation of charge, we have a built in potential and this is the key to silicon devices. &lt;/p&gt;

&lt;p&gt;&lt;b&gt; PN junction diode&lt;/b&gt;&lt;br /&gt;
The simplest device we can have is just a PN junction and with that junction we form a diode.  A diode is a device that allows current to flow in one direction. &lt;/p&gt;

&lt;p&gt;We discussed how a PN junction has a natural build in electric field caused by the separation of electric charge due to the creation of a depletion region. If we are to sketch this as voltage across the diode we get something like:&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/blogs/cay/PNnoBattery_rs.jpg&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/PNnoBattery_rs.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;432&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;When we apply a voltage to out diode, that voltage will affect our built in potential. If it is the same polarity as the built in potential, our diode's potential hill increases and doesn't allow current to flow:&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/blogs/cay/PNunbiased_rs.jpg&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/PNunbiased_rs.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;432&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;However, when we apply a voltage, opposite polarity of our built in potential, we create a potential hill that allows our current to flow. However we lose the built in potential to our diode and the voltage across our circuit is the voltage of our source minus the built in potential voltage:&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/blogs/cay/PNbiased_rs.jpg&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/PNbiased_rs.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;432&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;Thus, a diode allows current to flow only in one direction, the one which opposes the built in potential and creates a potential hill that our electrons may pass through.&lt;/p&gt;

&lt;p&gt;So here we see how a PN junction in silicon creates a useful device. This is the basis for all silicon devices. By taking advantage of the geometries and modifying the band structure of a crystal we can build silicon devices to do almost anything. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;The transistor.&lt;/b&gt;&lt;br /&gt;
A transistor is another type of silicon device. For all intensive purposes there are two transistors that we are concerning ourselves with, the Bi-polar Junction Transistor (BJT) and the Metal-Oxide-Semiconductor transistor. Both transistors have the same general principles (they can both act as switches and both are amplifiers) however, they operate on vastly different mechanics and each have their own advantages.&lt;/p&gt;

&lt;p&gt;&lt;b&gt; The BJT &lt;/b&gt; &lt;br /&gt;
A BJT is made with three layers of semiconductors either NPN or PNP. The arrangement determines it's polarity. For the purpose of the rest of this document, we will be working with NPN transistors, for PNP everything is the same except we invert the biasing. (i.e. we now need -.7v to &amp;#8220;turn on&amp;#8221; the transistor). BJTs were the first practical transistors (however not the first theorized) BJTs have great transconductance (the ability to control output current with input voltage) and have some nice features which make them very practical to model. However, BJTs are trickier in the fact they have finite input and output resistances which must be take account for.  All BJTs have three terminals, the base collector and emitter.  &lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/blogs/cay//NPN_rs.jpg&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//NPN_rs.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;232&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;&lt;b&gt;Principle of operation&lt;/b&gt;&lt;br /&gt;
The way a BJT works is that a signal on the base of the transistor allows a larger current to flow from the collector to the emitter. &lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/blogs/cay//NPN_poo_rs.jpg&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//NPN_poo_rs.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;232&quot; /&gt;&lt;/a&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;A transistor is a device that is not linear, and it doesn't follow one equation the way, say a resistor does.&lt;br /&gt;
 &lt;br /&gt;
Depending on several variables (Base Current, Collector-Emitter Voltage) we get different Collector currents.&lt;/p&gt;

&lt;p&gt; &lt;br /&gt;
Now, there are three modes of operation worth looking at:&lt;br /&gt;
 &lt;br /&gt;
-Cutoff: This mode is where there is no base current present and the transistor is off, no current flows from collector to emitter&lt;/p&gt;

&lt;p&gt;-Saturation: This mode is where the transistor is fully conducting, this is the same as a logical 1. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;Switching VS Amplification&lt;/b&gt;&lt;br /&gt;
The most used aspect of a transistor is its ability to be an electronic switch. The philosophy behind this is that we can use a small signal from say a microprocessor to control large electric objects like DC motors (For more on this check out mcuplace.com). However, for this blog we will be looking at transistors as amplifiers and because of that, the most useful region of operation is the forward active mode. &lt;/p&gt;

&lt;p&gt;&lt;b&gt; Forward Active &lt;/b&gt;&lt;br /&gt;
Typically to be in the forward active mode both the base-emitter diode is forward active (&gt;.7v) as well as the base-collector diode. We also have the constraint of collector-emitter voltage &gt;.3V. As long as we satisfy those three conditions we are in forward active region. When the transistor is in this mode, it behaves by the following formula&lt;/p&gt;

&lt;p&gt; &lt;img src=&quot;/cgi-bin/mimetex.cgi? Ic = Ib * \beta &quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt; &lt;img src=&quot;/cgi-bin/mimetex.cgi? Ie = Ic + Ib \approx Ic &quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Where Beta is a parameter of the transistor. &lt;/p&gt;

&lt;p&gt;Transistors are complicated devices in that there's no simple way to figure out whats going to happen with a circuit. When designing a circuit, we generally have goals we'd like to accomplish and we use the following above as assumptions to find the collector current. Once we know the collector current, we can see how variations in base current (voltage) produce variations in collector current (voltage) allowing us to amplify signals. Before we can do that, we have to model the transistor in a static DC case and figure out some parameters. &lt;/p&gt;

&lt;p&gt;&lt;b&gt; Q-Point and biasing &lt;/b&gt;&lt;br /&gt;
Biasing is the act of choosing our DC base current so that we can get proper signal amplification. We can bias our transistor in many ways. The result however is to find our Q-point base current giving us our Q-point collector current and allowing us to calculate parameters for signal analysis. &lt;/p&gt;

&lt;p&gt;So lets start with a circuit:&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/blogs/cay/bias_rs.png&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/bias_rs.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;427&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;In this circuit, we have a voltage divider hooked up to the base, and we have a collector resistor and an emitter resistor. The voltage divider allows us to set the base voltage, which determines our base current, and our collector current. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;Quick Dirty Analysis&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Analyzing a circuit like this can be a nightmare, if we take out time and stick to what we know, we can analyze every aspect of this circuit and find the exact currents and voltages... OR we can make a bunch of assumptions and get a good enough approximation.&lt;/p&gt;

&lt;p&gt;First thing we know, our VCC is 5V, with our voltage divider we get a VB of 2.5V. Since the voltage drop across VBE is .7V we know VE is 1.8V. The current that goes through RE is the same (approximately) as RC so 1.8/1k is 1.8ma. Thus Ic is 1.8ma. Now we know our collector current we can go on to do signal analysis.&lt;/p&gt;

&lt;p&gt;&lt;b&gt; Checking our approximation &lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The easiest thing we can do, is use PSPICE to verify our circuit. &lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/blogs/cay/bias_vi_rs.png&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/bias_vi_rs.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;439&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;As you see, our guestimations are pretty close to what Pspice decided to spit out. So lets start analyzing what happens when we put a signal on our circuit. &lt;/p&gt;

&lt;p&gt;&lt;b&gt; Signal Analysis &lt;/b&gt;&lt;/p&gt;

&lt;p&gt;For signals, we use a different type of model, one that allows us to not worry about recalculating every parameter of our circuit at every instance of our changing signal. For this type of model, we simply find the q point characteristics and shove it into our model. Lets take our circuit and modify it a little bit.&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/blogs/cay//signal_rs.png&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//signal_rs.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;253&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;We've added quite a bit to our circuit but all will be explained in a moment. First off, we added an AC source which will be our signal. Like all sources it has a finite output resistance RS. We add CC1 as a Coupling Capacitor, this isolates our AC and DC parts of our circuit so that current from our biasing circuit doesn't flow into the source. This works because fundamentally, capacitors act as a DC block, they only allow AC to flow. Next, we add CE, this capacitor will increase our gain of the circuit and will be more apparent once we build our model. Finally we add a load resistor and another coupling capacitor, again we want to separate the AC and DC portions of our circuit. &lt;/p&gt;

&lt;p&gt;&lt;b&gt; Hybrid-Pi Model &lt;/b&gt;&lt;/p&gt;

&lt;p&gt;What our model does, is take our complicated transistor and reduce it to a few resistors and a current source like such:&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/blogs/cay//H_pi_model.png&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//H_pi_model.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;283&quot; height=&quot;141&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;(photo curiosity of wikipedia)&lt;/p&gt;

&lt;p&gt;This model allows us to replace the transistor in our circuit with the model above (note the Base Collector and Emitter nodes)&lt;/p&gt;

&lt;p&gt;To build our model with have to define a few parameters:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? R\pi &quot; alt=&quot;&quot; /&gt;: This is our imput resistance defined as  &lt;img src=&quot;/cgi-bin/mimetex.cgi? \frac{Vt}{Ib}&quot; alt=&quot;&quot; /&gt; where Vt is the thermal voltage and Ib is base current&lt;/p&gt;

&lt;p&gt;Ro: Output Resistance, this is defined as &lt;img src=&quot;/cgi-bin/mimetex.cgi? \frac{Va}{Ic}&quot; alt=&quot;&quot; /&gt; where Va is the Early voltage(intrinsic parameter) and Ic is the collector current.&lt;/p&gt;

&lt;p&gt;Gm: Transconductance, is defined as &lt;img src=&quot;/cgi-bin/mimetex.cgi? \frac{Ic}{Vt}&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Thermal Voltage is a relationship derived from Boltzmann's constant that correlates to the intrinsic voltage in a semiconductor junction. It is dependent on temperature, but for most cases it is 26mv. &lt;/p&gt;

&lt;p&gt;Early Voltage is a theoretical voltage, that relates to our output resistance. For the transistor in the circuit the 2n2222 the early voltage is around 100v (you can look this up in the data sheet hopefully)&lt;/p&gt;

&lt;p&gt;Ib, the base current should be &lt;img src=&quot;/cgi-bin/mimetex.cgi? \beta * Ic&quot; alt=&quot;&quot; /&gt;. &lt;img src=&quot;/cgi-bin/mimetex.cgi? \beta &quot; alt=&quot;&quot; /&gt; is approximately 150, but we can just use our PSICE values. &lt;/p&gt;

&lt;p&gt;Ic, was shown to be approx 1.8ma.&lt;/p&gt;

&lt;p&gt;With those parameters we find:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? R\pi \approx 2.4K\Omega &quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? Ro \approx 55K\Omega &quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;gm ~ .07 a/v&lt;/p&gt;

&lt;p&gt;So lets construct our signal circuit with the above parameters. Now, we are building a circuit for signals and thus there are a few things to be aware of:&lt;/p&gt;

&lt;p&gt;With respect to a signal in circuits, power and ground are the same thing, thus in our above circuit with the voltage divider, those resistors are actually in parallel with respect to a signal, thus we can convert them to a common resistor to ground.&lt;/p&gt;

&lt;p&gt;Capacitors are a low impedance connection with respect to AC, thus they are shorts to our signals. The purpose of CE becomes a little more clear, rather than connecting to ground through RE, we can connect R pi directly to ground increasing the voltage drop across it and the signal gain. &lt;/p&gt;

&lt;p&gt;With those considerations our circuit becomes:&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/blogs/cay//hybrid_pi_rs.png&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//hybrid_pi_rs.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;199&quot; /&gt;&lt;/a&gt;&lt;/div&gt;

&lt;p&gt;First thing we want to calculate is our voltage gain AV&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? Av = \frac {Vout}{Vin}&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? Vout = -gmVbe (Ro//Rl//Rc)&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? Vin = Vbe&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?\therefore Av = -gm(Ro//Rl//Rc)&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;

&lt;p&gt;For our circuit Av = -35.&lt;/p&gt;

&lt;p&gt;Thus any input signal should be amplified -35 times. Note the input voltage is after the signal source, with our current circuit the output resistance of the source dwarfs the input resistance of the amplifier, thus we have a large voltage drop across the source resistance and very little across our amplifier... oops...&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Three types of amplifiers.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The amplifier we just analyzed is called a common emitter amplifier. We call it this since the emitter shares a connection to the input and output (namely the ground) There are two other types of amplifiers, Common Base and Common Collector. All can be analyzed using similarity techniques and all have different properties. &lt;/p&gt;

&lt;p&gt;Common Emitter: Large voltage gain but worst bandwidth&lt;/p&gt;

&lt;p&gt;Common Collector: Large current gain, Large input impedance, low output impedance, unity voltage gain. &lt;br /&gt;
Common Gate: Best frequency response, low input impedance, unity current gain, low voltage gain.&lt;/p&gt;

&lt;p&gt;Now, each amplifier excels at one task, but they are most useful when combined together. The idea behind cascade amplifiers is to use buffers and these amplifier configurations to maximize performance and gain while no suffering the drawbacks of any one design. &lt;/p&gt;


&lt;p&gt;&lt;b&gt; MOS transistors&lt;/b&gt;&lt;br /&gt;
Metal-Oxide-Semiconductor Transistors are very similar to BJTs in the fact they act as both amplifiers and switches. Even the design methodologies are very similar. However the design principles are completely different. MOS transistors, like BJTs have three leads. Gate (base) Drain(Collector) and Source(emitter). However the similarities stop there. Due to the sheer size of this article, I will hold off on talking to much about MOS transistors. &lt;/p&gt;

&lt;p&gt;I hope this article served as a nice guide into doing design work with transistors, I've barely scratched the surface when it comes to using these devices. Note we've only covered one mode of operation and barely at that. There is much more to learn about these devices but unfortunately, I don't have the time or knowledge to do so at this time. I look forward to posting much more on this topic as well as exploring more theoretical topics and possibly even device fabrication.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://mcuplace.com/mcu/blog5.php/2010/08/08/the-transistor&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>One of the most valuable elements in modern electronics is the transistor. The transistor has allowed electronics to go from a hobby to an industry. The transistor allows your circuit to work with large signals, small signals and interface between the two. Transistors are at the base of amplifiers, digital systems and practically all sensors. </p>

<p>The biggest thing with transistors is that they no longer follow ohm's law. We will now start working with elements that follow relationships not governed by simply V=IR. The relationships between our voltages and currents will be determined by transistor configuration. KVL and KCL will still hold, but where going to have to be careful when we use them. </p>

<p><b>The Theory</b><br />
Transistors are made possible by semiconductors. A semiconductor is a material that can be in a conducting state, or an insulating state based upon the voltage applied to it and its intrinsic properties. </p>

<p><b>Charged Silicon</b> <br />
Silicon by itself, is neither a good conductor or insulator. Its just a pretty decent resistor. One of the things we can do is to "dope" silicon. doping is when we add impurities to the silicon to change its conductive properties a little bit. What gives silicon it's conductive properties is the fact that silicon likes to bond to itself and form a crystal lattice. In this lattice, the silicon's valance electrons are all shared with neighboring silicon atoms. Since all the spare electrons are help up in this bond, any extra electrons (your electric current) have a hard time jumping from silicon to silicon. However, the energy needed to bump an electron out of its orbit, isn't that much, so there still is a flow of current through regular silicon, it just isn't that much. </p>

<p>When we dope silicon we take atoms which have one extra valance electrons, or one fewer electrons. What this does is either gives us a material with an overall positive charge (P type silicon) with excess holes (positive charged nucleus)  or overall negative charge with excess electrons (N type silicon) This excess of movable charge allows current to flow. So p type and n type silicon are themselves decent conductors. How conductive a piece of p-type or n-type silicon is, is determined by carrier concentration and charge mobility (along with other factors). We can choose carrier concentration by how much we dope the silicon and mobility is determined by the majority charge carrier (electrons for n-type and holes for p-type). Naturally, electrons are more mobile so n type is usually more conductive than p type with similar doping. This is all fine and dandy, and is great science for making really good resistors, but to make a silicon device we have to look at the barrier between a piece of p-type silicon and n-type silicon. </p>

<p><b> Band Theory for dummies</b><br />
I am not going to go in depth into band theory, but I will go over as much as you need to know to have an understanding of our devices. We know that like charges repel and opposite charges attract. Charges in our silicon are mobile and can move around. When we put a piece of nSilicon and a piece of pSilicon we form what is called a depletion region. The holes combine with the electrons and we get neutral charged silicon. This forms a barrier between between the pSilicon and nSilicon and charge no longer flows. Because we have a separation of charge, we have a built in potential and this is the key to silicon devices. </p>

<p><b> PN junction diode</b><br />
The simplest device we can have is just a PN junction and with that junction we form a diode.  A diode is a device that allows current to flow in one direction. </p>

<p>We discussed how a PN junction has a natural build in electric field caused by the separation of electric charge due to the creation of a depletion region. If we are to sketch this as voltage across the diode we get something like:</p>

<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay/PNnoBattery_rs.jpg"><img src="http://mcuplace.com/mcu/media/blogs/cay/PNnoBattery_rs.jpg" alt="" title="" width="500" height="432" /></a></div>

<p>When we apply a voltage to out diode, that voltage will affect our built in potential. If it is the same polarity as the built in potential, our diode's potential hill increases and doesn't allow current to flow:</p>

<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay/PNunbiased_rs.jpg"><img src="http://mcuplace.com/mcu/media/blogs/cay/PNunbiased_rs.jpg" alt="" title="" width="500" height="432" /></a></div>

<p>However, when we apply a voltage, opposite polarity of our built in potential, we create a potential hill that allows our current to flow. However we lose the built in potential to our diode and the voltage across our circuit is the voltage of our source minus the built in potential voltage:</p>

<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay/PNbiased_rs.jpg"><img src="http://mcuplace.com/mcu/media/blogs/cay/PNbiased_rs.jpg" alt="" title="" width="500" height="432" /></a></div>

<p>Thus, a diode allows current to flow only in one direction, the one which opposes the built in potential and creates a potential hill that our electrons may pass through.</p>

<p>So here we see how a PN junction in silicon creates a useful device. This is the basis for all silicon devices. By taking advantage of the geometries and modifying the band structure of a crystal we can build silicon devices to do almost anything. </p>

<p><b>The transistor.</b><br />
A transistor is another type of silicon device. For all intensive purposes there are two transistors that we are concerning ourselves with, the Bi-polar Junction Transistor (BJT) and the Metal-Oxide-Semiconductor transistor. Both transistors have the same general principles (they can both act as switches and both are amplifiers) however, they operate on vastly different mechanics and each have their own advantages.</p>

<p><b> The BJT </b> <br />
A BJT is made with three layers of semiconductors either NPN or PNP. The arrangement determines it's polarity. For the purpose of the rest of this document, we will be working with NPN transistors, for PNP everything is the same except we invert the biasing. (i.e. we now need -.7v to &#8220;turn on&#8221; the transistor). BJTs were the first practical transistors (however not the first theorized) BJTs have great transconductance (the ability to control output current with input voltage) and have some nice features which make them very practical to model. However, BJTs are trickier in the fact they have finite input and output resistances which must be take account for.  All BJTs have three terminals, the base collector and emitter.  </p>

<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay//NPN_rs.jpg"><img src="http://mcuplace.com/mcu/media/blogs/cay//NPN_rs.jpg" alt="" title="" width="500" height="232" /></a></div><p> </p>

<p><b>Principle of operation</b><br />
The way a BJT works is that a signal on the base of the transistor allows a larger current to flow from the collector to the emitter. </p>

<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay//NPN_poo_rs.jpg"><img src="http://mcuplace.com/mcu/media/blogs/cay//NPN_poo_rs.jpg" alt="" title="" width="500" height="232" /></a></div><p> </p>

<p>A transistor is a device that is not linear, and it doesn't follow one equation the way, say a resistor does.<br />
 <br />
Depending on several variables (Base Current, Collector-Emitter Voltage) we get different Collector currents.</p>

<p> <br />
Now, there are three modes of operation worth looking at:<br />
 <br />
-Cutoff: This mode is where there is no base current present and the transistor is off, no current flows from collector to emitter</p>

<p>-Saturation: This mode is where the transistor is fully conducting, this is the same as a logical 1. </p>

<p><b>Switching VS Amplification</b><br />
The most used aspect of a transistor is its ability to be an electronic switch. The philosophy behind this is that we can use a small signal from say a microprocessor to control large electric objects like DC motors (For more on this check out mcuplace.com). However, for this blog we will be looking at transistors as amplifiers and because of that, the most useful region of operation is the forward active mode. </p>

<p><b> Forward Active </b><br />
Typically to be in the forward active mode both the base-emitter diode is forward active (>.7v) as well as the base-collector diode. We also have the constraint of collector-emitter voltage >.3V. As long as we satisfy those three conditions we are in forward active region. When the transistor is in this mode, it behaves by the following formula</p>

<p> <img src="http://mcuplace.com/cgi-bin/mimetex.cgi? Ic = Ib * \beta " alt="" /></p>

<p> <img src="http://mcuplace.com/cgi-bin/mimetex.cgi? Ie = Ic + Ib \approx Ic " alt="" /></p>

<p>Where Beta is a parameter of the transistor. </p>

<p>Transistors are complicated devices in that there's no simple way to figure out whats going to happen with a circuit. When designing a circuit, we generally have goals we'd like to accomplish and we use the following above as assumptions to find the collector current. Once we know the collector current, we can see how variations in base current (voltage) produce variations in collector current (voltage) allowing us to amplify signals. Before we can do that, we have to model the transistor in a static DC case and figure out some parameters. </p>

<p><b> Q-Point and biasing </b><br />
Biasing is the act of choosing our DC base current so that we can get proper signal amplification. We can bias our transistor in many ways. The result however is to find our Q-point base current giving us our Q-point collector current and allowing us to calculate parameters for signal analysis. </p>

<p>So lets start with a circuit:</p>

<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay/bias_rs.png"><img src="http://mcuplace.com/mcu/media/blogs/cay/bias_rs.png" alt="" title="" width="500" height="427" /></a></div>

<p>In this circuit, we have a voltage divider hooked up to the base, and we have a collector resistor and an emitter resistor. The voltage divider allows us to set the base voltage, which determines our base current, and our collector current. </p>

<p><b>Quick Dirty Analysis</b></p>

<p>Analyzing a circuit like this can be a nightmare, if we take out time and stick to what we know, we can analyze every aspect of this circuit and find the exact currents and voltages... OR we can make a bunch of assumptions and get a good enough approximation.</p>

<p>First thing we know, our VCC is 5V, with our voltage divider we get a VB of 2.5V. Since the voltage drop across VBE is .7V we know VE is 1.8V. The current that goes through RE is the same (approximately) as RC so 1.8/1k is 1.8ma. Thus Ic is 1.8ma. Now we know our collector current we can go on to do signal analysis.</p>

<p><b> Checking our approximation </b></p>

<p>The easiest thing we can do, is use PSPICE to verify our circuit. </p>

<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay/bias_vi_rs.png"><img src="http://mcuplace.com/mcu/media/blogs/cay/bias_vi_rs.png" alt="" title="" width="500" height="439" /></a></div>

<p>As you see, our guestimations are pretty close to what Pspice decided to spit out. So lets start analyzing what happens when we put a signal on our circuit. </p>

<p><b> Signal Analysis </b></p>

<p>For signals, we use a different type of model, one that allows us to not worry about recalculating every parameter of our circuit at every instance of our changing signal. For this type of model, we simply find the q point characteristics and shove it into our model. Lets take our circuit and modify it a little bit.</p>

<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay//signal_rs.png"><img src="http://mcuplace.com/mcu/media/blogs/cay//signal_rs.png" alt="" title="" width="500" height="253" /></a></div>

<p>We've added quite a bit to our circuit but all will be explained in a moment. First off, we added an AC source which will be our signal. Like all sources it has a finite output resistance RS. We add CC1 as a Coupling Capacitor, this isolates our AC and DC parts of our circuit so that current from our biasing circuit doesn't flow into the source. This works because fundamentally, capacitors act as a DC block, they only allow AC to flow. Next, we add CE, this capacitor will increase our gain of the circuit and will be more apparent once we build our model. Finally we add a load resistor and another coupling capacitor, again we want to separate the AC and DC portions of our circuit. </p>

<p><b> Hybrid-Pi Model </b></p>

<p>What our model does, is take our complicated transistor and reduce it to a few resistors and a current source like such:</p>

<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay//H_pi_model.png"><img src="http://mcuplace.com/mcu/media/blogs/cay//H_pi_model.png" alt="" title="" width="283" height="141" /></a></div>
<p>(photo curiosity of wikipedia)</p>

<p>This model allows us to replace the transistor in our circuit with the model above (note the Base Collector and Emitter nodes)</p>

<p>To build our model with have to define a few parameters:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? R\pi " alt="" />: This is our imput resistance defined as  <img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \frac{Vt}{Ib}" alt="" /> where Vt is the thermal voltage and Ib is base current</p>

<p>Ro: Output Resistance, this is defined as <img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \frac{Va}{Ic}" alt="" /> where Va is the Early voltage(intrinsic parameter) and Ic is the collector current.</p>

<p>Gm: Transconductance, is defined as <img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \frac{Ic}{Vt}" alt="" /></p>

<p>Thermal Voltage is a relationship derived from Boltzmann's constant that correlates to the intrinsic voltage in a semiconductor junction. It is dependent on temperature, but for most cases it is 26mv. </p>

<p>Early Voltage is a theoretical voltage, that relates to our output resistance. For the transistor in the circuit the 2n2222 the early voltage is around 100v (you can look this up in the data sheet hopefully)</p>

<p>Ib, the base current should be <img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \beta * Ic" alt="" />. <img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \beta " alt="" /> is approximately 150, but we can just use our PSICE values. </p>

<p>Ic, was shown to be approx 1.8ma.</p>

<p>With those parameters we find:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? R\pi \approx 2.4K\Omega " alt="" /></p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? Ro \approx 55K\Omega " alt="" /></p>

<p>gm ~ .07 a/v</p>

<p>So lets construct our signal circuit with the above parameters. Now, we are building a circuit for signals and thus there are a few things to be aware of:</p>

<p>With respect to a signal in circuits, power and ground are the same thing, thus in our above circuit with the voltage divider, those resistors are actually in parallel with respect to a signal, thus we can convert them to a common resistor to ground.</p>

<p>Capacitors are a low impedance connection with respect to AC, thus they are shorts to our signals. The purpose of CE becomes a little more clear, rather than connecting to ground through RE, we can connect R pi directly to ground increasing the voltage drop across it and the signal gain. </p>

<p>With those considerations our circuit becomes:</p>

<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay//hybrid_pi_rs.png"><img src="http://mcuplace.com/mcu/media/blogs/cay//hybrid_pi_rs.png" alt="" title="" width="500" height="199" /></a></div>

<p>First thing we want to calculate is our voltage gain AV</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? Av = \frac {Vout}{Vin}" alt="" /></p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? Vout = -gmVbe (Ro//Rl//Rc)" alt="" /></p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? Vin = Vbe" alt="" /></p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?\therefore Av = -gm(Ro//Rl//Rc)" alt="" /></p>

<p>For our circuit Av = -35.</p>

<p>Thus any input signal should be amplified -35 times. Note the input voltage is after the signal source, with our current circuit the output resistance of the source dwarfs the input resistance of the amplifier, thus we have a large voltage drop across the source resistance and very little across our amplifier... oops...</p>

<p><b>Three types of amplifiers.</b></p>

<p>The amplifier we just analyzed is called a common emitter amplifier. We call it this since the emitter shares a connection to the input and output (namely the ground) There are two other types of amplifiers, Common Base and Common Collector. All can be analyzed using similarity techniques and all have different properties. </p>

<p>Common Emitter: Large voltage gain but worst bandwidth</p>

<p>Common Collector: Large current gain, Large input impedance, low output impedance, unity voltage gain. <br />
Common Gate: Best frequency response, low input impedance, unity current gain, low voltage gain.</p>

<p>Now, each amplifier excels at one task, but they are most useful when combined together. The idea behind cascade amplifiers is to use buffers and these amplifier configurations to maximize performance and gain while no suffering the drawbacks of any one design. </p>


<p><b> MOS transistors</b><br />
Metal-Oxide-Semiconductor Transistors are very similar to BJTs in the fact they act as both amplifiers and switches. Even the design methodologies are very similar. However the design principles are completely different. MOS transistors, like BJTs have three leads. Gate (base) Drain(Collector) and Source(emitter). However the similarities stop there. Due to the sheer size of this article, I will hold off on talking to much about MOS transistors. </p>

<p>I hope this article served as a nice guide into doing design work with transistors, I've barely scratched the surface when it comes to using these devices. Note we've only covered one mode of operation and barely at that. There is much more to learn about these devices but unfortunately, I don't have the time or knowledge to do so at this time. I look forward to posting much more on this topic as well as exploring more theoretical topics and possibly even device fabrication.</p><div class="item_footer"><p><small><a href="http://mcuplace.com/mcu/blog5.php/2010/08/08/the-transistor">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://mcuplace.com/mcu/blog5.php/2010/08/08/the-transistor#comments</comments>
			<wfw:commentRss>http://mcuplace.com/mcu/blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=55</wfw:commentRss>
		</item>
				<item>
			<title>Intro to Latex.</title>
			<link>http://mcuplace.com/mcu/blog5.php/2010/02/03/intro-to-latex</link>
			<pubDate>Thu, 04 Feb 2010 03:36:17 +0000</pubDate>			<dc:creator>anthony</dc:creator>
			<category domain="main">Informative</category>			<guid isPermaLink="false">53@http://mcuplace.com/mcu/</guid>
						<description>&lt;p&gt;I know this isn't exactly related to circuitry, but i figured I'd do a quick little writeup on &lt;img src=&quot;/cgi-bin/mimetex.cgi?\LaTeX&quot; alt=&quot;&quot; /&gt;. If you haven't noticed already, throughout this blog i use mathematical formula to describe the phenomena which i happen to be writing about. I use a cgi script to generate the formula into a JPEG from the Latex(Pronounced La-Tek)typesetting commands.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Typesetting vs WYSIWYG:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;When you create a document you have two choices, you can use a program like Microsoft Word and how you type the document and format it on the screen is how it comes out (WYSIWYG) or you can use a language like HTML where you use tags to get desired formatting (a Typesetting language)&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?\LaTeX&quot; alt=&quot;&quot; /&gt;:&lt;/p&gt;
&lt;p&gt;Latex is a typesetting program which is widely used in the physics and engineering community, it uses pre-formatted packages to adhere your document to certain guidelines but also allows you to customize every setting.  Instead of trying to explain what Latex is, i am just going to provide a sample document in which i used Latex to make.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;/mcu/media/blogs/cay//lab9.pdf&quot;&gt;Sample Lab Document&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Here is the .tex document that we will be referencing through out the post.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;/mcu/media/blogs/cay//lab9.tex&quot;&gt;Sample tex document&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As you can see, Latex makes good looking documents, fairly quickly. Latex has a whole host of useful typesetting features for mathematical formula, Greek letters, operators, figures, symbols and operations. It is a very powerful tool which will help you in any situation where you need to make a professional looking document.   How it works:  Texmaker is what i use to write my Latex documents, however a basic text editor is all you need. After you write your tex file (with .tex extension) you use Latex to &quot;compile&quot; it into a .dvi, .ps or .pdf format. Just like with any program any syntax errors will result in a compile error. So lets get into the code.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;The Preamble:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The preamble of the latex document sets up the basic guidelines the document will follow. i.e. the author information, the font packages to use, other misc packages to use and the document type.&lt;/p&gt;
&lt;pre&gt;\documentclass[10pt,a4paper,titlepage]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{color}
\usepackage{graphicx}
\usepackage{epsfig}
\author{Anthony Tricarichi:106718074}
\title{Lab 09: Radioactive Decay}
begin{document}
\maketitle
&lt;/pre&gt;
&lt;p&gt;In Latex we precede each command by \. Document class tells Latex what font to use, the type and other document settings. Usepackage tell latex what packages to use (use the ones i use as default). Author sets the author information for the document, Title sets the title. Like HTML uses tags, latex has something similar. &lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Environments: &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt; Latex uses environments to guide the flow of a document. When in an environment Latex follows certain formatting guidelines. We start our document with the document environment, we enter an environment with \begin and exit it with \end  In the document environment we denote section with \section{} and subsections with \subsection{} &lt;strong&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Tabular Environment: &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;/strong&gt; To create tables in Latex we use the tabular environment.&lt;/p&gt;
&lt;pre&gt;&lt;strong&gt;\begin{tabular}{|l|l|l|l|}
\hline
Column 1&amp;amp; Column 2 &amp;amp; Column 3 &amp;amp; Column 4 \\
\hline
\end{tabular}
&lt;/strong&gt;&lt;/pre&gt;
&lt;p&gt;We enter a tabular environment with \being{tabular} it accepts a parameter which tells latex how many columns the table will have {|l|l|l|l|} | denotes a horizontal line and l denotes left-justified. r,c,l are all valid parameters. \hline denotes a horizontal line, &amp;amp; denotes a column break and \\ is a new line. That makes the following table.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?\begin{tabular}{|l|l|l|l|} \hline Column 1&amp;amp; Column 2 &amp;amp; Column 3 &amp;amp; Column 4 \\ \hline \end{tabular}&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Math environments:&lt;/strong&gt; One of latex's most powerful features is it ability to create very elegant and professional math equations. There are several ways to enter math mode in latex. If you want to use math environment tags in your regular document you can temporarily use $ to enter math mode and then another $ to terminate it.  A more permanent environment is the equation array environment. It is very similar to the equation environment but allows you to align your equations like a tabular environment.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Math commands:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;In math mode, you have access to commands that let you build your equations. +,-,/, and * all have their own symbols and formatting.&lt;/p&gt;
&lt;p&gt;^{} is for superscript&lt;/p&gt;
&lt;p&gt;_{} is for subscript&lt;/p&gt;
&lt;p&gt;\frac{a}{b} is for fractions of the form  &lt;img src=&quot;/cgi-bin/mimetex.cgi?\frac{a}{b}&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;There are many more commands which i will outline at the end of the document.&lt;/p&gt;
&lt;pre&gt;\begin{eqnarray}
P_{abs} &amp;amp;=&amp;amp; P_{atm} + \rho gh \\ \nonumber
&amp;amp;=&amp;amp; 1.01*10^5 + 10*1000*.2 \\ \nonumber
&amp;amp;=&amp;amp; 103000 Pa \\ \nonumber
m_{slope} &amp;amp;=&amp;amp; \frac{\Delta x}  {\Delta y} \\ \nonumber
&amp;amp;=&amp;amp; \frac{0-100}{91807-129549} \\ \nonumber
&amp;amp;=&amp;amp; 377.42 \\ \nonumber
Percent Error &amp;amp;=&amp;amp; \frac{Experimental - Actual}{Actual} * 100 \\ \nonumber
&amp;amp;=&amp;amp; \frac{-243 - -273}{-273} * 100 \\ \nonumber
&amp;amp;=&amp;amp; 10\% \\ \nonumber
\end{eqnarray}
&lt;/pre&gt;
&lt;p&gt;Generates the following -&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?\begin{eqnarray} P_{abs} &amp;amp;=&amp;amp; P_{atm} + \rho gh  \nonumber \\ &amp;amp;=&amp;amp; 1.01*10^5 + 10*1000*.2  \nonumber \\ &amp;amp;=&amp;amp; 103000 Pa  \nonumber \\ m_{slope} &amp;amp;=&amp;amp; \frac{\Delta x}  {\Delta y}  \nonumber \\ &amp;amp;=&amp;amp; \frac{0-100}{91807-129549}  \nonumber \\ &amp;amp;=&amp;amp; 377.42  \nonumber \\ Percent Error &amp;amp;=&amp;amp; \frac{Experimental - Actual}{Actual} * 100  \nonumber \\ &amp;amp;=&amp;amp; \frac{-243 - -273}{-273} * 100  \nonumber \\ &amp;amp;=&amp;amp; 10\%  \nonumber \\ \end{eqnarray}&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;End note and other commands:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Latex is a fairly simple typesetting language, if you take a look at my sample .tex document you should have all you need to make a Latex document.&amp;#160; This has only been a crash course into latex, more in-depth support on the working of Latex can be found almost anywhere on the internet.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;COMMANDS!&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;\\ - Line break&lt;/p&gt;
&lt;p&gt;\footnote{}&lt;/p&gt;
&lt;p&gt;\(insert greek letter name) - Insert a greek letter&lt;/p&gt;
&lt;p&gt;&amp;#160;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://mcuplace.com/mcu/blog5.php/2010/02/03/intro-to-latex&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I know this isn't exactly related to circuitry, but i figured I'd do a quick little writeup on <img src="http://mcuplace.com/cgi-bin/mimetex.cgi?\LaTeX" alt="" />. If you haven't noticed already, throughout this blog i use mathematical formula to describe the phenomena which i happen to be writing about. I use a cgi script to generate the formula into a JPEG from the Latex(Pronounced La-Tek)typesetting commands.</p>
<p><strong>Typesetting vs WYSIWYG:</strong></p>
<p>When you create a document you have two choices, you can use a program like Microsoft Word and how you type the document and format it on the screen is how it comes out (WYSIWYG) or you can use a language like HTML where you use tags to get desired formatting (a Typesetting language)</p>
<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?\LaTeX" alt="" />:</p>
<p>Latex is a typesetting program which is widely used in the physics and engineering community, it uses pre-formatted packages to adhere your document to certain guidelines but also allows you to customize every setting.  Instead of trying to explain what Latex is, i am just going to provide a sample document in which i used Latex to make.</p>
<p><a href="http://mcuplace.com/mcu/media/blogs/cay//lab9.pdf">Sample Lab Document</a></p>
<p>Here is the .tex document that we will be referencing through out the post.</p>
<p><a href="http://mcuplace.com/mcu/media/blogs/cay//lab9.tex">Sample tex document</a></p>
<p>As you can see, Latex makes good looking documents, fairly quickly. Latex has a whole host of useful typesetting features for mathematical formula, Greek letters, operators, figures, symbols and operations. It is a very powerful tool which will help you in any situation where you need to make a professional looking document.   How it works:  Texmaker is what i use to write my Latex documents, however a basic text editor is all you need. After you write your tex file (with .tex extension) you use Latex to "compile" it into a .dvi, .ps or .pdf format. Just like with any program any syntax errors will result in a compile error. So lets get into the code.</p>
<p><strong>The Preamble:</strong></p>
<p>The preamble of the latex document sets up the basic guidelines the document will follow. i.e. the author information, the font packages to use, other misc packages to use and the document type.</p>
<pre>\documentclass[10pt,a4paper,titlepage]{article}
\usepackage[latin1]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{color}
\usepackage{graphicx}
\usepackage{epsfig}
\author{Anthony Tricarichi:106718074}
\title{Lab 09: Radioactive Decay}
begin{document}
\maketitle
</pre>
<p>In Latex we precede each command by \. Document class tells Latex what font to use, the type and other document settings. Usepackage tell latex what packages to use (use the ones i use as default). Author sets the author information for the document, Title sets the title. Like HTML uses tags, latex has something similar. <strong> </strong></p>
<p><strong>Environments: </strong></p>
<p><strong></strong> Latex uses environments to guide the flow of a document. When in an environment Latex follows certain formatting guidelines. We start our document with the document environment, we enter an environment with \begin and exit it with \end  In the document environment we denote section with \section{} and subsections with \subsection{} <strong></strong></p>
<p><strong>Tabular Environment: </strong></p>
<p><strong></strong> To create tables in Latex we use the tabular environment.</p>
<pre><strong>\begin{tabular}{|l|l|l|l|}
\hline
Column 1&amp; Column 2 &amp; Column 3 &amp; Column 4 \\
\hline
\end{tabular}
</strong></pre>
<p>We enter a tabular environment with \being{tabular} it accepts a parameter which tells latex how many columns the table will have {|l|l|l|l|} | denotes a horizontal line and l denotes left-justified. r,c,l are all valid parameters. \hline denotes a horizontal line, &amp; denotes a column break and \\ is a new line. That makes the following table.</p>
<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?\begin{tabular}{|l|l|l|l|} \hline Column 1&amp; Column 2 &amp; Column 3 &amp; Column 4 \\ \hline \end{tabular}" alt="" /></p>
<p><strong>Math environments:</strong> One of latex's most powerful features is it ability to create very elegant and professional math equations. There are several ways to enter math mode in latex. If you want to use math environment tags in your regular document you can temporarily use $ to enter math mode and then another $ to terminate it.  A more permanent environment is the equation array environment. It is very similar to the equation environment but allows you to align your equations like a tabular environment.</p>
<p><strong>Math commands:</strong></p>
<p>In math mode, you have access to commands that let you build your equations. +,-,/, and * all have their own symbols and formatting.</p>
<p>^{} is for superscript</p>
<p>_{} is for subscript</p>
<p>\frac{a}{b} is for fractions of the form  <img src="http://mcuplace.com/cgi-bin/mimetex.cgi?\frac{a}{b}" alt="" /></p>
<p>There are many more commands which i will outline at the end of the document.</p>
<pre>\begin{eqnarray}
P_{abs} &amp;=&amp; P_{atm} + \rho gh \\ \nonumber
&amp;=&amp; 1.01*10^5 + 10*1000*.2 \\ \nonumber
&amp;=&amp; 103000 Pa \\ \nonumber
m_{slope} &amp;=&amp; \frac{\Delta x}  {\Delta y} \\ \nonumber
&amp;=&amp; \frac{0-100}{91807-129549} \\ \nonumber
&amp;=&amp; 377.42 \\ \nonumber
Percent Error &amp;=&amp; \frac{Experimental - Actual}{Actual} * 100 \\ \nonumber
&amp;=&amp; \frac{-243 - -273}{-273} * 100 \\ \nonumber
&amp;=&amp; 10\% \\ \nonumber
\end{eqnarray}
</pre>
<p>Generates the following -</p>
<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?\begin{eqnarray} P_{abs} &amp;=&amp; P_{atm} + \rho gh  \nonumber \\ &amp;=&amp; 1.01*10^5 + 10*1000*.2  \nonumber \\ &amp;=&amp; 103000 Pa  \nonumber \\ m_{slope} &amp;=&amp; \frac{\Delta x}  {\Delta y}  \nonumber \\ &amp;=&amp; \frac{0-100}{91807-129549}  \nonumber \\ &amp;=&amp; 377.42  \nonumber \\ Percent Error &amp;=&amp; \frac{Experimental - Actual}{Actual} * 100  \nonumber \\ &amp;=&amp; \frac{-243 - -273}{-273} * 100  \nonumber \\ &amp;=&amp; 10\%  \nonumber \\ \end{eqnarray}" alt="" /></p>
<p><strong>End note and other commands:</strong></p>
<p>Latex is a fairly simple typesetting language, if you take a look at my sample .tex document you should have all you need to make a Latex document.&#160; This has only been a crash course into latex, more in-depth support on the working of Latex can be found almost anywhere on the internet.</p>
<p><strong>COMMANDS!</strong></p>
<p>\\ - Line break</p>
<p>\footnote{}</p>
<p>\(insert greek letter name) - Insert a greek letter</p>
<p>&#160;</p><div class="item_footer"><p><small><a href="http://mcuplace.com/mcu/blog5.php/2010/02/03/intro-to-latex">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://mcuplace.com/mcu/blog5.php/2010/02/03/intro-to-latex#comments</comments>
			<wfw:commentRss>http://mcuplace.com/mcu/blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=53</wfw:commentRss>
		</item>
				<item>
			<title>Intro to KCL and KVL</title>
			<link>http://mcuplace.com/mcu/blog5.php/2010/02/02/intro-to-kcl-and-kvl</link>
			<pubDate>Wed, 03 Feb 2010 03:33:44 +0000</pubDate>			<dc:creator>anthony</dc:creator>
			<category domain="main">Informative</category>			<guid isPermaLink="false">52@http://mcuplace.com/mcu/</guid>
						<description>&lt;p&gt;I figured since the circuits im am going to be analyzing are going to keep getting more complicated i figured i'd share some tools i use to make sense out of complicated circuits. If you are familiar with KVL,KCL, mesh and nodal analysis, you can skip this post otherwise i hope to shed some light on some useful techniques. The math can get a little difficult but ill try to use as many steps as possible.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Kirchoff's Voltage Law:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Voltage is defined as the potential difference between two points due to an electric field, because of this field there is potential energy to do work (Voltage).&amp;#160; Like all other potential energy this one is also related to position or location. To help realize this we can use an analogy to gravity.&lt;/p&gt;
&lt;p&gt;With gravity, potential energy is directly related to how high an object is, as you move an object higher it gains potential energy. However, if you take an object at some height, raise it up and bring it back to your starting position the potential energy is the same, despite the fact you had a gain in potential energy, you had the same amount in loses to return the object to the starting position. The net of this motion is NO change in potential energy.&lt;/p&gt;
&lt;p&gt;Voltage works the same way. KVL states that if you have a circuit, and you go around a loop in that circuit, the net change in voltage is zero. We express this with the following formula:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? \sum Voltage_{drops} = \sum Voltage_{rises} = 0&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Lets make use of this law, consider the following circuit  &lt;a rel=&quot;lightbox&quot; href=&quot;/mcu/media/blogs/cayR.png&quot;&gt; &lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;/mcu/media/blogs/cay/R.png&quot;&gt;&lt;img src=&quot;/mcu/media/blogs/cay/R.png&quot; alt=&quot;&quot; width=&quot;500&quot; height=&quot;250&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;What we do is define some variables, we let the current in out circuit be denoted by I.&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?  \begin{eqnarray}  V &amp;amp;=&amp;amp; IR &amp;amp;(1) \\ \sum Voltage_{drops} &amp;amp;=&amp;amp; 0 &amp;amp;(2) \\ -5 + 100I + 100I &amp;amp;=&amp;amp;0 \\ 200I &amp;amp;=&amp;amp; 5 \\ I &amp;amp;=&amp;amp; 25mA \\ \end{eqnarray}&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Here we sum all the voltage drops, because the voltage source provides a voltage and we are summing over the drops we make it negative. Of course due to Ohm's law (eqn 1) the voltage across the resistors is I times their resistance.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Mesh analysis:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;If we take KVL one step further we can solve some pretty advanced problems involving many currents and resistors. Mesh analysis is all about taking the loops and assigning each of them their own current (called mesh currents) and we keep track of each current in each loop using KVL.&lt;/p&gt;
&lt;p&gt;Ill try and make this as clear as possible, but unfortunately my paint skills are limited. Consider the following circuit with three mesh current, I1,I2 and I3. Each current is positive in the counter clockwise direction.&lt;/p&gt;
&lt;p&gt;&lt;a rel=&quot;lightbox&quot; href=&quot;/mcu/media/blogs/cay/Mesh.png&quot;&gt; &lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;/mcu/media/blogs/cay/Mesh.png&quot;&gt;&lt;img src=&quot;/mcu/media/blogs/cay/Mesh.png&quot; alt=&quot;&quot; width=&quot;500&quot; height=&quot;250&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;image_block&quot;&gt;If we take KVL we can make the following equations (we have three unknowns thus we need at least three equations)&lt;br /&gt;&lt;/div&gt;
&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?   \begin{eqnarray}   V&amp;amp;=&amp;amp;IR &amp;amp;(1) \\  \sum{drops}&amp;amp;=&amp;amp; 0 &amp;amp;(2) \\ 5 + 50(I1-I2) + 100(I1-I3) &amp;amp;=&amp;amp; 0 &amp;amp;(Loop 1) \\ 50(I1-I2) + 100(I1-I3) &amp;amp;=&amp;amp; -5 \\ 50I1 - 50I2 + 100I1 - 100I3 &amp;amp;=&amp;amp; -5 \\  150I1 - 50I2 - 100I3 &amp;amp;=&amp;amp; -5 \\  -10 + 100(I2-I3) +50(I2-I1) &amp;amp;=&amp;amp; 0 &amp;amp;(Loop 2) \\ 100I2-100I3 + 50I2-50I1 &amp;amp;=&amp;amp; 10 \\ -50I1 + 150I2 -100I3 &amp;amp;=&amp;amp; 10 \\ 250I3  +5 -10 &amp;amp;=&amp;amp; 0  &amp;amp;(Outer Loop) \\ 250I3 &amp;amp;=&amp;amp; 5\\ I3 &amp;amp;=&amp;amp; 20mA \\ (Plug Back In) \\  150I1 - 50I2 - 100I3(20mA) &amp;amp;=&amp;amp; -5 &amp;amp;(Loop 1)\\  150I1 - 50I2 &amp;amp;=&amp;amp; -3 \\ I1 &amp;amp;=&amp;amp; \frac{-3 + 50I2}{150} \\ -50(\frac{-3 + 50I2}{150}) + 150I2 - 100(.02) &amp;amp;=&amp;amp; 10 &amp;amp; (Loop 2) \\ (\frac{-3 + 50I2}{-3}) + 150I2  &amp;amp;=&amp;amp; 12 \\ (50/3)I2 +150I2 &amp;amp;=&amp;amp; 11 \\ I2 &amp;amp;=&amp;amp; 66mA \\ I1 &amp;amp;=&amp;amp; \frac{-3 + 50(.066)}{150} \\ I1 &amp;amp;=&amp;amp; 2mA \\ \end{eqnarray}&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Phew! If you plug all the currents back in however, they all check out. The work looks alot more tedious than it actually is, Mesh analysis is a very useful way of making good use of KVL.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Kirchoff's Current Law:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The second most important law in EE is KCL or Kirchoff's Current Law. This law like KVL has an analogy in physics. Its very common knowledge that energy and mass are always conserved in a physical system, simply you cannot create or destroy energy (it can only be transferred one place to another). With circuits, we have conservation of charge or simply that the charge into a node has to leave that node. This can be expressed as:&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? \sum Current_{In} = \sum Current_{Out}&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Or that all the current into a node = 0 and all the current out of a node = 0   Consider the following: &lt;a rel=&quot;lightbox&quot; href=&quot;/mcu/media/blogs/Parralel.png&quot;&gt; &lt;/a&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;/mcu/media/blogs/cay//Parralel.png&quot;&gt;&lt;img src=&quot;/mcu/media/blogs/cay//Parralel.png&quot; alt=&quot;&quot; width=&quot;500&quot; height=&quot;200&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;KCL states that the current coming from the left of the node has to add up to the current going through both resistors, in this case its trivial, each resistor draws 100mA of current and I1 = 200mA and I2=I3=100mA. &lt;strong&gt; &lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Nodal Analysis:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Nodal Analysis is where we define each node in a circuit. With these definitions and KCL we can find all the node voltages and from there we can define the circuit.   Lets take our previous example, instead of using mesh currents we use nodal analysis.&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;a href=&quot;/mcu/media/blogs/cay//Nodal.png&quot;&gt;&lt;img src=&quot;/mcu/media/blogs/cay//Nodal.png&quot; alt=&quot;&quot; width=&quot;500&quot; height=&quot;250&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;p&gt;As we look at our drawing, we can make some pretty clear distinctions, V1 is 5V, V3 is 10V and the current through R3 is 5mA. Using KCL at V2 node we make the following conclusion.  &lt;img src=&quot;/cgi-bin/mimetex.cgi? \begin{eqnarray} V&amp;amp;=&amp;amp;IR &amp;amp;(1)\\  \sum Current_{out} &amp;amp;=&amp;amp; 0 &amp;amp; (2)\\ \frac{V2-5}{100} + \frac{v2}{100} + \frac{v2-10}{100} &amp;amp;=&amp;amp; 0 \\ \frac{V2}{100} -.05 + \frac{V2}{100} + \frac{V2}{100} -.1 &amp;amp;=&amp;amp; 0 \\ \frac{3V2}{100} &amp;amp;=&amp;amp; .15 \\ V2 &amp;amp;=&amp;amp; 5V \\ IR1 &amp;amp;=&amp;amp; 0A \\ IR2 &amp;amp;=&amp;amp; 5mA \\ IR3 &amp;amp;=&amp;amp; 5mA \\ IR4 &amp;amp;=&amp;amp; -5mA \\ \end{eqnarray}&quot; alt=&quot;&quot; /&gt;&lt;/p&gt;
&lt;p&gt;You can see the power of nodal analysis, for this circuit it is much easier to do a nodal analysis than it is a mesh one.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Recap:&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;KVL is that the sum of the voltages in a loop must equal zero (Change in potential in a loop is zero)&lt;/p&gt;
&lt;p&gt;KCL says that charge is conserved so, the current into a node must also exit that node.&lt;/p&gt;
&lt;p&gt;Mesh analysis is an application of KVL where we define mesh currents and find them using KVL&lt;/p&gt;
&lt;p&gt;Nodal analysis is an application of KCL where we define node voltages and use KCL to find the remaining variables.&lt;/p&gt;
&lt;p&gt;With these tools in hand, you can analyze almost any electrical circuit, even if you cannot follow the math, having these principles in mind make circuitry more intuitive.&lt;/p&gt;
&lt;p&gt;We will be continuing with op amp circuits in the next upcoming posts and then moving onto more advanced topics, if you would like to see a certain derivation or any specific topics email me at &lt;a href=&quot;mailto:Jfkfhhfj@gmail.com&quot;&gt;Jfkfhhfj@gmail.com&lt;/a&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://mcuplace.com/mcu/blog5.php/2010/02/02/intro-to-kcl-and-kvl&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>I figured since the circuits im am going to be analyzing are going to keep getting more complicated i figured i'd share some tools i use to make sense out of complicated circuits. If you are familiar with KVL,KCL, mesh and nodal analysis, you can skip this post otherwise i hope to shed some light on some useful techniques. The math can get a little difficult but ill try to use as many steps as possible.</p>
<p><strong>Kirchoff's Voltage Law:</strong></p>
<p>Voltage is defined as the potential difference between two points due to an electric field, because of this field there is potential energy to do work (Voltage).&#160; Like all other potential energy this one is also related to position or location. To help realize this we can use an analogy to gravity.</p>
<p>With gravity, potential energy is directly related to how high an object is, as you move an object higher it gains potential energy. However, if you take an object at some height, raise it up and bring it back to your starting position the potential energy is the same, despite the fact you had a gain in potential energy, you had the same amount in loses to return the object to the starting position. The net of this motion is NO change in potential energy.</p>
<p>Voltage works the same way. KVL states that if you have a circuit, and you go around a loop in that circuit, the net change in voltage is zero. We express this with the following formula:</p>
<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \sum Voltage_{drops} = \sum Voltage_{rises} = 0" alt="" /></p>
<p>Lets make use of this law, consider the following circuit  <a rel="lightbox" href="http://mcuplace.com/mcu/media/blogs/cayR.png"> </a></p>
<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay/R.png"><img src="http://mcuplace.com/mcu/media/blogs/cay/R.png" alt="" width="500" height="250" /></a></div>
<p>What we do is define some variables, we let the current in out circuit be denoted by I.</p>
<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?  \begin{eqnarray}  V &amp;=&amp; IR &amp;(1) \\ \sum Voltage_{drops} &amp;=&amp; 0 &amp;(2) \\ -5 + 100I + 100I &amp;=&amp;0 \\ 200I &amp;=&amp; 5 \\ I &amp;=&amp; 25mA \\ \end{eqnarray}" alt="" /></p>
<p>Here we sum all the voltage drops, because the voltage source provides a voltage and we are summing over the drops we make it negative. Of course due to Ohm's law (eqn 1) the voltage across the resistors is I times their resistance.</p>
<p><strong>Mesh analysis:</strong></p>
<p>If we take KVL one step further we can solve some pretty advanced problems involving many currents and resistors. Mesh analysis is all about taking the loops and assigning each of them their own current (called mesh currents) and we keep track of each current in each loop using KVL.</p>
<p>Ill try and make this as clear as possible, but unfortunately my paint skills are limited. Consider the following circuit with three mesh current, I1,I2 and I3. Each current is positive in the counter clockwise direction.</p>
<p><a rel="lightbox" href="http://mcuplace.com/mcu/media/blogs/cay/Mesh.png"> </a></p>
<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay/Mesh.png"><img src="http://mcuplace.com/mcu/media/blogs/cay/Mesh.png" alt="" width="500" height="250" /></a></div>
<div class="image_block">If we take KVL we can make the following equations (we have three unknowns thus we need at least three equations)<br /></div>
<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?   \begin{eqnarray}   V&amp;=&amp;IR &amp;(1) \\  \sum{drops}&amp;=&amp; 0 &amp;(2) \\ 5 + 50(I1-I2) + 100(I1-I3) &amp;=&amp; 0 &amp;(Loop 1) \\ 50(I1-I2) + 100(I1-I3) &amp;=&amp; -5 \\ 50I1 - 50I2 + 100I1 - 100I3 &amp;=&amp; -5 \\  150I1 - 50I2 - 100I3 &amp;=&amp; -5 \\  -10 + 100(I2-I3) +50(I2-I1) &amp;=&amp; 0 &amp;(Loop 2) \\ 100I2-100I3 + 50I2-50I1 &amp;=&amp; 10 \\ -50I1 + 150I2 -100I3 &amp;=&amp; 10 \\ 250I3  +5 -10 &amp;=&amp; 0  &amp;(Outer Loop) \\ 250I3 &amp;=&amp; 5\\ I3 &amp;=&amp; 20mA \\ (Plug Back In) \\  150I1 - 50I2 - 100I3(20mA) &amp;=&amp; -5 &amp;(Loop 1)\\  150I1 - 50I2 &amp;=&amp; -3 \\ I1 &amp;=&amp; \frac{-3 + 50I2}{150} \\ -50(\frac{-3 + 50I2}{150}) + 150I2 - 100(.02) &amp;=&amp; 10 &amp; (Loop 2) \\ (\frac{-3 + 50I2}{-3}) + 150I2  &amp;=&amp; 12 \\ (50/3)I2 +150I2 &amp;=&amp; 11 \\ I2 &amp;=&amp; 66mA \\ I1 &amp;=&amp; \frac{-3 + 50(.066)}{150} \\ I1 &amp;=&amp; 2mA \\ \end{eqnarray}" alt="" /></p>
<p>Phew! If you plug all the currents back in however, they all check out. The work looks alot more tedious than it actually is, Mesh analysis is a very useful way of making good use of KVL.</p>
<p><strong>Kirchoff's Current Law:</strong></p>
<p>The second most important law in EE is KCL or Kirchoff's Current Law. This law like KVL has an analogy in physics. Its very common knowledge that energy and mass are always conserved in a physical system, simply you cannot create or destroy energy (it can only be transferred one place to another). With circuits, we have conservation of charge or simply that the charge into a node has to leave that node. This can be expressed as:</p>
<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \sum Current_{In} = \sum Current_{Out}" alt="" /></p>
<p>Or that all the current into a node = 0 and all the current out of a node = 0   Consider the following: <a rel="lightbox" href="http://mcuplace.com/mcu/media/blogs/Parralel.png"> </a></p>
<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay//Parralel.png"><img src="http://mcuplace.com/mcu/media/blogs/cay//Parralel.png" alt="" width="500" height="200" /></a></div>
<p>KCL states that the current coming from the left of the node has to add up to the current going through both resistors, in this case its trivial, each resistor draws 100mA of current and I1 = 200mA and I2=I3=100mA. <strong> </strong></p>
<p><strong>Nodal Analysis:</strong></p>
<p>Nodal Analysis is where we define each node in a circuit. With these definitions and KCL we can find all the node voltages and from there we can define the circuit.   Lets take our previous example, instead of using mesh currents we use nodal analysis.</p>
<div class="image_block"><a href="http://mcuplace.com/mcu/media/blogs/cay//Nodal.png"><img src="http://mcuplace.com/mcu/media/blogs/cay//Nodal.png" alt="" width="500" height="250" /></a></div>
<p>As we look at our drawing, we can make some pretty clear distinctions, V1 is 5V, V3 is 10V and the current through R3 is 5mA. Using KCL at V2 node we make the following conclusion.  <img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \begin{eqnarray} V&amp;=&amp;IR &amp;(1)\\  \sum Current_{out} &amp;=&amp; 0 &amp; (2)\\ \frac{V2-5}{100} + \frac{v2}{100} + \frac{v2-10}{100} &amp;=&amp; 0 \\ \frac{V2}{100} -.05 + \frac{V2}{100} + \frac{V2}{100} -.1 &amp;=&amp; 0 \\ \frac{3V2}{100} &amp;=&amp; .15 \\ V2 &amp;=&amp; 5V \\ IR1 &amp;=&amp; 0A \\ IR2 &amp;=&amp; 5mA \\ IR3 &amp;=&amp; 5mA \\ IR4 &amp;=&amp; -5mA \\ \end{eqnarray}" alt="" /></p>
<p>You can see the power of nodal analysis, for this circuit it is much easier to do a nodal analysis than it is a mesh one.</p>
<p><strong>Recap:</strong></p>
<p>KVL is that the sum of the voltages in a loop must equal zero (Change in potential in a loop is zero)</p>
<p>KCL says that charge is conserved so, the current into a node must also exit that node.</p>
<p>Mesh analysis is an application of KVL where we define mesh currents and find them using KVL</p>
<p>Nodal analysis is an application of KCL where we define node voltages and use KCL to find the remaining variables.</p>
<p>With these tools in hand, you can analyze almost any electrical circuit, even if you cannot follow the math, having these principles in mind make circuitry more intuitive.</p>
<p>We will be continuing with op amp circuits in the next upcoming posts and then moving onto more advanced topics, if you would like to see a certain derivation or any specific topics email me at <a href="http://mcuplace.commailto:Jfkfhhfj@gmail.com">Jfkfhhfj@gmail.com</a></p><div class="item_footer"><p><small><a href="http://mcuplace.com/mcu/blog5.php/2010/02/02/intro-to-kcl-and-kvl">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://mcuplace.com/mcu/blog5.php/2010/02/02/intro-to-kcl-and-kvl#comments</comments>
			<wfw:commentRss>http://mcuplace.com/mcu/blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=52</wfw:commentRss>
		</item>
				<item>
			<title>The Operational Amplifier.</title>
			<link>http://mcuplace.com/mcu/blog5.php/2009/11/15/the-operational-amplifier</link>
			<pubDate>Sun, 15 Nov 2009 23:49:35 +0000</pubDate>			<dc:creator>anthony</dc:creator>
			<category domain="main">Informative</category>			<guid isPermaLink="false">49@http://mcuplace.com/mcu/</guid>
						<description>&lt;p&gt;So we have our basic components, Capacitors, inductors and resistors. We also have semiconducting components such as diodes and transistors. If you read my other blog you also know about microcontrollers. Operational Amplifiers or op-amps for short, are in their own league. At its heart an op amp provides a voltage gain to a potential difference on its inputs. However, when you begin to do some analysis and creative placing of components, you realize op-amps do so much more. &lt;/p&gt;

&lt;p&gt;An op-amp typically has 5 inputs:&lt;/p&gt;

&lt;p&gt;+ : The non inverting input&lt;br /&gt;
- : The inverting input&lt;br /&gt;
V+: Positive rail supply voltage (not shown)&lt;br /&gt;
V-: Negative rail supply voltage (not shown)&lt;br /&gt;
V_out: Output Voltage&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/users/jfkfhhfj/Op-Amp.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;236&quot; /&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;&lt;b&gt;Operation&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;As said earlier, the op-amp is a simple device, it applies a voltage gain on the voltage difference between the + and - pins. Gain is denoted by A and is typically around the scale of 10^6. Now, this might be a little confusing, does this mean the op-amp will output 10^6 volts when a 1 volt difference is applied across the + and - pins? No, you are bound by the positive rail and negative rail supply, you can never surpass those. &lt;/p&gt;

&lt;p&gt;So if that's the case, wont a few millionths of a volt cause the op amp to go completely to one rail? This is true however we must make a few idealized assumptions about op-amps so that we can properly analyze op-amps and once we do that we can understand what feedback is.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;The idealization and analysis of an op-amp&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The best way to go about analyzing an op-amp is to break it up into two parts:&lt;/p&gt;

&lt;p&gt;The input: The input of the op-amp are the inverting and non-inverting inputs, here we make our first assumption. The resistance between these two points is infinite. This means that no matter what voltage is on either pins no current flows between the two points. This is our second assumption, no current flows into or out of the input pins. &lt;/p&gt;

&lt;p&gt;The output: Taking our idea on how the op-amp works we get the following formula:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?V_{out}=A \cdot V_{in}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;We can turn the Vout pin into a dependent voltage source (i.e. it is a voltage source which is dependent on a voltage somewhere else in our circuit) going through a resistor. The output voltage is governed by the equation above.&lt;/p&gt;

&lt;p&gt;Our final assumption is that, this resistor is 0 ohms.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Our ideal op-amp&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Taking our four assumptions:&lt;br /&gt;
-Resistance between + and - pins is infinite&lt;br /&gt;
-No current flows into the + and - pins&lt;br /&gt;
-Vout = A*Vin&lt;br /&gt;
-Output resistance is zero&lt;/p&gt;

&lt;p&gt;After we make these assumptions we get the following circuit&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/blogs/cay//Ideal Op amp.jpg&quot; rel=&quot;lightbox&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//Ideal Op amp.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;200&quot; /&gt;&lt;/div&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Now what?&lt;/p&gt;

&lt;p&gt;&lt;b&gt;A simple amp using feedback&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Now the greatest power an op-amp has is its ability to use feedback to create some neat effects.&lt;/p&gt;

&lt;p&gt;Lets say we input a voltage to the + terminal and then have a resistor from the output feedback to the - input. &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://mcuplace.com/mcu/media/users/jfkfhhfj/Feedback.jpg&quot; rel=&quot;lightbox&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/users/jfkfhhfj/Feedback.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;500&quot; height=&quot;358&quot; /&gt;&lt;/div&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Analysis&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Lets start off by reminding ourselves of our assumptions, We know that the resistance is infinite between the inverting and non-inverting inputs and because of that no current flows. Because of that, the + and - pins are held at the same potential. &lt;/p&gt;

&lt;p&gt;So lets look at our circuit. We see that the output voltage is hooked up in a voltage divider configuration with the - input.  We recall for a voltage divider that:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? V_{out} = V_{source} * \frac{R_2}{R_{1} + R_2}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;or that....&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? V_{out} = V_{in}  (1 + \frac{R_1}  {R_2})&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Taking our original formula &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?V_{out}=A \cdot V_{in}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;We find for this circuit &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?A = (1 + \frac{R_1}  {R_2})&quot; /&gt;&lt;/p&gt;

&lt;p&gt;This circuit represents controllable gain, which is extremely useful. &lt;/p&gt;

&lt;p&gt;Many basic signal amplifiers work off of this very practical circuit.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Where do we go from here?&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Operational amplifiers have many other applications to signal processing beyond just a simple controllable gain circuit.&lt;/p&gt;

&lt;p&gt;Many other uses of op amps include:&lt;/p&gt;

&lt;p&gt;-Signal Buffers (Zero gain amp circuit) &lt;br /&gt;
-Summers&lt;br /&gt;
-Differentiators&lt;br /&gt;
-Integrators&lt;br /&gt;
-Oscillators and Waveform Generation&lt;br /&gt;
-Much more! &lt;/p&gt;

&lt;p&gt;We'll be going over uses of op amps as we use them. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;A Step back&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;In the LDR post i posted about how you could use an operational amplifier to get more precise triggering of the LED light. Ill go over this briefly.&lt;/p&gt;

&lt;p&gt;If you apply a voltage to the inverting input and another to the non inverting:&lt;/p&gt;

&lt;p&gt;If V+ &gt; V- the output will be the positive supply rail.&lt;/p&gt;

&lt;p&gt;If V- &gt; V+ the output will be the negative supply rail.&lt;/p&gt;

&lt;p&gt;Thus if we hook up the LDR to the + terminal (in a divider configuration) and apply a voltage the the - input (via a divider or voltage source) we can get a binary output from the LDR sensor. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;Formula sheet&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Ideal Op amp:&lt;br /&gt;
&lt;img src=&quot;/cgi-bin/mimetex.cgi?V_{out}=A \cdot V_{in}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Non-inverting amplifier output voltage:&lt;br /&gt;
&lt;img src=&quot;/cgi-bin/mimetex.cgi? V_{out} = V_{in}  (1 + \frac{R_1}  {R_2})&quot; /&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://mcuplace.com/mcu/blog5.php/2009/11/15/the-operational-amplifier&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>So we have our basic components, Capacitors, inductors and resistors. We also have semiconducting components such as diodes and transistors. If you read my other blog you also know about microcontrollers. Operational Amplifiers or op-amps for short, are in their own league. At its heart an op amp provides a voltage gain to a potential difference on its inputs. However, when you begin to do some analysis and creative placing of components, you realize op-amps do so much more. </p>

<p>An op-amp typically has 5 inputs:</p>

<p>+ : The non inverting input<br />
- : The inverting input<br />
V+: Positive rail supply voltage (not shown)<br />
V-: Negative rail supply voltage (not shown)<br />
V_out: Output Voltage</p>

<div class="image_block"><img src="http://mcuplace.com/mcu/media/users/jfkfhhfj/Op-Amp.jpg" alt="" title="" width="500" height="236" /></div><p> </p>

<p><b>Operation</b></p>

<p>As said earlier, the op-amp is a simple device, it applies a voltage gain on the voltage difference between the + and - pins. Gain is denoted by A and is typically around the scale of 10^6. Now, this might be a little confusing, does this mean the op-amp will output 10^6 volts when a 1 volt difference is applied across the + and - pins? No, you are bound by the positive rail and negative rail supply, you can never surpass those. </p>

<p>So if that's the case, wont a few millionths of a volt cause the op amp to go completely to one rail? This is true however we must make a few idealized assumptions about op-amps so that we can properly analyze op-amps and once we do that we can understand what feedback is.</p>

<p><b>The idealization and analysis of an op-amp</b></p>

<p>The best way to go about analyzing an op-amp is to break it up into two parts:</p>

<p>The input: The input of the op-amp are the inverting and non-inverting inputs, here we make our first assumption. The resistance between these two points is infinite. This means that no matter what voltage is on either pins no current flows between the two points. This is our second assumption, no current flows into or out of the input pins. </p>

<p>The output: Taking our idea on how the op-amp works we get the following formula:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?V_{out}=A \cdot V_{in}" /></p>

<p>We can turn the Vout pin into a dependent voltage source (i.e. it is a voltage source which is dependent on a voltage somewhere else in our circuit) going through a resistor. The output voltage is governed by the equation above.</p>

<p>Our final assumption is that, this resistor is 0 ohms.</p>

<p><b>Our ideal op-amp</b></p>

<p>Taking our four assumptions:<br />
-Resistance between + and - pins is infinite<br />
-No current flows into the + and - pins<br />
-Vout = A*Vin<br />
-Output resistance is zero</p>

<p>After we make these assumptions we get the following circuit</p>

<p><a href="http://mcuplace.com/mcu/media/blogs/cay//Ideal Op amp.jpg" rel="lightbox"></p>
<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay//Ideal Op amp.jpg" alt="" title="" width="500" height="200" /></div></a><p></p>

<p>Now what?</p>

<p><b>A simple amp using feedback</b></p>

<p>Now the greatest power an op-amp has is its ability to use feedback to create some neat effects.</p>

<p>Lets say we input a voltage to the + terminal and then have a resistor from the output feedback to the - input. </p>

<p><a href="http://mcuplace.com/mcu/media/users/jfkfhhfj/Feedback.jpg" rel="lightbox"></p>
<div class="image_block"><img src="http://mcuplace.com/mcu/media/users/jfkfhhfj/Feedback.jpg" alt="" title="" width="500" height="358" /></div></a><p></p>

<p><b>Analysis</b></p>

<p>Lets start off by reminding ourselves of our assumptions, We know that the resistance is infinite between the inverting and non-inverting inputs and because of that no current flows. Because of that, the + and - pins are held at the same potential. </p>

<p>So lets look at our circuit. We see that the output voltage is hooked up in a voltage divider configuration with the - input.  We recall for a voltage divider that:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? V_{out} = V_{source} * \frac{R_2}{R_{1} + R_2}" /></p>

<p>or that....</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? V_{out} = V_{in}  (1 + \frac{R_1}  {R_2})" /></p>

<p>Taking our original formula </p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?V_{out}=A \cdot V_{in}" /></p>

<p>We find for this circuit </p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?A = (1 + \frac{R_1}  {R_2})" /></p>

<p>This circuit represents controllable gain, which is extremely useful. </p>

<p>Many basic signal amplifiers work off of this very practical circuit.</p>

<p><b>Where do we go from here?</b></p>

<p>Operational amplifiers have many other applications to signal processing beyond just a simple controllable gain circuit.</p>

<p>Many other uses of op amps include:</p>

<p>-Signal Buffers (Zero gain amp circuit) <br />
-Summers<br />
-Differentiators<br />
-Integrators<br />
-Oscillators and Waveform Generation<br />
-Much more! </p>

<p>We'll be going over uses of op amps as we use them. </p>

<p><b>A Step back</b></p>

<p>In the LDR post i posted about how you could use an operational amplifier to get more precise triggering of the LED light. Ill go over this briefly.</p>

<p>If you apply a voltage to the inverting input and another to the non inverting:</p>

<p>If V+ > V- the output will be the positive supply rail.</p>

<p>If V- > V+ the output will be the negative supply rail.</p>

<p>Thus if we hook up the LDR to the + terminal (in a divider configuration) and apply a voltage the the - input (via a divider or voltage source) we can get a binary output from the LDR sensor. </p>

<p><b>Formula sheet</b></p>

<p>Ideal Op amp:<br />
<img src="http://mcuplace.com/cgi-bin/mimetex.cgi?V_{out}=A \cdot V_{in}" /></p>

<p>Non-inverting amplifier output voltage:<br />
<img src="http://mcuplace.com/cgi-bin/mimetex.cgi? V_{out} = V_{in}  (1 + \frac{R_1}  {R_2})" /></p><div class="item_footer"><p><small><a href="http://mcuplace.com/mcu/blog5.php/2009/11/15/the-operational-amplifier">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://mcuplace.com/mcu/blog5.php/2009/11/15/the-operational-amplifier#comments</comments>
			<wfw:commentRss>http://mcuplace.com/mcu/blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=49</wfw:commentRss>
		</item>
				<item>
			<title>Intro to Circuitry - Light Sensor and an Introduction to EAGLE</title>
			<link>http://mcuplace.com/mcu/blog5.php/2009/06/23/intro-to-circuittry-light-sensor</link>
			<pubDate>Wed, 24 Jun 2009 01:12:22 +0000</pubDate>			<dc:creator>anthony</dc:creator>
			<category domain="main">Schematic</category>
<category domain="alt">Eagle</category>			<guid isPermaLink="false">47@http://mcuplace.com/mcu/</guid>
						<description>&lt;p&gt;&lt;head&gt;&lt;link rel=&quot;stylesheet&quot; href=&quot;/lb/css/lightbox.css&quot; type=&quot;text/css&quot; media=&quot;screen&quot;&gt;&lt;/link&gt;&lt;/head&gt;&lt;/p&gt;

&lt;p&gt;I would like to demonstrate a very simple yet powerful circuit, a light sensor using an LDR.&lt;/p&gt;

&lt;p&gt;A LDR is a Light Dependent Resistor, this circuit element varies its resistance based upon the amount of light that hits the device. &lt;/p&gt;

&lt;p&gt;When we hook up this element in a voltage divider configuration, we can make a high and low signal based upon how much light hits the sensor. This is further filtered by using an NPN transistor in an inverter configuration to generate a purely digital signal. &lt;/p&gt;

&lt;p&gt;This circuit allows you to produce a 1 or a 0 that correlates to whether the sensor is subjected to light or is in shadow. The amount of light that triggers the sensor is based on resistor R. (the resistor hooked up in the voltage divider with the LDR)&lt;/p&gt;

&lt;p&gt;The circuit:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/mcu/media/blogs/cay/LDR.png&quot; rel=&quot;lightbox&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/LDR.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;450&quot; height=&quot;200&quot; /&gt;&lt;/div&gt; &lt;br /&gt;
&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;The schematic above was drawn with EAGLE, a CAD software for designing electric circuits as well as Printed Circuit Boards(PCBs)&lt;/p&gt;

&lt;p&gt;Eagle is a very powerful tool and can make designing complicated circuits a breeze. Its much easier to draw a circuit out on eagle than to fumble around with a breadboard guessing and checking along the way.&lt;/p&gt;

&lt;p&gt;The first thing you want to do is to create a new project file and make a new schematic.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;The Blank Eagle Screen:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/mcu/media/blogs/cay/Eagle.png&quot; rel=&quot;lightbox&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//Eagle.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;400&quot; height=&quot;300&quot; /&gt;&lt;/div&gt;
&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;This is what comes up once you create a new schematic. Your first job is to start adding devices to your circuit. This is done by pressing the add devices button. &lt;/p&gt;

&lt;p&gt;Once you do that the following screen comes up:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/mcu/media/blogs/cay/AddDEv.png&quot; rel=&quot;lightbox&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//AddDEv.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;400&quot; height=&quot;300&quot; /&gt;&lt;/div&gt;
&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;You can begin typing what part you need, first thing we're going to do is assemble the power supply so we have a steady potential across our circuit. We want a positive voltage regulator in a TO-220 package. A TO-220 package is fairly common package as its cheap and very easy to work with and we don't have to worry about overheating too much because the package can handle a lot of heat. Most of the time as well the package has a mounting hole for a heat sink a swell.&lt;/p&gt;

&lt;p&gt;Once we select the part we want we can add it to our circuit. For the power supply were going to need two capacitors and a voltage regulator as well as inputs for our voltage from our source. &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/mcu/media/blogs/cay/Eaglewire.png&quot; rel=&quot;lightbox&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//Eaglewire.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;400&quot; height=&quot;300&quot; /&gt;&lt;/div&gt;
&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Once we place all the parts we have to hook everything up. For this, we use the wire hookup tool. We link all the parts like we normally would in a circuit with wire. We have to take one more step however, we have to use the node tool at any junction where two devices connect. Just because a wire and a device touch, doesn't mean they're linked. We must use the node tool to link the devices and make a connection. This is very important as unlinked nodes will produce an improper PCB design when we eventually get to that stage.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/mcu/media/blogs/cay/PSU.png&quot; rel=&quot;lightbox&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//PSU.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;400&quot; height=&quot;300&quot; /&gt;&lt;/div&gt;
&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;One thing you'll notice is the GND and VCC &quot;devices.&quot; These are symbols we use to note common points in the circuit. We use a GND symbol to denote the ground. Therefore, any point in the circuit that connects the ground, connects to this symbol. This way of designing our schematic makes things look cleaner and allows us to separate functioning parts of our circuit into blocks that can be modified separately. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;What the power supply does:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The power supply provides us with a known potential. When building this circuit we are going to use a 5 volt positive voltage regulator, which on the output gives us a steady 5 volts irregardless of the input voltage (assuming its DC and within specs).&lt;/p&gt;

&lt;p&gt;The two capacitors act as filters, filtering out noise that might be introduced on our line. The capacitors in that configuration are called decoupling/bypass capacitors and are a type of low pass filter. &lt;/p&gt;

&lt;p&gt;The LSP1/2 devices are nothing more than pads to attach our voltage source.&lt;/p&gt;

&lt;p&gt;Once we have a steady source of power we can begin doing analysis. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;The voltage divider.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The first part of our circuit is a voltage divider.&lt;/p&gt;

&lt;p&gt;This allows us to output a voltage that is proportional to the voltage source. &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/mcu/media/blogs/cay/alalysis.jpg&quot; rel=&quot;lightbox&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//alalysis.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;308&quot; height=&quot;201&quot; /&gt;&lt;/div&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Since &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? V=IR &quot; /&gt; &lt;/p&gt;

&lt;p&gt;And&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? R_{eq} = R_1 + R_2&quot; /&gt; &lt;/p&gt;

&lt;p&gt;Thus&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? V_{source} = R_{LDR} + R_2 * I &quot; /&gt;&lt;/p&gt;

&lt;p&gt;And &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? I = \frac{V_{source}}{R_{LDR} + R_R} &quot; /&gt;&lt;/p&gt;

&lt;p&gt;Then &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? V_{out} = V_R = V_{source} * \frac{R_R}{R_{LDR} + R_R}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;From that relationship, we see how the voltage is proportional to the resistor R we choose and the resistance the LDR provides. &lt;/p&gt;

&lt;p&gt;Using a multimeter we can find that the LDR puts out a resistance of about 200 ohms when in light and around 5Kohms in the dark. &lt;/p&gt;

&lt;p&gt;We want to have a system where the change in V is the greatest for on an off conditions. &lt;/p&gt;

&lt;p&gt;Assume we use a 1Kohm resistor for R, That gives us:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? \begin{eqnarray}V_{out} &amp;amp;=&amp;amp; V_R = 5 * \frac{1000}{200 + 1000} \\ &amp;amp;=&amp;amp; 4.166 V\end{eqnarray}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;And for the off state: &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? \begin{eqnarray}V_{out} &amp;amp;=&amp;amp; V_R = 5 * \frac{1000}{5000 + 1000} \\ &amp;amp;=&amp;amp; .833 V \end{eqnarray}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;This gives us a nice kick to switch our NPN transistor to solid on/off states.&lt;/p&gt;

&lt;p&gt;The Inverter. &lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/mcu/media/blogs/cay/Inverter.png&quot; rel=&quot;lightbox&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay//Inverter.png&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;200&quot; height=&quot;150&quot; /&gt;&lt;/div&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;BiJunction Transistors are a type of &quot;switch&quot; they amplify current by allowing a large amount of current to flow via a small trigger. &lt;/p&gt;

&lt;p&gt;The most important character of a BJT is its current gain, which is how much the BJT will amplify current before it reaches its limit. &lt;/p&gt;

&lt;p&gt;For this setup we are going to be using the TIP120 NPN BJT.&lt;/p&gt;

&lt;p&gt;Data sheet: &lt;a href=&quot;http://www.learn-c.com/tip120.pdf&quot;&gt;http://www.learn-c.com/tip120.pdf&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;BJT usually have 3 leads; a base, collector and emitter. &lt;/p&gt;

&lt;p&gt;The way a NPN BJT works is that a small current on the base will amplify a current from the collector to the emitter. &lt;/p&gt;

&lt;p&gt;Now, in reality, the BJT is much more complicated than that, but for this post, that information should suffice. &lt;/p&gt;

&lt;p&gt;The way our transistor is hooked up, is in an inverter configuration, which means when the transistor is OFF the device receives power, when the power is turned on, the transistor passes the load to ground, giving the device a 0 potential.&lt;/p&gt;

&lt;p&gt;When our LDR is ON, there is a large amount of current going into the NPN transistor, this saturates the gate, and the LED doesn't light. When the LDR is off however, there is very little current going into the base of the transistor, thus there is very little voltage drop across the transistor and the LED gets power just as if it were hooked up to the resistor alone. &lt;/p&gt;

&lt;p&gt;Operating Pictures:&lt;/p&gt;

&lt;p&gt;We setup the project on a breadboard, which allows us to prototype the circuit. Instead of permanently soldering components to a PCB, we can just insert the leads of the components into the breadboard and use the internal network to connect our circuit.&lt;/p&gt;

&lt;p&gt;The parts list for this circuit are:&lt;br /&gt;
2X - 2.2Kohm Resistors&lt;br /&gt;
1X - Blue LED&lt;br /&gt;
1X - TIP120 NPN Transistor.&lt;br /&gt;
2X - 15uf 50V electrolytic capacitors&lt;br /&gt;
1X - LM7805 5v pos Voltage regulator&lt;br /&gt;
1X - Diode&lt;br /&gt;
1X - 9v (or any DC voltage source)&lt;br /&gt;
- Some hookup wire.&lt;/p&gt;

&lt;p&gt;The LED is off, which means the voltage divider is high, and the NPN transistor is ON. Current is being drained to ground, instead through the LED.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;/mcu/media/blogs/cay/OFF.jpg&quot; rel=&quot;lightbox&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/OFF.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;400&quot; height=&quot;300&quot; /&gt;&lt;/div&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;In the next setup, we cover the LDR, producing a low on the voltage divider, turning the transistor off, allowing current to flow to the LED. &lt;/p&gt;


&lt;p&gt;&lt;a href=&quot;/mcu/media/blogs/cay/ON.jpg&quot; rel=&quot;lightbox&quot;&gt;&lt;/p&gt;
&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/ON.JPG&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;400&quot; height=&quot;300&quot; /&gt;&lt;/div&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;

&lt;p&gt;Conclusion:&lt;/p&gt;

&lt;p&gt;This is a very useful circuit and allows you to understand basic circuit elements. Light sensors are very useful in robotics in object detection and any other circuit where your application is sensitive to light.&lt;/p&gt;


&lt;p&gt; - Alternative designs using op amps!&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://mcuplace.com/mcu/blog5.php/2009/06/23/intro-to-circuittry-light-sensor&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p><head><link rel="stylesheet" href="http://mcuplace.com/lb/css/lightbox.css" type="text/css" media="screen"></link></head></p>

<p>I would like to demonstrate a very simple yet powerful circuit, a light sensor using an LDR.</p>

<p>A LDR is a Light Dependent Resistor, this circuit element varies its resistance based upon the amount of light that hits the device. </p>

<p>When we hook up this element in a voltage divider configuration, we can make a high and low signal based upon how much light hits the sensor. This is further filtered by using an NPN transistor in an inverter configuration to generate a purely digital signal. </p>

<p>This circuit allows you to produce a 1 or a 0 that correlates to whether the sensor is subjected to light or is in shadow. The amount of light that triggers the sensor is based on resistor R. (the resistor hooked up in the voltage divider with the LDR)</p>

<p>The circuit:</p>

<p><a href="http://mcuplace.com/mcu/media/blogs/cay/LDR.png" rel="lightbox"></p>
<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/LDR.png" alt="" title="" width="450" height="200" /></div> <br />
</a><p></p>

<p>The schematic above was drawn with EAGLE, a CAD software for designing electric circuits as well as Printed Circuit Boards(PCBs)</p>

<p>Eagle is a very powerful tool and can make designing complicated circuits a breeze. Its much easier to draw a circuit out on eagle than to fumble around with a breadboard guessing and checking along the way.</p>

<p>The first thing you want to do is to create a new project file and make a new schematic.</p>

<p><b>The Blank Eagle Screen:</b></p>

<p><a href="http://mcuplace.com/mcu/media/blogs/cay/Eagle.png" rel="lightbox"></p>
<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay//Eagle.png" alt="" title="" width="400" height="300" /></div>
</a><p></p>

<p>This is what comes up once you create a new schematic. Your first job is to start adding devices to your circuit. This is done by pressing the add devices button. </p>

<p>Once you do that the following screen comes up:</p>

<p><a href="http://mcuplace.com/mcu/media/blogs/cay/AddDEv.png" rel="lightbox"></p>
<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay//AddDEv.png" alt="" title="" width="400" height="300" /></div>
</a><p></p>

<p>You can begin typing what part you need, first thing we're going to do is assemble the power supply so we have a steady potential across our circuit. We want a positive voltage regulator in a TO-220 package. A TO-220 package is fairly common package as its cheap and very easy to work with and we don't have to worry about overheating too much because the package can handle a lot of heat. Most of the time as well the package has a mounting hole for a heat sink a swell.</p>

<p>Once we select the part we want we can add it to our circuit. For the power supply were going to need two capacitors and a voltage regulator as well as inputs for our voltage from our source. </p>

<p><a href="http://mcuplace.com/mcu/media/blogs/cay/Eaglewire.png" rel="lightbox"></p>
<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay//Eaglewire.png" alt="" title="" width="400" height="300" /></div>
</a><p></p>

<p>Once we place all the parts we have to hook everything up. For this, we use the wire hookup tool. We link all the parts like we normally would in a circuit with wire. We have to take one more step however, we have to use the node tool at any junction where two devices connect. Just because a wire and a device touch, doesn't mean they're linked. We must use the node tool to link the devices and make a connection. This is very important as unlinked nodes will produce an improper PCB design when we eventually get to that stage.</p>

<p><a href="http://mcuplace.com/mcu/media/blogs/cay/PSU.png" rel="lightbox"></p>
<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay//PSU.png" alt="" title="" width="400" height="300" /></div>
</a><p></p>

<p>One thing you'll notice is the GND and VCC "devices." These are symbols we use to note common points in the circuit. We use a GND symbol to denote the ground. Therefore, any point in the circuit that connects the ground, connects to this symbol. This way of designing our schematic makes things look cleaner and allows us to separate functioning parts of our circuit into blocks that can be modified separately. </p>

<p><b>What the power supply does:</b></p>

<p>The power supply provides us with a known potential. When building this circuit we are going to use a 5 volt positive voltage regulator, which on the output gives us a steady 5 volts irregardless of the input voltage (assuming its DC and within specs).</p>

<p>The two capacitors act as filters, filtering out noise that might be introduced on our line. The capacitors in that configuration are called decoupling/bypass capacitors and are a type of low pass filter. </p>

<p>The LSP1/2 devices are nothing more than pads to attach our voltage source.</p>

<p>Once we have a steady source of power we can begin doing analysis. </p>

<p><b>The voltage divider.</b></p>

<p>The first part of our circuit is a voltage divider.</p>

<p>This allows us to output a voltage that is proportional to the voltage source. </p>

<p><a href="http://mcuplace.com/mcu/media/blogs/cay/alalysis.jpg" rel="lightbox"></p>
<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay//alalysis.jpg" alt="" title="" width="308" height="201" /></div></a><p></p>

<p>Since </p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? V=IR " /> </p>

<p>And</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? R_{eq} = R_1 + R_2" /> </p>

<p>Thus</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? V_{source} = R_{LDR} + R_2 * I " /></p>

<p>And </p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? I = \frac{V_{source}}{R_{LDR} + R_R} " /></p>

<p>Then </p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? V_{out} = V_R = V_{source} * \frac{R_R}{R_{LDR} + R_R}" /></p>

<p>From that relationship, we see how the voltage is proportional to the resistor R we choose and the resistance the LDR provides. </p>

<p>Using a multimeter we can find that the LDR puts out a resistance of about 200 ohms when in light and around 5Kohms in the dark. </p>

<p>We want to have a system where the change in V is the greatest for on an off conditions. </p>

<p>Assume we use a 1Kohm resistor for R, That gives us:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \begin{eqnarray}V_{out} &amp;=&amp; V_R = 5 * \frac{1000}{200 + 1000} \\ &amp;=&amp; 4.166 V\end{eqnarray}" /></p>

<p>And for the off state: </p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \begin{eqnarray}V_{out} &amp;=&amp; V_R = 5 * \frac{1000}{5000 + 1000} \\ &amp;=&amp; .833 V \end{eqnarray}" /></p>

<p>This gives us a nice kick to switch our NPN transistor to solid on/off states.</p>

<p>The Inverter. </p>

<p><a href="http://mcuplace.com/mcu/media/blogs/cay/Inverter.png" rel="lightbox"></p>
<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay//Inverter.png" alt="" title="" width="200" height="150" /></div></a><p></p>

<p>BiJunction Transistors are a type of "switch" they amplify current by allowing a large amount of current to flow via a small trigger. </p>

<p>The most important character of a BJT is its current gain, which is how much the BJT will amplify current before it reaches its limit. </p>

<p>For this setup we are going to be using the TIP120 NPN BJT.</p>

<p>Data sheet: <a href="http://www.learn-c.com/tip120.pdf">http://www.learn-c.com/tip120.pdf</a></p>

<p>BJT usually have 3 leads; a base, collector and emitter. </p>

<p>The way a NPN BJT works is that a small current on the base will amplify a current from the collector to the emitter. </p>

<p>Now, in reality, the BJT is much more complicated than that, but for this post, that information should suffice. </p>

<p>The way our transistor is hooked up, is in an inverter configuration, which means when the transistor is OFF the device receives power, when the power is turned on, the transistor passes the load to ground, giving the device a 0 potential.</p>

<p>When our LDR is ON, there is a large amount of current going into the NPN transistor, this saturates the gate, and the LED doesn't light. When the LDR is off however, there is very little current going into the base of the transistor, thus there is very little voltage drop across the transistor and the LED gets power just as if it were hooked up to the resistor alone. </p>

<p>Operating Pictures:</p>

<p>We setup the project on a breadboard, which allows us to prototype the circuit. Instead of permanently soldering components to a PCB, we can just insert the leads of the components into the breadboard and use the internal network to connect our circuit.</p>

<p>The parts list for this circuit are:<br />
2X - 2.2Kohm Resistors<br />
1X - Blue LED<br />
1X - TIP120 NPN Transistor.<br />
2X - 15uf 50V electrolytic capacitors<br />
1X - LM7805 5v pos Voltage regulator<br />
1X - Diode<br />
1X - 9v (or any DC voltage source)<br />
- Some hookup wire.</p>

<p>The LED is off, which means the voltage divider is high, and the NPN transistor is ON. Current is being drained to ground, instead through the LED.</p>

<p><a href="http://mcuplace.com/mcu/media/blogs/cay/OFF.jpg" rel="lightbox"></p>
<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/OFF.jpg" alt="" title="" width="400" height="300" /></div></a><p></p>

<p>In the next setup, we cover the LDR, producing a low on the voltage divider, turning the transistor off, allowing current to flow to the LED. </p>


<p><a href="http://mcuplace.com/mcu/media/blogs/cay/ON.jpg" rel="lightbox"></p>
<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/ON.JPG" alt="" title="" width="400" height="300" /></div></a><p></p>

<p>Conclusion:</p>

<p>This is a very useful circuit and allows you to understand basic circuit elements. Light sensors are very useful in robotics in object detection and any other circuit where your application is sensitive to light.</p>


<p> - Alternative designs using op amps!</p><div class="item_footer"><p><small><a href="http://mcuplace.com/mcu/blog5.php/2009/06/23/intro-to-circuittry-light-sensor">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://mcuplace.com/mcu/blog5.php/2009/06/23/intro-to-circuittry-light-sensor#comments</comments>
			<wfw:commentRss>http://mcuplace.com/mcu/blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=47</wfw:commentRss>
		</item>
				<item>
			<title>Intro to Circuitry: Symbols and beyond</title>
			<link>http://mcuplace.com/mcu/blog5.php/2009/04/16/intro-to-circuitry-symbols-and-beyond</link>
			<pubDate>Thu, 16 Apr 2009 13:28:27 +0000</pubDate>			<dc:creator>anthony</dc:creator>
			<category domain="main">Informative</category>			<guid isPermaLink="false">46@http://mcuplace.com/mcu/</guid>
						<description>&lt;p&gt;We've covered the 3 fundamental components the basis for electrical systems. Lets do a quick review over some terms&lt;/p&gt;

&lt;p&gt;AC: Alternating current, circuit that deal with a cyclic harmonic change in potential over time. Us outlets are 110 VRMS 60HZ which means the average voltage put out is 110 volts and it oscillates as a 60HZ sine wave.&lt;/p&gt;

&lt;p&gt;DC: Direct current, current is steady and a fixed potential is across two points. We use DC for most circuits.&lt;/p&gt;

&lt;p&gt;Voltage: Potential difference across two points, Voltage is the work a circuit is capable of doing and is the product of an electrostatic attraction between two points.&lt;/p&gt;

&lt;p&gt;Current: Is the charge that actually &quot;flows&quot; in a circuit. Voltage is the work capable current is what does that work. &lt;/p&gt;

&lt;p&gt;The Three Fundamental components:&lt;/p&gt;

&lt;p&gt;The Resistor: The resistor allows you to control current in a circuit, it is probably the most essential component. (V=IR)&lt;/p&gt;

&lt;p&gt;Capacitor: Two plates separated by some sort of dielectric, Holds a charge and useful in storing energy and filtering signals.&lt;/p&gt;

&lt;p&gt;Inductor: Coil of wire that holds energy in a magnetic field. Any current flowing through a wire produces a magnetic field around it. &lt;/p&gt;

&lt;p&gt;The Fourth fundamental component?:&lt;/p&gt;

&lt;p&gt;Resistors, Capacitors and Inductors are all useful things but it wasn't until semiconductors that we truly were able to create high speed circuits of today.&lt;/p&gt;

&lt;p&gt;I've already done a writeup on semiconductors here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://mcuplace.com/mcu/blog4.php/2008/08/20/semiconduct-this&quot;&gt;http://mcuplace.com/mcu/blog4.php/2008/08/20/semiconduct-this&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;What is circuitry?&lt;/p&gt;

&lt;p&gt;Circuitry is the process of taking these components and making circuits that do useful things. We can make sensors that record data, Counters, Timers, Computers, Calculators, Robots. We can make pretty much anything you want to with these components. &lt;/p&gt;

&lt;p&gt;What we will be covering in this blog is a hodgepodge of information from digital circuits, to circuit analysis to schematic design and introduction to software suites.&lt;/p&gt;

&lt;p&gt;Basic Symbols:&lt;/p&gt;

&lt;p&gt;Part of reading a schematic is understanding what the symbols mean and how to interpret them. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;Voltage Source / EMF&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;A battery or DC voltage source is denoted by parallel lines of varying size. The longer line denotes + and smaller line denotes - &lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/emf.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;171&quot; height=&quot;137&quot; /&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;&lt;b&gt;Passive Components:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The symbol for a resistor is a zig-zag line. &lt;/p&gt;

&lt;p&gt;Potentiometers or variable resistors are a resistor symbol with an arrow through it&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/Resistors.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;171&quot; height=&quot;137&quot; /&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;The symbol for a capacitor is two separated parallel lines&lt;/p&gt;

&lt;p&gt;Electrolytic capacitors may have a curved line or a + sign to denote polarity&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/Capacitor.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;171&quot; height=&quot;137&quot; /&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;The symbol for an inductor is a half coil&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/Inductor.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;171&quot; height=&quot;137&quot; /&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;&lt;b&gt;Semiconductors&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The symbol for a diode is a triangle with a line at the tip, the triangle *points* where the current flows and the line is usually on the negative part of the diode.&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/Diode.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;171&quot; height=&quot;137&quot; /&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;The symbol for an LED is a diode symbol with arrows coming out from the triangle denoting it produces light.&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/LED.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;171&quot; height=&quot;137&quot; /&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;&lt;b&gt;Transistors&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;NPN Bi-polar Junction Transistors are denoted by the following symbol&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/PNP.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;171&quot; height=&quot;137&quot; /&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;PNP transistors are denoted by&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/NPN.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;171&quot; height=&quot;137&quot; /&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;NPN can be remember because the arrow is Not Pointing iN, and PNP is the complement of NPN&lt;/p&gt;

&lt;p&gt;MOSFET transistors share a different symbol than BJT transistors.&lt;/p&gt;

&lt;p&gt;NMOS transistors are denoted by:&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/nmos.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;171&quot; height=&quot;137&quot; /&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;PMOS are denoted by a NMOS symbol with a complement dot in the front.&lt;/p&gt;

&lt;div class=&quot;image_block&quot;&gt;&lt;img src=&quot;http://mcuplace.com/mcu/media/blogs/cay/pmos.jpg&quot; alt=&quot;&quot; title=&quot;&quot; width=&quot;171&quot; height=&quot;137&quot; /&gt;&lt;/div&gt;&lt;p&gt; &lt;/p&gt;

&lt;p&gt;MOSFET transistors also have different symbols but all use the same basic shape.&lt;/p&gt;

&lt;p&gt;There are many other symbols out there for electric components, however these are the most common. As we demonstrate more circuits we will go over the symbols as we get to them. &lt;/p&gt;

&lt;p&gt;We will be going over some basic circuits so we can get the hang of designing circuits and doing analysis.&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://mcuplace.com/mcu/blog5.php/2009/04/16/intro-to-circuitry-symbols-and-beyond&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>We've covered the 3 fundamental components the basis for electrical systems. Lets do a quick review over some terms</p>

<p>AC: Alternating current, circuit that deal with a cyclic harmonic change in potential over time. Us outlets are 110 VRMS 60HZ which means the average voltage put out is 110 volts and it oscillates as a 60HZ sine wave.</p>

<p>DC: Direct current, current is steady and a fixed potential is across two points. We use DC for most circuits.</p>

<p>Voltage: Potential difference across two points, Voltage is the work a circuit is capable of doing and is the product of an electrostatic attraction between two points.</p>

<p>Current: Is the charge that actually "flows" in a circuit. Voltage is the work capable current is what does that work. </p>

<p>The Three Fundamental components:</p>

<p>The Resistor: The resistor allows you to control current in a circuit, it is probably the most essential component. (V=IR)</p>

<p>Capacitor: Two plates separated by some sort of dielectric, Holds a charge and useful in storing energy and filtering signals.</p>

<p>Inductor: Coil of wire that holds energy in a magnetic field. Any current flowing through a wire produces a magnetic field around it. </p>

<p>The Fourth fundamental component?:</p>

<p>Resistors, Capacitors and Inductors are all useful things but it wasn't until semiconductors that we truly were able to create high speed circuits of today.</p>

<p>I've already done a writeup on semiconductors here:</p>

<p><a href="http://mcuplace.com/mcu/blog4.php/2008/08/20/semiconduct-this">http://mcuplace.com/mcu/blog4.php/2008/08/20/semiconduct-this</a></p>

<p>What is circuitry?</p>

<p>Circuitry is the process of taking these components and making circuits that do useful things. We can make sensors that record data, Counters, Timers, Computers, Calculators, Robots. We can make pretty much anything you want to with these components. </p>

<p>What we will be covering in this blog is a hodgepodge of information from digital circuits, to circuit analysis to schematic design and introduction to software suites.</p>

<p>Basic Symbols:</p>

<p>Part of reading a schematic is understanding what the symbols mean and how to interpret them. </p>

<p><b>Voltage Source / EMF</b></p>

<p>A battery or DC voltage source is denoted by parallel lines of varying size. The longer line denotes + and smaller line denotes - </p>

<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/emf.jpg" alt="" title="" width="171" height="137" /></div><p> </p>

<p><b>Passive Components:</b></p>

<p>The symbol for a resistor is a zig-zag line. </p>

<p>Potentiometers or variable resistors are a resistor symbol with an arrow through it</p>

<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/Resistors.jpg" alt="" title="" width="171" height="137" /></div><p> </p>

<p>The symbol for a capacitor is two separated parallel lines</p>

<p>Electrolytic capacitors may have a curved line or a + sign to denote polarity</p>

<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/Capacitor.jpg" alt="" title="" width="171" height="137" /></div><p> </p>

<p>The symbol for an inductor is a half coil</p>

<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/Inductor.jpg" alt="" title="" width="171" height="137" /></div><p> </p>

<p><b>Semiconductors</b></p>

<p>The symbol for a diode is a triangle with a line at the tip, the triangle *points* where the current flows and the line is usually on the negative part of the diode.</p>

<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/Diode.jpg" alt="" title="" width="171" height="137" /></div><p> </p>

<p>The symbol for an LED is a diode symbol with arrows coming out from the triangle denoting it produces light.</p>

<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/LED.jpg" alt="" title="" width="171" height="137" /></div><p> </p>

<p><b>Transistors</b></p>

<p>NPN Bi-polar Junction Transistors are denoted by the following symbol</p>

<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/PNP.jpg" alt="" title="" width="171" height="137" /></div><p> </p>

<p>PNP transistors are denoted by</p>

<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/NPN.jpg" alt="" title="" width="171" height="137" /></div><p> </p>

<p>NPN can be remember because the arrow is Not Pointing iN, and PNP is the complement of NPN</p>

<p>MOSFET transistors share a different symbol than BJT transistors.</p>

<p>NMOS transistors are denoted by:</p>

<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/nmos.jpg" alt="" title="" width="171" height="137" /></div><p> </p>

<p>PMOS are denoted by a NMOS symbol with a complement dot in the front.</p>

<div class="image_block"><img src="http://mcuplace.com/mcu/media/blogs/cay/pmos.jpg" alt="" title="" width="171" height="137" /></div><p> </p>

<p>MOSFET transistors also have different symbols but all use the same basic shape.</p>

<p>There are many other symbols out there for electric components, however these are the most common. As we demonstrate more circuits we will go over the symbols as we get to them. </p>

<p>We will be going over some basic circuits so we can get the hang of designing circuits and doing analysis.</p><div class="item_footer"><p><small><a href="http://mcuplace.com/mcu/blog5.php/2009/04/16/intro-to-circuitry-symbols-and-beyond">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://mcuplace.com/mcu/blog5.php/2009/04/16/intro-to-circuitry-symbols-and-beyond#comments</comments>
			<wfw:commentRss>http://mcuplace.com/mcu/blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=46</wfw:commentRss>
		</item>
				<item>
			<title>Inductance</title>
			<link>http://mcuplace.com/mcu/blog5.php/2009/04/12/inductance</link>
			<pubDate>Sun, 12 Apr 2009 13:53:51 +0000</pubDate>			<dc:creator>anthony</dc:creator>
			<category domain="main">Informative</category>			<guid isPermaLink="false">45@http://mcuplace.com/mcu/</guid>
						<description>&lt;p&gt;Magnetism and electricity have been proven to be fundamentally linked. A magnetic flux will create a current in a wire just as a current in a wire will create a magnetic flux. This property is called Lenz's law and is the basis for how an inductor functions. The reason why this happens can be explained through conservation of energy, when a force (magnetic field) acts upon a wire, there is no way for that wire to store the energy, so that force turns into electric current and we get an EMF. Lenz's law can be explained by Faraday's law of induction:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? \mathcal{E} = \frac{d \Phi_B}{dt}&quot; /&gt; &lt;/p&gt;

&lt;p&gt;Faraday's law of induction states that the EMF produced is the result of a change in magnetic flux with respect to time. &lt;/p&gt;

&lt;p&gt;An inductor is nothing more than a piece of copper wire wound as a coil which makes it more permeable to magnetic flux. &lt;/p&gt;

&lt;p&gt;An inductors job in a circuit is very similar to a capacitor it stores energy for later use. As current flows through an inductor, the current builds a magnetic flux around the inductor. This magnetic flux was the product of induction and will try and resist any change in current due to Lenz's law. &lt;/p&gt;

&lt;p&gt;An inductor is a very simple and crude device, it is used in very similar applications to a capacitor.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;LRC Circuits&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;a very popular application to an inductor is the creation of an oscillator using a capacitor and an inductor. Putting these two components in series with one another will create an oscillator at a certain frequency, this was primarily used in radio tuning as you had an inductor hooked up to a variable capacitor to turn into certain frequencies. LRC circuits can get much more complicated, but that is for another time.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Transformers&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;The principle role for an inductor is the transformer, a device that is used to modulate voltage across two circuits. &lt;/p&gt;

&lt;p&gt;A Transformer is simply two inductors coupled via a piece of iron. &lt;/p&gt;

&lt;p&gt;A transformer only works with an alternating current as a constant DC current will not produce a changing magnetic flux and thus wont create an EMF.&lt;/p&gt;

&lt;p&gt;The voltage change across the transformer is proportional to the number of turns difference across the transformer. &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? \frac{V_a}{V_b} = \frac{N_a}{N_b}&quot; /&gt; &lt;/p&gt;

&lt;p&gt;N = Number of turns&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Note about Inductors&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Now, just as a capacitor is any break in your circuit, an inductor is ANY connection in your circuit. This is another problem that plagues analog circuits. Every wire is going to be creating a magnetic flux and every wire is going to be inductively coupled some how. This wont destroy your circuits, but it is something to be keen of when designing a circuit.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Formula Sheet &lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Faraday's Law&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? \mathcal{E} = \frac{d \Phi_B}{dt}&quot; /&gt; &lt;/p&gt;

&lt;p&gt;Transformers&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? \frac{V_a}{V_b} = \frac{N_a}{N_b}&quot; /&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://mcuplace.com/mcu/blog5.php/2009/04/12/inductance&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>Magnetism and electricity have been proven to be fundamentally linked. A magnetic flux will create a current in a wire just as a current in a wire will create a magnetic flux. This property is called Lenz's law and is the basis for how an inductor functions. The reason why this happens can be explained through conservation of energy, when a force (magnetic field) acts upon a wire, there is no way for that wire to store the energy, so that force turns into electric current and we get an EMF. Lenz's law can be explained by Faraday's law of induction:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \mathcal{E} = \frac{d \Phi_B}{dt}" /> </p>

<p>Faraday's law of induction states that the EMF produced is the result of a change in magnetic flux with respect to time. </p>

<p>An inductor is nothing more than a piece of copper wire wound as a coil which makes it more permeable to magnetic flux. </p>

<p>An inductors job in a circuit is very similar to a capacitor it stores energy for later use. As current flows through an inductor, the current builds a magnetic flux around the inductor. This magnetic flux was the product of induction and will try and resist any change in current due to Lenz's law. </p>

<p>An inductor is a very simple and crude device, it is used in very similar applications to a capacitor.</p>

<p><b>LRC Circuits</b></p>

<p>a very popular application to an inductor is the creation of an oscillator using a capacitor and an inductor. Putting these two components in series with one another will create an oscillator at a certain frequency, this was primarily used in radio tuning as you had an inductor hooked up to a variable capacitor to turn into certain frequencies. LRC circuits can get much more complicated, but that is for another time.</p>

<p><b>Transformers</b></p>

<p>The principle role for an inductor is the transformer, a device that is used to modulate voltage across two circuits. </p>

<p>A Transformer is simply two inductors coupled via a piece of iron. </p>

<p>A transformer only works with an alternating current as a constant DC current will not produce a changing magnetic flux and thus wont create an EMF.</p>

<p>The voltage change across the transformer is proportional to the number of turns difference across the transformer. </p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \frac{V_a}{V_b} = \frac{N_a}{N_b}" /> </p>

<p>N = Number of turns</p>

<p><b>Note about Inductors</b></p>

<p>Now, just as a capacitor is any break in your circuit, an inductor is ANY connection in your circuit. This is another problem that plagues analog circuits. Every wire is going to be creating a magnetic flux and every wire is going to be inductively coupled some how. This wont destroy your circuits, but it is something to be keen of when designing a circuit.</p>

<p><b>Formula Sheet </b></p>

<p>Faraday's Law</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \mathcal{E} = \frac{d \Phi_B}{dt}" /> </p>

<p>Transformers</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? \frac{V_a}{V_b} = \frac{N_a}{N_b}" /></p><div class="item_footer"><p><small><a href="http://mcuplace.com/mcu/blog5.php/2009/04/12/inductance">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://mcuplace.com/mcu/blog5.php/2009/04/12/inductance#comments</comments>
			<wfw:commentRss>http://mcuplace.com/mcu/blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=45</wfw:commentRss>
		</item>
				<item>
			<title>The Capacitor</title>
			<link>http://mcuplace.com/mcu/blog5.php/2009/03/27/the-capacitor</link>
			<pubDate>Fri, 27 Mar 2009 19:10:45 +0000</pubDate>			<dc:creator>anthony</dc:creator>
			<category domain="main">Informative</category>			<guid isPermaLink="false">43@http://mcuplace.com/mcu/</guid>
						<description>&lt;p&gt;The capacitor is another fundamental component. The prime role for the capacitor is to hold charge and store energy for later use. This property makes a capacitor very useful for filtering and storing power.  The capacitor works by electrostatic attraction, when you have a potential across any two points the opposite charge attracts each other. As long as there is a potential across the capacitor charge will keep building up until the potential across the capacitor equals the potential across the circuit. Once this happens current ceases to flow. You can think of a capacitor as a break in a circuit, once the electrostatic force between the two points is at an equilibrium with the source, there is no force to drive this attraction of charge. No flow of charge means no current; because of this a capacitor is known to block DC current. A capacitor in series once charged will stop current flow. This also give a capacitor a complex impedance, the more a capacitor charge the more the electrostatic force resists flow and increases resistance across the capacitor. A capacitor in series will allow AC to pass through the capacitor since the capacitor is constantly charging and discharging. &lt;/p&gt;

&lt;p&gt;The capacitance is a unit of how much a capacitor can &quot;hold&quot; which is a product of permittivity and area by the distance of the plates. Thus as area increases capacitance increases and as distance between the plates increases, capacitance decreases. Capacitors are measured in farads with one farad being 1 coulomb of charge across a capacitor with a potential of 1 volt across it. A coulomb is a large amount of charge so capacitors are usually measured in microfarads &lt;img src=&quot;/cgi-bin/mimetex.cgi?10^{-6}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?C=\frac{\epsilon A}{d}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;The permittivity is a product of the material between the plates, in simple cases it is air, other cases it can be a sophisticated dielectric.&lt;/p&gt;

&lt;p&gt;Now capacitance is a product of any two points in a circuit with a potential across them, separated by any distance. Although when d is a large value, capacitance is low, this still has an effect on a circuit. It is an important consideration how capacitance will affect your circuit since everything is a capacitor. Besides causing some unwanted affects, a capacitor can be a useful component.&lt;br /&gt;
&lt;b&gt;&lt;br /&gt;
Conservation of charge:&lt;/b&gt;&lt;br /&gt;
A Capacitor holds charge, unlike potential which is the product of an electrostatic force, charge is a &quot;physical&quot; thing, you cannot lose charge. This is very important since charge is a principle part of a capacitor.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? C=\frac{Q}{V}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Capacitor in Series:&lt;/p&gt;

&lt;p&gt;Capacitors in series the capacitance add as the inverse so:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?\frac{1}{C_t}=\frac{1}{C_1}+\frac{1}{C_2}+\cdots&quot; /&gt;&lt;/p&gt;

&lt;p&gt;One advantage to using capacitors in series is that you can pass higher voltages across lower voltage capacitors (I.e you can pass 200V through 2 100V capacitors in series) &lt;/p&gt;

&lt;p&gt;Capacitors in Parallel:&lt;/p&gt;

&lt;p&gt;Capacitors in parallel the capacitance adds across the capacitors.&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?C_t = C_1 + C_2 + \cdots&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Capacitance is determined by the area of the capacitor, naturally more capacitors in parallel will have more area, which is why capacitance adds.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Work and Energy:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Capacitors can hold a charge, which means they can store energy. The energy associated with a capacitor is defined as:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?U_c=\frac{1}{2}CV^2&quot; /&gt;&lt;/p&gt;

&lt;p&gt;This is useful in finding how much energy is stored in a capacitor, Power is the rate consumption of energy, thus by finding the energy stored in a capacitor you can find how much power it has.&lt;/p&gt;

&lt;p&gt;Timing:&lt;/p&gt;

&lt;p&gt;The largest use of a capacitor is in timing. It takes time to charge the capacitor, which can be used to your advantage as a timing source. The most simple resonator is a RC circuit. Capacitors are used in oscillating circuits which are used to produce specific frequencies. Also capacitors can modulate frequency due to the fact that charging a capacitor is time dependent. &lt;/p&gt;

&lt;p&gt;This is a basic intro to the capacitor, I hope to go over more in the future.&lt;/p&gt;

&lt;p&gt;Formula Sheet:&lt;/p&gt;

&lt;p&gt;Capacitance:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?C=\frac{\epsilon A}{d}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi? C=\frac{Q}{V}&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Capacitor in series:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?\frac{1}{C_t}=\frac{1}{C_1}+\frac{1}{C_2}+\cdots&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Capacitor in parallel:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?C_t = C_1 + C_2 + \cdots&quot; /&gt;&lt;/p&gt;

&lt;p&gt;Potential energy of a capacitor:&lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;/cgi-bin/mimetex.cgi?U_c=\frac{1}{2}CV^2&quot; /&gt;&lt;/p&gt;&lt;div class=&quot;item_footer&quot;&gt;&lt;p&gt;&lt;small&gt;&lt;a href=&quot;http://mcuplace.com/mcu/blog5.php/2009/03/27/the-capacitor&quot;&gt;Original post&lt;/a&gt; blogged on &lt;a href=&quot;http://b2evolution.net/&quot;&gt;b2evolution&lt;/a&gt;.&lt;/small&gt;&lt;/p&gt;&lt;/div&gt;</description>
			<content:encoded><![CDATA[<p>The capacitor is another fundamental component. The prime role for the capacitor is to hold charge and store energy for later use. This property makes a capacitor very useful for filtering and storing power.  The capacitor works by electrostatic attraction, when you have a potential across any two points the opposite charge attracts each other. As long as there is a potential across the capacitor charge will keep building up until the potential across the capacitor equals the potential across the circuit. Once this happens current ceases to flow. You can think of a capacitor as a break in a circuit, once the electrostatic force between the two points is at an equilibrium with the source, there is no force to drive this attraction of charge. No flow of charge means no current; because of this a capacitor is known to block DC current. A capacitor in series once charged will stop current flow. This also give a capacitor a complex impedance, the more a capacitor charge the more the electrostatic force resists flow and increases resistance across the capacitor. A capacitor in series will allow AC to pass through the capacitor since the capacitor is constantly charging and discharging. </p>

<p>The capacitance is a unit of how much a capacitor can "hold" which is a product of permittivity and area by the distance of the plates. Thus as area increases capacitance increases and as distance between the plates increases, capacitance decreases. Capacitors are measured in farads with one farad being 1 coulomb of charge across a capacitor with a potential of 1 volt across it. A coulomb is a large amount of charge so capacitors are usually measured in microfarads <img src="http://mcuplace.com/cgi-bin/mimetex.cgi?10^{-6}" /></p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?C=\frac{\epsilon A}{d}" /></p>

<p>The permittivity is a product of the material between the plates, in simple cases it is air, other cases it can be a sophisticated dielectric.</p>

<p>Now capacitance is a product of any two points in a circuit with a potential across them, separated by any distance. Although when d is a large value, capacitance is low, this still has an effect on a circuit. It is an important consideration how capacitance will affect your circuit since everything is a capacitor. Besides causing some unwanted affects, a capacitor can be a useful component.<br />
<b><br />
Conservation of charge:</b><br />
A Capacitor holds charge, unlike potential which is the product of an electrostatic force, charge is a "physical" thing, you cannot lose charge. This is very important since charge is a principle part of a capacitor.</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? C=\frac{Q}{V}" /></p>

<p>Capacitor in Series:</p>

<p>Capacitors in series the capacitance add as the inverse so:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?\frac{1}{C_t}=\frac{1}{C_1}+\frac{1}{C_2}+\cdots" /></p>

<p>One advantage to using capacitors in series is that you can pass higher voltages across lower voltage capacitors (I.e you can pass 200V through 2 100V capacitors in series) </p>

<p>Capacitors in Parallel:</p>

<p>Capacitors in parallel the capacitance adds across the capacitors.</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?C_t = C_1 + C_2 + \cdots" /></p>

<p>Capacitance is determined by the area of the capacitor, naturally more capacitors in parallel will have more area, which is why capacitance adds.</p>

<p><b>Work and Energy:</b></p>

<p>Capacitors can hold a charge, which means they can store energy. The energy associated with a capacitor is defined as:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?U_c=\frac{1}{2}CV^2" /></p>

<p>This is useful in finding how much energy is stored in a capacitor, Power is the rate consumption of energy, thus by finding the energy stored in a capacitor you can find how much power it has.</p>

<p>Timing:</p>

<p>The largest use of a capacitor is in timing. It takes time to charge the capacitor, which can be used to your advantage as a timing source. The most simple resonator is a RC circuit. Capacitors are used in oscillating circuits which are used to produce specific frequencies. Also capacitors can modulate frequency due to the fact that charging a capacitor is time dependent. </p>

<p>This is a basic intro to the capacitor, I hope to go over more in the future.</p>

<p>Formula Sheet:</p>

<p>Capacitance:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?C=\frac{\epsilon A}{d}" /></p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi? C=\frac{Q}{V}" /></p>

<p>Capacitor in series:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?\frac{1}{C_t}=\frac{1}{C_1}+\frac{1}{C_2}+\cdots" /></p>

<p>Capacitor in parallel:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?C_t = C_1 + C_2 + \cdots" /></p>

<p>Potential energy of a capacitor:</p>

<p><img src="http://mcuplace.com/cgi-bin/mimetex.cgi?U_c=\frac{1}{2}CV^2" /></p><div class="item_footer"><p><small><a href="http://mcuplace.com/mcu/blog5.php/2009/03/27/the-capacitor">Original post</a> blogged on <a href="http://b2evolution.net/">b2evolution</a>.</small></p></div>]]></content:encoded>
								<comments>http://mcuplace.com/mcu/blog5.php/2009/03/27/the-capacitor#comments</comments>
			<wfw:commentRss>http://mcuplace.com/mcu/blog5.php?tempskin=_rss2&#38;disp=comments&#38;p=43</wfw:commentRss>
		</item>
			</channel>
</rss>
