{"id":1674,"date":"2014-12-11T22:20:40","date_gmt":"2014-12-11T22:20:40","guid":{"rendered":"http:\/\/41j.com\/blog\/?p=1674"},"modified":"2014-12-12T10:49:41","modified_gmt":"2014-12-12T10:49:41","slug":"npn-bjt-common-emitter-inverting-amplifier","status":"publish","type":"post","link":"https:\/\/41j.com\/blog\/2014\/12\/npn-bjt-common-emitter-inverting-amplifier\/","title":{"rendered":"NPN BJT Common emitter inverting amplifier"},"content":{"rendered":"<p>The <a href=\"http:\/\/41j.com\/blog\/2014\/12\/phase-shift-oscillator\/\">Phase-Shift Oscillator<\/a> I previously described used an NPN transistor as an inverting amplifier. <\/p>\n<p>Transistors are current controller, current amplifiers. This means they take a control current in, and this is used to produce an output current. You&#8217;ll typically see curves like this used to describe the operation of a transistor:<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/Bipolar_Transistor_CharacteristicCurve.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/Bipolar_Transistor_CharacteristicCurve.png\" alt=\"Bipolar_Transistor_CharacteristicCurve\" width=\"611\" height=\"503\" class=\"aligncenter size-full wp-image-1676\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/Bipolar_Transistor_CharacteristicCurve.png 611w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/Bipolar_Transistor_CharacteristicCurve-300x246.png 300w\" sizes=\"auto, (max-width: 611px) 100vw, 611px\" \/><\/a><\/p>\n<p>I find them pretty confusing as a first introduction to transistors. Most datasheets don&#8217;t seem to include these curves either. Here&#8217;s a simpler graph:<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/transistor_graph.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/transistor_graph-787x1024.jpg\" alt=\"transistor_graph\" width=\"700\" height=\"910\" class=\"aligncenter size-large wp-image-1677\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/transistor_graph-787x1024.jpg 787w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/transistor_graph-230x300.jpg 230w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/transistor_graph-300x390.jpg 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/transistor_graph.jpg 984w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>Not a very complicated graph is it. X any Y are on the same scale, so what the graph is saying is that a small change in the base->emitter current, creates a large change is the collector to emitter current. Let&#8217;s try and understand that in terms of resistance:<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/NPNTransistor.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/NPNTransistor-1024x658.jpg\" alt=\"NPNTransistor\" width=\"700\" height=\"449\" class=\"aligncenter size-large wp-image-1675\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/NPNTransistor-1024x658.jpg 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/NPNTransistor-300x192.jpg 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/NPNTransistor.jpg 1068w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>One way of thinking about a Bipolar transistor is as a electrically controlled variable resistor. By controlling the base current, you can control the resistance between the collector and emitter. But you generally aren&#8217;t using a current to control things in a circuit. This poses some practical problems. Let&#8217;s look at a 2N2222. You can download the datasheet <a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/2N2222.pdf\">here<\/a>.<\/p>\n<p>We can connected this up as follows:<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb11.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb11-1024x768.jpg\" alt=\"trans_bb1\" width=\"700\" height=\"525\" class=\"aligncenter size-large wp-image-1684\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb11-1024x768.jpg 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb11-300x225.jpg 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb11.jpg 1632w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>The collector is connected to the positive supply, the emitter is connected to ground. No current will flow. I set the supply to 3 volts, and no current was being drawn.<\/p>\n<p>So, let&#8217;s try connecting the base to the voltage source:<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb21.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb21-1024x768.jpg\" alt=\"trans_bb2\" width=\"700\" height=\"525\" class=\"aligncenter size-large wp-image-1681\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb21-1024x768.jpg 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb21-300x225.jpg 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb21.jpg 1632w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>BANG! This wont work, there&#8217;s a current limiting resistor on the collector. So the reason isn&#8217;t that all the current flows from the collector to the emitter. No, the connection between the base and the emitter is the problem. Bipolar transistors are current controlled, and there&#8217;s effectively no resistance from the base and the emitter (as an analogy). This means that if we connect the base directly to a voltage source it will draw as much current as it can and the transistor will pop under the load.<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb31.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb31-1024x768.jpg\" alt=\"trans_bb3\" width=\"700\" height=\"525\" class=\"aligncenter size-large wp-image-1682\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb31-1024x768.jpg 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb31-300x225.jpg 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_bb31.jpg 1632w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>The easiest way to limit the current supplied with a voltage source is with a resistor. I added a 220Ohm resistor to the base, over 3Volts (V=IR) this gives a base->emitter current of 0.01A. Note in the above circuit there&#8217;s no resistor on the collector. But the supply showed 460mA being drawn. From this we can calculate the &#8220;current gain&#8221;. 0.01A on the base = 0.46A on the collector. Which is a gain of 46. If we look at the datasheet:<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/2N2222gain.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/2N2222gain.png\" alt=\"2N2222gain\" width=\"840\" height=\"187\" class=\"aligncenter size-full wp-image-1686\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/2N2222gain.png 840w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/2N2222gain-300x66.png 300w\" sizes=\"auto, (max-width: 840px) 100vw, 840px\" \/><\/a><\/p>\n<p>We can see that&#8217;s about right, at a Collector current (Ic) of 440mA and around 1 to 10V we&#8217;re looking at a gain of 40 to 50. These results will hold as you vary the supply voltage, however you can&#8217;t go below 0.6V. The datasheet tells you this here:<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/2N2222saturation.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/2N2222saturation.png\" alt=\"2N2222saturation\" width=\"852\" height=\"61\" class=\"aligncenter size-full wp-image-1687\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/2N2222saturation.png 852w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/2N2222saturation-300x21.png 300w\" sizes=\"auto, (max-width: 852px) 100vw, 852px\" \/><\/a><\/p>\n<p>So now we&#8217;ve seen how a transistor works. We&#8217;ve also seen how a voltage can be used to control the current flowing through the device. We can think of this as a current controlled variable resistor. <\/p>\n<p>Well, a voltage divider looks like this:<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/voltage_div.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/voltage_div-1024x940.jpg\" alt=\"voltage_div\" width=\"700\" height=\"642\" class=\"aligncenter size-large wp-image-1689\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/voltage_div-1024x940.jpg 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/voltage_div-300x275.jpg 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/voltage_div.jpg 1280w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>Voltage dividers let us create a smaller voltage from a larger one. The smaller R2, the smaller the output voltage will be. We can therefore replace R2 with a transistor and the control a large voltage with a smaller one:<\/p>\n<p><a href=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_volt.jpg\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_volt-1024x817.jpg\" alt=\"trans_volt\" width=\"700\" height=\"558\" class=\"aligncenter size-large wp-image-1690\" srcset=\"https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_volt-1024x817.jpg 1024w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_volt-300x239.jpg 300w, https:\/\/41j.com\/blog\/wp-content\/uploads\/2014\/12\/trans_volt.jpg 1280w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/a><\/p>\n<p>There&#8217;s one caveat. As we increase Vin, more current will pass though the transistor from the collector to the emitter. We&#8217;re effectively decreasing the resistance, meaning Vout will also get smaller. This means we have an inverting amplifier. The larger the input voltage, the smaller the output voltage.<\/p>\n<p>There are reasons we might often prefer this over a non-inverting configuration (replacing R1 with a transistor). The most significant being that as we saw above the transistor can&#8217;t operate below 0.6V. By working in an inverting configuration we can avoid that issue. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Phase-Shift Oscillator I previously described used an NPN transistor as an inverting amplifier. Transistors are current controller, current amplifiers. This means they take a control current in, and this is used to produce an output current. You&#8217;ll typically see curves like this used to describe the operation of a transistor: I find them pretty [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-1674","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1RRoU-r0","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/1674","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/comments?post=1674"}],"version-history":[{"count":3,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/1674\/revisions"}],"predecessor-version":[{"id":1693,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/1674\/revisions\/1693"}],"wp:attachment":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/media?parent=1674"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/categories?post=1674"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/tags?post=1674"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}