<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">아두이노에서 전원 연결을 ON/OFF 제어하기 위해 기본으로 사용되는 것이 릴레이이고 이 릴레이의 단점을 보완한 것이 무접점릴레이(SSR) 인데, 이 SSR은 AC(교류)전원의 ON/OFF에만 주로 사용되고&nbsp;&nbsp;DC(직류)&nbsp;전원 제어용으로는 별로 사용되지 않는다. DC전원 ON/OFF제어는&nbsp;굳이 SSR을 사용하지 않아도&nbsp;MOSFET이라는 반도체 하나만으로도 제어할 수&nbsp;있는 방법이 있다.</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;"><strong><span style="box-sizing: border-box; font-size: 14pt;">모스펫</span><span style="box-sizing: border-box; font-size: 14pt;">(MOSFET)&nbsp;소개</span><span style="box-sizing: border-box; font-size: 14pt;">&nbsp;</span></strong></p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; float: none; text-align: center; clear: none; padding-top: 0px !important; padding-bottom: 0px !important;"><span class="imageblock" style="box-sizing: border-box; height: auto; max-width: 100%; display: inline-block; width: 290px;"><img src="https://t1.daumcdn.net/cfile/tistory/99CF98375C4F103426" width="290" filename="mosfet1.jpg" filemime="image/jpeg" style="border: 0px; max-width: 100%; height: auto; vertical-align: middle;" /></span></p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">모스펫(MOSFET)는 금속-산화물-반도체 전계효과 트랜지스터(Metal Oxide Semiconductor Field Effect Transistor)라는 반도체소자로서 전기로 작동하는 스위치라고 할 수 있다.</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; float: none; text-align: center; clear: none; padding-top: 0px !important; padding-bottom: 0px !important;"><span class="imageblock" style="box-sizing: border-box; height: auto; max-width: 100%; display: inline-block; width: 738px;"><img src="https://t1.daumcdn.net/cfile/tistory/999C6D375C4F103429" width="738" filename="mosfet.jpg" filemime="image/jpeg" style="border: 0px; max-width: 100%; height: auto; vertical-align: middle;" /></span></p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">MOSFET는 n-채널형과&nbsp; p-채널형이 있는데 n-채널형은&nbsp;Gate에 전압이 가해지지 않으면&nbsp;Drain과 Source 가 연결되어 있지 않다가 Gate에 전압이 가해지면 Drain과 Source 가 연결되는 형태이고,&nbsp; p채널형은&nbsp;Gate에 전압이 가해지지 않으면&nbsp;Drain과 Source 가 연결되어 있다가 Gate에 전압이 가해지면 Drain과 Source의 연결이 끊어지는 타입이다.&nbsp;결국 둘다&nbsp;릴레이처럼&nbsp;두전극 사이를 신호를 주어 연결을 ON/OFF시켜 주는 작동을 할 수 있는&nbsp;것이다. &nbsp;&nbsp;&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;"><strong><span style="box-sizing: border-box; font-size: 14pt;">아두이노에서의&nbsp;</span><span style="box-sizing: border-box; font-size: 14pt;">활용</span><span style="box-sizing: border-box; font-size: 14pt;">&nbsp;</span></strong></p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">아두이노 환경에서 DC 전원제어&nbsp;릴레이 대용으로 흔하게 사용하기 MOSFET은 2N7000( 소용량용)과&nbsp;IRLZ44N(대용량용)&nbsp;이 있다.</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">-2N7000은 최대 60V, 200mA 까지 제어 가능한 n-채널 MOSFET로서&nbsp;국내 쇼핑몰에서도&nbsp;100원 미만으로 흔하게 구입할 수 있다.</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; float: none; text-align: center; clear: none; padding-top: 0px !important; padding-bottom: 0px !important;"><span class="imageblock" style="box-sizing: border-box; height: auto; max-width: 100%; display: inline-block; width: 374px;"><span data-url="https://t1.daumcdn.net/cfile/tistory/9907274C5C4FCF3D06?download" data-lightbox="lightbox" style="box-sizing: border-box; cursor: pointer; max-width: 100%; width: 100%;"><img src="https://t1.daumcdn.net/cfile/tistory/9907274C5C4FCF3D06" width="374" filename="mosfet2.jpg" filemime="image/jpeg" style="border: 0px; max-width: 100%; height: auto; vertical-align: middle; cursor: pointer;" /></span></span></p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; float: none; text-align: center; clear: none; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">-IRLZ44N은 최대 60V, 40A까지 제어 가능한 n-채널 로직레벨 MOSFET ( Gate에 아두이노 신호와 같은 로직레밸의 신호만 주어도&nbsp;작동하는&nbsp;MOSFET )&nbsp;이다. 비슷한 이름의&nbsp;&nbsp;IR<span style="box-sizing: border-box; color: #ff0000;">F</span>Z44N라는 MOSFET도 있는데 이것은 로직레벨용이 아니기 때문에 아두이노에서 직접 구동시킬 수 없으니 구매시 주의해야 한다.</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; float: none; text-align: center; clear: none; padding-top: 0px !important; padding-bottom: 0px !important;"><span class="imageblock" style="box-sizing: border-box; height: auto; max-width: 100%; display: inline-block; width: 506px;"><span data-url="https://t1.daumcdn.net/cfile/tistory/99C6694C5C4FCF3D08?download" data-lightbox="lightbox" style="box-sizing: border-box; cursor: pointer; max-width: 100%; width: 100%;"><img src="https://t1.daumcdn.net/cfile/tistory/99C6694C5C4FCF3D08" width="506" filename="mosfet3.jpg" filemime="image/jpeg" style="border: 0px; max-width: 100%; height: auto; vertical-align: middle; cursor: pointer;" /></span></span></p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; float: none; text-align: center; clear: none; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;"><strong><span style="box-sizing: border-box; font-size: 14pt;">DC</span><span style="box-sizing: border-box; font-size: 14pt;">전원 ON/OFF하기 샘플</span></strong></p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; float: none; text-align: center; clear: none; padding-top: 0px !important; padding-bottom: 0px !important;"><span class="imageblock" style="box-sizing: border-box; height: auto; max-width: 100%; display: inline-block; width: 809px;"><span data-url="https://t1.daumcdn.net/cfile/tistory/99A5604C5C4FCF3E3A?download" data-lightbox="lightbox" style="box-sizing: border-box; cursor: pointer; max-width: 100%; width: 100%;"><img src="https://t1.daumcdn.net/cfile/tistory/99A5604C5C4FCF3E3A" width="809" filename="mosfet4.jpg" filemime="image/jpeg" style="border: 0px; max-width: 100%; height: auto; vertical-align: middle; cursor: pointer;" /></span></span></p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">- 10K 저항은 Gate단자 PULL-DOWN,&nbsp;즉 아두이노에서&nbsp;HIGH신호가 나오지 않을 경우 Gate단자를 LOW로 유지하기 위한 것이고, 다이오드는 모터에서 발생되는 역기전력을 Bypass시키기 위한 것인데 모터처럼 코일형 장치를 사용할 때에는 필요하지만 LED전구 같은 장치를 구동시킬 때에는&nbsp;필요 없다.</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">-다음 프로그램은 연결된 모터를 5초 간격으로 켰다가 끄기를 반복하는 프로그램이다.</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<div class="dp-highlighter" style="box-sizing: border-box; font-family: Consolas, &quot;Courier New&quot;, Courier, mono, serif; background-color: #e7e5dc; width: 860.297px; overflow: auto; padding-top: 1px; margin: 18px 0px !important;">
   <div class="bar" style="box-sizing: border-box; padding-left: 45px;">
      <div class="tools" style="box-sizing: border-box; padding: 3px 8px 10px 10px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; background-color: #f8f8f8; border-left: 3px solid rgb(108, 226, 108);"><a href="https://makernambo.com/56#" style="color: #a0a0a0; text-decoration-line: none; transition: all 0.3s ease 0s; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; border: none; padding: 0px; margin: 0px 10px 0px 0px;" target="_blank">view plain</a><a href="https://makernambo.com/56#" style="color: #a0a0a0; text-decoration-line: none; transition: all 0.3s ease 0s; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; border: none; padding: 0px; margin: 0px 10px 0px 0px;" target="_blank">copy to clipboard</a><a href="https://makernambo.com/56#" style="color: #a0a0a0; text-decoration-line: none; transition: all 0.3s ease 0s; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; border: none; padding: 0px; margin: 0px 10px 0px 0px;" target="_blank">print</a><a href="https://makernambo.com/56#" style="color: #a0a0a0; text-decoration-line: none; transition: all 0.3s ease 0s; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; border: none; padding: 0px; margin: 0px 10px 0px 0px;" target="_blank">?</a></div>
      </div>
   <ol start="1" class="dp-cpp" style="padding: 0px; border: none; list-style-position: initial; list-style-image: initial; background-color: #ffffff; color: #5c5c5c; margin: 0px 0px 1px 45px !important;">
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"><span class="preprocessor" style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: gray; background-color: inherit;">#define&nbsp;swPin&nbsp;3</span><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; background-color: inherit;">&nbsp;&nbsp;</span></span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;</span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"><span class="keyword" style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: #006699; background-color: inherit; font-weight: bold;">void</span><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; background-color: inherit;">&nbsp;setup(){&nbsp;&nbsp;</span></span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;pinMode(swPin,&nbsp;OUTPUT);&nbsp;&nbsp;</span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">}&nbsp;&nbsp;</span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"><span class="keyword" style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: #006699; background-color: inherit; font-weight: bold;">void</span><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; background-color: inherit;">&nbsp;loop(){&nbsp;&nbsp;</span></span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;&nbsp;digitalWrite(swPin,HIGH);&nbsp;&nbsp;&nbsp;</span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;&nbsp;delay(5000);&nbsp;&nbsp;</span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;&nbsp;digitalWrite(swPin,LOW);&nbsp;&nbsp;&nbsp;</span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;&nbsp;delay(5000);&nbsp;&nbsp;</span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">}&nbsp;&nbsp;&nbsp;</span></li>
      </ol>
   </div>
