{"id":1602,"date":"2014-08-22T10:37:02","date_gmt":"2014-08-22T14:37:02","guid":{"rendered":"https:\/\/itp.nyu.edu\/physicalcomputing\/?page_id=1602"},"modified":"2025-09-12T07:28:00","modified_gmt":"2025-09-12T11:28:00","slug":"understanding-dc-power-supplies","status":"publish","type":"page","link":"https:\/\/itp.nyu.edu\/physcomp\/lessons\/electronics\/understanding-dc-power-supplies\/","title":{"rendered":"Understanding DC Power Supplies"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Overview\"><\/span>Overview<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Power supply is a reference to the source of electrical power. Most electronic circuits require a DC power supply. Chances are you have one at home already, and can use it for physical computing projects. <\/p>\n\n\n\n<p>The most common operating voltages for microcontrollers and digital processors are 5V and 3.3V. You can find power supplies in many voltages, but 5V and 12V are common. To convert 12V to 5V or 3.3V, you&#8217;d need a voltage regulator. The <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/breadboard\/\">Breadboard Lab<\/a> covers how to set that up.<\/p>\n\n\n\n<p>There are many different kinds of DC power supplies but this one shown in Figure 1 is most commonly used at ITP:<\/p>\n\n\n\n<p class=\"vspace\">&#8211; Click on any image for a larger view<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/power_supply_01.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"289\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/power_supply_01-300x289.jpg\" alt=\"Photo of a DC power supply. A rectangular block approximately 2 inches by 3 inches with plugs to plug into the wall. A wire extends from the plug to connect with your circuit.\" class=\"wp-image-1608\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/power_supply_01-300x289.jpg 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/power_supply_01.jpg 560w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 1. DC Power Supply<\/figcaption><\/figure>\n\n\n\n<p><span class=\"frame lfloat\">&nbsp;<\/span><\/p>\n\n\n\n<p class=\"vspace\"><strong><a rel=\"noopener noreferrer\" href=\"http:\/\/www.jameco.com\/webapp\/wcs\/stores\/servlet\/ProductDisplay?search_type=jamecoall&amp;catalogId=10001&amp;freeText=170245&amp;langId=-1&amp;productId=170245&amp;storeId=10001&amp;ddkey=http:StoreCatalogDrillDownView\" target=\"_blank\">Jameco 12V Regulated Switching Power Supply<\/a><br>Part# 170245 (12V, 1000mA)<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/power_supply_02.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"210\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/power_supply_02-300x210.jpg\" alt=\"DC power supply rating label. Output is 12 VDC 1000 mA. Center Positive.\" class=\"wp-image-1607\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/power_supply_02-300x210.jpg 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/power_supply_02.jpg 800w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 2. DC supply rating label. This is the back of the supply in Figure 1. <\/figcaption><\/figure>\n\n\n\n<p class=\"vspace\">Most power supplies have a rating label that looks something like the one in Figure 2. Make sure you know the polarity of the plug so you don&#8217;t reverse polarity for your circuit and damage your components. The diagram in Figure 3 and Figure 4 showing positive tip polarity is on the left and negative tip polarity is on the right. The center positive drawing on the left indicates that the center (tip) of the output plug is positive (+) and the barrel of the output plug is negative (-).<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/power_supply_polarity_011.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"77\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/power_supply_polarity_011.jpg\" alt=\"Symbol for a center-positive power supply.\" class=\"wp-image-2617\"\/><\/a><figcaption class=\"wp-element-caption\">Figure 3. Symbol for a center-positive power supply.<\/figcaption><\/figure>\n\n\n\n<p>,<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone size-full wp-image-2618\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"77\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/power_supply_polarity_021.jpg\" alt=\"Symbol for a center-positive power supply.\" class=\"wp-image-2618\"\/><figcaption class=\"wp-element-caption\">Figure 4. Symbol for a center-negative power supply.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Abbreviations\"><\/span>Abbreviations<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p><strong>V<\/strong>&nbsp;: Volts<br><strong>A<\/strong>&nbsp;: Amperes<br><strong>W<\/strong>&nbsp;: Watts<br><strong>mA<\/strong>&nbsp;: miliAmperes<br><strong>VA<\/strong>&nbsp;: Volt Amperes<br><strong>VAC<\/strong>&nbsp;: Volts AC<br><strong>VDC<\/strong>&nbsp;: Volts DC<br><strong>DC<\/strong>&nbsp;: Direct Current<br><strong>AC<\/strong>&nbsp;: Alternating Current<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Testing_your_power_supply\"><\/span>Testing your power supply<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>It is always good practice to test a power supply before using it for the first time. The example below will show how to test a power supply with positive polarity. If you have a negative polarity power supply, then you will get a negative reading. You should then switch the position of the multimeter probes.<\/p>\n\n\n\n<figure class=\"wp-block-image alignnone\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/check_powersupply.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/check_powersupply-300x225.jpg\" alt=\"Testing a center positive power supply with a multimeter. Red probe goes into the tip Black probe touches the barrel\" class=\"wp-image-1604\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/check_powersupply-300x225.jpg 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/check_powersupply.jpg 1024w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 5. Red probe goes into the tip<br>Black probe touches the barrel<\/figcaption><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Plug your power supply into an AC outlet.<span class=\"frame rfloat\">\u00a0<\/span><\/li>\n\n\n\n<li>Turn on your multimeter and set it to read DC voltage.<\/li>\n\n\n\n<li>Take the red (positive) probe from your multimeter and stick it into the end of the power supply plug <span class=\"frame rfloat\">as shown in Figure 5.<\/span><\/li>\n\n\n\n<li>Take the black (negative) probe from your multimeter and carefully touch it against the barrel of the plug without touching the tip or your red probe. If you make a connection, you will be creating a short circuit.<\/li>\n\n\n\n<li>On your multimeter you should see a reading of the voltage coming from your power supply. If you are checking a 12V power supply and your multimeter shows &#8220;12.56V&#8221; everything is fine and dandy as shown in Figure 6. If you get a reading of &#8220;-12.56V&#8221; then your probes are attached in reverse. If this happens and you are positive you connected your probes correctly, double check the polarity on your power supply&#8217;s label and make sure the circuit you will be powering with this unit is designed to handle this polarity.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image alignnone\"><a href=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/multimeter2.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"225\" src=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/multimeter2-300x225.jpg\" alt=\"Multimeter displaying output DC voltage of 12.56 volts\" class=\"wp-image-1603\" srcset=\"https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/multimeter2-300x225.jpg 300w, https:\/\/itp.nyu.edu\/physcomp\/wp-content\/uploads\/multimeter2.jpg 1024w\" sizes=\"(max-width: 300px) 85vw, 300px\" \/><\/a><figcaption class=\"wp-element-caption\">Figure 6. Multimeter displaying output DC voltage<\/figcaption><\/figure>\n\n\n\n<p class=\"vspace\">If the voltage showing on your multimeter is more than half a volt or a volt off its rating, then you most likely have what is called an\u00a0<strong>unregulated<\/strong>\u00a0power supply. The 12V Jameco power supply we used in this example is a regulated one, so that is why the voltage we received was so close to the voltage it was rated for. Some\u00a012V DC power supplies will actually\u00a0read at 15-16V. <\/p>\n\n\n\n<p class=\"vspace\">Unregulated power supplies run high on voltage when there is no load. When the supply starts to take a load, the current consumed\u00a0will go up, and the voltage will drop.\u00a0 There are (more expensive) constant current supplies and constant voltage supplies, which will adjust their current or voltage when there is a change in the voltage or current, respectively. For more on this,\u00a0<a href=\"https:\/\/components101.com\/articles\/understanding-constant-current-and-constant-voltage-sources\" target=\"_blank\" rel=\"noreferrer noopener\">here&#8217;s a decent explanation<\/a>.\u00a0<\/p>\n\n\n\n<p>This is a reason why we use voltage regulators, and why most microcontroller modules have them built in. They&#8217;re designed to take a range of voltage and output a constant, lower voltage. In a sense, a voltage regulator is a very minimal constant voltage supply.&nbsp;<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Powering_an_Arduino_Project_from_a_Mobile_Phone_Charger\"><\/span>Powering an Arduino Project from a Mobile Phone Charger<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>Many people have old mobile phone chargers around the house, and wonder, &#8220;Can I use this for powering an Arduino project?&#8221; Generally, you can. Just get a  USB cable with the appropriate connectors to connect the phone charger to your Arduino. Most phone chargers output 5V and a few hundred milliamps, which will power an Arduino, some sensors, and some LEDs. If you try to program your Arduino from the phone charger&#8217;s cable, though, you may be out of luck. Many phone chargers come with USB cables that contain only the power connections, not the data connections.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Matching_A_Power_Supply_to_an_Electronics_Device\"><\/span>Matching A Power Supply to an Electronics Device<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p>To determine whether a power supply is right for your project, you need to note the voltages that each component operates at, and the current they consume, and make sure your power supply can  provide the right amount of power.  <\/p>\n\n\n\n<p>Here are a few examples:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Arduino_Pushbuttons_Potentiometers_LEDs_Speaker\"><\/span>Arduino, Pushbuttons, Potentiometers,  LEDs, Speaker<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>Imagine you&#8217;re making a project that includes an Arduino, a few LEDs, some pushbuttons, some potentiometers or other variable resistors, and perhaps a speaker. The <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/labs-arduino-digital-and-analog\/digital-input-and-output-with-an-arduino\/\">Digital In and Out lab<\/a> and the <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/labs-arduino-digital-and-analog\/analog-in-with-an-arduino\/\">Analog In lab<\/a>, and the <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/labs-arduino-digital-and-analog\/tone-output-using-an-arduino\/\">Tone Output<\/a> labs all describe projects that meet this description.  All of the components other than the Arduino in this project are powered from the Arduino voltage output. None of the external components consume more than a few milliamps each. The whole circuit, Arduino included, will likely consume less than 200 milliamps of current. Here&#8217;s a breakdown, measured using an LED and a potentiometer:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Arduino Uno, no external components: 0.04A (40 mA)<\/li>\n\n\n\n<li>Arduino Nano 33 IoT, no external components:  0.01A (10 mA)<\/li>\n\n\n\n<li>LED: 4 mA<\/li>\n\n\n\n<li>potentiometer connected as analog input: 0.29 mA<\/li>\n\n\n\n<li>8-ohm speaker, playing a tone on the output pin: 0.5 mA<\/li>\n<\/ul>\n\n\n\n<p>A phone charger, which supplies 5 volts and about 500 milliamps to the Arduino, would do the job fine.  The Arduino Uno operates on 5 volts, and the Arduino Nano 33 IoT, which operates at 3.3 volts, has a built-in voltage regulator that will convert the 5V to 3.3V.<\/p>\n\n\n\n<p>If you had a 12-volt supply like the one above, you could also use it for these projects. The Arduino Uno has a voltage in plug which matches it, and can take up to 15V.  An on-board regulator converts the higher voltage input to 5V. The Nano 33 IoT has an on-board regulator that can accept up to 20V in its Vin pin (physical pin 15), so if you connected a DC power Jack and connected the ground of the 12-volt supply to the Arduino&#8217;s ground and the positive connection of the 12-volt supply to the Arduino&#8217;s Vin pin, your project would operate. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Arduino_Servomotor\"><\/span>Arduino, Servomotor<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>If you&#8217;re controlling an RD servomotor from an Arduino as shown in the <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/labs-arduino-digital-and-analog\/servo-motor-control-with-an-arduino\/\">Servomotor lab,<\/a> you need to consider the current a bit more.  A servo like the <a href=\"https:\/\/www.servocity.com\/hs-311-servo\/\">Hitec HS-311<\/a> , which is popular in physical computing projects, operates at 4.8 &#8211; 6.0V, so it can get enough voltage from an Arduino&#8217;s voltage output. When it&#8217;s idle, it consumes about 160 mA with no load on it. It can consume up to 3-400 mA with a heavy load, however.  It&#8217;s wise to plan your project for each component&#8217;s maximum current consumption, so a single servo and Arduino could consume up to 440 &#8211; 450 milliamps at 5 volts. That is almost the limit of what a laptop computer can supply via USB, and it&#8217;s the limit of some smaller phone chargers as well. If you were controlling multiple servos, you wouldn&#8217;t have enough current. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Arduino Uno, no external components: 0.04A (40 mA)<\/li>\n\n\n\n<li>Arduino Nano 33 IoT, no external components: 0.01A (10 mA)<\/li>\n\n\n\n<li>HS-311, heavy load: 400 mA<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Arduino_DC_Motor_or_Lights\"><\/span>Arduino, DC Motor or Lights<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p>When you start powering larger DC motors, DC lights, or other <a href=\"https:\/\/itp.nyu.edu\/physcomp\/labs\/motors-and-transistors\/using-a-transistor-to-control-high-current-loads-with-an-arduino\/\">high-current loads<\/a>, you have to calculate the voltage and current before you select a power supply. You generally work from the component that has the highest consumption and work from there. <\/p>\n\n\n\n<p>For example, <a href=\"https:\/\/tigoe.github.io\/LightProjects\/led-lamps.html\">controlling an LED light bulb <\/a> like <a href=\"https:\/\/www.superbrightleds.com\/moreinfo\/standard-led-light-bulbs\/12v-low-wattage-a19-filament-led-light-bulb-40w-equivalent-490-lumens\/3196\/\">this one<\/a> would require a 12V DC power supply for the bulb. It consumes 11 watts of power, and watts = volts * amps, so it consumes about 917 milliamps of current at 12 volts. The transistor and Arduino that might control it could be powered via the same 12-volt power supply, and would consume the same amounts as in the examples above.  <\/p>\n\n\n\n<p>Motor projects and <a href=\"https:\/\/tigoe.github.io\/LightProjects\/addressable-leds.html\">addressable LED projects<\/a> often consume the most electrical energy and are the most complex to power. A typical addressable LED like a WS2812, aka NeoPixel LED, consumes between 60 and 80 mA of current at 5 volts. When you have a string of 60 of them, that&#8217;s 3.6 amps of current! These definitely can&#8217;t be powered from a typical DC wall supply. When you reach that level of complexity with a project, consult your components&#8217; datasheets or your instructors for more guidance. The videos on <a href=\"https:\/\/itp.nyu.edu\/physcomp\/videos\/videos-electricity\/\">electricity, current, and power<\/a> are helpful on this subject as well.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview Power supply is a reference to the source of electrical power. Most electronic circuits require a DC power supply. Chances are you have one at home already, and can use it for physical computing projects. The most common operating voltages for microcontrollers and digital processors are 5V and 3.3V. You can find power supplies &hellip; <a href=\"https:\/\/itp.nyu.edu\/physcomp\/lessons\/electronics\/understanding-dc-power-supplies\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Understanding DC Power Supplies&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"parent":2008,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"categories":[21,5,52,27],"tags":[],"class_list":["post-1602","page","type-page","status-publish","hentry","category-components","category-electronics","category-lesson","category-multimeter"],"_links":{"self":[{"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/1602"}],"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=1602"}],"version-history":[{"count":19,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/1602\/revisions"}],"predecessor-version":[{"id":13660,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/pages\/1602\/revisions\/13660"}],"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=1602"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/categories?post=1602"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itp.nyu.edu\/physcomp\/wp-json\/wp\/v2\/tags?post=1602"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}