{"id":96,"date":"2012-02-06T18:27:24","date_gmt":"2012-02-06T18:27:24","guid":{"rendered":"https:\/\/teach.alimomeni.net\/2012spring2\/?p=96"},"modified":"2012-02-06T23:00:42","modified_gmt":"2012-02-06T23:00:42","slug":"controlling-dc-motorslights-microcontroller-to-mosfet","status":"publish","type":"post","link":"https:\/\/teach.alimomeni.net\/2012spring2\/?p=96","title":{"rendered":"Controlling DC Motors\/Lights: Microcontroller to MOSFET"},"content":{"rendered":"<p><a href=\"https:\/\/teach.alimomeni.net\/2012spring2\/wp-content\/uploads\/2012\/02\/microcontroller-mosfet.jpeg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-97\" title=\"microcontroller-mosfet\" src=\"https:\/\/teach.alimomeni.net\/2012spring2\/wp-content\/uploads\/2012\/02\/microcontroller-mosfet-291x300.jpg\" alt=\"\" width=\"291\" height=\"300\" srcset=\"https:\/\/teach.alimomeni.net\/2012spring2\/wp-content\/uploads\/2012\/02\/microcontroller-mosfet-291x300.jpg 291w, https:\/\/teach.alimomeni.net\/2012spring2\/wp-content\/uploads\/2012\/02\/microcontroller-mosfet.jpeg 400w\" sizes=\"auto, (max-width: 291px) 100vw, 291px\" \/><\/a><\/p>\n<p>The above diagram shows how to use a microcontoller (like our Arduino-compatible Teeny board) and a MOSFET to turn on\/off a DC motor or a light.<\/p>\n<p>In the above diagram:<\/p>\n<ul>\n<li>&#8220;Load&#8221;: your light or actuator (including motors, solenoids) and its two leads<\/li>\n<li>&#8220;Load Power +12&#8243;: the positive terminal of your power supply; note that this voltage can be different than +12V&#8221; as long its within the MOSFET&#8217;s specifications<\/li>\n<li>&#8220;MOSFET&#8221;: the three leads are labeled [<strong>G<\/strong>]ate, [<strong>D<\/strong>]rain and [<strong>S<\/strong>]ource; refer to the MOSFET&#8217;s datasheet to assure which pin is which<\/li>\n<li>Grounds:\u00a0the MOSFET&#8217;s [<strong>S<\/strong>]ource pin connects to the ground of the power supply;<em><strong>\u00a0the microcontroller&#8217;s ground pin should also be connected to the ground of the power supply<\/strong><\/em><\/li>\n<li>&#8220;Control +5V&#8221;: this connection is to one of the digital outputs pins of the microcontroller (either Digital I\/O or PWM)<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The above diagram shows how to use a microcontoller (like our Arduino-compatible Teeny board) and a MOSFET to turn on\/off a DC motor or a light. In the above diagram: &#8220;Load&#8221;: your light or actuator (including motors, solenoids) and its two leads &#8220;Load Power +12&#8243;: the positive terminal of your power supply; note that this [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15,5],"tags":[],"class_list":["post-96","post","type-post","status-publish","format-standard","hentry","category-electronics","category-reference"],"_links":{"self":[{"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/posts\/96","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=96"}],"version-history":[{"count":4,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions"}],"predecessor-version":[{"id":99,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=\/wp\/v2\/posts\/96\/revisions\/99"}],"wp:attachment":[{"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/teach.alimomeni.net\/2012spring2\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}