{"id":89,"date":"2014-07-01T14:05:34","date_gmt":"2014-07-01T18:05:34","guid":{"rendered":"https:\/\/itp.nyu.edu\/physicalcomputing\/?page_id=89"},"modified":"2022-06-20T06:35:18","modified_gmt":"2022-06-20T10:35:18","slug":"electricity-the-basics","status":"publish","type":"page","link":"https:\/\/itp.nyu.edu\/physcomp\/lessons\/electronics\/electricity-the-basics\/","title":{"rendered":"Electricity: the Basics"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Introduction\"><\/span>Introduction<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><em>Adapted from <a href=\"http:\/\/www.tigoe.com\/pcomp\/code\/circuits\/understanding-electricity\/\">Understanding Electricity<\/a><\/em><br>In order to understand how electronic circuits work, and how to use them to build physical interfaces to digital systems using microcontrollers, there are some basic terms, relationships, and components that you need to know about. What follows is a brief introduction to those terms.<\/p>\n\n\n\n<p>You won&#8217;t need to know anything about electricity or electronics to understand this page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Definitions\"><\/span>Definitions<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>Electricity<\/strong> is the flow of electrical energy through&nbsp;conductive materials. &nbsp;An <strong>electrical circuit<\/strong> is made up of two elements: a power source and components that convert the electrical energy into other forms of energy. &nbsp;We build electrical circuits to do work, or to sense activity in the physical world.<\/p>\n\n\n\n<p><strong>Sensors<\/strong> are components that convert other forms of&nbsp;energy into electrical energy so we can read the changes in those other forms. Switches, knobs, light and motion sensors all fit in this category. &nbsp;A<strong>ctuators<\/strong> are components that convert electrical energy into other forms. Light bulbs, motors, LEDs, and heaters are all actuators.<\/p>\n\n\n\n<p><strong>Electronics<\/strong> refers to reading&nbsp;changes in&nbsp;electrical properties as information.&nbsp;&nbsp;For example, a microphone changes sound pressure waves in the air to a changing electrical voltage. This process of changing one energy into another is called <strong>transduction<\/strong>, and devices that do it are called <strong>transducers<\/strong>. Much of the technical work of physical computing is about figuring out what forms of energy a person is generating, and what kind of transducer you can buy or build to read that energy. In order to do that, though, it&#8217;s necessary to understand a few things about electricity. Following are&nbsp;a few terms we&#8217;ll use to refer to electrical properties and components. After that, we&#8217;ll talk about the important relationships between some of these terms.<\/p>\n\n\n\n<p><strong>Voltage <\/strong>is a measure of the difference in electrical potential energy between two points in&nbsp;a circuit. It is measured in <strong>Volts<\/strong>.<\/p>\n\n\n\n<p><strong>Current <\/strong>is a measure of the magnitude of the flow of electrons through a particular point in a circuit. It is measured in <strong>Amperes<\/strong>, or <strong>Amps<\/strong>.<\/p>\n\n\n\n<p><strong>Resistance <\/strong>is a measure of a material&#8217;s ability to oppose the flow of electricity. It is measured in <strong>Ohms<\/strong>.<\/p>\n\n\n\n<p>To understand the relationship between voltage, current, and resistance, imagine an avalanche of snow on a mountain. The height of the mountain&nbsp;is analogous to the voltage; the higher the mountain, the more potential energy the falling material&nbsp;has. &nbsp;The amount of snow and rocks in the avalanche is analogous to the current. &nbsp;And the steepness of the mountain is analogous to the resistance: the steeper the mountain, the less it will resist the flow of the snow and rocks. We&#8217;ll define this a bit more formally below.<\/p>\n\n\n\n<p>Every circuit has to have a <strong>source<\/strong> of electrical energy and a <strong>load<\/strong>&nbsp;that uses the energy.All&nbsp;of the electrical energy in a circuit has to get used by the load. The load will convert the electrical energy to some other form of energy,&nbsp;A circuit with no load &nbsp;is called a <strong>short circuit<\/strong>. In a short circuit, the power source feeds all of its power through the wires and back to itself, and either the wires melt (if you&#8217;re lucky), or the battery and the components blow up.<\/p>\n\n\n\n<p>Figure 1 is a very basic circuit, consisting of a lamp, a pushbutton, and a battery. The battery is the source and the lamp is the load. The electrical energy coming from the battery is converted to heat and light energy by the light bulb. All of the energy is used up in the process. However, if the bulb cannot take the voltage produced by the battery (for example, a 6V lamp and a 9V battery), the lamp&#8217;s filament will melt trying to transduce all the electrical energy into light and heat.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/simple_circuit_bb1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"200\" height=\"219\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/simple_circuit_bb1.png\" alt=\"One AA Battery connected to a button switch and lamp in series\" class=\"wp-image-518\"\/><\/a><figcaption>Figure 1. AA Battery connected to a button switch and lamp in series<\/figcaption><\/figure><\/div>\n\n\n\n<p>There are two common kinds of circuits: &nbsp;<strong>Direct Current (DC)<\/strong>, and <strong>Alternating Current (AC).<\/strong> In a DC circuit, current always flows one direction. In an AC circuit, the direction of current flow is&nbsp;reversed in a regular repeating cycle. &nbsp;Most of the circuits we&#8217;ll talk about in this class will be DC circuits.<\/p>\n\n\n\n<p><strong>Schematic diagrams<\/strong> are diagrams of circuits that represent the electrical relationships between the components in the circuit. A schematic doesn&#8217;t \u00a0always show the spatial arrangement of the components; it&#8217;s arranged so that you can best understand the flow of the electricity. You can find a large  collections of schematic symbols in SVG format, useful for drawing your own, on the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Electronic_symbol\">Wikipedia page for &#8220;Electronic Symbol&#8221;<\/a>.  An SVG collection of them in one file, convenient for editing into your own diagrams, can be found on this <a href=\"https:\/\/commons.wikimedia.org\/wiki\/File:Electrical_symbols_library.svg\">Wikimedia commons page<\/a>. The symbols for the components you&#8217;ll use most commonly in this class are shown below as well.<\/p>\n\n\n\n<p>Figure 2 show two schematics of the light bulb circuit above. In both, the important parts to note are the functional components, namely the lamp and the switch, and the power and ground terminals. In the diagram on the right, the whole circuit is shown as a loop, with the battery (marked V1) to the left of the loop. In the diagram on the left, the circuit is not shown as a loop. Instead, the power source is at the top, and the point of lowest energy, or <strong>ground<\/strong>, is at the bottom. &nbsp;This diagram shows the flow of energy from the top of the diagram to the bottom.&nbsp;<a href=\"https:\/\/vimeo.com\/380345253\" target=\"_blank\" rel=\"noreferrer noopener\">Related Video: Intro to Schematics<\/a><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/simple_circuit_schem2.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"214\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/simple_circuit_schem2-300x214.png\" alt=\"Schematic of a 1.5 volt battery connected to a switch and lamp in series. In the diagram on the right, the whole circuit is shown as a loop, with the battery (marked V1) to the left of the loop. In the diagram on the left, the circuit is not shown as a loop. Instead, the power source is at the top, and the point of lowest energy, or ground, is at the bottom.\" class=\"wp-image-519\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/simple_circuit_schem2-300x214.png 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/simple_circuit_schem2.png 329w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption>Figure 2. Two schematics of a 1.5 volt battery connected to a switch and lamp in series.<\/figcaption><\/figure><\/div>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Components\"><\/span>Components<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>Conductors <\/strong>are materials through which electrical current moves freely.<\/p>\n\n\n\n<p><strong>Insulators <\/strong>are materials which prevent the flow of electricity.<\/p>\n\n\n\n<p><strong>Resistors <\/strong>resist, but do not totally block, the flow of electricity. They are used to control the flow of current. Current can move either way through a resistor, so it doesn&#8217;t matter which way they&#8217;re connected in a circuit. Resistors are measured&nbsp;by their resistance in o<strong>hms<\/strong> (\u03a9), often seen in <strong>kilohms (k\u03a9)<\/strong>.<strong>&nbsp;<\/strong>They are symbolized as shown in Figure 3:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/resistors_schem1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"157\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/resistors_schem1-300x157.png\" alt=\"Four resistor types, from left to right: Fixed Value Resistor, Variable Resistor, Potentiometer, Photo-resistor or light dependent resistor\" class=\"wp-image-525\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/resistors_schem1-300x157.png 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/resistors_schem1.png 483w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption>Figure 3. Four resistor types, from left to right: Fixed Value Resistor, Variable Resistor, Potentiometer, Photo-resistor or light dependent resistor.<\/figcaption><\/figure><\/div>\n\n\n\n<p>Related videos:&nbsp;<a href=\"https:\/\/vimeo.com\/380345304#t=0m40s\" target=\"_blank\" rel=\"noreferrer noopener\">Resistors, variable resistors, and photocells<\/a>; <a href=\"https:\/\/vimeo.com\/380345304#t=2m23s\" target=\"_blank\" rel=\"noreferrer noopener\">Potentiometer<\/a><\/p>\n\n\n\n<p>There are many different types of variable resistors, including:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>Thermistors<\/strong> change resistance in reaction to varying temperature;<\/li><li><strong>Photoresistors<\/strong> change resistance in reaction to varying light;<\/li><li><strong>Flex sensors<\/strong> change resistance in reaction to being bent or flexed;<\/li><li><strong>Force sensing resistors<\/strong>&nbsp;change resistance in reaction to a force placed upon them;<\/li><\/ul>\n\n\n\n<p><strong>Capacitors <\/strong>store up electricity while current is flowing into them, then release the energy when the incoming current is removed. Capacitors are measured by their capacitance in <strong>farads (F), <\/strong> most commonly seen in\u00a0<strong>microfarads (\u00b5F).\u00a0<\/strong>Sometimes they are <strong>polarized<\/strong>, meaning current can only flow through them in a specific direction, and sometimes they are not. If a capacitor is polarized, it will be marked as such on the diagram. Don&#8217;t wire a polarized capacitor backwards; this can damage the capacitor, and your circuit.\u00a0Capacitors are also rated by their maximum voltage. Don&#8217;t apply more voltage to a capacitor than it&#8217;s rated for, or it will explode.<\/p>\n\n\n\n<p>Capacitors are symbolized as shown in Figure 4:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/capacitors_schem1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"286\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/capacitors_schem1-300x286.png\" alt=\"Schematic symbols of a polarized capacitor and a non-polarized capacitor. Polarized shows a + symbol near the anode and the cathode is connected to a curved line. The non polarized capacitor symbol contains only straight lines and is symmetric\" class=\"wp-image-524\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/capacitors_schem1-300x286.png 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/capacitors_schem1.png 483w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption>Figure 4. Schematic symbols of a polarized capacitor and a non-polarized capacitor<\/figcaption><\/figure><\/div>\n\n\n\n<p>Related video: <a href=\"https:\/\/vimeo.com\/380345304#t=7m12s\" target=\"_blank\" rel=\"noreferrer noopener\">Capacitors<\/a><\/p>\n\n\n\n<p><strong>Diodes <\/strong>permit the flow of electricity in one direction, and block it in the other direction. Because of this, they can only be placed in a circuit in one direction. <strong>Light-Emitting Diodes<\/strong> (LED&#8217;s) are special types of diodes which emit light when current flows through them. &nbsp;Diodes are symbolized as shown in Figure 5:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/diodes_schem.png\"><img loading=\"lazy\" decoding=\"async\" width=\"178\" height=\"238\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/diodes_schem.png\" alt=\"Schematic symbols of a diode and a light-emitting diode. The light-emitting diode looks like the diode symbol with 2 arrows pointing away from the center of the symbol.\" class=\"wp-image-526\"\/><\/a><figcaption>Figure 5. Schematic symbols of a diode and a light-emitting diode (LED)<\/figcaption><\/figure><\/div>\n\n\n\n<p>Related video: <a href=\"https:\/\/vimeo.com\/380345304#t=3m12s\" target=\"_blank\" rel=\"noreferrer noopener\">Diodes and LEDs<\/a><\/p>\n\n\n\n<p><strong>Switches <\/strong> and <b>pushbuttons<\/b> control the flow of current through a junction in a circuit, as shown in Figure 6:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/switch_schem.png\"><img loading=\"lazy\" decoding=\"async\" width=\"189\" height=\"185\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/switch_schem.png\" alt=\"Drawing of a switch, left, and a pushbutton, right. The switch has two lines separated by a gap, with a hinged third line almost connecting them, indicating that it is the switch between the two contacts. The pushbutton has two lines separated by a gap and a third line parallel to them, indicating that, it would close the connection between the first two lines when pressed against them.\" class=\"wp-image-527\"\/><\/a><figcaption>Figure 6. Schematic drawing of a switch and a pushbutton<\/figcaption><\/figure><\/div>\n\n\n\n<p>Related video: <a href=\"https:\/\/vimeo.com\/380345304#t=4m52s\" target=\"_blank\" rel=\"noreferrer noopener\">Switches<\/a><\/p>\n\n\n\n<p><strong>Transistors<\/strong> and <strong>relays<\/strong> are electrical switching devices, as shown in Figure 7:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/transistor_relay_schem.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"139\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/transistor_relay_schem-300x139.png\" alt=\"Schematic symbols for an NPN transistor, a PNP Transistor, and a Relay\" class=\"wp-image-529\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/transistor_relay_schem-300x139.png 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/transistor_relay_schem.png 466w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption>Figure 7. Schematic symbols for an NPN transistor, a PNP Transistor, and a Relay<\/figcaption><\/figure><\/div>\n\n\n\n<p>Related video: <a rel=\"noreferrer noopener\" href=\"https:\/\/vimeo.com\/380345304#t=6m9s\" target=\"_blank\">Relays<\/a><\/p>\n\n\n\n<p><strong>Piezoelectric devices<\/strong> create a varying voltage in reaction to slight changes in pressure.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Relationships\"><\/span>Relationships<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>Voltage (V)<\/strong>, <strong>Current (I)<\/strong>, and <strong>Resistance (R)<\/strong> are all related, by the following formula, as shown in figure 8:<\/p>\n\n\n\n<p><strong> Volts = Amps x Ohms<\/strong><\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p><strong>V = I x R<\/strong><\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/v-i-r.png\"><img loading=\"lazy\" decoding=\"async\" width=\"282\" height=\"198\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/v-i-r.png\" alt=\"Three equations using ohms law to calculate Voltage, Amperage, or Resistance. A circle is divided into 3 sections, each section containing one element of Ohms law, V for voltage, I for Amperage, R for resistance. Each equation is adjacent to the corresponding section of the circle\" class=\"wp-image-530\"\/><\/a><figcaption>Figure 8. Three equations using ohms law to calculate Voltage, Amperage, or Resistance<\/figcaption><\/figure><\/div>\n\n\n\n<p>Related video:&nbsp;<a href=\"https:\/\/vimeo.com\/380178334\" target=\"_blank\" rel=\"noreferrer noopener\">Ohm\u2019s Law Part 1<\/a> &amp; <a href=\"https:\/\/vimeo.com\/380178637\" target=\"_blank\" rel=\"noreferrer noopener\">Part 2<\/a>. See also <a href=\"https:\/\/vimeo.com\/380170576\" target=\"_blank\" rel=\"noreferrer noopener\">Measuring Voltage and Current<\/a>.<\/p>\n\n\n\n<p>Current (I), voltage (V), and resistance (R) are also related to <strong>electrical power (P)<\/strong> (measured in watts), as follows:<\/p>\n\n\n\n<p><strong>Watts = Volts * Amps<\/strong><\/p>\n\n\n\n<p>or<\/p>\n\n\n\n<p><strong>P = V * I<\/strong><\/p>\n\n\n\n<p>Electrical current flows from places of higher potential energy to places of lower potential energy (i.e. from positive to negative), as shown in Figure 9. In order for current to flow, there has to be a circuit, and there has to be a load to convert the electrical energy into some other form of energy.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/currentflow1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"193\" height=\"257\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/currentflow1.png\" alt=\"Simple circuit showing the direction of current flowing from the + V terminal to ground\" class=\"wp-image-536\"\/><\/a><figcaption>Figure 9. Simple circuit showing the direction of current flowing from the + V terminal to ground<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>Ground<\/strong> is the place in a circuit with where the potential energy of the electrons is zero. Sometimes this point is connected to the actual ground, either through a grounded electrical circuit, water pipe, or some other method. Basically, any conductor that goes to the earth will do.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Electrical_Energy_Flow_in_a_Circuit\"><\/span>Electrical Energy Flow in a Circuit<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>When you start to add multiple components to a circuit, following the electrical energy can get a bit more complex. &nbsp;Following are some principles that explain how energy flows in a circuit.<\/p>\n\n\n\n<p>Electrical components can be arranged in a circuit so that the energy flows through one to the other, or they can be arranged so that the energy is split, flowing through both at the same time. When the energy flows from one to the other, the components are <strong>in<\/strong> <strong>series<\/strong> (Figure 10). When it flows through them at the same time, they are <strong>in parallel <\/strong>(Figure 11).<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/components_in_series_bb.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"292\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/components_in_series_bb-300x292.png\" alt=\"Two lightbulbs in series\" class=\"wp-image-2656\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/components_in_series_bb-300x292.png 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/components_in_series_bb.png 332w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption>Figure 10. Two lightbulbs in series<\/figcaption><\/figure><\/div>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/components_in_parallel_bb.png\"><img loading=\"lazy\" decoding=\"async\" width=\"246\" height=\"300\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/components_in_parallel_bb-246x300.png\" alt=\"Two lightbulbs wired in parallel\" class=\"wp-image-2655\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/components_in_parallel_bb-246x300.png 246w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/components_in_parallel_bb.png 278w\" sizes=\"(max-width: 246px) 85vw, 246px\" \/><\/a><figcaption>Figure 11. Two lightbulbs wired in parallel<\/figcaption><\/figure><\/div>\n\n\n\n<p>There are a few rules that explain how electrical energy moves through these circuits:<\/p>\n\n\n\n<p><strong>Current tends to follow&nbsp;the path of least resistance to the ground.<\/strong> So if it has a choice of two paths in a circuit, and one has less resistance, that&#8217;s the path it&#8217;ll take. Looking at the parallel circuit above, if one light bulb offered less resistance, then more of the current wold pass through that bulb.<\/p>\n\n\n\n<p><strong>In any given circuit, the total voltage around the path of the circuit is zero<\/strong>. Each component that offers a resistance lowers the voltage, and by the time you&nbsp;reach the end of the circuit loop, there will be no voltage left. In other words, <em>all energy generated by the electrical power source in a circuit is converted to some other form of energy.&nbsp;<\/em>&nbsp;Looking at the light bulbs in series above, if you were to measure the voltage on between the two contacts of&nbsp;each bulb, it would be less than the voltage between the contacts of&nbsp;the battery, but when you add up the voltages for all the bulbs, the sum&nbsp;would equal the voltage of the battery.<\/p>\n\n\n\n<p>This explains why some components in a circuit get warm when you don&#8217;t expect them to. They are offering resistance to the energy in the circuit, and if they are not efficient at converting that energy into their desired form of energy, they convert it to heat.<\/p>\n\n\n\n<p><strong>The amount of current going into any point in a circuit is the same as the amount coming out of that point.<\/strong><\/p>\n\n\n\n<p>Let&#8217;s look in more detail at how the current and voltage changes when components are in series or in parallel:<\/p>\n\n\n\n<p>When two components are in series, they are placed one after another, as shown in Figure 12:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/resistors_in_series-e1410098079494.png\"><img loading=\"lazy\" decoding=\"async\" width=\"269\" height=\"177\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/resistors_in_series-e1410098079494.png\" alt=\"Two resistors wired in series with a junction in between the resistors\" class=\"wp-image-2662\"\/><\/a><figcaption>Figure 12. Two resistors wired in series.<\/figcaption><\/figure><\/div>\n\n\n\n<p>When resistors are in <strong>series<\/strong>, the voltage drops across each resistor, and the total resistance is equal to the sum of all the resistors:<\/p>\n\n\n\n<p>Resistors in series:<\/p>\n\n\n\n<p><strong>R<sub>total<\/sub> = R<sub>1<\/sub> + R<sub>2<\/sub> + R<sub>3<\/sub>&#8230;<\/strong><\/p>\n\n\n\n<p>In the above circuit, the current through both&nbsp;of the resistors is the same and the voltage drops across each resistor, and the total of all the voltage drops equals the voltage across the battery. The voltage between&nbsp;the junction point and the negative terminal of the battery (which is the ground of this circuit) &nbsp;is dependent on the ratio of the two resistors in series. If the resistors are equal in resistance value, then the voltage at the junction point is exactly half that of the battery&#8217;s total voltage.<\/p>\n\n\n\n<p>When two components are in <strong>parallel<\/strong>, they are placed beside each other, as shown in Figure 13:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/resistors_in_parallel-e1410098143792.png\"><img loading=\"lazy\" decoding=\"async\" width=\"253\" height=\"151\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/resistors_in_parallel-e1410098143792.png\" alt=\"Two resistors wired in parallel\" class=\"wp-image-2663\"\/><\/a><figcaption>Figure 13. Two resistors wired in parallel<\/figcaption><\/figure><\/div>\n\n\n\n<p>For resistors in parallel, the voltage across them is equal, but the current is divided between them. The divided current across the parallel resistors is equal to the total current. So I<sub>1<\/sub> + I<sub>2<\/sub> = I<sub>total<\/sub>. That means that<\/p>\n\n\n\n<p><strong>1\/R<sub>total<\/sub> = 1\/R<sub>1<\/sub> + 1\/R<sub>2<\/sub> + 1\/R<sub>3<\/sub>&#8230;<\/strong><\/p>\n\n\n\n<p>If the resistors are equal in resistance value, then the current flowing through each of them is half that of the total current.<\/p>\n\n\n\n<p>Though it&#8217;s sometimes useful to think about the mathematical relationships of parallel and series circuits, it&#8217;s often more useful to think about them in terms of practical effects: <strong>resistors divide voltage when in series, and divide amperage when in parallel<\/strong>.<\/p>\n\n\n\n<p>When you&#8217;re ready to begin building circuits, read the <a rel=\"noreferrer noopener\" href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/breadboard\/\" target=\"_blank\">Breadboard Setup Lab<\/a> for a quick introduction to how to use a solderless breadboard. The <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/components\/\">Components Lab<\/a> introduces many of the components you will use and the  <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/electronics\/\">Electronics  lab<\/a> introduces you to how to measure electrical properties. You should also read the  the <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/switches\/\">switches lab<\/a>, and watch this video about\u00a0<a rel=\"noreferrer noopener\" href=\"https:\/\/vimeo.com\/380347358\" target=\"_blank\">connections in schematics<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Adapted from Understanding ElectricityIn order to understand how electronic circuits work, and how to use them to build physical interfaces to digital systems using microcontrollers, there are some basic terms, relationships, and components that you need to know about. What follows is a brief introduction to those terms. You won&#8217;t need to know anything &hellip; <a href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/electronics\/electricity-the-basics\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Electricity: the Basics&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":2008,"menu_order":2,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[21,5,52,19,28],"tags":[6],"class_list":["post-89","page","type-page","status-publish","hentry","category-components","category-electronics","category-lesson","category-switches","category-transistor","tag-electricity"],"_links":{"self":[{"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/89"}],"collection":[{"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/comments?post=89"}],"version-history":[{"count":61,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/89\/revisions"}],"predecessor-version":[{"id":9699,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/89\/revisions\/9699"}],"up":[{"embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/2008"}],"wp:attachment":[{"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/media?parent=89"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/categories?post=89"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/tags?post=89"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}