{"id":259,"date":"2012-08-17T10:58:35","date_gmt":"2012-08-17T01:58:35","guid":{"rendered":"http:\/\/leaqua.mulple.com\/?p=259"},"modified":"2018-03-15T10:38:12","modified_gmt":"2018-03-15T01:38:12","slug":"%eb%9d%bc%ec%a6%88%eb%b2%a0%eb%a6%ac-%ed%8c%8c%ec%9d%b4%ec%9d%98-gpio-%eb%a5%bc-%ec%9d%b4%ec%9a%a9%ed%95%9c-dc-%ec%a0%84%ec%9b%90-%ec%a0%9c%ec%96%b4","status":"publish","type":"post","link":"https:\/\/leaqua.mulple.com\/?p=259","title":{"rendered":"\ub77c\uc988\ubca0\ub9ac \ud30c\uc774\uc758 GPIO \ub97c \uc774\uc6a9\ud55c DC \uc804\uc6d0 \uc81c\uc5b4"},"content":{"rendered":"<p><img loading=\"lazy\" class=\"alignnone  wp-image-261\" title=\"schematic\" alt=\"\" src=\"http:\/\/leaqua.mulple.com\/wp-content\/uploads\/2012\/08\/schematic-700x403.jpg\" width=\"490\" height=\"282\" srcset=\"https:\/\/leaqua.mulple.com\/wp-content\/uploads\/2012\/08\/schematic-300x173.jpg 300w, https:\/\/leaqua.mulple.com\/wp-content\/uploads\/2012\/08\/schematic-700x403.jpg 700w, https:\/\/leaqua.mulple.com\/wp-content\/uploads\/2012\/08\/schematic.jpg 740w\" sizes=\"(max-width: 490px) 100vw, 490px\" \/><\/p>\n<p>\ud68c\ub85c\uc758 \uad6c\uc131\uc740 \uc704\uc640 \uac19\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\ud544\uc694\ud55c \ubd80\ud488\uc740 NPN\ud0c0\uc78e Mofset \uc778 RFT30N06LE 1\uac1c\uc640 10K\uc634 \uc9dc\ub9ac \uc800\ud56d\ud55c\uac1c 1N4001 \ub2e4\uc774\uc624\ub4dc \ud55c\uac1c \uc785\ub2c8\ub2e4.<\/p>\n<p>\ud68c\ub85c \uc124\uba85\uc740 \ub77c\uc988\ubca0\ub9ac GPIO \ub85c \uc804\uc6d0\uc774 \ub4e4\uc5b4\uc640 \ub300\uae30\ud558\uace0 \uc788\ub358 \uc678\uc7a5\ud558\ub4dc \uc544\ub2f5\ud130 + \uc758 \uc804\uae30\uac00 \uc678\uc7a5\ud558\ub4dc\ub97c \uac70\uccd0 RFT30N06LE \ub97c \ud1b5\ud574\uc11c \uc678\uc7a5\ud558\ub4dc \uc544\ub2f5\ud130 &#8211; \ub85c \ud750\ub974\ub294 \uad6c\uc870 \uc785\ub2c8\ub2e4. RFT30N06LE \uac00 \uc2a4\uc704\uce58 \uc5ed\ud560\uc744 \ud558\ub294 \ubd80\ud488\uc774 \ub418\ub294\uac70\uc8e0 G \ub85c \uc804\uae30 \uc2e0\ud638\uac00 \ub4e4\uc5b4\uc624\uba74 D \uc640 S \ub97c \uc5f0\uacb0\ud574 \uc8fc\ub294\uac83\uc73c\ub85c \uc0dd\uac01\ud558\uc2dc\uba74 \ub418\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<p>RFT30N06LE \uac00 \uc81c\uc5b4\ud560 \uc218 \uc788\ub294 \uc6a9\ub7c9 \ud55c\uacc4\uac00 60V 30A \uae4c\uc9c0 \uc774\ub2c8 \uc678\uc7a5\ud558\ub4dc\uc758 \uc804\uc6d0 \uc815\ub3c4\ub294 \ucda9\ubd84\ud788 \uac10\ub2f9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<p>\uc77c\ub2e8 \ud68c\ub85c\ub294 \uc704\uc640 \uac19\uace0 \ub77c\uc988\ubca0\ub9ac\ud30c\uc774\uc758 GPIO \uc18c\ucf13\uc5d0 \uc5f0\uacb0\uc740 \uc544\ub798 \uadf8\ub9bc\uc744 \ucc38\uace0 \ud569\ub2c8\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" class=\"alignnone  wp-image-260\" title=\"Raspberry-Pi-GPIO-Layout\" alt=\"\" src=\"http:\/\/leaqua.mulple.com\/wp-content\/uploads\/2012\/08\/Raspberry-Pi-GPIO-Layout.png\" width=\"451\" height=\"259\" srcset=\"https:\/\/leaqua.mulple.com\/wp-content\/uploads\/2012\/08\/Raspberry-Pi-GPIO-Layout-300x172.png 300w, https:\/\/leaqua.mulple.com\/wp-content\/uploads\/2012\/08\/Raspberry-Pi-GPIO-Layout.png 644w\" sizes=\"(max-width: 451px) 100vw, 451px\" \/><\/p>\n<table style=\"width: 377px; height: 131px;\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n<tbody>\n<tr>\n<td><strong> \uc81c\uac00 \uc62c\ub9b0\uadf8\ub9bc<\/strong><\/td>\n<td><strong> \ub77c\uc988\ubca0\ub9ac GPIO \uc18c\ucf13<\/strong><\/td>\n<\/tr>\n<tr>\n<td>\ub77c\uc988\ubca0\ub9ac GND<\/td>\n<td>Ground<\/td>\n<\/tr>\n<tr>\n<td>\ub77c\uc988\ubca0\ub9ac GPIO<\/td>\n<td>GPIO11<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\uc704\uc640 \uac19\uc774 \uc5f0\uacb0\ud569\ub2c8\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p>\uc18c\ud504\ud2b8 \uc6e8\uc5b4\uc758 \uc124\uc815\uc740 GPIO Python Library \ub97c \uc0ac\uc6a9\ud558\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<p>RPi.GPIO Python Library \uc758 \uc124\uc815\uc740 <a href=\"http:\/\/www.raspberrypi-spy.co.uk\/2012\/05\/install-rpi-gpio-python-library\/\" target=\"_blank\">http:\/\/www.raspberrypi-spy.co.uk\/2012\/05\/install-rpi-gpio-python-library\/<\/a> \ub97c \ubcf4\uc2dc\uba74 \ub418\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<p>RPi.GPIO Python Library \uc758 \uc124\uce58\uac00 \uc644\ub8cc\ub418\uba74 GPIO\ub97c \ucee8\ud2b8\ub864 \ud558\ub294 \ud30c\uc774\uc120 \ucf54\ub4dc\ub97c \uc81c\uc791\ud574\uc57c\uaca0\uc8e0..<\/p>\n<div>\n<pre class=\"lang:python decode:true brush: python; gutter: false \">#######################################\r\n\r\nimport RPi.GPIO as GPIO\r\n\r\n# GPIO\uc758 11\ubc88 \ud540\uc744 \uc81c\uc5b4\uc6a9\uc73c\ub85c \uc0ac\uc6a9\ud569\ub2c8\ub2e4.\r\n\r\nGPIO.setup(11, GPIO.OUT)\r\n\r\n# 11\ubc88 \ud540\uc73c\ub85c \uc804\ub958\ub97c \ud758\ub9bd\ub2c8\ub2e4 Switch ON\r\nGPIO.output(11, True)\r\n#######################################<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n<p>\ucf54\ub4dc\ub294 \uc704 \ucc98\ub7fc \uac04\ub2e8\ud569\ub2c8\ub2e4.<\/p>\n<p>on.py \ub85c \uc800\uc7a5\uc744 \ud558\uace0<\/p>\n<p>sudo python on.py\u00a0 \ub85c \uc2e4\ud589\uc744 \ud569\ub2c8\ub2e4.<\/p>\n<p>\ub04c\ub54c\ub294 GPIO.output(11, False) \ub85c \ud558\uba74 \ub418\uaca0\uc2b5\ub2c8\ub2e4.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>\ucc38\uace0<\/strong>. \ub77c\uc988\ubca0\ub9ac\uac00 \uc544\uc9c1 \ub3c4\ucc29\uc744 \uc548\ud574\uc11c \ud14c\uc2a4\ud2b8\ub294 \ubabb\ud574\ubd24\uc2b5\ub2c8\ub2e4\ub9cc AVR\uac1c\ubc1c \ud560\ub54c \uc0ac\uc6a9\ud558\ub294 \ud68c\ub85c\ub77c \ubb38\uc81c\ub294 \uc5c6\uc744\uac83 \uac19\uc2b5\ub2c8\ub2e4. \uc5b4\uc11c \ube68\ub9ac \ubc1b\uc544\uc11c \ub9c8\uad6c \ub55c\uc9c8\ud574 \ubcf4\uace0 \uc2f6\uc2b5\ub2c8\ub2e4.\u00a0 \u314e\u314e\u314e<\/p>\n<div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ud68c\ub85c\uc758 \uad6c\uc131\uc740 \uc704\uc640 \uac19\uc2b5\ub2c8\ub2e4.<br \/>\n\ud544\uc694\ud55c \ubd80\ud488\uc740 NPN\ud0c0\uc78e Mofset \uc778 RFT30N06LE 1\uac1c\uc640 10K\uc634 \uc9dc\ub9ac \uc800\ud56d\ud55c\uac1c 1N4001 \ub2e4\uc774\uc624\ub4dc \ud55c\uac1c \uc785\ub2c8\ub2e4.<br \/>\n\ud68c\ub85c \uc124\uba85\uc740 \ub77c\uc988\ubca0\ub9ac GPIO \ub85c \uc804\uc6d0\uc774 \ub4e4\uc5b4\uc640 \ub300\uae30\ud558\uace0 \uc788\ub358 \uc678\uc7a5\ud558\ub4dc \uc544\ub2f5\ud130 + \uc758 \uc804\uae30\uac00 [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":261,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0},"categories":[5],"tags":[58,57,32],"_links":{"self":[{"href":"https:\/\/leaqua.mulple.com\/index.php?rest_route=\/wp\/v2\/posts\/259"}],"collection":[{"href":"https:\/\/leaqua.mulple.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/leaqua.mulple.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/leaqua.mulple.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/leaqua.mulple.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=259"}],"version-history":[{"count":5,"href":"https:\/\/leaqua.mulple.com\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions"}],"predecessor-version":[{"id":1205,"href":"https:\/\/leaqua.mulple.com\/index.php?rest_route=\/wp\/v2\/posts\/259\/revisions\/1205"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/leaqua.mulple.com\/index.php?rest_route=\/wp\/v2\/media\/261"}],"wp:attachment":[{"href":"https:\/\/leaqua.mulple.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=259"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/leaqua.mulple.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=259"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/leaqua.mulple.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=259"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}