{"id":289,"date":"2014-07-01T18:57:22","date_gmt":"2014-07-01T22:57:22","guid":{"rendered":"https:\/\/itp.nyu.edu\/physicalcomputing\/?page_id=289"},"modified":"2024-08-12T11:58:16","modified_gmt":"2024-08-12T15:58:16","slug":"using-a-transistor-to-control-a-high-current-load","status":"publish","type":"page","link":"https:\/\/itp.nyu.edu\/physcomp\/labs\/motors-and-transistors\/using-a-transistor-to-control-a-high-current-load\/","title":{"rendered":"Lab:  Using a Transistor to Control a High Current Load"},"content":{"rendered":"\n<h2 class=\"wp-block-heading vspace\"><span class=\"ez-toc-section\" id=\"Introduction\"><\/span>Introduction<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Transistors are often used as electronic switches, to control loads which require high voltage and current from a lower voltage and current. The most common example you&#8217;ll see of this in a physical computing class is <a rel=\"noopener noreferrer\" href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/using-a-transistor-to-control-high-current-loads-with-an-arduino\/\" target=\"_blank\">to use an output pin of a microcontroller to turn on a motor or other high current device<\/a>. The output pins of a microcontroller can only produce a small amount of current and voltage. But when coupled with a transistor, they can control much more.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"What_Youll_Need_To_Know\"><\/span>What You&#8217;ll Need To Know<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You should have read the <a title=\"Transistors, Relays, and Controlling High-Current Loads\" rel=\"noopener noreferrer\" href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/electronics\/transistors-relays-and-controlling-high-current-loads\/\" target=\"_blank\">notes on high current loads<\/a> before doing this lab. In order to get the most out of this lab, you should know the <a href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/electronics\/\" target=\"_blank\" rel=\"noreferrer noopener\">basics of electronics<\/a>, as well as <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/breadboard\/\" target=\"_blank\" rel=\"noreferrer noopener\">how to use a solderless breadboard<\/a>. It would help to do some reading on <a href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/dc-motors__trashed\/dc-motors-the-basics\/\" target=\"_blank\" rel=\"noreferrer noopener\">DC motors as well<\/a>.<\/p>\n\n\n\n<p>Microcontrollers aren&#8217;t the only integrated circuits that produce a low voltage and current on their output pins. There are many components that do this. You&#8217;ll see a whole range of so-called <strong>logic ICs<\/strong> that can&#8217;t produce very much current or voltage, but can produce a small change on their output pins that can be read as a data or control signal. The output voltage from devices is often referred to as a <strong>logic<\/strong> or a <strong>control voltage<\/strong>, as opposed to the <strong>supply<\/strong> or <strong>load voltage<\/strong> needed to control the high-current device. You can use transistors from circuits like these. For example, you might put a transistor on the output pin of a <a rel=\"noopener noreferrer\" href=\"http:\/\/en.wikipedia.org\/wiki\/555_timer_IC\" target=\"_blank\">555 timer IC<\/a> (which produces a variable timing pulse), or a <a rel=\"noopener noreferrer\" href=\"http:\/\/en.wikipedia.org\/wiki\/Shift_register\" target=\"_blank\">shift register IC<\/a> (which allows you to produce multiple control signals in parallel) to control high current loads from those devices.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Things_Youll_Need\"><\/span>Things You&#8217;ll Need<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Figures 1-12 are the parts you\u2019ll need for this exercise.<\/p>\n\n\n\n<figure class=\"wp-block-gallery has-nested-images columns-4 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex\">\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/breadboard_short-e1532116106284.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"427\" height=\"640\" data-id=\"788\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/breadboard_short-e1532116106284.jpg\" alt=\"A photo of a short solderless breadboard with two rows of holes along each side. There are no components mounted on the board. The board is oriented sideways so that the long rows of holes are on the top and bottom of the image.\" class=\"wp-image-788\"\/><\/a><figcaption class=\"wp-element-caption\">Figure 1. A short solderless breadboard.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/hookup_wire2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"900\" height=\"633\" data-id=\"1203\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/hookup_wire2.jpg\" alt=\"Photo of Three 22AWG solid core hookup wires. Each is about 6cm long. The top one is black; the middle one is red; the bottom one is blue. All three have stripped ends, approximately 4 to 5mm on each end.\" class=\"wp-image-1203\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/hookup_wire2.jpg 900w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/hookup_wire2-300x211.jpg 300w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption class=\"wp-element-caption\"><meta charset=\"utf-8\"><\/meta>Figure 2. 22AWG solid core hookup wires. <\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/v_reg_7805.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"242\" height=\"300\" data-id=\"784\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/v_reg_7805.jpg\" alt=\"5-volt regulator, model 7805. This component has three legs and a tab at the top with a hole in it. If you hold the component with the tab at the top and the bulging side of the component facing you, the legs will be arranged, from left to right, voltage input, ground, and voltage output.\" class=\"wp-image-784\"\/><\/a><figcaption class=\"wp-element-caption\"><meta charset=\"utf-8\"><\/meta>Figure 3. 5-volt voltage regulator, model 7805<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-1k-resistor.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2212\" height=\"1659\" data-id=\"5914\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-1k-resistor.jpg\" alt=\"Photo of a handful of 1-kilohm resistors.\" class=\"wp-image-5914\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-1k-resistor.jpg 2212w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-1k-resistor-768x576.jpg 768w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-1k-resistor-1280x960.jpg 1280w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption class=\"wp-element-caption\"> <meta charset=\"utf-8\"><\/meta>Figure 4. Resistors. You&#8217;ll need 1-kilohm and 10-kilohm for this<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/diodes_400x.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"640\" height=\"427\" data-id=\"796\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/diodes_400x.jpg\" alt=\"Diodes. Shown here are 1N400x power diodes.\" class=\"wp-image-796\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/diodes_400x.jpg 640w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/diodes_400x-300x200.jpg 300w\" sizes=\"(max-width: 640px) 85vw, 640px\" \/><\/a><figcaption class=\"wp-element-caption\"><meta charset=\"utf-8\"><\/meta>Figure 5. Diodes. Shown here are 1N400x power diodes.<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-dc-motor.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"4640\" height=\"3480\" data-id=\"5923\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-dc-motor.jpg\" alt=\"Photo of a DC Gearmotor\" class=\"wp-image-5923\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-dc-motor.jpg 4640w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-dc-motor-768x576.jpg 768w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-dc-motor-1280x960.jpg 1280w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption class=\"wp-element-caption\"><meta charset=\"utf-8\"><\/meta>Figure 6. DC motor<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/tip120_transistor.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"399\" height=\"421\" data-id=\"304\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/tip120_transistor.jpg\" alt=\"TIP120 Transistor. The body of the component is black, and it has a silver tab on top with a hole. It has three legs. When you're holding the component facing you (with the bulging part forward), the legs are, from left to right: base, collector, emitter.\" class=\"wp-image-304\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/tip120_transistor.jpg 399w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/tip120_transistor-284x300.jpg 284w\" sizes=\"(max-width: 399px) 85vw, 399px\" \/><\/a><figcaption class=\"wp-element-caption\"><meta charset=\"utf-8\"><\/meta>Figure 7. TIP120 Transistor. You can also use a MOSFET, see below<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-pushbuttons.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2194\" height=\"1646\" data-id=\"5918\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-pushbuttons.jpg\" alt=\"Photo of four breadboard-mounted pushbuttons\" class=\"wp-image-5918\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-pushbuttons.jpg 2194w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-pushbuttons-768x576.jpg 768w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-pushbuttons-1280x960.jpg 1280w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption class=\"wp-element-caption\"><meta charset=\"utf-8\"><\/meta>Figure 8. Pushbuttons<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-potentiometer.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2882\" height=\"2162\" data-id=\"5924\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-potentiometer.jpg\" alt=\"Photo of two potentiometers\" class=\"wp-image-5924\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-potentiometer.jpg 2882w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-potentiometer-768x576.jpg 768w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-potentiometer-1280x960.jpg 1280w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption class=\"wp-element-caption\"><meta charset=\"utf-8\"><\/meta>Figure 9. Potentiometer<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-force-sensing-resistor.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"2032\" height=\"1524\" data-id=\"5920\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-force-sensing-resistor.jpg\" alt=\"Photo of a Force Sensing Resistor (FSR)\" class=\"wp-image-5920\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-force-sensing-resistor.jpg 2032w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-force-sensing-resistor-768x576.jpg 768w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/pcomp-kit-f2019-force-sensing-resistor-1280x960.jpg 1280w\" sizes=\"(max-width: 709px) 85vw, (max-width: 909px) 67vw, (max-width: 1362px) 62vw, 840px\" \/><\/a><figcaption class=\"wp-element-caption\"><meta charset=\"utf-8\"><\/meta>Figure 10. Force Sensing Resistor (FSR) or other variable resistor<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/dc_power_supply.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"601\" data-id=\"300\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/dc_power_supply.jpg\" alt=\"DC Power Supply. Shown here is a +12 Volt 1 Amp Center Positive DC power supply with a 2.1mm male jack. This size fits the Arduino Uno's female jack.\" class=\"wp-image-300\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/dc_power_supply.jpg 400w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/dc_power_supply-199x300.jpg 199w\" sizes=\"(max-width: 400px) 85vw, 400px\" \/><\/a><figcaption class=\"wp-element-caption\"><meta charset=\"utf-8\"><\/meta>Figure 11. DC Power Supply<\/figcaption><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/lamp_holder.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"400\" height=\"265\" data-id=\"321\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/lamp_holder.jpg\" alt=\"Small Incandescent lamp bulb and socket\" class=\"wp-image-321\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/lamp_holder.jpg 400w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/lamp_holder-300x198.jpg 300w\" sizes=\"(max-width: 400px) 85vw, 400px\" \/><\/a><figcaption class=\"wp-element-caption\"><meta charset=\"utf-8\"><\/meta>Figure 12. Small Incandescent lamp bulb or LED bulb and socket<\/figcaption><\/figure>\n<\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Set_Up_the_Breadboard\"><\/span>Set Up the Breadboard<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><a rel=\"noreferrer noopener\" href=\"https:\/\/vimeo.com\/372277977#t=0m48s\" target=\"_blank\">Connect a 7805 5V voltage regulator to your board<\/a>, and <a rel=\"noreferrer noopener\" href=\"https:\/\/vimeo.com\/372277977#t=0m48s\" target=\"_blank\">power it from a 9-12V DC power supply<\/a>. Connect the ground rows on the sides together. Don&#8217;t connect the two red rows on the side of the breadboard to each other, though. Wire the breadboard so that the right side of the board receives the 5V output from the regulator, but the left side gets 9-12V directly from your DC power supply. The 5V line is the <strong>5-volt bus<\/strong> or <strong>logic supply<\/strong> and the 9-12V line is the <strong>high-voltage bus<\/strong> or <strong>load supply<\/strong>. The two ground lines are <strong>ground<\/strong>. Figure 13 shows the schematic drawing and Figure 14 shows the breadboard view of the circuit explained here.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_power_schem.png\"><img loading=\"lazy\" decoding=\"async\" width=\"244\" height=\"205\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_power_schem.png\" alt=\"Schematic drawing of a DC power jack connected to a 7805 5-volt voltage regulator. At left, there is a power plug. The positive terminal of the power plug is connected to the voltage input of a 7805 voltage regulator (the terminal on the left as it faces you). The negative terminal of the power plug is connected to the ground terminal of the regulator (the terminal in the middle).\" class=\"wp-image-2440\"\/><\/a><figcaption class=\"wp-element-caption\">Figure 14. Schematic drawing of a DC power jack connected to a 7805 5-volt voltage regulator.<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_power_bb.png\"><img loading=\"lazy\" decoding=\"async\" width=\"154\" height=\"300\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_power_bb-154x300.png\" alt=\"At the top of the drawing, there is a DC power jack. Yellow and black wires from the jack connect to a 7805 5-volt voltage regulator mounted in the top right three rows of the breadboard with its tab facing to the right. The power supply's yellow wire is connected to the regulator's top pin row, the input pin. The power supply's black wire is connected to the regulator's middle pin, or ground. A yellow wire connects the regulator's top pin, the input pin, to the outer left side row of the board. This is an unregulated voltage bus on the left side. It will be used to control the motor. A red wire connects the regulator's output pin, the bottom pin, to the inner right side bus. This will be the regulated voltage bus. Another black wire connects the regulator's middle pin, ground, to the inner right side row of the board. This is the ground bus on the left side. Similarly, a black wire connects the left side ground bus to the outer row on the right side. This is the right side ground bus. There is no connection between the unregulated voltage bus on the left and the regulated voltage bus on the right, however. \" class=\"wp-image-2441\"\/><\/a><figcaption class=\"wp-element-caption\">Figure 14. DC voltage jack and 7805 voltage regulator on a breadboard. The regulator is supplying 5V and ground holes are supplying voltage to the rest of breadboard.<\/figcaption><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Add_a_Motor_and_Transistor\"><\/span>Add a Motor and Transistor<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The transistor allows you to control a circuit that&#8217;s carrying higher current and voltage from the a lower voltage and current. It acts as an electronic switch. The one you&#8217;re using for this lab is an NPN-type transistor called a TIP120. <a href=\"http:\/\/www.onsemi.com\/pub_link\/Collateral\/TIP120-D.PDF\">The datasheet for it can be found here<\/a>. It&#8217;s designed for switching high-current loads. It has three connections, the <strong>base<\/strong>, the <strong>collector<\/strong>, and the <strong>emitter<\/strong> as shown in Figure 15 and Figure 16. Attach high-current load (i.e. the motor or light) to its power source, and then to the collector of the transistor. Then connect the emitter of the transistor to ground. Then to control the motor, you apply voltage to the transistor&#8217;s base. When there&#8217;s at least a 0.7V difference between the base and the emitter, the transistor will &#8220;turn on&#8221; &#8212; in other words, it&#8217;ll allow voltage and current to flow from the collector to the emitter. When there&#8217;s no voltage difference between the base and the emitter, the transistor turns off, or stops the flow of electricity from collector to emitter.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/npntransistor.gif\"><img loading=\"lazy\" decoding=\"async\" width=\"82\" height=\"96\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/npntransistor.gif\" alt=\"The schematic symbol of an NPN transistor where B is the base, C is the collector, and E is the emitter.\" class=\"wp-image-401\"\/><\/a><figcaption class=\"wp-element-caption\">Figure 15. The schematic symbol of an NPN transistor. B is the base, C is the collector, and E is the emitter.<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/tip120_pinout1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"234\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/tip120_pinout1-300x234.png\" alt=\"Pinout drawing of a TIP-120 transistor. It is facing forward with the heat sink tab at the top and the bulging side of the component facing you. From left to right the legs are labelled 1. base, 2. collector, 3. emitter.\" class=\"wp-image-1474\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/tip120_pinout1-300x234.png 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/tip120_pinout1.png 331w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 16. Pinout drawing of a TIP-120 transistor. From left to right the legs are labelled 1. base, 2. collector, 3. emitter.<\/figcaption><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Using_a_MOSFET_instead_of_a_TIP120\"><\/span>Using a MOSFET instead of a TIP120<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/IRF520.png\"><img loading=\"lazy\" decoding=\"async\" width=\"770\" height=\"284\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/FQP_MOSFET.png\" alt=\"Figure 17. FQP30N06L MOSFET transistor pin diagram and schematic symbol\" class=\"wp-image-8145\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/FQP_MOSFET.png 770w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/FQP_MOSFET-768x283.png 768w\" sizes=\"(max-width: 770px) 85vw, 770px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 17. FQP30N06L MOSFET transistor pin diagram and schematic symbol<\/figcaption><\/figure><\/div>\n\n\n<p>You can also use an N-channel <a rel=\"noreferrer noopener\" href=\"https:\/\/vimeo.com\/380347302#t=0m53s\" target=\"_blank\">MOSFET transistor<\/a> for this. The diagram and schematic symbols are shown above in Figure 17. The <a href=\"https:\/\/datasheet.octopart.com\/IRF520NPBF-Infineon-datasheet-7612918.pdf\">IRF520<\/a> and the <a href=\"https:\/\/datasheet.octopart.com\/FQP30N06L-Fairchild-datasheet-82531.pdf\">FQP30N06L<\/a> MOSFETs are similar in function, and  have the same pin configuration as the TIP120, and perform similarly. They can handle more amperage and voltage, but are more sensitive to static electricity damage.<\/p>\n\n\n\n<p>Connect a 1-kilohm resistor from the transistor&#8217;s base to another row of the breadboard. This resistor will limit the current to the base.<\/p>\n\n\n\n<p>You also need to add a diode in parallel with the collector and emitter of the transistor, pointing away from ground as shown in Figure 18 and Figure 19. The diode to protects the transistor from back voltage generated when the motor shuts off, or if the motor is turned in the reverse direction. This is called a <strong>snubber diode<\/strong>, or <strong>protection diode. <\/strong><a rel=\"noopener noreferrer\" href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/electronics\/transistors-relays-and-controlling-high-current-loads\/#Transistors\" target=\"_blank\">Related topics: Transistors, Relays, and Controlling High-Current Loads<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_schem.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"127\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_schem-300x127.png\" alt=\"Schematic drawing of a transistor controlling a DC motor. At left, there is a power plug. The positive terminal of the power plug is connected to the voltage input of a 7805 voltage regulator (the terminal on the left as it faces you). The negative terminal of the power plug is connected to the ground terminal of the regulator (the terminal in the middle). A 1 kilohm resistor is connected to the regulator's output. The other side of the resistor is connected to the base pin of a TIP120 transistor. A DC motor connects to the voltage line between the DC plug and the voltage regulator. The motor's other pin is connected to the transistor's collector pin. The transistor's emitter pin is connected to ground. A diode's cathode is connected to the emitter as well, and its anode is connected to the transistor's collector. \" class=\"wp-image-2436\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_schem-300x127.png 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_schem.png 577w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 18. Schematic drawing of a transistor controlling a DC motor.<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_bb1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"228\" height=\"300\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_bb1-228x300.png\" alt=\"Breadboard view of a transistor controlling a DC motor. THe breadboard is set up for power input as described above, with a DC power jack and a 7805 regulator. The left side voltage bus is unregulated, and takes its power directly from the DC power jack. The right side voltage bus takes its power from the regulator. A TIP120 transistor is connected to rows 16 to 18 in the right center section of the board. Its base is in pin 16, collector in pin 17, and emitter in pin 18. A black wire connects row 18 to the ground bus on the right. A DC motor is connected to the unregulated voltage bus on the left via a yellow wire. A green wire from the motor's other terminal connects to the transistor's collector, in row 17 in the right center section. A 1N400x diode's cathode is connected to row 18 with the emitter, and the diode's anode is connected to row 17, with the collector. A 1 kilohm resistor is connected to row 16. Its other end connects to row 12, and from there, a red wire connects to the regulated voltage bus on the right side of the board. \" class=\"wp-image-2431\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_bb1-228x300.png 228w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoad_bb1.png 440w\" sizes=\"(max-width: 228px) 85vw, 228px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 19. Breadboard view of a transistor controlling a DC motor.<\/figcaption><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>Be sure to add the diode to your circuit correctly. The silver band on the diode denotes the cathode which is the tip of the arrow in the schematic, as shown in Figure 20:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/diode1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"117\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/diode1-300x117.png\" alt=\"Schematic representation and physical representation of a diode. The schematic form shows an equilateral triangle with a line bisecting the triangle equally from one point to and through the middle of the opposing flat side. There is also a line perpendicular to the other line that also intersects the triangle at its bisected point. The cathode is represented by the side of the schematic with the line. The drawing of the physical form of the diode looks like a black resistor with only a single grey stripe on one side. The side with the stripe represents the cathode\" class=\"wp-image-453\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/diode1-300x117.png 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/diode1.png 459w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 20. Schematic representation and physical representation of a diode.<\/figcaption><\/figure><\/div>\n\n\n<p>This circuit assumes you&#8217;re using a 12V motor. If your motor requires a different voltage, make sure to use a power supply that&#8217;s appropriate. The TIP120 transistor can handle up to 30V across the collector and emitter, so make sure you&#8217;re not exceeding that. Connect the ground of the motor&#8217;s supply to the ground of your microcontroller circuit, though, or the circuit won&#8217;t work properly.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Add_a_Switch_to_Control_the_Transistor\"><\/span>Add a Switch to Control the Transistor<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To turn on the transistor, you need a voltage difference between the base and the emitter of at least 0.7V. Since the emitter is attached to ground, that means any voltage over 0.7V applied to the base will turn the transistor on.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Connect a wire from the 5-volt bus of the board (also called the regulated voltage bus) to the other end of the 1 kilohm resistor as shown above and you should see the motor turn on.<\/li>\n<\/ul>\n\n\n\n<p>Of course, it&#8217;s inconvenient to connect and disconnect a wire like this, so use a switch instead.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Remove the red wire connecting the resistor to 5 volts and connect one side of a pushbutton or switch to the 5-volt bus, and the other side to the 1K resistor. Figure 21 shows the schematic drawing and Figure 22 shows the breadboard view of the circuit.<\/li>\n<\/ul>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadSwitch_schem1.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"127\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadSwitch_schem1-300x127.png\" alt=\"Schematic drawing of a transistor controlling a DC motor with a pushbutton. The drawing is the same as the previous schematic, but there is a switch or pushbutton symbol added between the resistor and the regulator. \" class=\"wp-image-2433\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadSwitch_schem1-300x127.png 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadSwitch_schem1.png 577w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 21. Schematic drawing of a transistor controlling a DC motor, with a pushbutton to turn it on and off.<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadSwitch_bb.png\"><img loading=\"lazy\" decoding=\"async\" width=\"230\" height=\"300\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadSwitch_bb-230x300.png\" alt=\"Breadboard drawing of a transistor controlling a DC motor with a pushbutton. The drawing is similar to the previous breadboard drawing, but a pushbutton has been added straddling the center divide in rows 12 and 10. The red wire that was in row 12 in the previous drawing has been moved to row 10.\" class=\"wp-image-2437\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadSwitch_bb-230x300.png 230w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadSwitch_bb.png 443w\" sizes=\"(max-width: 230px) 85vw, 230px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 22. Breadboard drawing of a transistor controlling a DC motor with a pushbutton.<\/figcaption><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Change_the_Switch_for_a_Potentiometer\"><\/span>Change the Switch for a Potentiometer<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>The voltage on the base of the transistor doesn&#8217;t have to be controlled by a switch. You can use a potentiometer, connected as a voltage divider, to produce a changing control voltage for the transistor&#8217;s base. Figure 23 shows the schematic drawing and Figure 24 shows the breadboard view of the circuit.&nbsp;<a rel=\"noopener noreferrer\" href=\"https:\/\/vimeo.com\/372104092#t=3m47s\" target=\"_blank\">Related video:&nbsp;Connecting the potentiometer<\/a><\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadPotentiometer_schem.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"127\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadPotentiometer_schem-300x127.png\" alt=\"Schematic drawing of a transistor controlling a DC motor with a potentiometer. The drawing is similar to the previous schematic, but the pushbutton has been replaced with a potentiometer. The potentiometer's ends are connected to the regulator's output pin and ground, respectively. The wiper is connected to the resistor. \" class=\"wp-image-2435\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadPotentiometer_schem-300x127.png 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadPotentiometer_schem.png 577w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 23. Schematic drawing of a transistor controlling a DC motor, with a potentiometer to change the speed.<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadPotentiometer_bb.png\"><img loading=\"lazy\" decoding=\"async\" width=\"230\" height=\"300\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadPotentiometer_bb-230x300.png\" alt=\"Breadboard drawing of a transistor controlling a DC motor with a pushbutton. The drawing is similar to the previous breadboard drawing, but the pushbutton has been removed and a potentiometer is now in rows 7 through 9 in the right center section of the board. Row 7 is also connected to the right side regulated voltage bus through a red wire, and row 9 is connected to the right side ground bus through a black wire. Row 8 is connected to row 12 where it connects to the resistor. \" class=\"wp-image-2438\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadPotentiometer_bb-230x300.png 230w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadPotentiometer_bb.png 443w\" sizes=\"(max-width: 230px) 85vw, 230px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 24. Breadboard drawing of a transistor controlling a DC motor with a potentiometer.<\/figcaption><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>When you turn the potentiometer, you&#8217;re producing a varying voltage on the wiper pin. That means you&#8217;re changing the voltage on the base of the transistor. Yet the motor doesn&#8217;t change its speed. It only turns on or off.&nbsp;When the voltage on the potentiometer&#8217;s wiper pin reaches 0.6V, the transistor will turn on. When it&#8217;s below 0.6V, the transistor will turn off. The transistor is acting like a switch, not a variable supply. If you want to vary the motor&#8217;s speed using a transistor, you need to turn the transistor on and off very fast, and change the ratio of on time to off time. This is called pulse width modulation. You&#8217;ll learn more about it in these notes on analog output from a microcontroller and see it in action in the analog lab.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Change_the_Potentiometer_for_a_Voltage_Divider\"><\/span>Change the Potentiometer for a Voltage Divider<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>If you&#8217;ve understood everything so far and managed to get it to work, here&#8217;s where it gets really fun. Imaging you have a variable resistor and you want the motor to turn on when the variable resistor passes a particular threshold. For example, maybe you want to turn on the motor when a temperature changes on a  thermistor (temperature sensitive resistor), or when a weight is placed on a force-sensing resistor. To make this happen, change your control circuit to include a variable resistor as shown in Figure 25 and Figure 26.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"576\" height=\"273\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadVDivider_schem-1.png\" alt=\"\" class=\"wp-image-10795\"\/><figcaption class=\"wp-element-caption\">Figure 25. Schematic drawing of a transistor controlling a DC motor, with a potentiometer to change the speed.<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"440\" height=\"576\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadVDivider_bb-1.png\" alt=\"\" class=\"wp-image-10796\"\/><figcaption class=\"wp-element-caption\">Figure 26. Breadboard drawing of a transistor controlling a DC motor with a voltage divider.<\/figcaption><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Using_a_Voltage_Divider_to_Control_a_Transistor\"><\/span>Using a Voltage Divider to Control a Transistor<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p><em>Extra credit:<\/em> See if you can work out the correct resistor value for the fixed resistor of the voltage divider that will produce just the right voltage to turn the motor on when you turn on your room&#8217;s lights, and off when you turn them off.<\/p>\n\n\n\n<p><em>Whoa, that blew my mind. How do I do that?<\/em><\/p>\n\n\n\n<p>You know you need 0.7V to turn the transistor on, and less than that to turn it off. You know how to measure the resistance of a variable resistor. So find the resistance of your variable resistor with the lights on and with the lights off, and calculate what fixed resistor will give you 0.6V. The input to your voltage divider here is 5V. That means you want 4.3 volts across the variable resistor. You know that the output voltage is proportional to the ratio of the two resistors. And you know that the current running between them is the same, because they are in series. So:<br><code>Voltage = current * resistance 4.3V = current * photocell resistance<\/code><br>therefore,<br><code>current = 4.3V \/ variable resistor resistance<\/code><br>Then apply this to the fixed resistor:<br><code>0.7V = current * fixed resistor resistance<\/code><br>therefore,<br><code>fixed resistor resistance = current \/ 0.7V<\/code><br>or:<br><code>fixed resistor resistance = (4.3V \/ variable resistor resistance) \/ 0.7V<\/code><\/p>\n\n\n\n<p><meta charset=\"utf-8\">If you&#8217;re using a force sensing resistor as your variable resistor (an Interlink model 402 is shown here), you&#8217;ll probably find that they&#8217;re very sensitive. They tend to be greater than 10 megohms resistance when no force is on them and near zero when pressed.  See the graph on <a href=\"https:\/\/cdn2.hubspot.net\/hubfs\/3899023\/Interlinkelectronics%20November2017\/Docs\/Datasheet_FSR.pdf\">page 3 of the datasheet <\/a>for the voltage output for various fixed resistor values.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Connect_a_lamp_instead\"><\/span>Connect a lamp instead<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>You could also control a lamp using a transistor. Figure 27 shows the schematic drawing and Figure 28 shows the breadboard view of the circuit. Like the motor, the lamp circuit below assumes a 12V lamp. Change your power supply accordingly if you&#8217;re using a different lamp. In the lamp circuit, the protection diode is not needed, since there&#8217;s no way for the polarity to get reversed in this circuit:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadLamp_schem.png\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"127\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadLamp_schem-300x127.png\" alt=\"Schematic drawing of a transistor controlling an incandescent lamp with a pushbutton. The drawing is similar to the schematic with the pushbutton above, but the motor has been replaced with an incandescent lamp and the diode has been removed.\" class=\"wp-image-2444\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadLamp_schem-300x127.png 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadLamp_schem.png 572w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 27. Schematic drawing of a transistor controlling an incandescent lamp with a pushbutton.<\/figcaption><\/figure><\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadLamp_bb.png\"><img loading=\"lazy\" decoding=\"async\" width=\"227\" height=\"300\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadLamp_bb-227x300.png\" alt=\"Breadboard drawing of a transistor controlling an incandescent lamp with a pushbutton. The drawing is similar to the breadboard drawing with the pushbutton above, but the motor has been replaced with an incandescent lamp and the diode has been removed.\" class=\"wp-image-2443\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadLamp_bb-227x300.png 227w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/LabHighCurrentLoadLamp_bb.png 438w\" sizes=\"(max-width: 227px) 85vw, 227px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 28. Breadboard drawing of a transistor controlling an incandescent lamp with a pushbutton.<\/figcaption><\/figure><\/div>\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span>Conclusion<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>A motor controlled like this can only be turned in one direction. To be able to reverse the direction of the motor, an H-bridge circuit is required. For more on controlling DC motors with H-bridges, <a rel=\"noopener noreferrer\" href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/dc-motor-control-using-an-h-bridge\/\" target=\"_blank\">see the DC Motor Control lab<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this tutorial, you&#8217;ll learn how to control a high-current load with a transistor.<\/p>\n","protected":false},"author":17,"featured_media":0,"parent":1510,"menu_order":601,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[15,8,28],"tags":[],"class_list":["post-289","page","type-page","status-publish","hentry","category-lab","category-motors","category-transistor"],"_links":{"self":[{"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/289"}],"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\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":83,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/289\/revisions"}],"predecessor-version":[{"id":11769,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/289\/revisions\/11769"}],"up":[{"embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/1510"}],"wp:attachment":[{"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}