<p>&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;"><strong><span style="box-sizing: border-box; font-size: 14pt;">DC전원 세기 조절하기&nbsp;</span><span style="box-sizing: border-box; font-size: 14pt;">샘플</span></strong></p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; float: none; text-align: center; clear: none; padding-top: 0px !important; padding-bottom: 0px !important;"><span class="imageblock" style="box-sizing: border-box; height: auto; max-width: 100%; display: inline-block; width: 792px;"><span data-url="https://t1.daumcdn.net/cfile/tistory/9985E34C5C4FCF3F34?download" data-lightbox="lightbox" style="box-sizing: border-box; cursor: pointer; max-width: 100%; width: 100%;"><img src="https://t1.daumcdn.net/cfile/tistory/9985E34C5C4FCF3F34" width="792" filename="mosfet5.jpg" filemime="image/jpeg" style="border: 0px; max-width: 100%; height: auto; vertical-align: middle; cursor: pointer;" /></span></span></p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">-다음 프로그램과 같이 Gete에 주는 신호를 PWM방식으로&nbsp;강약을 조절함으로서 출력의 세기를 조절할 수 도 있다. 즉 모터의 속도를 조절하거나&nbsp;LED전구 빛의 세기를 조정할 수도 있다.</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<div class="dp-highlighter" style="box-sizing: border-box; font-family: Consolas, &quot;Courier New&quot;, Courier, mono, serif; background-color: #e7e5dc; width: 860.297px; overflow: auto; padding-top: 1px; margin: 18px 0px !important;">
   <div class="bar" style="box-sizing: border-box; padding-left: 45px;">
      <div class="tools" style="box-sizing: border-box; padding: 3px 8px 10px 10px; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 9px; line-height: normal; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; color: silver; background-color: #f8f8f8; border-left: 3px solid rgb(108, 226, 108);"><a href="https://makernambo.com/56#" style="color: #a0a0a0; text-decoration-line: none; transition: all 0.3s ease 0s; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; border: none; padding: 0px; margin: 0px 10px 0px 0px;" target="_blank">view plain</a><a href="https://makernambo.com/56#" style="color: #a0a0a0; text-decoration-line: none; transition: all 0.3s ease 0s; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; border: none; padding: 0px; margin: 0px 10px 0px 0px;" target="_blank">copy to clipboard</a><a href="https://makernambo.com/56#" style="color: #a0a0a0; text-decoration-line: none; transition: all 0.3s ease 0s; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; border: none; padding: 0px; margin: 0px 10px 0px 0px;" target="_blank">print</a><a href="https://makernambo.com/56#" style="color: #a0a0a0; text-decoration-line: none; transition: all 0.3s ease 0s; background-image: none; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; background-color: inherit; border: none; padding: 0px; margin: 0px 10px 0px 0px;" target="_blank">?</a></div>
      </div>
   <ol start="1" class="dp-cpp" style="padding: 0px; border: none; list-style-position: initial; list-style-image: initial; background-color: #ffffff; color: #5c5c5c; margin: 0px 0px 1px 45px !important;">
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"><span class="preprocessor" style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: gray; background-color: inherit;">#define&nbsp;fadePin&nbsp;3</span><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; background-color: inherit;">&nbsp;&nbsp;</span></span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;</span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"><span class="keyword" style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: #006699; background-color: inherit; font-weight: bold;">void</span><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; background-color: inherit;">&nbsp;setup(){&nbsp;&nbsp;</span></span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;pinMode(fadePin,&nbsp;OUTPUT);&nbsp;&nbsp;</span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">}&nbsp;&nbsp;</span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;"><span class="keyword" style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: #006699; background-color: inherit; font-weight: bold;">void</span><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; background-color: inherit;">&nbsp;loop(){&nbsp;&nbsp;</span></span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;<span class="keyword" style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: #006699; background-color: inherit; font-weight: bold;">for</span><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; background-color: inherit;">(</span><span class="datatypes" style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: #2e8b57; background-color: inherit; font-weight: bold;">int</span><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; background-color: inherit;">&nbsp;i&nbsp;=&nbsp;0;&nbsp;i&lt;255;&nbsp;i++){&nbsp;&nbsp;</span></span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;analogWrite(fadePin,&nbsp;i);&nbsp;&nbsp;&nbsp;</span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;delay(15);&nbsp;&nbsp;&nbsp;</span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;}&nbsp;&nbsp;</span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;<span class="keyword" style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: #006699; background-color: inherit; font-weight: bold;">for</span><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; background-color: inherit;">(</span><span class="datatypes" style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: #2e8b57; background-color: inherit; font-weight: bold;">int</span><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; background-color: inherit;">&nbsp;i&nbsp;=&nbsp;255;&nbsp;i&gt;0;&nbsp;i--){&nbsp;&nbsp;</span></span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;analogWrite(fadePin,&nbsp;i);&nbsp;&nbsp;&nbsp;</span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;delay(15);&nbsp;&nbsp;&nbsp;</span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;}&nbsp;&nbsp;</span></li>
      <li class="alt" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; color: inherit; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">&nbsp;&nbsp;delay(1000);&nbsp;&nbsp;</span></li>
      <li class="" style="transition: all 0.3s ease 0s; border-top: none; border-right: none; border-bottom: none; border-left: 3px solid rgb(108, 226, 108); border-image: initial; list-style-type: decimal-leading-zero; list-style-image: initial; background-color: #f8f8f8; line-height: 14px; margin: 0px !important; padding: 0px 3px 0px 10px !important; list-style-position: outside !important;"><span style="box-sizing: border-box; margin: 0px; padding: 0px; border: none; color: black; background-color: inherit;">}&nbsp;&nbsp;&nbsp;</span></li>
      </ol>
   </div>
<p>&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;">&nbsp;</p>
<p style="font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; padding-top: 0px !important; padding-bottom: 0px !important;"><strong>이렇게 소형 소자만으로 회로를 구성해서 릴레이를 사용하는 것 보다 비용도 저렴하고 보다 작은 크기로 원하는 기능을 구현할 수 있을 뿐만 아니라 DC장치의 세기까지&nbsp;조절할 수 있다.</strong></p>