(421,-421,'',421,0,0,'','','html1','[Arduino] ESP-WROOM-32 Hardware Serial port','<p><span style=\"color: #757575; font-size: 15px; background-color: #ffffff; font-family: &quot;courier new&quot;, courier, monospace;\">HardwareSerial Serial1(1);<br />HardwareSerial Serial2(2);<br />void setup() {<br />// put your setup code here, to run once:<br />Serial.begin(115200);<br />Serial1.begin(115200);<br />Serial2.begin(115200);&nbsp;<br /><br />}<br />void loop() {<br />Serial.println(\"This message sent to USB serial\");<br />Serial1.println(\"This message sent to UART1 serial1\");<br />Serial2.println(\"This message sent to UART2 serial2\");<br />delay(1000);<br />}</span><br style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\" /></p>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\"><br /></span></div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"font-family: inherit;\">I down loaded to my wemos OLED ESP32, and it did not crash...</span></div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"font-family: inherit;\">According to the pin out I got from&nbsp;</span>http://www.instructables.com/id/ESP32-With-Integrated-OLED-WEMOSLolin-Getting-Star/</div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\">the RX/TX marked on my board is actually Rx0/Tx0 which is the same as USB one.</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both; text-align: center;\"><a href=\"https://cdn.instructables.com/FAK/RKQ0/J3YPR3IJ/FAKRKQ0J3YPR3IJ.MEDIUM.jpg\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; margin-left: 1em; margin-right: 1em;\" target=\"_blank\"><img border=\"0\" data-original-height=\"386\" data-original-width=\"620\" src=\"https://cdn.instructables.com/FAK/RKQ0/J3YPR3IJ/FAKRKQ0J3YPR3IJ.MEDIUM.jpg\" width=\"640\" style=\"border: 0px; max-width: 100%; height: inherit;\" /></a></div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"font-family: inherit;\"><br /></span></div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"font-family: inherit;\">which is consist with what I got on arduino monitor and the docklight with FTDI connected to RX/TX pins on board.&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both; text-align: center;\"><a href=\"https://3.bp.blogspot.com/-WdzAw6KY2TM/WjI0gEYm0KI/AAAAAAAAr-c/ISgSkWyPzAQ4SLcxUn6DgGHpB-kEQkF8QCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.04.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" target=\"_blank\">&nbsp; &nbsp;&nbsp;<img border=\"0\" data-original-height=\"559\" data-original-width=\"542\" src=\"https://3.bp.blogspot.com/-WdzAw6KY2TM/WjI0gEYm0KI/AAAAAAAAr-c/ISgSkWyPzAQ4SLcxUn6DgGHpB-kEQkF8QCLcBGAs/s320/Screenshot%2B2017-12-14%2B16.17.04.png\" width=\"310\" style=\"border: 0px; max-width: 100%; height: inherit;\" />&nbsp; &nbsp;</a></div>\r\n<p><span style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;</span><br style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\" /></p>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><br /></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both; text-align: center;\"><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: left; float: left; margin-bottom: 1em; margin-right: 1em;\" target=\"_blank\"><img border=\"0\" data-original-height=\"498\" data-original-width=\"505\" src=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s320/Screenshot%2B2017-12-14%2B16.17.08.png\" width=\"320\" style=\"border: 0px; max-width: 100%; height: inherit;\" /></a><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\" target=\"_blank\">&nbsp;</a><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\" target=\"_blank\"><br /></a><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\" target=\"_blank\"><br /></a><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\" target=\"_blank\"><br /></a><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\" target=\"_blank\"><br /></a><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\" target=\"_blank\"><br /></a><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\" target=\"_blank\"><br /></a><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\" target=\"_blank\"><br /></a><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\" target=\"_blank\"><br /></a><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\" target=\"_blank\"><br /></a><a href=\"https://2.bp.blogspot.com/-cChnQ9dTXSY/WjI0gPEtLoI/AAAAAAAAr-g/OlhtiRpm9Y82J9SpqQJ3PQcV6qEXV-2cgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.17.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; clear: right; float: right; margin-bottom: 1em; margin-left: 1em;\" target=\"_blank\"><br /></a>&nbsp;&nbsp;</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">This surprised me, since the video is dated 2017 Oct, and it\'s corrected. I think there must be some change on the pin define, since ESP32 has very good pin muxing capability. according to the video, this is done with</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">\\hardware\\espressif\\esp32\\cores\\esp32\\HardwareSerial.cpp</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><br /></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">So I find and open it and find in hardware serial.begin</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><br /></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">void HardwareSerial::begin(unsigned long baud, uint32_t config, int8_t rxPin, int8_t txPin, bool invert)</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">{</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; if(0 &gt; _uart_nr || _uart_nr &gt; 2) {</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; &nbsp; &nbsp; log_e(\"Serial number is invalid, please use 0, 1 or 2\");</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; &nbsp; &nbsp; return;</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; }</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; if(_uart) {</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; &nbsp; &nbsp; end();</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; }</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; if(_uart_nr == 0 &amp;&amp; rxPin &lt; 0 &amp;&amp; txPin &lt; 0) {</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<b>rxPin = 3;</b></span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\"><b>&nbsp; &nbsp; &nbsp; &nbsp; txPin = 1;</b></span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; }</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; if(_uart_nr == 1 &amp;&amp; rxPin &lt; 0 &amp;&amp; txPin &lt; 0) {</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<b>rxPin = 9;</b></span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\"><b>&nbsp; &nbsp; &nbsp; &nbsp; txPin = 10;</b></span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; }</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; if(_uart_nr == 2 &amp;&amp; rxPin &lt; 0 &amp;&amp; txPin &lt; 0) {</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<b>rxPin = 16;</b></span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\"><b>&nbsp; &nbsp; &nbsp; &nbsp; txPin = 17;</b></span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; }</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">&nbsp; &nbsp; _uart = uartBegin(_uart_nr, baud, config, rxPin, txPin, 256, invert);</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\">}</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: &quot;courier new&quot;, courier, monospace;\"><br /></span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: inherit;\">But I have no intention to change the pin define in the lib. in the messaging of the video, there is one example:</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">HardwareSerial Serial1(1);</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">HardwareSerial Serial2(2);</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" href=\"https://www.youtube.com/results?search_query=%23define\" style=\"background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; text-decoration-line: none; color: #2196f3; display: inline-block; font-family: Roboto, Arial, sans-serif; font-size: 14px; line-height: var(--yt-formatted-string-endpoint_-_line-height); white-space: pre-wrap;\" target=\"_blank\">#define</a><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"> TX1_pin  12</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" href=\"https://www.youtube.com/results?search_query=%23define\" style=\"background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; text-decoration-line: none; color: #2196f3; display: inline-block; font-family: Roboto, Arial, sans-serif; font-size: 14px; line-height: var(--yt-formatted-string-endpoint_-_line-height); white-space: pre-wrap;\" target=\"_blank\">#define</a><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"> RX1_pin  13</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" href=\"https://www.youtube.com/results?search_query=%23define\" style=\"background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; text-decoration-line: none; color: #2196f3; display: inline-block; font-family: Roboto, Arial, sans-serif; font-size: 14px; line-height: var(--yt-formatted-string-endpoint_-_line-height); white-space: pre-wrap;\" target=\"_blank\">#define</a><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"> TX2_pin  2</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><a class=\"yt-simple-endpoint style-scope yt-formatted-string\" href=\"https://www.youtube.com/results?search_query=%23define\" style=\"background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; text-decoration-line: none; color: #2196f3; display: inline-block; font-family: Roboto, Arial, sans-serif; font-size: 14px; line-height: var(--yt-formatted-string-endpoint_-_line-height); white-space: pre-wrap;\" target=\"_blank\">#define</a><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"> RX2_pin  4</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">void setup() {</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">  Serial.begin(115200);</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">  Serial1.begin(115200, SERIAL_8N1, RX1_pin, TX1_pin);</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">  Serial2.begin(115200, SERIAL_8N1, RX2_pin, TX2_pin);</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">}</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">void loop() {</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">  Serial.println(\"This message is sent to USB Seriall\"); </span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">  Serial1.println(\"This message is sent to UART1 Serial\");</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">  Serial2.println(\"This message is sent to UART2 Serial\");</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">  delay(1000);</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">}</span><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"></span></div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"><br /></span></div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">According to the pinout of my little wemos OLED, I make it as:</span></div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"><br /></span></div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"font-size: 14px; white-space: pre-wrap;\"><span style=\"color: #111111; font-family: inherit;\">HardwareSerial Serial1(1);\r\nHardwareSerial Serial2(2);\r\n#define TX1_pin  15\r\n#define RX1_pin  16\r\n#define TX2_pin  2\r\n#define RX2_pin  4\r\nvoid setup() {\r\n  // put your setup code here, to run once:\r\n  Serial.begin(115200);\r\n  Serial1.begin(115200, SERIAL_8N1, RX1_pin, TX1_pin);\r\n  Serial2.begin(115200, SERIAL_8N1, RX2_pin, TX2_pin);</span></span></div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\"><br /></span></div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">And it finally works....</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both; text-align: center;\"><a href=\"https://2.bp.blogspot.com/-WoGNfp1qPzU/WjI753NcbXI/AAAAAAAAr-4/o3rFWJSdcyoHx3xWDgjEx2Eej0P8md-sQCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.47.05.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; margin-left: 1em; margin-right: 1em;\" target=\"_blank\"><img border=\"0\" data-original-height=\"372\" data-original-width=\"505\" src=\"https://2.bp.blogspot.com/-WoGNfp1qPzU/WjI753NcbXI/AAAAAAAAr-4/o3rFWJSdcyoHx3xWDgjEx2Eej0P8md-sQCLcBGAs/s320/Screenshot%2B2017-12-14%2B16.47.05.png\" width=\"320\" style=\"border: 0px; max-width: 100%; height: inherit;\" /></a></div>\r\n<p><br style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\" /></p>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both; text-align: center;\"><a href=\"https://2.bp.blogspot.com/-GD_BDguIgfk/WjI75-DGAFI/AAAAAAAAr-0/fXW3uoF-ahYuMrFDAioLGrBSst11HYcPgCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.47.08.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; margin-left: 1em; margin-right: 1em;\" target=\"_blank\"><img border=\"0\" data-original-height=\"479\" data-original-width=\"541\" src=\"https://2.bp.blogspot.com/-GD_BDguIgfk/WjI75-DGAFI/AAAAAAAAr-0/fXW3uoF-ahYuMrFDAioLGrBSst11HYcPgCLcBGAs/s320/Screenshot%2B2017-12-14%2B16.47.08.png\" width=\"320\" style=\"border: 0px; max-width: 100%; height: inherit;\" /></a></div>\r\n<p><br style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\" /></p>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both; text-align: center;\"><a href=\"https://4.bp.blogspot.com/-zAtw5uYkPbQ/WjI755BzumI/AAAAAAAAr-w/L8G12aUlSWwTKYQwXj9PF_XiB1ENwt5eQCLcBGAs/s1600/Screenshot%2B2017-12-14%2B16.47.58.png\" imageanchor=\"1\" style=\"background: transparent; text-decoration-line: none; color: #2196f3; display: inline-block; margin-left: 1em; margin-right: 1em;\" target=\"_blank\"><img border=\"0\" data-original-height=\"479\" data-original-width=\"541\" src=\"https://4.bp.blogspot.com/-zAtw5uYkPbQ/WjI755BzumI/AAAAAAAAr-w/L8G12aUlSWwTKYQwXj9PF_XiB1ENwt5eQCLcBGAs/s320/Screenshot%2B2017-12-14%2B16.47.58.png\" width=\"320\" style=\"border: 0px; max-width: 100%; height: inherit;\" /></a></div>\r\n<div style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff;\"><span style=\"color: #111111; font-family: roboto, arial, sans-serif; font-size: 14px; white-space: pre-wrap;\">I did not understand why the original one did not crash, as saying that io9 and io10 is used for flash...</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: inherit;\"><br /></span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: inherit;\">Here is another very good program for using3 uarts mapping to 3 UDP port.</span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><span style=\"font-family: inherit;\"><a href=\"https://github.com/AlphaLima/ESP32-Serial-Bridge\" style=\"background: transparent; text-decoration-line: none; color: #2196f3;\" target=\"_blank\">https://github.com/AlphaLima/ESP32-Serial-Bridge</a></span></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><br /></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">So, currently I wish to use following pin muxing:</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">on uart 1</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\"><br /></div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">//#define RX1_pin&nbsp; 2// with this config RX=2, TX=4, I can\'t load the code with FTDI connected</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">//#define TX1_pin&nbsp; 4</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">#define RX1_pin&nbsp; 4// with this config Rx=4, Tx=2, I can load the code with FTDI connected</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">#define TX1_pin&nbsp; 2</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">HardwareSerial Serial2(2);</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">#define RX2_pin&nbsp; 14</div>\r\n<div class=\"separator\" style=\"color: #757575; font-family: Roboto, sans-serif; font-size: 15px; background-color: #ffffff; clear: both;\">#define TX2_pin&nbsp; 16</div>','http://ldsrc.blogspot.com/2017/12/001-esp32-uart012-with-arduino-ide.html','',0,0,3,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-06-22 09:25:47',0,'2019-06-22 09:25:47','192.168.219.103','','','','','','','','','','','',''),(422,-422,'',422,0,0,'','','html1','[Arduino] ESP-WROOM-32 PIN MAP 배치 및 각 GPIO핀 설명','<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;\">SP32는 입출력핀의 갯수와 용도도 많을 뿐더러 이를 응용한 모듈의 유형도&nbsp;많아&nbsp;입출력핀을 사용하는 방법이 좀 복잡하다.</p>\r\n<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>\r\n<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;\">아래는 ESP32칩을 사용한 기본 모듈인 WROOM32의 핀배열이고 각각의 용도를 표시한 것이다.</p>\r\n<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>\r\n<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: 820px;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/9965F6345C9730143E\" width=\"820\" filename=\"esp32pin_1.jpg\" filemime=\"image/jpeg\" style=\"border: 0px; max-width: 100%; height: auto; vertical-align: middle;\" /></span></p>\r\n<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>\r\n<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;WROOM 32&nbsp;모듈은 제품 양산용으로서 일반적인 아두이노&nbsp;메이커들이 직접 사용하여 개발하기에는 불편하기 떄문에 여기에&nbsp;USB연결장치, 정전압 레귤레이터, 2.54mm&nbsp;사이즈 핀배열 기능을 추가한&nbsp;ESP32개발용 보드들을&nbsp;사용하게 되는데 이 개발용 보드들도 여러 종류가 있어 혼동스럽다. 다음은 일반적으로 많이 사용하는 36핀 ESP32 개발용 보드의 핀인데, 다른 개발용 보드들은 이와는 다른 핀배열을 가질 수 있으므로 반드시 보드에 표시된 GPIO번호를 정확히 확인하고 회로를 구성해야 한다.</p>\r\n<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>\r\n<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: 820px;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/994B61345C97301508\" width=\"820\" filename=\"esp32pin_2.jpg\" filemime=\"image/jpeg\" style=\"border: 0px; max-width: 100%; height: auto; vertical-align: middle;\" /></span></p>\r\n<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>\r\n<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>\r\n<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;\">ESP32 개발용보드에 표시된&nbsp;각각의&nbsp;GPIO핀들의 용도는 다음과 같다.</p>\r\n<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>\r\n<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;\"><span style=\"box-sizing: border-box; font-size: 14pt;\"><strong>1.입력전용핀</strong></span></p>\r\n<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>\r\n<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;\">GPIO34 에서 GPIO39 까지 6개의 핀은 입력전용으로 출력용도로 사용하면 안된다.</p>\r\n<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>\r\n<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;\">2</span><span style=\"box-sizing: border-box; font-size: 14pt;\"><span style=\"box-sizing: border-box; font-size: 14pt;\">.FLASH메모리 전용핀</span></span></strong></p>\r\n<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>\r\n<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;\">GPIO6 에서 GPIO11 까지 6개의 핀은 WROOM-32 기본 모듈에서 FLASH메모리용으로 이미 사용하고 있는 핀이다. 개발용 보드에 간혹 이 GPIO6~GPIO11까지의&nbsp;핀이 연결되어 표시된 경우가 있는데 이를 임의로 사용하면 안된다.</p>\r\n<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;&nbsp; -GPIO 6 ( SCK/CLK )</p>\r\n<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;&nbsp; -</p>\r\n<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;\"><span style=\"box-sizing: border-box; font-size: 14pt;\"><strong>3.터치센서용 핀</strong></span></p>\r\n<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>\r\n<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;\">ESP32에는 10개의 터치센서가 내장되어 있다. 즉, 손가락으로 GPIO핀을 터치하면 정전용량를 감지하여 센서로 작동되므로 이 GPIO핀에&nbsp;구리판 등을 연결하여 터치센서로 사용할 수 있다. 또한 이 터치센서 핀들은&nbsp;Deep Sleep모드에서&nbsp;깨어나기 위한&nbsp;Wake up으로 사용될 수 있으므로 예를 들어&nbsp;절전sleep 모드에 있다가 사람이 터치하면 깨어나 작동되는 자동화된 기기를 손쉽게 제작할 수 있게 된다.&nbsp;&nbsp;</p>\r\n<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>\r\n<p style=\"font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; margin-left: 2em; padding-top: 0px !important; padding-bottom: 0px !important;\">T0 (GPIO 4)<br />T1 (GPIO 0)<br />T2 (GPIO 2)<br />T3 (GPIO 15)<br />T4 (GPIO 13)<br />T5 (GPIO 12)<br />T6 (GPIO 14)<br />T7 (GPIO 27)<br />T8 (GPIO 33)<br />T9 (GPIO 32)&nbsp;&nbsp;&nbsp;&nbsp;</p>\r\n<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>\r\n<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;\"><span style=\"box-sizing: border-box; font-size: 14pt;\"><strong>4.ADC ( Analog to Digital Converter )&nbsp;핀</strong></span></p>\r\n<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>\r\n<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;\">ESP8266에서는 10 bit&nbsp;해상도의 ADC가 1개 있었는데&nbsp;ESP32에서는 12bit 해상도&nbsp;ADC가&nbsp;무려 18&nbsp;채널이 지원된다.&nbsp;</p>\r\n<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;\">12bit 해상도이므로 0~4095까지 구분( 10bit일떄에는 0~1023)&nbsp;구분할 수 있다. 즉 0V는 0로 3.3V는 4094로 구분되므로훨씬 정교한 제어가 가능해 진다.&nbsp;</p>\r\n<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>\r\n<p style=\"font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; margin-left: 2em; padding-top: 0px !important; padding-bottom: 0px !important;\">ADC1_CH0 (GPIO 36)<br />ADC1_CH1 (GPIO 37)<br />ADC1_CH2 (GPIO 38)<br />ADC1_CH3 (GPIO 39)<br />ADC1_CH4 (GPIO 32)<br />ADC1_CH5 (GPIO 33)<br />ADC1_CH6 (GPIO 34)<br />ADC1_CH7 (GPIO 35)<br />ADC2_CH0 (GPIO 4)<br />ADC2_CH1 (GPIO 0)<br />ADC2_CH2 (GPIO 2)<br />ADC2_CH3 (GPIO 15)<br />ADC2_CH4 (GPIO 13)<br />ADC2_CH5 (GPIO 12)<br />ADC2_CH6 (GPIO 14)<br />ADC2_CH7 (GPIO 27)<br />ADC2_CH8 (GPIO 25)<br />ADC2_CH9 (GPIO 26)</p>\r\n<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;&nbsp;&nbsp;</p>\r\n<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>\r\n<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;\"><span style=\"box-sizing: border-box; font-size: 14pt;\"><strong>5.DAC ( Digital to Analog&nbsp;Converter )&nbsp;핀</strong></span></p>\r\n<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>\r\n<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;\">ESP32에는 8 bit 해상도의 2개의 DAC채널이 있어&nbsp;디지털값을 아날로그&nbsp;Volt값 출력으로 변환할 수&nbsp;있다.</p>\r\n<p style=\"font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; margin-left: 2em; padding-top: 0px !important; padding-bottom: 0px !important;\">DAC1 (GPIO25)<br />DAC2 (GPIO26)&nbsp;</p>\r\n<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>\r\n<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;\"><span style=\"box-sizing: border-box; font-size: 14pt;\"><strong>6.RTC ( Real Time Clock&nbsp;)&nbsp;핀</strong></span></p>\r\n<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>\r\n<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;\">ESP32는 RTC GPIO기능이 지원된다. ESP32 메인 프로세서가&nbsp;deep sleep모드일 때에도 RTC GPIO핀들은 Ultra Low power co-Processor를 통해 메인 프로세서를 깨울 수가 있는데&nbsp;다음과 같은 핀들을 통해 외부에서&nbsp;이 wake up신호를 줄 수 있다.</p>\r\n<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>\r\n<p style=\"font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; margin-left: 2em; padding-top: 0px !important; padding-bottom: 0px !important;\">RTC_GPIO0 (GPIO36)<br />RTC_GPIO3 (GPIO39)<br />RTC_GPIO4 (GPIO34)<br />RTC_GPIO5 (GPIO35)<br />RTC_GPIO6 (GPIO25)<br />RTC_GPIO7 (GPIO26)<br />RTC_GPIO8 (GPIO33)<br />RTC_GPIO9 (GPIO32)<br />RTC_GPIO10 (GPIO4)<br />RTC_GPIO11 (GPIO0)<br />RTC_GPIO12 (GPIO2)<br />RTC_GPIO13 (GPIO15)<br />RTC_GPIO14 (GPIO13)<br />RTC_GPIO15 (GPIO12)<br />RTC_GPIO16 (GPIO14)<br />RTC_GPIO17 (GPIO27)</p>\r\n<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>\r\n<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;\"><span style=\"box-sizing: border-box; font-size: 14pt;\"><strong>7.PWM ( Digital to Analog&nbsp;Converter )&nbsp;핀</strong></span></p>\r\n<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>\r\n<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;\">ESP32에는 16개의 PWM 채널이&nbsp; 지원되는데&nbsp;각각의 채널은 각자 다른 특성의 PWM 신호를 생성할 수 있다. 즉 PWM 신호를 생성하려면 다음 사항을 지정해야 한다.&nbsp;&nbsp;</p>\r\n<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>\r\n<p style=\"font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; margin-left: 2em; padding-top: 0px !important; padding-bottom: 0px !important;\">PWM신호의&nbsp;주파수</p>\r\n<p style=\"font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; margin-left: 2em; padding-top: 0px !important; padding-bottom: 0px !important;\">Duty cycle (&nbsp;출력하려는 값 )</p>\r\n<p style=\"font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; margin-left: 2em; padding-top: 0px !important; padding-bottom: 0px !important;\">PWM채널</p>\r\n<p style=\"font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; margin-left: 2em; padding-top: 0px !important; padding-bottom: 0px !important;\">PWM신호를 출력하려는 GPIO핀 번호&nbsp;&nbsp;&nbsp;&nbsp;</p>\r\n<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>\r\n<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;\">PWM출력용 GPIO핀은 임의의 출력핀을 사용하면 되므로 입력전용핀인 GPIO 34 ~ 39번을 제외한 임의의 핀을 사용하면 된다.&nbsp;&nbsp;&nbsp;</p>\r\n<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>\r\n<p style=\"font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; margin-left: 2em; padding-top: 0px !important; padding-bottom: 0px !important;\">DAC1 (GPIO25)<br />DAC2 (GPIO26)&nbsp;</p>\r\n<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>\r\n<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;\"><span style=\"box-sizing: border-box; font-size: 14pt;\"><strong>8.I2C 통신용&nbsp;핀</strong></span></p>\r\n<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>\r\n<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;\">ESP32를 아두이노 IDE에서 사용할 때에는 다음과 같은 GPIO핀을 사용해야 한다.</p>\r\n<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>\r\n<p style=\"font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; margin-left: 2em; padding-top: 0px !important; padding-bottom: 0px !important;\">GPIO 21 (SDA)<br />GPIO 22 (SCL)</p>\r\n<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>\r\n<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;\"><span style=\"box-sizing: border-box; font-size: 14pt;\"><strong>9.SPI&nbsp;</strong><strong>통신용&nbsp;핀</strong></span></p>\r\n<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;\"><span style=\"box-sizing: border-box; font-size: 14pt;\"></span>&nbsp;</p>\r\n<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;\">SPI용 핀은 다음과 같이&nbsp;배치되어 있다.</p>\r\n<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>\r\n<p style=\"font-family: &quot;Ubuntu Condensed&quot;, &quot;Noto Sans Korean&quot;; font-size: 15px; background-color: #ffffff; margin-left: 2em; padding-top: 0px !important; padding-bottom: 0px !important;\">&nbsp;</p>\r\n<table style=\"max-width: 100%; width: 719px; font-size: 18px; border-right: 0px solid; border-bottom: 0px solid; border-top-style: solid; border-left-style: solid; border-top-color: initial; border-left-color: initial; font-family: &quot;Open Sans&quot;, sans-serif; border-collapse: separate; color: #3a3a3a; padding: 0px; border-spacing: 0px; margin: 0px 0px 1.5em; background-color: #ffffff;\">\r\n   <tbody style=\"border-width: 0px; border-style: initial; border-color: initial; padding: 0px; margin: 0px;\">\r\n      <tr style=\"border-width: 0px; border-style: initial; border-color: initial; padding: 0px; margin: 0px;\">\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\"><span style=\"border-width: 0px; border-style: initial; border-color: initial; font-weight: 700; padding: 0px; margin: 0px;\">SPI</span></td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\"><span style=\"border-width: 0px; border-style: initial; border-color: initial; font-weight: 700; padding: 0px; margin: 0px;\">MOSI</span></td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\"><span style=\"border-width: 0px; border-style: initial; border-color: initial; font-weight: 700; padding: 0px; margin: 0px;\">MISO</span></td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\"><span style=\"border-width: 0px; border-style: initial; border-color: initial; font-weight: 700; padding: 0px; margin: 0px;\">CLK</span></td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\"><span style=\"border-width: 0px; border-style: initial; border-color: initial; font-weight: 700; padding: 0px; margin: 0px;\">CS</span></td>\r\n         </tr>\r\n      <tr style=\"border-width: 0px; border-style: initial; border-color: initial; padding: 0px; margin: 0px;\">\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\"><span style=\"border-width: 0px; border-style: initial; border-color: initial; font-weight: 700; padding: 0px; margin: 0px;\">VSPI</span></td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\">GPIO 23</td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\">GPIO 19</td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\">GPIO 18</td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\">GPIO 5</td>\r\n         </tr>\r\n      <tr style=\"border-width: 0px; border-style: initial; border-color: initial; padding: 0px; margin: 0px;\">\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\"><span style=\"border-width: 0px; border-style: initial; border-color: initial; font-weight: 700; padding: 0px; margin: 0px;\">HSPI</span></td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\">GPIO 13</td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\">GPIO 12</td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\">GPIO 14</td>\r\n         <td style=\"border-top: 0px solid; border-left: 0px solid; border-right-style: solid; border-bottom-style: solid; border-right-color: initial; border-bottom-color: initial; padding: 8px; margin: 0px;\">GPIO 15</td>\r\n         </tr>\r\n      </tbody>\r\n   </table>\r\n<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>\r\n<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;\"><span style=\"box-sizing: border-box; font-size: 14pt;\"><strong>10.인터럽트&nbsp;</strong></span></p>\r\n<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;\"><span style=\"box-sizing: border-box; font-size: 14pt;\"></span>&nbsp;</p>\r\n<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;\">ESP32의 모든 GPIO핀은 인터럽트용으로 사용할 수 있다.</p>','https://makernambo.com/82?category=765628','',4,0,15,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-06-22 09:50:36',0,'2019-06-22 09:50:36','192.168.219.103','','','','','','','','','','','',''),(423,-423,'',423,0,0,'','','html1','[Arduino] ESP-WROOM-32 with OV2640 Camera module','<h1 style=\"box-sizing: border-box; margin: 20px 0px 10px; font-size: 36px; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: #333333; background-color: #ffffff;\">ESP32 Camera Demo</h1>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">Code provided in this repository gets the image from camera and prints it out as ASCII art to the serial port.</p>\r\n<h2 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: #333333; margin-top: 20px; margin-bottom: 10px; font-size: 30px; background-color: #ffffff;\">Build Status</h2>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\"><a href=\"https://travis-ci.org/igrr/esp32-cam-demo\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\"><img src=\"https://travis-ci.org/igrr/esp32-cam-demo.svg?branch=master\" alt=\"Build Status\" style=\"box-sizing: border-box; border: 0px; vertical-align: middle; max-width: 500px;\" /></a></p>\r\n<h2 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: #333333; margin-top: 20px; margin-bottom: 10px; font-size: 30px; background-color: #ffffff;\">Table of Contents</h2>\r\n<ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Components</a>\r\n      <ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\r\n         <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">ESP32</a></li>\r\n         <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Camera</a></li>\r\n         <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Esp-idf</a></li>\r\n         </ul>\r\n      </li>\r\n   <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Quick Start</a>\r\n      <ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\r\n         <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Connect</a></li>\r\n         <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Flash</a></li>\r\n         <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Shoot</a></li>\r\n         </ul>\r\n      </li>\r\n   <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">How it Works</a>\r\n      <ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 0px;\">\r\n         <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Software</a></li>\r\n         <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Operation</a></li>\r\n         </ul>\r\n      </li>\r\n   <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Troubleshooting</a></li>\r\n   <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Showcase</a></li>\r\n   <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Next Steps</a></li>\r\n   <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Contribute</a></li>\r\n   <li style=\"box-sizing: border-box;\"><a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Acknowledgments</a></li>\r\n   </ul>\r\n<h2 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: #333333; margin-top: 20px; margin-bottom: 10px; font-size: 30px; background-color: #ffffff;\">Components</h2>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">To make this code work, you need the following components:</p>\r\n<ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">This repository. It contains submodules, so make sure you clone it with&nbsp;\r\n      <code style=\"box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 12.6px; padding: 2px 4px; color: #c7254e; background-color: #f9f2f4; border-radius: 4px;\">--recursive</code>\r\n      &nbsp;option. If you have already cloned it without&nbsp;\r\n      <code style=\"box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 12.6px; padding: 2px 4px; color: #c7254e; background-color: #f9f2f4; border-radius: 4px;\">--recursive</code>\r\n      , run&nbsp;\r\n      <code style=\"box-sizing: border-box; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; font-size: 12.6px; padding: 2px 4px; color: #c7254e; background-color: #f9f2f4; border-radius: 4px;\">git submodule update --init</code>\r\n      .</li>\r\n   <li style=\"box-sizing: border-box;\"><a href=\"https://espressif.com/en/products/hardware/esp32/overview\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">ESP32</a>&nbsp;module</li>\r\n   <li style=\"box-sizing: border-box;\">Camera module</li>\r\n   <li style=\"box-sizing: border-box;\">PC with&nbsp;<a href=\"https://github.com/espressif/esp-idf\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">esp-idf</a></li>\r\n   </ul>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">See the following sections for more details.</p>\r\n<h3 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: #333333; margin-top: 20px; margin-bottom: 10px; font-size: 24px; background-color: #ffffff;\">ESP32</h3>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">Any ESP32 module should work, if it has sufficient number of GPIO pins available to interface with camera. See section&nbsp;<a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Connect</a>&nbsp;for more details.</p>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">If you are an owner of&nbsp;<a href=\"http://dl.espressif.com/dl/schematics/ESP32-DevKitJ-v1_sch.pdf\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">ESP-WROVER V1 (aka DevKitJ)</a>, then camera connector is already broken out.</p>\r\n<h3 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: #333333; margin-top: 20px; margin-bottom: 10px; font-size: 24px; background-color: #ffffff;\">Camera</h3>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">This example has been tested with OV7725 camera module. Use it, if this is your first exposure to interfacing a microcontroller with a camera.</p>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">Other OV7xxx series should work as well, with some changes to camera configuration code. OV5xxx can work too, but it is advisable to choose the ones which support RGB or YUV 8-bit wide output bus. The ones which only output 10-bit raw data may be a bit harder to work with. Also choose the camera which can output a scaled down (QVGA or VGA) image. Use of larger frame buffers will require external SPI RAM.</p>\r\n<h3 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: #333333; margin-top: 20px; margin-bottom: 10px; font-size: 24px; background-color: #ffffff;\">ESP-IDF</h3>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">Configure your PC according to&nbsp;<a href=\"http://esp-idf.readthedocs.io/en/latest/?badge=latest\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">ESP32 Documentation</a>.&nbsp;<a href=\"http://esp-idf.readthedocs.io/en/latest/windows-setup.html\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">Windows</a>,&nbsp;<a href=\"http://esp-idf.readthedocs.io/en/latest/linux-setup.html\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">Linux</a>&nbsp;and&nbsp;<a href=\"http://esp-idf.readthedocs.io/en/latest/macos-setup.html\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">Mac OS</a>&nbsp;are supported. If this is you first exposure to ESP32 and&nbsp;<a href=\"https://github.com/espressif/esp-idf\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">esp-idf</a>, then get familiar with&nbsp;<a href=\"https://github.com/espressif/esp-idf/tree/master/examples/01_hello_world\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">01_hello_world</a>&nbsp;and&nbsp;<a href=\"https://github.com/espressif/esp-idf/tree/master/examples/02_blink\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">02_blink</a>&nbsp;examples. Make them work and understand before proceeding further.</p>\r\n<h2 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: #333333; margin-top: 20px; margin-bottom: 10px; font-size: 30px; background-color: #ffffff;\">Quick Start</h2>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">If you have your components ready, follow this section to&nbsp;<a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">connect</a>&nbsp;the camera to ESP32 module,&nbsp;<a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">flash</a>application to the ESP32 and finally&nbsp;<a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">shoot</a>&nbsp;and display the image.</p>\r\n<h2 style=\"box-sizing: border-box; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-weight: 500; line-height: 1.1; color: #333333; margin-top: 20px; margin-bottom: 10px; font-size: 30px; background-color: #ffffff;\">Connect</h2>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">Specific pins used in this example to connect ESP32 and camera are shown in table below. Pinout can be adjusted to some extent in software. Table below provides two options of pin mapping (last two columns).</p>\r\n<table style=\"box-sizing: border-box; border-spacing: 0px; background-color: #ffffff; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px;\">\r\n   <thead style=\"box-sizing: border-box;\">\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <th style=\"box-sizing: border-box; padding: 0px; text-align: left;\">Interface</th>\r\n         <th style=\"box-sizing: border-box; padding: 0px; text-align: center;\">Camera Pin</th>\r\n         <th style=\"box-sizing: border-box; padding: 0px; text-align: center;\">Pin Mapping for ESP32 DevKitJ</th>\r\n         <th style=\"box-sizing: border-box; padding: 0px; text-align: center;\">Alternate ESP32 Pin Mapping</th>\r\n         </tr>\r\n      </thead>\r\n   <tbody style=\"box-sizing: border-box;\">\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">SCCB Clock</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">SIOC</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO27</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO23</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">SCCB Data</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">SIOD</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO26</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO25</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">System Clock</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">XCLK</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO21</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO27</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Vertical Sync</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">VSYNC</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO25</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO22</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Horizontal Reference</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">HREF</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO23</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO26</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Pixel Clock</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">PCLK</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO22</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO21</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Pixel Data Bit 0</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">D2</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO4</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO35</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Pixel Data Bit 1</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">D3</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO5</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO17</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Pixel Data Bit 2</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">D4</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO18</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO34</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Pixel Data Bit 3</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">D5</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO19</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO5</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Pixel Data Bit 4</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">D6</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO36</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO39</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Pixel Data Bit 5</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">D7</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO39</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO18</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Pixel Data Bit 6</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">D8</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO34</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO36</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Pixel Data Bit 7</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">D9</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO35</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO19</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Camera Reset</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">RESET</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO2</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">IO15</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Camera Power Down</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">PWDN</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\"><em style=\"box-sizing: border-box;\">see Note 3</em></td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\"><em style=\"box-sizing: border-box;\">see Note 3</em></td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Power Supply 3.3V</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">3V3</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">3V3</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">3V3</td>\r\n         </tr>\r\n      <tr style=\"box-sizing: border-box;\">\r\n         <td style=\"box-sizing: border-box; padding: 0px;\">Ground</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">GND</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">GND</td>\r\n         <td style=\"box-sizing: border-box; padding: 0px; text-align: center;\">GND</td>\r\n         </tr>\r\n      </tbody>\r\n   </table>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">Notes:</p>\r\n<ol style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; font-weight: 700;\">Important:</span>&nbsp;Make the connections short or you are likely to get noisy or even not legible images. More on that is discussed in section&nbsp;<a target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7;\">Showcase</a></li>\r\n   <li style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; font-weight: 700;\">Camera pin</span>&nbsp;column refers to pinout on OV7725 camera module</li>\r\n   <li style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; font-weight: 700;\">Camera Power Down</span>&nbsp;pin does not need to be connected to ESP32 GPIO. Instead it may be pulled down to ground with 10 kOhm resistor.</li>\r\n   <li style=\"box-sizing: border-box;\">OV7725 supports 10 bit image pixels. In this example the upper 8 bits are processed and saved. The pins corresponding with LSB are marked D0 and D1 and are left not connected.</li>\r\n   </ol>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">If you have&nbsp;<a href=\"http://dl.espressif.com/dl/schematics/ESP32-DevKitJ-v1_sch.pdf\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">ESP-WROVER V1 (aka DevKitJ)</a>, then camera connector is already broken out and labeled Camera / JP4. Solder 2.54 mm / 0.1\" double row, 18 pin socket in provided space and plug the camera module right into it. Line up 3V3 and GND pins on camera module and on ESP-WROVER. D0 and D1 should be left not connected outside the socket.</p>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">To connect the camera to Core Board V2 (aka DevKitC), consider alternate pin mapping (see the last column of table) that provides clean wiring layout shown below.</p>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\"><img src=\"https://raw.githubusercontent.com/igrr/esp32-cam-demo/master/pictures/ov7725-alternate-wiring.png\" alt=\"alt text\" title=\"Wiring for Core Board V2 (aka DevKitC)\" style=\"box-sizing: border-box; border: 0px; vertical-align: middle; max-width: 500px;\" /></p>\r\n<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"432\" style=\"width: 324pt;\"><colgroup><col width=\"72\" span=\"6\" style=\"width:54pt\" /></colgroup>\r\n   <tbody>\r\n      <tr height=\"18\" style=\"height:13.5pt\">\r\n         <td height=\"18\" class=\"xl65\" width=\"72\" style=\"height:13.5pt;width:54pt\">ESP32</td>\r\n         <td class=\"xl66\" width=\"72\" style=\"border-left:none;width:54pt\">DevKit</td>\r\n         <td colspan=\"2\" class=\"xl71\" width=\"144\" style=\"border-right:1.0pt solid black;\r\n  width:108pt\">OV2640 Module</td>\r\n         <td class=\"xl69\" width=\"72\" style=\"width:54pt\">DevKit</td>\r\n         <td class=\"xl65\" width=\"72\" style=\"width:54pt\">ESP32</td>\r\n         </tr>\r\n      <tr height=\"18\" style=\"height:13.5pt\">\r\n         <td height=\"18\" class=\"xl64\" style=\"height:13.5pt;border-top:none\">　</td>\r\n         <td class=\"xl68\" style=\"border-top:none\">　</td>\r\n         <td class=\"xl73\" style=\"border-top:none\">GND</td>\r\n         <td class=\"xl74\" style=\"border-top:none;border-left:none\">3.3V</td>\r\n         <td class=\"xl70\" style=\"border-top:none\">　</td>\r\n         <td class=\"xl67\" style=\"border-top:none\">　</td>\r\n         </tr>\r\n      <tr height=\"18\" style=\"height:13.5pt\">\r\n         <td height=\"18\" class=\"xl65\" style=\"height:13.5pt;border-top:none\">GPIO25</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO25</td>\r\n         <td class=\"xl75\" style=\"border-top:none\">SIOD&nbsp;</td>\r\n         <td class=\"xl76\" style=\"border-top:none;border-left:none\">SIDC</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO23</td>\r\n         <td class=\"xl65\" style=\"border-top:none\">GPIO23</td>\r\n         </tr>\r\n      <tr height=\"18\" style=\"height:13.5pt\">\r\n         <td height=\"18\" class=\"xl65\" style=\"height:13.5pt;border-top:none\">GPIO26</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO26</td>\r\n         <td class=\"xl75\" style=\"border-top:none\">HREF</td>\r\n         <td class=\"xl76\" style=\"border-top:none;border-left:none\">VSYNC</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO22</td>\r\n         <td class=\"xl65\" style=\"border-top:none\">GPIO22</td>\r\n         </tr>\r\n      <tr height=\"18\" style=\"height:13.5pt\">\r\n         <td height=\"18\" class=\"xl65\" style=\"height:13.5pt;border-top:none\">GPIO27</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO27</td>\r\n         <td class=\"xl75\" style=\"border-top:none\">XCLK</td>\r\n         <td class=\"xl76\" style=\"border-top:none;border-left:none\">PCLK</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO21</td>\r\n         <td class=\"xl65\" style=\"border-top:none\">GPIO21</td>\r\n         </tr>\r\n      <tr height=\"18\" style=\"height:13.5pt\">\r\n         <td height=\"18\" class=\"xl65\" style=\"height:13.5pt;border-top:none\">GPIO36</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">SVP/3</td>\r\n         <td class=\"xl75\" style=\"border-top:none\">D8</td>\r\n         <td class=\"xl76\" style=\"border-top:none;border-left:none\">D9</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO19</td>\r\n         <td class=\"xl65\" style=\"border-top:none\">GPIO19</td>\r\n         </tr>\r\n      <tr height=\"18\" style=\"height:13.5pt\">\r\n         <td height=\"18\" class=\"xl65\" style=\"height:13.5pt;border-top:none\">GPIO39</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">SVN/3</td>\r\n         <td class=\"xl75\" style=\"border-top:none\">D6</td>\r\n         <td class=\"xl76\" style=\"border-top:none;border-left:none\">D7</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO18</td>\r\n         <td class=\"xl65\" style=\"border-top:none\">GPIO18</td>\r\n         </tr>\r\n      <tr height=\"18\" style=\"height:13.5pt\">\r\n         <td height=\"18\" class=\"xl65\" style=\"height:13.5pt;border-top:none\">GPIO34</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO34</td>\r\n         <td class=\"xl75\" style=\"border-top:none\">D4</td>\r\n         <td class=\"xl76\" style=\"border-top:none;border-left:none\">D5</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO5</td>\r\n         <td class=\"xl65\" style=\"border-top:none\">GPIO5</td>\r\n         </tr>\r\n      <tr height=\"18\" style=\"height:13.5pt\">\r\n         <td height=\"18\" class=\"xl65\" style=\"height:13.5pt;border-top:none\">GPIO35</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO35</td>\r\n         <td class=\"xl75\" style=\"border-top:none\">D2</td>\r\n         <td class=\"xl76\" style=\"border-top:none;border-left:none\">D3</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO17</td>\r\n         <td class=\"xl65\" style=\"border-top:none\">GPIO17</td>\r\n         </tr>\r\n      <tr height=\"22\" style=\"mso-height-source:userset;height:16.5pt\">\r\n         <td colspan=\"2\" height=\"22\" class=\"xl79\" style=\"border-right:1.0pt solid black;\r\n  height:16.5pt\">GND(10k use)</td>\r\n         <td class=\"xl75\" style=\"border-top:none;border-left:none\">PWDN</td>\r\n         <td class=\"xl76\" style=\"border-top:none;border-left:none\">RESET</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">IO15</td>\r\n         <td class=\"xl65\" style=\"border-top:none\">GPIO15</td>\r\n         </tr>\r\n      <tr height=\"19\" style=\"height:14.25pt\">\r\n         <td height=\"19\" class=\"xl65\" style=\"height:14.25pt;border-top:none\">　</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">　</td>\r\n         <td class=\"xl77\" style=\"border-top:none\">D0</td>\r\n         <td class=\"xl78\" style=\"border-top:none;border-left:none\">D1</td>\r\n         <td class=\"xl69\" style=\"border-top:none\">　</td>\r\n         <td class=\"xl65\" style=\"border-top:none\">　</td>\r\n         </tr>\r\n      </tbody>\r\n   </table>\r\n<p style=\"box-sizing: border-box; margin-bottom: 10px; color: #333333; font-family: &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 14px; background-color: #ffffff;\">2.2uF capacitor conencted between GND and EN pins of ESP32module is added to resolve&nbsp;<a href=\"https://github.com/espressif/esptool/issues/136\" target=\"_blank\" style=\"box-sizing: border-box; background-color: transparent; color: #337ab7; text-decoration-line: none;\">ESP32 Reset To Bootloader Issues on Windows #136</a>.</p>','https://recordnotfound.com/esp32-cam-demo-igrr-149897','http://vctec.co.kr/product/detail.html?product_no=9308&cate_no=145&display_group=1&cafe_mkt=naver_ks&mkt_in=Y&ghost_mall_id=naver&ref=naver_open&NaPm=ct%3Djx6ufogw%7Cci%3Dd9b5f7882540248b551484b6218c0c6e0425f1f0%7Ctr%3Dslsl%7Csn%3D246260%7Chk%3D22d1af274522d3e0ee4affc31387da84ee4ec56e',1,0,2,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-06-22 11:36:35',0,'2019-06-22 11:36:35','192.168.219.103','','','','','','','','','','','',''),(424,-424,'',424,0,0,'','','html1','[Eagle] Eagle에서 언라우팅 색상 지정','<p>&gt;option &gt; set</p>\r\n<p>&nbsp;</p>','','',0,0,11,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-06-29 10:18:46',1,'2019-06-29 10:18:46','210.101.103.92','','','','','','','','','','','',''),(425,-425,'',425,0,0,'','','html1','[Arduino] ESP8266 에서 배터리체크하기','<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div id=\"105747915554748821\" align=\"left\" class=\"wcustomhtml\" style=\"width: 850px; overflow-y: hidden;\">\r\n      <h1 align=\"center\" style=\"color: black;\">Battery voltage monitor with nodemcu Esp8266-12E WiFi module</h1>\r\n      </div>\r\n   </div>\r\n<div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 13px; margin: 0px; padding: 0.5em 0px; font-family: Arial, Helvetica, sans-serif; text-align: justify; line-height: 24px !important; color: #2a2a2a !important;\"><font size=\"3\">Measuring voltage of your solar panel, ups and other daily use batteries consumes a lot of time. Grabbing multi-meter, opening the battery boxes and touching both the multi-meter leads to terminals of battery takes some effort. How about developing an efficient IOT system through which you can see the status of your battery on your desktop and mobile web browsers. Lets start and make this diy project. Since we are going to develop and IOT system which can monitor battery status and update us on our browser. We need some circuit/device/controller which can effectively measure voltage. A WiFi device which can connect to our local home WiFi, takes voltage reading from controller and updates the end user about the current battery level. For this purpose i decided to use nodemcu WiFi module in the project. It can not only work as controller but also it can connect it self to a WiFi network as server or client. Battery monitoring circuit is a traditional voltage divider&nbsp;circuit. I am going to measure 12 volt batteries. Circuit can be modified to measure 24 volt batteries and even more 48 volts parallel&nbsp;battery cluster.</font></div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div id=\"480362449164041961\" align=\"left\" class=\"wcustomhtml\" style=\"width: 850px; overflow-y: hidden;\">\r\n      <h3 style=\"font-size: 1.3em; margin: 0px 0px 10px; color: black;\">Voltage divider working and calculations</h3>\r\n      </div>\r\n   </div>\r\n<div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 13px; margin: 0px; padding: 0.5em 0px; font-family: Arial, Helvetica, sans-serif; text-align: justify; line-height: 24px !important; color: #2a2a2a !important;\"><font size=\"3\">Nodemcu is a tiny device, it works on 3.3 volts. Since it is working on 3.3 volts its pins can source and sunk 3.3 volts only. Voltage greater than 5 volt may blow the pin or fry the nodemcu. In our case we want to measure 12 volt battery and nodemcu adc(analog to digital channel)can only accept 3.3 volts. We need to play smartly&nbsp;here. What we will do is divide the voltage between two resistors and measure only voltage across one resistor and remaining resistor voltage will be calculated mathematically. Typical voltage divider circuit and formula is given below.</font></div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div class=\"wsite-image wsite-image-border-none \" style=\"position: relative; padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\"><a href=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/battery_orig.jpg\" class=\"w-fancybox\" style=\"text-decoration-line: none; color: #008000;\" target=\"_blank\"><img src=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/battery_orig.jpg\" alt=\"Voltage divider with battery circuit\" style=\"border-width: 0px !important; border-style: initial; border-color: initial; border-image: initial; width: auto; max-width: 100%;\" /></a>\r\n      <div style=\"font-size: 11.7px;\">Voltage divider with battery circuit</div>\r\n      </div>\r\n   </div>\r\n<div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 13px; margin: 0px; padding: 0.5em 0px; font-family: Arial, Helvetica, sans-serif; text-align: justify; line-height: 24px !important; color: #2a2a2a !important;\"><font size=\"3\">Now lets calculate the values for Rtop and Rbottom. Here we need some important considerations to be taken seriously.&nbsp;</font>\r\n   <ul style=\"padding-left: 3em !important; margin: 5px 0px !important; list-style-position: outside !important; list-style-image: initial !important;\">\r\n      <li style=\"padding-left: 5px !important; margin: 3px 0px 0px !important; list-style: disc outside !important;\"><font size=\"3\">Low ohm resistors can sunk much current and wires could be heated instantly. Consequently wires can melt down in seconds. So always use sufficient amount of resistors for bigger ampere hour batteries. I selected one resistor Rbottom to be 10k ohm.</font>&nbsp;<br /></li>\r\n      <li style=\"padding-left: 5px !important; margin: 3px 0px 0px !important; list-style: disc outside !important;\"><font size=\"3\">During charging battery voltage can increase to 18 volts. For example150 watt solar panel outputs 17&nbsp;volts at 6&nbsp;amperes&nbsp;during full sun, output voltage can even reach above 18 volts</font>.&nbsp;<font size=\"3\">Solar charge controller also output voltage approximately equal to 15 volts to charge the batteries.</font></li>\r\n      </ul>\r\n   </div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div id=\"373278147752635110\" align=\"left\" class=\"wcustomhtml\" style=\"width: 850px; overflow-y: hidden;\">\r\n      <h3 style=\"font-size: 1.3em; margin: 0px 0px 10px; color: black;\">Formula Calculations</h3>\r\n      </div>\r\n   </div>\r\n<div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 13px; margin: 0px; padding: 0.5em 0px; font-family: Arial, Helvetica, sans-serif; text-align: justify; line-height: 24px !important; color: #2a2a2a !important;\"><font size=\"3\">I am going to measure voltage across Rbottom and i decided its value randomly to be 10k ohm. We know Vout can be up to maximum 3.3 volts since nodemcu works and accepts maximum 3.3 volts at its I/O pins. Vin is 18 volts when the battery is charging. Now we can find Rtop.&nbsp;</font></div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div class=\"wsite-image wsite-image-border-none \" style=\"position: relative; padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\"><a href=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/voltage-devider-resistance-value-calculation_orig.png\" class=\"w-fancybox\" style=\"text-decoration-line: none; color: #008000;\" target=\"_blank\"><img src=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/voltage-devider-resistance-value-calculation_orig.png\" alt=\"Voltage divider resistance value calculation\" style=\"border-width: 0px !important; border-style: initial; border-color: initial; border-image: initial; width: auto; max-width: 100%;\" /></a>\r\n      <div style=\"font-size: 11.7px;\">Voltage divider resistance value calculation</div>\r\n      </div>\r\n   </div>\r\n<div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 13px; margin: 0px; padding: 0.5em 0px; font-family: Arial, Helvetica, sans-serif; text-align: justify; line-height: 24px !important; color: #2a2a2a !important;\"><font size=\"3\">Now if 18 volts are at battery side it will be divided across resistors, 3.3 volts drops at 10k resistor and remaining 14.7 volts drops at 44.54 k resistor. 44.54 k ohm resistor is not available in market i am going to use the one above this rating and easily can be find from any electronics shop 47 k ohm resistor.&nbsp; If battery is not charging and say supplying 12 volts what will be the voltage drop across resistors? Lets calculate it</font></div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div class=\"wsite-image wsite-image-border-none \" style=\"position: relative; padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\"><a href=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/voltage-drop-across-resistance-of-voltage-divider-circuit_orig.png\" class=\"w-fancybox\" style=\"text-decoration-line: none; color: #008000;\" target=\"_blank\"><img src=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/voltage-drop-across-resistance-of-voltage-divider-circuit_orig.png\" alt=\"Voltage drop across voltage divider resistors\" style=\"border-width: 0px !important; border-style: initial; border-color: initial; border-image: initial; width: auto; max-width: 100%;\" /></a>\r\n      <div style=\"font-size: 11.7px;\">Voltage drop across resistance of voltage divider circuit</div>\r\n      </div>\r\n   </div>\r\n<div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 13px; margin: 0px; padding: 0.5em 0px; font-family: Arial, Helvetica, sans-serif; text-align: justify; line-height: 24px !important; color: #2a2a2a !important;\"><font size=\"3\">Its obvious from the above discussion that the voltage across Rbottom will not exceed 3.3 volts now. I hope it makes sense to readers about the calculations. The question now is how the 3.33 volts is converted to 12 volt by nodemcu or how from 3.33 volts we can predict that at the battery side the voltage is 12 volts. Well a little more mathematics is involved here. Since the resistor values are fixed we can calculate the voltage ratio across the resistors with respect to the source and use it in code for actual voltage at source. How ratio is calculated is below.</font></div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div id=\"524359916487231677\" align=\"left\" class=\"wcustomhtml\" style=\"width: 850px; overflow-y: hidden;\"><center><ins class=\"adsbygoogle\" data-ad-client=\"ca-pub-8954746221155592\" data-ad-slot=\"9040383063\" data-adsbygoogle-status=\"done\" style=\"display: inline-block; width: 300px; height: 250px;\"><ins id=\"aswift_3_expand\" style=\"display: inline-table; border: none; height: 250px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 300px;\"><ins id=\"aswift_3_anchor\" style=\"display: block; border: none; height: 250px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 300px;\"><iframe width=\"300\" height=\"250\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" vspace=\"0\" hspace=\"0\" allowtransparency=\"true\" scrolling=\"no\" allowfullscreen=\"true\" id=\"aswift_3\" name=\"aswift_3\" style=\"left: 0px; position: absolute; top: 0px; border-width: 0px; border-style: initial; width: 300px; height: 250px;\"></iframe></ins></ins></ins></center></div>\r\n   </div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div class=\"wsite-image wsite-image-border-medium \" style=\"position: relative; padding-left: 4px !important; padding-right: 4px !important; padding-top: 5px; padding-bottom: 10px; margin-left: 0px; margin-right: 10px; text-align: center;\"><a href=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/voltage-divider-ratio_orig.png\" class=\"w-fancybox\" style=\"text-decoration-line: none; color: #008000;\" target=\"_blank\"><img src=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/voltage-divider-ratio_orig.png\" alt=\"Voltage divider ration calculation\" style=\"border: 1px solid rgba(0, 0, 0, 0.13); padding: 3px !important; margin-left: -4px !important; margin-right: -4px !important; width: auto; max-width: 100%;\" /></a>\r\n      <div style=\"font-size: 11.7px;\">Voltage divider ratio calculation</div>\r\n      </div>\r\n   </div>\r\n<div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 13px; margin: 0px; padding: 0.5em 0px; font-family: Arial, Helvetica, sans-serif; text-align: justify; line-height: 24px !important; color: #2a2a2a !important;\"><font size=\"3\">Two cases are given above when source is at 18 volt and when source is at 12 volt in both the cases the ratio comes out to be constant value. This ratio is utilized in code for predicting the actual source/battery voltage. Ratio is multiplied with voltage at Rbottom for actual voltage value.<br />Project circuit diagram is given below. I am using ADC0 channel of nodemcu to measure the battery voltage. Both the battery and nodemcu power must be grounded together in order to complete the circuit. Its a most common mistake will measuring the voltage that both grounds are not grounded together. If the nodemcu ground is not taped with the battery ground the adc0 pin will become a floating pin and it starts reading floating values.</font><br /></div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div class=\"wsite-image wsite-image-border-none \" style=\"position: relative; padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\"><a href=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/battery-monitoring-with-nodemcu_orig.png\" class=\"w-fancybox\" style=\"text-decoration-line: none; color: #008000;\" target=\"_blank\"><img src=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/battery-monitoring-with-nodemcu_orig.png\" alt=\"Battery voltage monitoring with nodemcu\" style=\"border-width: 0px !important; border-style: initial; border-color: initial; border-image: initial; width: auto; max-width: 100%;\" /></a>\r\n      <div style=\"font-size: 11.7px;\">Battery voltage monitoring with nodemcu</div>\r\n      </div>\r\n   </div>\r\n<div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 13px; margin: 0px; padding: 0.5em 0px; font-family: Arial, Helvetica, sans-serif; text-align: justify; line-height: 24px !important; color: #2a2a2a !important;\"><font size=\"3\">After you completed the circuit its time to move on to code. Code is written in arduino IDE. I used ESP8266WiFi.h library in the code so first please make sure you installed this library in your arduino library folder. If its not present download it from github and install it first. Then enter the SSID and password of the WiFi network to which you want your nodemcu to be connected to. Most probably it will be your home WiFi. So just enter the ssid and password. Now upload the code in nodemcu. Before uploading make sure you selected the right board from arduino boards. If nodemcu is not appearing in your boards drop down menu than import its link from boards manager and install its necessary files. You can find many tutorials on internet about how to install nodemcu support for arduino IDE.&nbsp;&nbsp;</font></div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div class=\"wsite-multicol\" style=\"position: relative; direction: ltr;\">\r\n      <div class=\"wsite-multicol-table-wrap\" style=\"margin: 0px -15px;\">\r\n         <table class=\"wsite-multicol-table\" style=\"position: relative; table-layout: fixed; width: 880px; margin: 0px !important; border-width: 0px !important; border-style: initial !important; border-color: initial !important; padding: 0px !important;\">\r\n            <tbody class=\"wsite-multicol-tbody\">\r\n               <tr class=\"wsite-multicol-tr\">\r\n                  <td class=\"wsite-multicol-col\" style=\"vertical-align: top; padding: 0px 15px; width: 410px; margin: 0px !important; border-width: 0px !important; border-style: initial !important; border-color: initial !important;\">\r\n                     <div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 1em; line-height: 24px !important; margin: 0px; padding: 0.5em 0px; color: #2a2a2a !important; text-align: justify;\"><font size=\"3\">After uploading code you have to do a little one time complex work. Open arduino serial monitor. As soon as you open it you will see nodemcu server starting and your WiFi assigning an IP to your nodemcu.&nbsp;<font color=\"#508d24\">This IP is very important. You have to enter this IP in your mobile or desktop browser to see the battery status.</font>&nbsp;If you do not see any message on serial monitor. Check for serial monitor communication speed it must be 9600 bps. Change it to 9600. If still you do not see any thing than might be code is not uploaded correctly or board is disconnected. Check for the possible errors. Once the IP is allotted by your router to nodemcu it will remain same all the time. I hope so :D&nbsp;</font></div>\r\n                     </td>\r\n                  <td class=\"wsite-multicol-col\" style=\"vertical-align: top; padding: 0px 15px; width: 410px; margin: 0px !important; border-width: 0px !important; border-style: initial !important; border-color: initial !important;\">\r\n                     <div class=\"wsite-image wsite-image-border-none \" style=\"position: relative; padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\"><a style=\"color: #008000;\"><img src=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/serial-monitor_1_orig.jpg\" alt=\"Picture\" style=\"border-width: 0px !important; border-style: initial; border-color: initial; border-image: initial; width: auto; max-width: 100%;\" /></a>\r\n                        <div style=\"font-size: 11.7px;\">&nbsp;</div>\r\n                        </div>\r\n                     </td>\r\n                  </tr>\r\n               </tbody>\r\n            </table>\r\n         </div>\r\n      </div>\r\n   </div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div id=\"590819516143209058\" align=\"left\" class=\"wcustomhtml\" style=\"width: 850px; overflow-y: hidden;\">\r\n      <h2 align=\"center\" style=\"overflow-wrap: break-word; font-size: 24px; margin: 0px; padding: 0.3em 0px; line-height: 1.2; font-weight: normal; font-family: Glegoo, &quot;Myriad Pro&quot;, Arial, Helvetica, sans-serif; color: #8fc563; -webkit-text-stroke-width: 0.3px;\">Project Code</h2>\r\n      <font color=\"Black\" align=\"center\">\r\n         <h3 style=\"font-size: 1.3em; margin: 0px 0px 10px;\">Download the project code from the links given at the bottom of the Post.</h3>\r\n         </font><ins class=\"adsbygoogle\" data-ad-layout=\"in-article\" data-ad-format=\"fluid\" data-ad-client=\"ca-pub-8954746221155592\" data-ad-slot=\"3951931537\" data-adsbygoogle-status=\"done\" style=\"display: block; text-align: center; height: 200px;\"><ins id=\"aswift_4_expand\" style=\"display: inline-table; border: none; height: 200px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 850px;\"><ins id=\"aswift_4_anchor\" style=\"display: block; border: none; height: 200px; margin: 0px; padding: 0px; position: relative; visibility: visible; width: 850px;\"><iframe width=\"850\" height=\"200\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" vspace=\"0\" hspace=\"0\" allowtransparency=\"true\" scrolling=\"no\" allowfullscreen=\"true\" id=\"aswift_4\" name=\"aswift_4\" style=\"left: 0px; position: absolute; top: 0px; border-width: 0px; border-style: initial; width: 850px; height: 200px;\"></iframe></ins></ins></ins></div>\r\n   </div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div id=\"740458275156048346\" align=\"left\" class=\"wcustomhtml\" style=\"width: 850px; overflow-y: hidden;\">\r\n      <div class=\"code-toolbar\" style=\"position: relative;\">\r\n         <pre class=\" language-arduino\" style=\"margin-top: 0.5em; margin-bottom: 0.5em; padding: 1em; color: #f8f8f2; background: rgb(39, 40, 34); text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; overflow: auto; max-height: 500px; tab-size: 4; hyphens: none; border-radius: 0.3em; white-space: pre-wrap !important;\">\r\n            <code class=\" language-arduino\" style=\"background: none; text-shadow: rgba(0, 0, 0, 0.3) 0px 1px; font-family: Consolas, Monaco, &quot;Andale Mono&quot;, &quot;Ubuntu Mono&quot;, monospace; word-spacing: normal; word-break: normal; overflow-wrap: normal; line-height: 1.5; overflow-y: auto; max-height: 500px; tab-size: 4; hyphens: none; overflow-x: auto !important;\"><span class=\"token comment\" style=\"color: slategray;\">/*****************************************************\r\n * Date: 18 june 2018\r\n * Written by: Usman Ali Butt\r\n * Property off: <a class=\"vglnk\" href=\"http://microcontroller-project.com/\" rel=\"nofollow\" style=\"text-decoration-line: none;\" target=\"_blank\">microcontroller-project.com</a>\r\n * ***************************************************/</span><span class=\"token macro property\" style=\"color: #f92672;\">#<span class=\"token directive keyword\" style=\"color: #66d9ef;\">include</span><span class=\"token string\" style=\"color: #a6e22e;\">&lt; ESP8266WiFi.h&gt;</span></span>\r\nconst char<span class=\"token operator\">*</span> ssid <span class=\"token operator\">=</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Your SSID\"</span><span class=\"token punctuation\">;</span>\r\nconst char<span class=\"token operator\">*</span> password <span class=\"token operator\">=</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Your Wifi Password\"</span><span class=\"token punctuation\">;</span><span class=\"token keyword keyword-int\" style=\"color: #66d9ef;\">int</span> BAT<span class=\"token operator\">=</span> A0<span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">//Analog channel A0 as used to measure battery voltage</span>\r\nfloat RatioFactor<span class=\"token operator\">=</span><span class=\"token number\" style=\"color: #ae81ff;\">5.714</span><span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">//Resistors Ration Factor</span><span class=\"token builtin\" style=\"color: #a6e22e;\">WiFiServer</span><span class=\"token function\" style=\"color: #e6db74;\">server</span><span class=\"token punctuation\">(</span><span class=\"token number\" style=\"color: #ae81ff;\">80</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token keyword keyword-void\" style=\"color: #66d9ef;\">void</span><span class=\"token keyword keyword-setup\" style=\"color: #66d9ef;\">setup</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">{</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">begin</span><span class=\"token punctuation\">(</span><span class=\"token number\" style=\"color: #ae81ff;\">9600</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token function\" style=\"color: #e6db74;\">delay</span><span class=\"token punctuation\">(</span><span class=\"token number\" style=\"color: #ae81ff;\">10</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">print</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Connecting to \"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span>ssid<span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token builtin\" style=\"color: #a6e22e;\">WiFi</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">begin</span><span class=\"token punctuation\">(</span>ssid<span class=\"token punctuation\">,</span> password<span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token keyword keyword-while\" style=\"color: #66d9ef;\">while</span><span class=\"token punctuation\">(</span><span class=\"token builtin\" style=\"color: #a6e22e;\">WiFi</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">status</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token operator\">!=</span> WL_CONNECTED<span class=\"token punctuation\">)</span><span class=\"token punctuation\">{</span><span class=\"token function\" style=\"color: #e6db74;\">delay</span><span class=\"token punctuation\">(</span><span class=\"token number\" style=\"color: #ae81ff;\">500</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">print</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\".\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"WiFi connected\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\r\n  server<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">begin</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">// Start the server</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Server started\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">// Print the IP address on serial monitor</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">print</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Use this URL to connect: \"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">print</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"http://\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">//URL IP to be typed in mobile/desktop browser</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">print</span><span class=\"token punctuation\">(</span><span class=\"token builtin\" style=\"color: #a6e22e;\">WiFi</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">localIP</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"/\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span><span class=\"token keyword keyword-void\" style=\"color: #66d9ef;\">void</span><span class=\"token keyword keyword-loop\" style=\"color: #66d9ef;\">loop</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">{</span><span class=\"token keyword keyword-int\" style=\"color: #66d9ef;\">int</span> value <span class=\"token operator\">=</span><span class=\"token constant\" style=\"color: #f92672;\">LOW</span><span class=\"token punctuation\">;</span>\r\n  float Tvoltage<span class=\"token operator\">=</span><span class=\"token number\" style=\"color: #ae81ff;\">0.0</span><span class=\"token punctuation\">;</span>\r\n  float Vvalue<span class=\"token operator\">=</span><span class=\"token number\" style=\"color: #ae81ff;\">0.0</span><span class=\"token punctuation\">,</span>Rvalue<span class=\"token operator\">=</span><span class=\"token number\" style=\"color: #ae81ff;\">0.0</span><span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">// Check if a client has connected</span><span class=\"token builtin\" style=\"color: #a6e22e;\">WiFiClient</span> client <span class=\"token operator\">=</span> server<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">available</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token keyword keyword-if\" style=\"color: #66d9ef;\">if</span><span class=\"token punctuation\">(</span><span class=\"token operator\">!</span>client<span class=\"token punctuation\">)</span><span class=\"token punctuation\">{</span><span class=\"token keyword keyword-return\" style=\"color: #66d9ef;\">return</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span><span class=\"token comment\" style=\"color: slategray;\">// Wait until the client sends some data</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"new client\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token keyword keyword-while\" style=\"color: #66d9ef;\">while</span><span class=\"token punctuation\">(</span><span class=\"token operator\">!</span>client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">available</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">{</span><span class=\"token function\" style=\"color: #e6db74;\">delay</span><span class=\"token punctuation\">(</span><span class=\"token number\" style=\"color: #ae81ff;\">1</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span><span class=\"token comment\" style=\"color: slategray;\">// Read the first line of the request</span><span class=\"token keyword keyword-String\" style=\"color: #66d9ef;\">String</span> request <span class=\"token operator\">=</span> client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">readStringUntil</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\'\\r\'</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span>request<span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">flush</span><span class=\"token punctuation\">(</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">// Match the request</span><span class=\"token keyword keyword-if\" style=\"color: #66d9ef;\">if</span><span class=\"token punctuation\">(</span>request<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">indexOf</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"/bat=ON\"</span><span class=\"token punctuation\">)</span><span class=\"token operator\">!=</span><span class=\"token operator\">-</span><span class=\"token number\" style=\"color: #ae81ff;\">1</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">{</span><span class=\"token comment\" style=\"color: slategray;\">/////////////////////////////////////Battery Voltage//////////////////////////////////  </span><span class=\"token keyword keyword-for\" style=\"color: #66d9ef;\">for</span><span class=\"token punctuation\">(</span>unsigned <span class=\"token keyword keyword-int\" style=\"color: #66d9ef;\">int</span> i<span class=\"token operator\">=</span><span class=\"token number\" style=\"color: #ae81ff;\">0</span><span class=\"token punctuation\">;</span>i<span class=\"token operator\">&lt;</span><span class=\"token number\" style=\"color: #ae81ff;\">10</span><span class=\"token punctuation\">;</span>i<span class=\"token operator\">++</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">{</span>\r\n  Vvalue<span class=\"token operator\">=</span>Vvalue<span class=\"token operator\">+</span><span class=\"token function\" style=\"color: #e6db74;\">analogRead</span><span class=\"token punctuation\">(</span>BAT<span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">//Read analog Voltage</span><span class=\"token function\" style=\"color: #e6db74;\">delay</span><span class=\"token punctuation\">(</span><span class=\"token number\" style=\"color: #ae81ff;\">5</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">//ADC stable</span><span class=\"token punctuation\">}</span>\r\n  Vvalue<span class=\"token operator\">=</span><span class=\"token punctuation\">(</span>float<span class=\"token punctuation\">)</span>Vvalue<span class=\"token operator\">/</span><span class=\"token number\" style=\"color: #ae81ff;\">10.0</span><span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">//Find average of 10 values</span>\r\n  Rvalue<span class=\"token operator\">=</span><span class=\"token punctuation\">(</span>float<span class=\"token punctuation\">)</span><span class=\"token punctuation\">(</span>Vvalue<span class=\"token operator\">/</span><span class=\"token number\" style=\"color: #ae81ff;\">1024.0</span><span class=\"token punctuation\">)</span><span class=\"token operator\">*</span><span class=\"token number\" style=\"color: #ae81ff;\">5</span><span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">//Convert Voltage in 5v factor</span>\r\n  Tvoltage<span class=\"token operator\">=</span>Rvalue<span class=\"token operator\">*</span>RatioFactor<span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">//Find original voltage by multiplying with factor</span><span class=\"token comment\" style=\"color: slategray;\">/////////////////////////////////////Battery Voltage//////////////////////////////////</span>\r\n    value <span class=\"token operator\">=</span><span class=\"token constant\" style=\"color: #f92672;\">HIGH</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span><span class=\"token comment\" style=\"color: slategray;\">// Return the response</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"HTTP/1.1 200 OK\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Content-Type: text/html\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token comment\" style=\"color: slategray;\">//  do not forget this one</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"&lt;!DOCTYPE HTML&gt;\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"&lt;html&gt;\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Battery Voltage =\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">print</span><span class=\"token punctuation\">(</span>Tvoltage<span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"&lt;br&gt;\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token keyword keyword-if\" style=\"color: #66d9ef;\">if</span><span class=\"token punctuation\">(</span>value <span class=\"token operator\">==</span><span class=\"token constant\" style=\"color: #f92672;\">HIGH</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">{</span>\r\n    client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Updated\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span><span class=\"token keyword keyword-else\" style=\"color: #66d9ef;\">else</span><span class=\"token punctuation\">{</span>\r\n    client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">print</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Not Updated\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"--------\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token keyword keyword-if\" style=\"color: #66d9ef;\">if</span><span class=\"token punctuation\">(</span>Tvoltage<span class=\"token operator\">&lt;=</span><span class=\"token number\" style=\"color: #ae81ff;\">5</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">{</span>\r\n    client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Battery dead OR disconnected\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span><span class=\"token keyword keyword-else\" style=\"color: #66d9ef;\">else</span><span class=\"token keyword keyword-if\" style=\"color: #66d9ef;\">if</span><span class=\"token punctuation\">(</span>Tvoltage<span class=\"token operator\">&gt;</span><span class=\"token number\" style=\"color: #ae81ff;\">5</span><span class=\"token operator\">&amp;&amp;</span> Tvoltage<span class=\"token operator\">&lt;=</span><span class=\"token number\" style=\"color: #ae81ff;\">10</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">{</span>\r\n    client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Need Imediate recharge\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span><span class=\"token keyword keyword-else\" style=\"color: #66d9ef;\">else</span><span class=\"token keyword keyword-if\" style=\"color: #66d9ef;\">if</span><span class=\"token punctuation\">(</span>Tvoltage<span class=\"token operator\">&gt;</span><span class=\"token number\" style=\"color: #ae81ff;\">10</span><span class=\"token operator\">&amp;&amp;</span> Tvoltage<span class=\"token operator\">&lt;=</span><span class=\"token number\" style=\"color: #ae81ff;\">12</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">{</span>\r\n    client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Recharge\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span><span class=\"token keyword keyword-else\" style=\"color: #66d9ef;\">else</span><span class=\"token punctuation\">{</span>\r\n      client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Battery Full\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"&lt;br&gt;&lt;br&gt;\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>\r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"&lt;a href=\\\"/bat=ON\\\"\\\"&gt;&lt;button&gt;Status&lt;/button&gt;&lt;/a&gt;&lt;br /&gt;\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span>  \r\n  client<span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"&lt;/html&gt;\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token function\" style=\"color: #e6db74;\">delay</span><span class=\"token punctuation\">(</span><span class=\"token number\" style=\"color: #ae81ff;\">1</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"Client disonnected\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token builtin\" style=\"color: #a6e22e;\">Serial</span><span class=\"token punctuation\">.</span><span class=\"token function\" style=\"color: #e6db74;\">println</span><span class=\"token punctuation\">(</span><span class=\"token string\" style=\"color: #a6e22e;\">\"\"</span><span class=\"token punctuation\">)</span><span class=\"token punctuation\">;</span><span class=\"token punctuation\">}</span></code>\r\n            </pre>\r\n         <div class=\"toolbar\" style=\"position: absolute; top: 0.3em; right: 0.2em; transition: opacity 0.3s ease-in-out 0s; opacity: 0;\">\r\n            <div class=\"toolbar-item\" style=\"display: inline-block;\"><span style=\"color: #bbbbbb; font-size: 0.8em; padding: 0px 0.5em; background: rgba(224, 224, 224, 0.2); box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 0px 0px; border-radius: 0.5em;\">Arduino</span></div>\r\n            </div>\r\n         </div>\r\n      </div>\r\n   </div>\r\n<div style=\"color: #878787; font-family: Arial, Helvetica, sans-serif; font-size: 13px;\">\r\n   <div class=\"wsite-multicol\" style=\"position: relative; direction: ltr;\">\r\n      <div class=\"wsite-multicol-table-wrap\" style=\"margin: 0px -15px;\">\r\n         <table class=\"wsite-multicol-table\" style=\"position: relative; table-layout: fixed; width: 880px; margin: 0px !important; border-width: 0px !important; border-style: initial !important; border-color: initial !important; padding: 0px !important;\">\r\n            <tbody class=\"wsite-multicol-tbody\">\r\n               <tr class=\"wsite-multicol-tr\">\r\n                  <td class=\"wsite-multicol-col\" style=\"vertical-align: top; padding: 0px 15px; width: 410px; margin: 0px !important; border-width: 0px !important; border-style: initial !important; border-color: initial !important;\">\r\n                     <div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 1em; line-height: 24px !important; margin: 0px; padding: 0.5em 0px; color: #2a2a2a !important; text-align: justify;\"><font size=\"3\">As soon as you hit the assigned IP in your browser you will see the page displaying battery status and a button. Press this button to get the updated temperature when ever you want.<br /><strong>Note</strong>: Nodemcu and your client mobile or desktop on which you want to view&nbsp;the voltage must be connected to same WiFi. If your server-nodemcu and client-mobile or computer, laptop etc are connected to different networks you can not view any thing after hitting the IP.</font></div>\r\n                     </td>\r\n                  <td class=\"wsite-multicol-col\" style=\"vertical-align: top; padding: 0px 15px; width: 410px; margin: 0px !important; border-width: 0px !important; border-style: initial !important; border-color: initial !important;\">\r\n                     <div class=\"wsite-image wsite-image-border-none \" style=\"position: relative; padding-top: 10px; padding-bottom: 10px; margin-left: 0px; margin-right: 0px; text-align: center;\"><a href=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/battery-voltage-monitor-over-wifi_orig.png\" class=\"w-fancybox\" style=\"text-decoration-line: none; color: #008000;\" target=\"_blank\"><img src=\"https://www.microcontroller-project.com/uploads/2/2/1/5/22159166/battery-voltage-monitor-over-wifi_orig.png\" alt=\"battery voltage monitor over WiFi\" style=\"border-width: 0px !important; border-style: initial; border-color: initial; border-image: initial; width: auto; max-width: 100%;\" /></a>\r\n                        <div style=\"font-size: 11.7px;\">battery voltage monitor over WiFi</div>\r\n                        </div>\r\n                     </td>\r\n                  </tr>\r\n               </tbody>\r\n            </table>\r\n         </div>\r\n      </div>\r\n   </div>\r\n<div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 13px; margin: 0px; padding: 0.5em 0px; font-family: Arial, Helvetica, sans-serif; text-align: justify; line-height: 24px !important; color: #2a2a2a !important;\"><font size=\"3\">This is a base project. Further more developments can be made to project. Like data can be send to remote web site to be displayed real time on we pages. An alert can be generated when voltage is low. Leds or lcd can be connected to nodemcu for on spot status view.</font><br /></div>\r\n<div class=\"paragraph\" style=\"overflow-wrap: break-word; font-size: 13px; margin: 0px; padding: 0.5em 0px; font-family: Arial, Helvetica, sans-serif; line-height: 24px !important; color: #2a2a2a !important;\"><strong>In order to learn about other ways to measure battery voltage take the below tutorial. Tutorial is about measuring batteries when they are connected in series and parallel combination.&nbsp;</strong></div>','https://www.microcontroller-project.com/nodemcu-battery-voltage-monitor.html','',1,0,2,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-07-17 16:43:07',0,'2019-07-17 16:43:07','210.101.103.92','','','','','','','','','','','',''),(426,-426,'',426,0,0,'','','html1','[python] 파이썬 프로세스 확인후 죽었을 경우 재시작','<div class=\"line number1 index0 alt2\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; font-family: 돋움, dotum, Tahoma, AppleGothic, sans-serif; background-color: #ffffff;\">\r\n   <code class=\"python comments\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">#!/usr/bin/python</span></code>\r\n   </div>\r\n<div class=\"line number2 index1 alt1\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;</span></div>\r\n<div class=\"line number3 index2 alt2\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">import</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">os</span></code>\r\n   </div>\r\n<div class=\"line number4 index3 alt1\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">import</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">sys</span></code>\r\n   </div>\r\n<div class=\"line number5 index4 alt2\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">import</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">time</span></code>\r\n   </div>\r\n<div class=\"line number6 index5 alt1\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;</span></div>\r\n<div class=\"line number7 index6 alt2\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">def</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">main():&nbsp;&nbsp;&nbsp;</span></code>\r\n   </div>\r\n<div class=\"line number8 index7 alt1\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">while</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">(&nbsp;</span></code>\r\n   <code class=\"python value\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">1</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">) :</span></code>\r\n   </div>\r\n<div class=\"line number9 index8 alt2\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">oscommend&nbsp;</span></code>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">=</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">os.popen(</span></code>\r\n   <code class=\"python string\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\"ps aux | grep process_name.py | awk \'{print $12}\'\"</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">).readlines()</span></code>\r\n   </div>\r\n<div class=\"line number10 index9 alt1\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">check_process&nbsp;</span></code>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">=</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python string\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\"%s\"</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">%</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">( oscommend[</span></code>\r\n   <code class=\"python value\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">0</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">] )</span></code>\r\n   </div>\r\n<div class=\"line number11 index10 alt2\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">if</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">( check_rsync.find(</span></code>\r\n   <code class=\"python string\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\"process_name.py\"</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">)&nbsp;</span></code>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">=</span></code>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">=</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">-</span></code>\r\n   <code class=\"python value\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">1</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">) :</span></code>\r\n   </div>\r\n<div class=\"line number12 index11 alt1\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">os.system(</span></code>\r\n   <code class=\"python string\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\"./process_name.py &amp;\"</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">)</span></code>\r\n   </div>\r\n<div class=\"line number13 index12 alt2\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;</span></div>\r\n<div class=\"line number14 index13 alt1\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">try</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">:</span></code>\r\n   </div>\r\n<div class=\"line number15 index14 alt2\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">time.sleep(</span></code>\r\n   <code class=\"python value\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">3</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">)</span></code>\r\n   </div>\r\n<div class=\"line number16 index15 alt1\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">except</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">Exception, e:</span></code>\r\n   </div>\r\n<div class=\"line number17 index16 alt2\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <code class=\"python functions\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">print</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">e</span></code>\r\n   </div>\r\n<div class=\"line number18 index17 alt1\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">sys.exit()</span></code>\r\n   </div>\r\n<div class=\"line number19 index18 alt2\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;</span></div>\r\n<div class=\"line number20 index19 alt1\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">if</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">__name__&nbsp;</span></code>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">=</span></code>\r\n   <code class=\"python keyword\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">=</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python string\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\"__main__\"</span></code>\r\n   <span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">\r\n   &nbsp;\r\n   </span>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">:</span></code>\r\n   </div>\r\n<div class=\"line number21 index20 alt2\" style=\"margin: 0px; padding: 0px; color: #7f7f7f; background-color: #ffffff;\">\r\n   <code class=\"python spaces\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">&nbsp;&nbsp;&nbsp;&nbsp;</span></code>\r\n   <code class=\"python plain\" style=\"margin: 0px; padding: 0px;\"><span style=\"font-family: &quot;맑은 고딕&quot;, &quot;malgun gothic&quot;; font-size: 12px;\">main()</span></code>\r\n   </div>\r\n<br style=\"color: #7f7f7f; font-family: 돋움, dotum, Tahoma, AppleGothic, sans-serif; background-color: #ffffff;\" /><br style=\"color: #7f7f7f; font-family: 돋움, dotum, Tahoma, AppleGothic, sans-serif; background-color: #ffffff;\" />\r\n<p><span style=\"color: #7f7f7f; font-family: 돋움, dotum, Tahoma, AppleGothic, sans-serif; background-color: #ffffff;\">출처:&nbsp;</span><a href=\"https://codestore.tistory.com/97\" style=\"color: #959595; text-decoration-line: none; font-family: 돋움, dotum, Tahoma, AppleGothic, sans-serif; background-color: #ffffff;\" target=\"_blank\">https://codestore.tistory.com/97</a><span style=\"color: #7f7f7f; font-family: 돋움, dotum, Tahoma, AppleGothic, sans-serif; background-color: #ffffff;\">&nbsp;[코드 보관소]</span>&nbsp;</p>','https://codestore.tistory.com/97','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-07-27 09:53:35',0,'2019-07-27 09:53:35','210.101.103.92','','','','','','','','','','','',''),(427,-427,'',427,0,0,'','','html1','[ETC] 릴레이 대신 모스펫(MOSFET)으로 DC전원 제어하기','<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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;\">\r\n   <div class=\"bar\" style=\"box-sizing: border-box; padding-left: 45px;\">\r\n      <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>\r\n      </div>\r\n   <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;\">\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      </ol>\r\n   </div>\r\n<p>&nbsp;</p>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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>\r\n<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;\">\r\n   <div class=\"bar\" style=\"box-sizing: border-box; padding-left: 45px;\">\r\n      <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>\r\n      </div>\r\n   <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;\">\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      <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>\r\n      </ol>\r\n   </div>\r\n<p>&nbsp;</p>\r\n<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>\r\n<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>\r\n<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>','https://makernambo.com/56','',0,0,4,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-08-20 21:28:58',0,'2019-08-20 21:28:58','192.168.219.102','','','','','','','','','','','',''),(428,-428,'',428,0,0,'','','html1','[Arduino] NeoGPS - RATE and BAUD commands not working','<p><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">The&nbsp;</span><span class=\"bbc_bold\" style=\"box-sizing: border-box; font-weight: bold; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">$PMTK</span><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">&nbsp;commands are for the MTK chip, not the ublox NEO chip.</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">All ublox NEO configuration commands start with&nbsp;</span><span class=\"bbc_bold\" style=\"box-sizing: border-box; font-weight: bold; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">$PUBX</span><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">&nbsp;(NMEA text commands). &nbsp;There are additional configuration options you can set with UBX binary commands. &nbsp;See the example program ubloxRate.ino for the exact character sequences and code samples. &nbsp;Of course, feel free to ask more specific questions!</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">I always recommend setting the configuration during&nbsp;</span><span class=\"bbc_tt\" style=\"box-sizing: border-box; font-family: &quot;dejavu sans mono&quot;, monaco, &quot;lucida console&quot;, &quot;courier new&quot;, monospace; color: #222222; font-size: 14.6994px; background-color: #f5f5f5;\">setup</span><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">, because that lets anyone else use your program without having to use u-center in the exact same way you used it for your hardware. &nbsp;And if the GPS module ever loses battery backup power, the sketch will still work.&nbsp; You can send a command the makes it \"permanent\", but you should still send these commands during&nbsp;</span><span class=\"bbc_tt\" style=\"box-sizing: border-box; font-family: &quot;dejavu sans mono&quot;, monaco, &quot;lucida console&quot;, &quot;courier new&quot;, monospace; color: #222222; font-size: 14.6994px; background-color: #f5f5f5;\">setup</span><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">, as if it were a brand-new, unconfigured GPS module.</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">The ubloxRate example allows you to enter commands from the Serial Monitor window. &nbsp;See the comment block at the top of the INO file for the list. &nbsp;For example, sending \"r5\" will set the NEO update rate to 5Hz.</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">Regarding the serial ports for BT and GPS: Is it possible you could use&nbsp;</span><span class=\"bbc_tt\" style=\"box-sizing: border-box; font-family: &quot;dejavu sans mono&quot;, monaco, &quot;lucida console&quot;, &quot;courier new&quot;, monospace; color: #222222; font-size: 14.6994px; background-color: #f5f5f5;\">Serial</span><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">&nbsp;for the GPS and&nbsp;</span><span class=\"bbc_tt\" style=\"box-sizing: border-box; font-family: &quot;dejavu sans mono&quot;, monaco, &quot;lucida console&quot;, &quot;courier new&quot;, monospace; color: #222222; font-size: 14.6994px; background-color: #f5f5f5;\">AltSoftSerial</span><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">&nbsp;for the BT? &nbsp;That would be most reliable, but you would have to disconnect the GPS TX from the Arduino RX pin 0 to upload new sketches over USB (full description&nbsp;</span><a href=\"https://github.com/SlashDevin/NeoGPS/blob/master/extras/doc/Installing.md#2-choose-a-serial-port\" class=\"bbc_link\" target=\"_blank\" style=\"box-sizing: border-box; color: #00787c; text-decoration-line: none; line-height: inherit; background: none rgb(245, 245, 245); border-bottom: 1px solid rgb(168, 182, 207); font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px;\">here</a><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">). &nbsp;The Arduino TX pin 1 can remain connected to the GPS RX pin.</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">Arduino pin 0 &lt;-- GPS TX (Serial, disconnect to upload new sketch)</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">Arduino pin 1 --&gt; GPS RX (Serial,level shift required)</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">Arduino pin 8 &lt;-- BT TX (AltSoftSerial)</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">Arduino pin 9 --&gt; BT RX (AltSoftSerial)</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">You could still print debug messages to&nbsp;</span><span class=\"bbc_tt\" style=\"box-sizing: border-box; font-family: &quot;dejavu sans mono&quot;, monaco, &quot;lucida console&quot;, &quot;courier new&quot;, monospace; color: #222222; font-size: 14.6994px; background-color: #f5f5f5;\">Serial</span><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">, and they would show up on the Serial Monitor window. &nbsp;As long as your debug messages don\'t start with a \'$\', the GPS would ignore them. &nbsp;You would also see the configuration commands on the Serial Monitor window.</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">I should also ask if you are performing the 5V to 3.3V level shifting for the RX and TX connections (read&nbsp;</span><a href=\"https://github.com/SlashDevin/NeoGPS/blob/master/extras/doc/Installing.md#3-connect-the-gps-device\" class=\"bbc_link\" target=\"_blank\" style=\"box-sizing: border-box; color: #00787c; text-decoration-line: none; line-height: inherit; background: none rgb(245, 245, 245); border-bottom: 1px solid rgb(168, 182, 207); font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px;\">this</a><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">). &nbsp;Sometimes the GPS TX to Arduino RX works, but you can damage the GPS device if you connect the GPS RX to the Arduino TX with just a wire.</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /></p>\r\n<div class=\"quoteheader\" style=\"box-sizing: border-box; margin: 0px; padding: 6px 4px; direction: ltr; font-size: 0.8em; border: 1px solid rgb(223, 223, 223); background: rgb(255, 255, 255); color: #111111; font-stretch: normal; font-family: &quot;TyponineSans Regular 18&quot;;\">Quote</div>\r\n<blockquote class=\"bbc_standard_quote\" style=\"box-sizing: border-box; margin: 0px 0px 1.25em; padding: 10px; direction: ltr; border: 1px solid rgb(223, 223, 223); line-height: 1.4em; font-size: 0.83em; overflow: auto; background-color: #ffffff; font-style: italic; font-family: &quot;TyponineSans Regular 18&quot;;\">Am I correct that I\'d change \"AltSoftSerial gpsPort\" to something like \"AltSoftSerial serialforbluetooth\" &amp; send serial data via \"serialforbluetooth.print( fix.satellites );\"?</blockquote>\r\n<div class=\"quotefooter\" style=\"box-sizing: border-box; margin: 0px; padding: 0px; direction: ltr; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">&nbsp;</div>\r\n<p><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">I assume that you are connecting two listeners (GPS &amp; BT) to the same Arduino transmit pin 9.&nbsp; You cannot connect two transmitters to the same Arduino receive pin 8.&nbsp; If that\'s what you\'re asking, I would suggest something like this:</span><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /></p>\r\n<div class=\"codeheader\" style=\"box-sizing: border-box; margin: 0px; padding: 6px 4px; direction: ltr; font-size: 0.8em; border: 1px solid rgb(223, 223, 223); background: rgb(255, 255, 255); color: #111111; font-stretch: normal; font-family: &quot;TyponineSans Regular 18&quot;;\">Code:&nbsp;<a class=\"codeoperation\" style=\"box-sizing: border-box; color: #00787c; line-height: inherit; background: none;\">[Select]</a></div>\r\n<p>\r\n   <code class=\"bbc_code\" style=\"box-sizing: border-box; display: block; font-family: &quot;DejaVu Sans Mono&quot;, Monaco, Consolas, monospace; font-size: 0.9em; background: rgb(255, 255, 255); border: 1px solid rgb(223, 223, 223); padding: 3px 12px; overflow: auto; white-space: nowrap; resize: vertical; height: 200px; color: #222222; max-height: none;\">AltSoftSerial gpsAndBT; // pins 8 (RX) and 9 (TX)<br style=\"box-sizing: border-box;\" />#define gpsPort gpsAndBT&nbsp; &nbsp; // just an alias for the one AltSoftSerial<br style=\"box-sizing: border-box;\" />#define btPort gpsAndBT&nbsp; &nbsp; // another alias for the same variable<br style=\"box-sizing: border-box;\" /><br style=\"box-sizing: border-box;\" />void setup()<br style=\"box-sizing: border-box;\" />{<br style=\"box-sizing: border-box;\" />&nbsp; gpsPort.begin( 9600 );<br style=\"box-sizing: border-box;\" /><br style=\"box-sizing: border-box;\" />&nbsp; gps.send_P( &amp;gpsPort, F(\"$PUBX, baud rate command\") ); // also goes to BT port.&nbsp; Is that OK?<br style=\"box-sizing: border-box;\" />&nbsp; gps.flush();<br style=\"box-sizing: border-box;\" />&nbsp; delay( 200 );<br style=\"box-sizing: border-box;\" />&nbsp; gpsPort.begin( 38400 ); // BT must run at this rate, too.<br style=\"box-sizing: border-box;\" /><br style=\"box-sizing: border-box;\" />&nbsp; btPort.println( F(\"AT BT config commands?\") );<br style=\"box-sizing: border-box;\" />}<br style=\"box-sizing: border-box;\" /><br style=\"box-sizing: border-box;\" />void loop()<br style=\"box-sizing: border-box;\" />{<br style=\"box-sizing: border-box;\" />&nbsp; if (gps.available( gpsPort )) { // reads from AltSoftSerial RX pin<br style=\"box-sizing: border-box;\" />&nbsp; &nbsp; fix = gps.read();<br style=\"box-sizing: border-box;\" />&nbsp; &nbsp; if (fix.valid.satellites)<br style=\"box-sizing: border-box;\" />&nbsp; &nbsp; &nbsp; btPort.println( fix.satellites );<br style=\"box-sizing: border-box;\" />&nbsp; }<br style=\"box-sizing: border-box;\" />}<br style=\"box-sizing: border-box;\" /></code>\r\n   <br style=\"box-sizing: border-box; color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\" /><span style=\"color: #222222; font-family: &quot;TyponineSans Regular 18&quot;; font-size: 14.6994px; background-color: #f5f5f5;\">As noted above, the BT would forward the GPS configuration commands, too.&nbsp; If you are writing the app that listens to the BT, you could watch for the $PUBX header and ignore the rest of the line.</span></p>','https://www.google.com/search?ei=-uVbXeadD5i5wAP9pKHYCw&q=arduino+neo-7m+10hz+config&oq=arduino+neo-7m+10hz+config&gs_l=psy-ab.3..33i160.8225.13349..13462...1.0..1.198.2201.0j17......0....1..gws-wiz.......0i13i10i30.QD2-7wl4sqM&ved=0ahUKEwjmgrePuJHkAhWYHHAKHX1SCLsQ4dUDCAo&uact=5','https://forum.arduino.cc/index.php?topic=498043.0',0,1,3,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-08-20 21:42:42',0,'2019-08-20 21:42:42','192.168.219.102','','','','','','','','','','','',''),(429,-429,'',429,0,0,'','','html1','[Eagle] Eagle CAD 기존설정파일','<p>[Windows]</p>\r\n<p>C:\\Users\\geoworld\\AppData\\Roaming\\Eagle\\settings\\9.6.2</p>\r\n<p>&lt;--- 이곳에 버전별로 폴더가 생기고 그 아래 eaglerc 파일이 설정파일임</p>\r\n<p>&nbsp;</p>\r\n<p>[Ubuntu]</p>\r\n<p>/home/geoworld/.local/share/Eagle/settings/9.6.2</p>','','',0,0,40,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-09-10 16:50:30',2,'2019-09-10 16:50:30','210.101.103.92','','','','','','','','','','','',''),(430,-430,'',430,0,0,'','','html1','[ETC] 윈도우pc에 Microsoft store앱 설치하기','<p>첨부파일을 다운로드하여 관리자 권한으로&nbsp;</p>\r\n<p>Add-store.cmd 실행하여 설치하기.</p>','https://octave12th.com/19','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-09-25 22:37:56',1,'2019-09-25 22:37:56','192.168.219.102','','','','','','','','','','','',''),(431,-431,'',431,0,0,'','','html1','[Eagle] Eagle CAD로 작업한 PCB에 이미지 파일 넣기','<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">Eagle CAD로&nbsp;PCB작업을 하다보면 회사 로고 같은 이미지를 PCB에 넣을 때가 있다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">방법은 다음과 같다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp;</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">1.&nbsp;원하는 그림을 그림판에서 불러와서 단색 BMP로 저장을 한다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">2. 새로 프로젝트를 만들고, 보드 파일을 연후에 , File &gt; Run &gt; “import-bmp.ulp”을 실행한다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">3. 윈도우가 하나 뜨면 OK버튼을 누르고, BMP 파일을 불러온다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">4. 단색 BMP로 저장을 했기 때문에 다음과 같이 사용할 색깔이 2가지 색으로 나온다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp; &nbsp;검적색으로 된 부분만 필요하므로 검정색만 선택을 한다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp;</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff; text-align: center; clear: none; float: none;\"><img src=\"https://openmicrolab.com/wp/wp-content/uploads/1/cfile23.uf.137C073E4FDF03610C6CBD.png\" class=\"aligncenter\" width=\"356\" filename=\"eagle_bmp_1.png\" filemime=\"image/jpeg\" \"\"=\"\" style=\"padding: 0px; margin: 0px; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; border: 0px; vertical-align: middle; height: auto; max-width: 100%;\" /></p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp;</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">5. 이미지 파일에 대해 지정하는 옵션이다. 사이즈를 조정하는 것과, 레이어를 선택하는 옵션이다. 아무 선택도 하지 않으며면 200번째 레이어에 1:1로 이미지가 들어간다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff; text-align: center; clear: none; float: none;\"><img src=\"https://openmicrolab.com/wp/wp-content/uploads/1/cfile27.uf.20552E3C4FDF037D0B39DE.png\" class=\"aligncenter\" filename=\"eagle_bmp_2.png\" filemime=\"image/jpeg\" style=\"padding: 0px; margin: 0px; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; border: 0px; vertical-align: middle; height: 484px; max-width: 100%; width: 299px;\" /></p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp;</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp;</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">6. Run script를 클릭한다.&nbsp;</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp; &nbsp;이 스크립트가 실행이 되면 다음과 같이 보드파일에 BMP 파일이 레이어 200에 표시가 된다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp;</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff; text-align: center; clear: none; float: none;\"><img src=\"https://openmicrolab.com/wp/wp-content/uploads/1/cfile25.uf.1278BD464FDF0C4C1CB33E.png\" class=\"aligncenter\" filename=\"eagle_bmp_3.png\" filemime=\"image/jpeg\" style=\"padding: 0px; margin: 0px; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; border: 0px; vertical-align: middle; height: 375px; max-width: 100%; width: 340px;\" /></p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp;</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">7. 나중에도 이것을 사용하기 위해 라이브러리도 만들어 놓으면 편하다.&nbsp;</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp; &nbsp; 이 로고 파일을 Group으로 선택을 한후 Copy한다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp;</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">8. Control Panel에서 라이브러리를 하나 만들고 Package에서 새로운 Package를 만든다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp; &nbsp;여기서 Edit &gt; Paste를 하면 된다.</p>\r\n<p style=\"padding: 0px; margin-top: 1.3em; margin-bottom: 1.3em; outline: none; box-sizing: border-box; transition-property: background-color, border-color, color, opacity; transition-timing-function: linear; transition-duration: 0.15s; color: #222222; font-family: &quot;Nanum Gothic&quot;, sans-serif; font-size: 14px; background-color: #ffffff;\">&nbsp; &nbsp;이 라이브러리의 symbol은 박스 하나 정도로 간단히 만들면 다른 프로젝트에서도 계속해서 사용이 가능하다.</p>','https://openmicrolab.com/eagle-cad%EB%A1%9C-%EC%9E%91%EC%97%85%ED%95%9C-pcb%EC%97%90-%EC%9D%B4%EB%AF%B8%EC%A7%80-%ED%8C%8C%EC%9D%BC-%EB%84%A3%EA%B8%B0/','',2,0,5,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-10-25 14:26:34',0,'2019-10-25 14:26:34','210.101.103.92','','','','','','','','','','','',''),(432,-432,'',432,0,0,'','','html1','[Arduino] ESP-WROOM32 NTP 서버를 통한 현재시간 구하기','<p style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8; line-height: 1.8;\"><span style=\"font-size: 11pt;\">ESP32는&nbsp;</span><span style=\"font-size: 11pt;\">와이파이를 통해서 인터넷에 연결이 가능하므로 와이파이 연결이 된다면 NTP(Network Time Protocol) 서버를 통해 매우 정확한 현재 시간을 구할 수 있다.&nbsp;나중에 시간이 된다면 ESP32와 온습도 센서, LCD 등을 가지고 벽걸이 시계를 하나 만들어 볼까? 생각 중인데... 정확한 시간은 물론 정보제공 서버와의 통신을 통해서 날씨, 뉴스 등의 정보도 표시해 주고 센서를 통해서는 현재 기온 및 습도 등을 표시해 주는 유용한 장치를 만들 수 있을 것이다.</span></p>\r\n<p style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8; line-height: 1.8;\"><span style=\"font-size: 11pt;\"><br /></span></p>\r\n<p style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8; line-height: 1.8;\"><span style=\"font-size: 11pt;\"><br /></span></p>\r\n<p style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8; line-height: 1.8;\"><span style=\"font-size: 11pt;\"><br /></span></p>\r\n<p style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8; line-height: 1.8;\"><span style=\"font-size: 14.6667px;\">ESP32에 대한 일반적인 사항과 아두이노 개발환경을 설치하는 방법은 아래의 과거 포스팅을 참고한다.</span></p>\r\n<div class=\"txc-textbox\" style=\"margin: 0px; padding: 10px; border: 1px dashed rgb(159, 211, 49); line-height: 1.3; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #e7fdb5;\">\r\n   <p style=\"line-height: 1.8;\">&nbsp;</p>\r\n   <p style=\"line-height: 1.8;\"><a href=\"http://deneb21.tistory.com/534\" target=\"_blank\" style=\"text-decoration-line: none;\"><span style=\"font-size: 11pt;\">[사물인터넷(IoT)] - [ESP32] ESPRESSIF ESP32 오버뷰 (ESP32 Overview)</span></a></p>\r\n   <p style=\"line-height: 1.8;\"><span style=\"font-size: 11pt;\"><a href=\"http://deneb21.tistory.com/590\" target=\"_blank\" style=\"text-decoration-line: none;\">[사물인터넷(IoT)] - [ESP32] 아두이노 IDE 에서 개발환경 만들기</a></span></p>\r\n   </div>\r\n<p style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8; line-height: 1.8;\"><span style=\"font-size: 11pt;\"><br /></span></p>\r\n<div class=\"txc-textbox\" style=\"margin: 0px; padding: 10px; border: 1px dashed rgb(159, 211, 49); line-height: 1.3; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #e7fdb5;\">\r\n   <p style=\"line-height: 1.8;\"><span style=\"font-size: 11pt;\"><b>■ 스케치</b><br /></span></p>\r\n   <p style=\"line-height: 1.8;\"><span style=\"font-size: 11pt;\">소스를 보면 연결할 와이파이 SSID 와 패스워드를 넣을 수 있게 되어 있고&nbsp;</span><span style=\"font-size: 14.6667px;\">gmtOffset_sec 변수에 32400 을 대입해 주었다. 이것은 NTP 서버에서 제공해 주는 시간 값이 영국 그리니치 표준시 기준이기 때문에 우리나라에 맞게 수정해 주어야 한다. 우리나라는 GMT+9 (그리니치 표준시 보다 9시간 빠름) 지역이기 때문에 9시간을 더해 주면 된다. 그러므로 9시간을 초(Sec)로 변환한 값인 32400을 변수에 대입해 주었다.&nbsp;daylightOffset_sec 변수는 섬머타임 여부를 나타낸다. 섬머타임 적용지역의 경우 하절기에 시간이 1시간 앞당겨진다. 우리나라는 해당사항이 없으므로 0을 대입해 주었다. NTP 서버의 경우 자신이 알고 있는 다른 서버를 이용해도 된다.</span></p>\r\n   <p style=\"line-height: 1.8;\"><span style=\"font-size: 11pt;\"><br /></span></p>\r\n   <div class=\"colorscripter-code\" style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.3; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace !important; color: #010101; overflow: auto; position: relative !important;\">\r\n      <table class=\"colorscripter-code-table\" cellspacing=\"0\" cellpadding=\"0\" style=\"margin: 0px; padding: 0px; border-width: initial; border-style: none; border-color: initial; background-color: #fafafa; border-radius: 4px;\">\r\n         <tbody>\r\n            <tr>\r\n               <td style=\"margin: 0px; padding: 6px; border-width: 0px 2px 0px 0px; border-top-style: initial; border-right-style: solid; border-bottom-style: initial; border-left-style: initial; border-top-color: initial; border-right-color: #e5e5e5; border-bottom-color: initial; border-left-color: initial; line-height: 1.3; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">\r\n                  <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace !important; word-break: normal; text-align: right; color: #666666;\">\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">1</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">2</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">3</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">4</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">5</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">6</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">7</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">8</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">9</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">10</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">11</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">12</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">13</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">14</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">15</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">16</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">17</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">18</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">19</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">20</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">21</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">22</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">23</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">24</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">25</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">26</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">27</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">28</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">29</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">30</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">31</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">32</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">33</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">34</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">35</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">36</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">37</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">38</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">39</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">40</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">41</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">42</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">43</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">44</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">45</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">46</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">47</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">48</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">49</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">50</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">51</div>\r\n                     <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">52</div>\r\n                     </div>\r\n                  </td>\r\n               <td style=\"margin: 0px; padding: 6px 0px; border-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif;\">\r\n                  <div style=\"margin: 0px; padding: 0px; border: 0px; line-height: 15.6px; font-family: Consolas, &quot;Liberation Mono&quot;, Menlo, Courier, monospace !important; color: #010101;\">\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #0086b3;\">#include</span>&nbsp;<span style=\"color: #a71d5d;\">&lt;</span>WiFi.h<span style=\"color: #a71d5d;\">&gt;</span></div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #0086b3;\">#include</span>&nbsp;<span style=\"color: #63a35c;\">\"time.h\"</span></div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #a71d5d;\">const</span>&nbsp;<span style=\"color: #066de2;\">char</span><span style=\"color: #a71d5d;\">*</span>&nbsp;ssid&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #a71d5d;\">=</span>&nbsp;<span style=\"color: #63a35c;\">\"ssid\"</span>;&nbsp;<span style=\"color: #999999;\">//와이파이&nbsp;SSID</span></div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #a71d5d;\">const</span>&nbsp;<span style=\"color: #066de2;\">char</span><span style=\"color: #a71d5d;\">*</span>&nbsp;password&nbsp;&nbsp;&nbsp;<span style=\"color: #a71d5d;\">=</span>&nbsp;<span style=\"color: #63a35c;\">\"password\"</span>;&nbsp;&nbsp;<span style=\"color: #999999;\">//와이파이&nbsp;패스워드</span></div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #a71d5d;\">const</span>&nbsp;<span style=\"color: #066de2;\">char</span><span style=\"color: #a71d5d;\">*</span>&nbsp;ntpServer&nbsp;<span style=\"color: #a71d5d;\">=</span>&nbsp;<span style=\"color: #63a35c;\">\"kr.pool.ntp.org\"</span>;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #999999;\">//3200초는&nbsp;1시간,&nbsp;우리나라는&nbsp;GMT+9&nbsp;이므로&nbsp;3600초x9&nbsp;=&nbsp;32400&nbsp;해&nbsp;줌</span></div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #a71d5d;\">const</span>&nbsp;<span style=\"color: #066de2;\">long</span>&nbsp;&nbsp;gmtOffset_sec&nbsp;<span style=\"color: #a71d5d;\">=</span>&nbsp;<span style=\"color: #0099cc;\">32400</span>;&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #999999;\">//섬머타임&nbsp;적용&nbsp;시&nbsp;3600&nbsp;(시간을&nbsp;1시간&nbsp;빠르게&nbsp;함)</span></div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #999999;\">//우리나라는&nbsp;시행&nbsp;안하므로&nbsp;0</span></div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #a71d5d;\">const</span>&nbsp;<span style=\"color: #066de2;\">int</span>&nbsp;&nbsp;&nbsp;daylightOffset_sec&nbsp;<span style=\"color: #a71d5d;\">=</span>&nbsp;<span style=\"color: #0099cc;\">0</span>;&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #a71d5d;\">void</span>&nbsp;printLocalTime()</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">{</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;<span style=\"color: #a71d5d;\">struct</span>&nbsp;tm&nbsp;timeinfo;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;<span style=\"color: #a71d5d;\">if</span>(<span style=\"color: #a71d5d;\">!</span>getLocalTime(<span style=\"color: #a71d5d;\">&amp;</span>timeinfo)){</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;&nbsp;&nbsp;Serial.println(<span style=\"color: #63a35c;\">\"Failed&nbsp;to&nbsp;obtain&nbsp;time\"</span>);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;&nbsp;&nbsp;<span style=\"color: #a71d5d;\">return</span>;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;}</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;Serial.println(<span style=\"color: #a71d5d;\">&amp;</span>timeinfo,&nbsp;<span style=\"color: #63a35c;\">\"%A,&nbsp;%B&nbsp;%d&nbsp;%Y&nbsp;%H:%M:%S\"</span>);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">}</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #a71d5d;\">void</span>&nbsp;setup()</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">{</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;Serial.<span style=\"color: #066de2;\">begin</span>(<span style=\"color: #0099cc;\">115200</span>);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;<span style=\"color: #999999;\">//connect&nbsp;to&nbsp;WiFi</span></div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;Serial.<span style=\"color: #066de2;\">printf</span>(<span style=\"color: #63a35c;\">\"Connecting&nbsp;to&nbsp;%s&nbsp;\"</span>,&nbsp;ssid);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;WiFi.<span style=\"color: #066de2;\">begin</span>(ssid,&nbsp;password);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;<span style=\"color: #a71d5d;\">while</span>&nbsp;(WiFi.status()&nbsp;<span style=\"color: #a71d5d;\">!</span><span style=\"color: #a71d5d;\">=</span>&nbsp;WL_CONNECTED)&nbsp;{</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;delay(<span style=\"color: #0099cc;\">500</span>);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Serial.print(<span style=\"color: #63a35c;\">\".\"</span>);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;}</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;Serial.println(<span style=\"color: #63a35c;\">\"&nbsp;CONNECTED\"</span>);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;<span style=\"color: #999999;\">//init&nbsp;and&nbsp;get&nbsp;the&nbsp;time</span></div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;configTime(gmtOffset_sec,&nbsp;daylightOffset_sec,&nbsp;ntpServer);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;printLocalTime();</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;<span style=\"color: #999999;\">//disconnect&nbsp;WiFi&nbsp;as&nbsp;it\'s&nbsp;no&nbsp;longer&nbsp;needed</span></div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;WiFi.disconnect(<span style=\"color: #a71d5d;\">true</span>);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;WiFi.mode(WIFI_OFF);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">}</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\"><span style=\"color: #a71d5d;\">void</span>&nbsp;loop()</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">{</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;delay(<span style=\"color: #0099cc;\">1000</span>);</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">&nbsp;&nbsp;printLocalTime();</div>\r\n                     <div style=\"margin: 0px; padding: 0px 6px; border: 0px; line-height: 15.6px; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; white-space: pre;\">}</div>\r\n                     </div>\r\n                  <div style=\"margin: -13px 5px 0px 0px; padding: 0px; border: 0px; line-height: 1.3; text-align: right; font-size: 9px; font-style: italic;\"><a href=\"http://colorscripter.com/info#e\" target=\"_blank\" style=\"text-decoration-line: none; color: #e5e5e5;\">Colored by Color Scripter</a></div>\r\n                  </td>\r\n               <td style=\"margin: 0px; padding: 0px 2px 4px 0px; border-width: 0px; border-style: initial; border-color: initial; line-height: 1.3; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; vertical-align: bottom;\"><a href=\"http://colorscripter.com/info#e\" target=\"_blank\" style=\"text-decoration-line: none; color: white;\"><span style=\"font-size: 9px; word-break: normal; background-color: #e5e5e5; border-radius: 10px; padding: 1px;\">cs</span></a></td>\r\n               </tr>\r\n            </tbody>\r\n         </table>\r\n      </div>\r\n   <p style=\"line-height: 1.8;\"><span style=\"font-size: 11pt;\"><br /></span></p>\r\n   </div>\r\n<p style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8; line-height: 1.8;\"><span style=\"font-size: 11pt;\"><br /></span></p>\r\n<p style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8; line-height: 1.8; clear: none; float: none;\"><span class=\"imageblock\" style=\"margin: 5px 0px; display: inline-block; width: 683px; height: auto; max-width: 100%;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/99E7FB425BC0929225\" width=\"683\" filename=\"time.jpg\" filemime=\"image/jpeg\" style=\"margin: 0px; padding: 0px; border: 0px; line-height: 1.3; cursor: pointer; max-width: 100%; height: auto;\" /></span></p>\r\n<p style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8; line-height: 1.8;\"><span style=\"font-size: 11pt;\">실행한 결과이다. 컴퓨터의 시간과 비교해보니 거의 정확히 일치한다.&nbsp;<br /></span></p>\r\n<p style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8; line-height: 1.8;\"><span style=\"font-size: 11pt;\"><br /></span></p>\r\n<p style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8; line-height: 1.8;\"><span style=\"font-size: 11pt;\">시간 구하기는 앞으로 ESP32를 이용한 DIY 에 활용할 일이 많을 것이다.</span></p>\r\n<p><br style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8;\" /><br style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8;\" /><span style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8;\">출처:&nbsp;</span><a href=\"https://deneb21.tistory.com/594\" style=\"text-decoration-line: none; font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8;\" target=\"_blank\">https://deneb21.tistory.com/594</a><span style=\"font-family: &quot;Nanum Gothic&quot;, &quot;Nanum Gothic&quot;, AppleGothic, sans-serif; background-color: #d4dad8;\">&nbsp;[Do It Yourself!]</span></p>','https://deneb21.tistory.com/594','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-10-26 16:28:06',0,'2019-10-26 16:28:06','192.168.219.102','','','','','','','','','','','',''),(433,-433,'',433,0,0,'','','html1','[Arduino] GPS 10Hz Config','<p><span style=\"color: #0d0d0d; font-family: Roboto, Arial, sans-serif; font-size: 14px; white-space: pre-wrap; background-color: #f9f9f9;\"><iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/iWd0gCOYsdo\" frameborder=\"0\" allow=\"accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture\" allowfullscreen=\"\"></iframe></span></p>\r\n<p><span style=\"color: #0d0d0d; font-family: Roboto, Arial, sans-serif; font-size: 14px; white-space: pre-wrap; background-color: #f9f9f9;\">&nbsp;</span></p>\r\n<p><span style=\"color: #0d0d0d; font-family: Roboto, Arial, sans-serif; font-size: 14px; white-space: pre-wrap; background-color: #f9f9f9;\">A tutorial on changing GPS setting using Arduino when the device is running</span></p>','https://www.youtube.com/watch?v=iWd0gCOYsdo','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-11-04 11:53:01',0,'2019-11-04 11:53:01','210.101.103.92','','','','','','','','','','','',''),(434,-434,'',434,0,0,'','','html1','[Arduino] ESP-WROOM32 / ESP32 핀맵, 핀 테스트 / 펌웨어 다운로드 모드 진입','<p>** 2021.11.8 발견</p>\r\n<p>&nbsp; &nbsp;---&gt; IO2 / IO12번에 스위치를 풀업으로 연결했을 경우 에러발생</p>\r\n<p>&nbsp;</p>\r\n<p>** 2021.12.3 발견</p>\r\n<p>&nbsp; ---&gt; 위 사항 + RESET + IO0 Low 시 다운로드 모드 진입 성공함</p>\r\n<br />','','',0,0,58,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-11-07 15:35:11',2,'2019-11-07 15:35:11','210.101.103.92','','','','','','','','','','','',''),(456,-456,'',456,0,0,'','','html1','[Arduino] ReadAnalogVoltage에서의 전압 오차의 보정 (vref)','<div class=\"post_tit_area\" style=\"position: relative; margin: 0px auto; padding: 36px 0px 30px; border-bottom: 1px solid rgb(230, 230, 230); width: 640px; font-family: -apple-system, BlinkMacSystemFont, Roboto, sans-serif; font-size: 14px; background-color: #ffffff;\">\r\n   <div class=\"tit_area \">\r\n      <h3 class=\"tit_h3\" style=\"margin: 0px; padding: 0px; font-size: 2.143em; line-height: 1.3em; font-family: AppleSDGothicNeo-Bold; color: #161616; word-break: break-word;\">ReadAnalogVoltage에서의 전압 오차의 보정</h3>\r\n      </div>\r\n   <div class=\"author_area\" style=\"overflow: hidden; padding: 24px 100px 0px 0px; -webkit-font-smoothing: antialiased;\"><a href=\"https://m.blog.naver.com/PostList.nhn?blogId=mkhee77\" class=\"se_thumbnail\" style=\"color: #000000; text-decoration-line: none; cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); float: left; position: relative; padding-right: 10px;\" target=\"_blank\"><span class=\"img\" style=\"display: block; overflow: hidden; position: relative; width: 36px; height: 36px; border-radius: 36px;\"><img src=\"https://blogpfthumb-phinf.pstatic.net/MjAxOTAyMDlfMTU3/MDAxNTQ5NjYxNjAyMTY1.c6vOJvibJS41cmCS9ir8muXhG60EecfcJps9SBX-xvwg.iiWvbLY-w5GbsvLIWSjsQ_p7jhDs72-lAbCIuUfG3ikg.PNG.mkhee77/%25C4%25B8%25C3%25B3.PNG?type=s1\" width=\"35\" height=\"35\" alt=\"프로필\" data-top=\"178\" style=\"border: 0px; vertical-align: middle; border-radius: 36px;\" /></span></a>\r\n      <div class=\"se_author\" style=\"display: table-row; overflow: hidden; vertical-align: top; line-height: 20px;\"><a href=\"https://m.blog.naver.com/PostList.nhn?blogId=mkhee77\" style=\"color: #555555; text-decoration-line: none; cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); display: table-cell;\" target=\"_blank\"><span class=\"ell\" style=\"display: -webkit-box; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: 1; -webkit-box-orient: vertical; word-break: break-all; overflow-wrap: break-word;\">아두이노로 놀기</span></a></div>\r\n      <p class=\"se_date\" style=\"padding: 3px 0px 0px; font-size: 0.857em; color: #8c8c8c; font-family: Helvetica-Light; line-height: 0.857em; letter-spacing: -0.5px;\">2017. 3. 26. 15:26<span class=\"txt\" style=\"font-size: 11px; white-space: nowrap;\"></span></p>\r\n      </div>\r\n   <div class=\"btn_area\" style=\"position: absolute; right: 0px; bottom: 33px; text-align: right; white-space: nowrap; font-family: &quot;Helvetica Neue&quot;, helvetica, AppleSDGothicNeo, sans-serif; -webkit-font-smoothing: antialiased;\"><a href=\"https://m.blog.naver.com/PostView.nhn?blogId=mkhee77&amp;logNo=220967454846&amp;proxyReferer=https:%2F%2Fwww.google.com%2F#\" class=\"btn_buddyadd _add_buddy _param(mkhee77|true||/BuddyAddForm.nhn) _returnFalse\" isblackuser=\"\" style=\"color: #03c75a; text-decoration-line: none; cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1); display: inline-block; position: absolute; bottom: 0px; right: 21px; height: 28px; padding: 0px 13px; border: 1px solid rgb(3, 199, 90); font-size: 12px; line-height: 28px; text-align: center;\" target=\"_blank\"><span class=\"sp\" style=\"display: inline-block; overflow: hidden; background-image: url(&quot;https://ssl.pstatic.net/static/blog/sp_blog87.png&quot;); background-size: 339px 320px; color: transparent; margin: 10px 0px 0px; vertical-align: top; background-position: -329px -174px; width: 7px; height: 7px;\"></span>&nbsp;이웃추가</a>\r\n      <div class=\"post_function_t1\" style=\"position: absolute; bottom: 0px; right: -11px;\"><button type=\"button\" class=\"btn_function _btn_tools\" style=\"margin: 0px; padding: 0px; font-size: 14px; line-height: 20px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; border-width: initial; border-style: none; border-color: initial; background-image: initial; background-position: 0px 0px; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; cursor: pointer; border-radius: 0px; width: 26px; height: 30px;\"><span class=\"sp\" style=\"position: relative; display: inline-block; overflow: hidden; background-image: url(&quot;https://ssl.pstatic.net/static/blog/sp_blog87.png&quot;); background-size: 339px 320px; color: transparent; margin: 7px 0px; vertical-align: top; background-position: -329px -145px; width: 3px; height: 16px;\">본문 기타 기능</span></button></div>\r\n      </div>\r\n   </div>\r\n<div class=\"post_ct  \" id=\"viewTypeSelector\" style=\"padding: 36px 20px 10px; font-size: 1.143em; line-height: 1.45em; word-break: break-all; overflow-wrap: break-word; min-height: 87px; width: 640px; margin-left: auto; margin-right: auto; background-color: #ffffff; font-family: sans-serif !important;\">\r\n   <p style=\"padding: 0px;\">ReadAnalogVoltage 예제는 입력된 아닐로그 입력 AD값(0~1023)을 통하여 실제 입력핀의 전압을 계산하는 예제이다.</p>\r\n   <p style=\"padding: 0px;\">예제를 실행하여 얻은 전압값과 실제 멀티테스터를 이용하여 단자를 측정했을때의 전압값이 실제는 다르게 나온다.</p>\r\n   <p style=\"padding: 0px;\">이는 아날로그 ADC의 기준전압(Reference Voltage)의 오차로 볼 수 있는데, ReadAnalogVoltage 예제의 경우 기준전압을</p>\r\n   <p style=\"padding: 0px;\">5.0V로 하여 계산하지만, 실제 아두이노 보드에서 ADC입력의 기준이 되는 전압값은 정확히 5V가 되지 않는다.</p>\r\n   <p style=\"padding: 0px;\"><strike>아두이노에 입력되는 VCC전압이 정확히 5V가 아니기 때문이다.</strike></p>\r\n   <p style=\"padding: 0px;\">MCU인 Atmega328P에 입력되는 VCC 전압이 기준전압으로 사용되는데, 정확히 5V가 입력되지 않기 때문에 오차가 발생하게 된다.&nbsp;</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\">예제에서 정확한 전압값을 얻기 위해서는 기준전압(Reference Voltage)을 실제전압에 맞게 보정해줄 필요가 있다.</p>\r\n   <p style=\"padding: 0px;\">우선 예제 소스코드를 본다.</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">/*</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; ReadAnalogVoltage</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Reads an analog input on pin 0, converts it to voltage, and prints the result to the serial monitor.</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Graphical representation is available using serial plotter (Tools &gt; Serial Plotter menu)</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; This example code is in the public domain.</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">*/</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">// the setup routine runs once when you press reset:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">void setup() {</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // initialize serial communication at 9600 bits per second:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Serial.begin(9600);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">}</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">// the loop routine runs over and over again forever:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">void loop() {</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // read the input on analog pin 0:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; int sensorValue = analogRead(A0);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; float voltage = sensorValue * (5.0 / 1023.0);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // print out the value you read:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Serial.println(voltage);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">}</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\">sensorValue는 아날로그 입력단자를 통하여 아두이노가 읽는 값(0~1023)으로&nbsp;시리얼모니터를 통해 출력할 수 있는 값이고,</p>\r\n   <p style=\"padding: 0px;\">voltage는 아두이노가 기준전압 5.0V 기준으로 계산한 전압값이다.</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\">위의 식 float voltage = sensorValue * (5.0 / 1023.0)에서 voltage값은 A0단자의 전압값을 측정하고, 기준전압 5.0을 Vref라는 변수로 바꾸어</p>\r\n   <p style=\"padding: 0px;\">Vref를 계산하여 구한다.</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\">voltage = sensorValue * (Vref / 1023.0)</p>\r\n   <p style=\"padding: 0px;\">Vref = (voltage * 1023.0) / sensorValue</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\">를 통하여 Vref를 구한 후 소스코드에 적용하면 된다.</p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\">편의를 위해 시리얼모니터에 sensorValue를 같이 출력하고 2초에 한번씩 출력하도록 소스코드를 수정하였다.</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&lt;1차 수정한 소스코드&gt;</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">/*</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; ReadAnalogVoltage</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Reads an analog input on pin 0, converts it to voltage, and prints the result to the serial monitor.</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Graphical representation is available using serial plotter (Tools &gt; Serial Plotter menu)</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; This example code is in the public domain.</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">*/</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">// the setup routine runs once when you press reset:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">void setup() {</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // initialize serial communication at 9600 bits per second:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Serial.begin(9600);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">}</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">// the loop routine runs over and over again forever:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">void loop() {</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // read the input on analog pin 0:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; int sensorValue = analogRead(A0);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; float voltage = sensorValue * (5.0 / 1023.0);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // print out the value you read:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Serial.println(sensorValue);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Serial.println(voltage);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; delay(2000);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">}</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span class=\"_img  fx\" thumburl=\"https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMjgg/MDAxNDkwNTA3MjE0NjM5.GZDqB3Y8Yd0Mk5Gnr2X1mS-MihGBr5f4cbDhkPs5Zj4g.cLe64WDbPaCXJmMTYmwicM1salUnShizK0yN_SLOzjgg.JPEG.mkhee77/%EC%BA%A1%EC%B2%98vo.JPG?type=\" style=\"max-width: 100%;\"><img src=\"https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMjgg/MDAxNDkwNTA3MjE0NjM5.GZDqB3Y8Yd0Mk5Gnr2X1mS-MihGBr5f4cbDhkPs5Zj4g.cLe64WDbPaCXJmMTYmwicM1salUnShizK0yN_SLOzjgg.JPEG.mkhee77/%EC%BA%A1%EC%B2%98vo.JPG?type=w2\" largesrc=\"javascript:location.href=\'https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMjgg/MDAxNDkwNTA3MjE0NjM5.GZDqB3Y8Yd0Mk5Gnr2X1mS-MihGBr5f4cbDhkPs5Zj4g.cLe64WDbPaCXJmMTYmwicM1salUnShizK0yN_SLOzjgg.JPEG.mkhee77/%EC%BA%A1%EC%B2%98vo.JPG?type=w2\'\" id=\"img_1\" data-top=\"2374\" style=\"border: 0px; vertical-align: top; max-width: 100%;\" /></span></p>\r\n   <p style=\"padding: 0px;\">&nbsp;--&gt; sensorValue = 866, voltage = 4.23V 이다.</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\">다음은 A0 단자의 실제 전압 측정값이다.</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\"><span class=\"_img  fx\" thumburl=\"https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMzMg/MDAxNDkwNTA3NDYzNTIy.8Q7W_iKuO9ACU7-NYwJCt_BVPwUU1w4oA_2W9_nAiwIg.9vm2hMsSJlVWh4a-qwBIm6eD0Sl6tqihvY7d8AMDYgog.JPEG.mkhee77/20170326_144643.jpg?type=\" style=\"max-width: 100%;\"><img src=\"https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMzMg/MDAxNDkwNTA3NDYzNTIy.8Q7W_iKuO9ACU7-NYwJCt_BVPwUU1w4oA_2W9_nAiwIg.9vm2hMsSJlVWh4a-qwBIm6eD0Sl6tqihvY7d8AMDYgog.JPEG.mkhee77/20170326_144643.jpg?type=w2\" largesrc=\"javascript:location.href=\'https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMzMg/MDAxNDkwNTA3NDYzNTIy.8Q7W_iKuO9ACU7-NYwJCt_BVPwUU1w4oA_2W9_nAiwIg.9vm2hMsSJlVWh4a-qwBIm6eD0Sl6tqihvY7d8AMDYgog.JPEG.mkhee77/20170326_144643.jpg?type=w2\'\" id=\"img_2\" data-top=\"2973\" style=\"border: 0px; vertical-align: top; max-width: 100%;\" /></span>&nbsp;</p>\r\n   <p style=\"padding: 0px;\">--&gt; 3.955V 이다.</p>\r\n   <p style=\"padding: 0px;\">계산기로 뚜드려 할 수도 있지만, 아두이노를 활용하여 해야겠다.</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&lt;최종 수정한 소스코드&gt;</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">/*</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; ReadAnalogVoltage</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Reads an analog input on pin 0, converts it to voltage, and prints the result to the serial monitor.</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Graphical representation is available using serial plotter (Tools &gt; Serial Plotter menu)</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; This example code is in the public domain.</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">*/</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">float Vin = 3.955, voltage, Vref;</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">int sensorValue;</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">// the setup routine runs once when you press reset:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">void setup() {</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // initialize serial communication at 9600 bits per second:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Serial.begin(9600);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // read the input on analog pin 0:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; sensorValue = analogRead(A0);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; voltage = sensorValue * (5.0 / 1023.0);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // print out the value you read:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Serial.println(sensorValue);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Serial.println(voltage);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; delay(2000);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">}</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">// the loop routine runs over and over again forever:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">void loop() {</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // read the input on analog pin 0:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; sensorValue = analogRead(A0);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // Convert the analog reading (which goes from 0 - 1023) to a voltage (0 - 5V):</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Vref = (Vin * 1023.0) / sensorValue;</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; voltage = sensorValue * (Vref / 1023.0);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; // print out the value you read:</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Serial.println(\"A0 = \"+String(sensorValue));</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Serial.println(\"Reference Voltage = \"+String(Vref));</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; Serial.println(\"ADC Voltage = \"+String(voltage));</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">&nbsp; delay(2000);</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\">}</span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><br /></span></p>\r\n   <p style=\"padding: 0px;\"><span style=\"font-weight: 600; font-family: AppleSDGothicNeo-Bold;\"><span class=\"_img  fx\" thumburl=\"https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMTE2/MDAxNDkwNTA5MzMzMzA0.EjIKvVrGGZI1sK14UKnXgXmZDf26UwS4pMEKnM06WyUg.kZEm5H41nXmrbYmSa7XSo52cS8tHT3GDhtNC2mK9EwUg.JPEG.mkhee77/%EC%BA%A1%EC%B2%98vo1.JPG?type=\" style=\"max-width: 100%;\"><img src=\"https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMTE2/MDAxNDkwNTA5MzMzMzA0.EjIKvVrGGZI1sK14UKnXgXmZDf26UwS4pMEKnM06WyUg.kZEm5H41nXmrbYmSa7XSo52cS8tHT3GDhtNC2mK9EwUg.JPEG.mkhee77/%EC%BA%A1%EC%B2%98vo1.JPG?type=w2\" largesrc=\"javascript:location.href=\'https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMTE2/MDAxNDkwNTA5MzMzMzA0.EjIKvVrGGZI1sK14UKnXgXmZDf26UwS4pMEKnM06WyUg.kZEm5H41nXmrbYmSa7XSo52cS8tHT3GDhtNC2mK9EwUg.JPEG.mkhee77/%EC%BA%A1%EC%B2%98vo1.JPG?type=w2\'\" id=\"img_3\" data-top=\"4677\" style=\"border: 0px; vertical-align: top; max-width: 100%;\" /></span></span></p>\r\n   <p style=\"padding: 0px;\">-&gt; 시리얼 모니터 출력결과이다. 기준전압이 5.0V에서 4.68V로 바뀌었고</p>\r\n   <p style=\"padding: 0px;\">&nbsp; &nbsp; A0핀의 전압 게산결과도 4.23V에서 3.95V로 바뀌었다.</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\"><span class=\"_img  fx\" thumburl=\"https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMiAg/MDAxNDkwNTA5NDc2NDA3.ZkbnQ90ztCOnjvVmzOtSHGTvhbsbWnzI7TBxAg0RXP8g.yyUjAR5XLrXbD9q1lze8PhyDzsXyUrSGUPn27kdTn2Eg.JPEG.mkhee77/20170326_151907.jpg?type=\" style=\"max-width: 100%;\"><img src=\"https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMiAg/MDAxNDkwNTA5NDc2NDA3.ZkbnQ90ztCOnjvVmzOtSHGTvhbsbWnzI7TBxAg0RXP8g.yyUjAR5XLrXbD9q1lze8PhyDzsXyUrSGUPn27kdTn2Eg.JPEG.mkhee77/20170326_151907.jpg?type=w2\" largesrc=\"javascript:location.href=\'https://mblogthumb-phinf.pstatic.net/MjAxNzAzMjZfMiAg/MDAxNDkwNTA5NDc2NDA3.ZkbnQ90ztCOnjvVmzOtSHGTvhbsbWnzI7TBxAg0RXP8g.yyUjAR5XLrXbD9q1lze8PhyDzsXyUrSGUPn27kdTn2Eg.JPEG.mkhee77/20170326_151907.jpg?type=w2\'\" id=\"img_4\" data-top=\"5251\" style=\"border: 0px; vertical-align: top; max-width: 100%;\" /></span>&nbsp;</p>\r\n   <p style=\"padding: 0px;\">-&gt; 실제 A0핀을 테스터기로 찍어본 결과도 3.95V이다.</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\">&lt;2017/8/24&nbsp; 내용 추가&gt;&nbsp;</p>\r\n   <p style=\"padding: 0px;\">아두이노의 Vin 단자나 전원어뎁터단자에 전원을 넣게되면 아두이노 내부의 +5V REG를 거치며 전압 drop이 발생하는데</p>\r\n   <p style=\"padding: 0px;\">이와 같은 전압 drop을 감안하여 전압을 넣어주지 않으면 기준전압은 5V 이하로 낮아지게 된다.</p>\r\n   <p style=\"padding: 0px;\">보통 사용하는 5V Regulator마다 다르지만 drop되는 전압값이 1V라고 했을 때, 5V (REG 출력전압) + 1V(Drop전압) = 6V 이상 공급해주어야</p>\r\n   <p style=\"padding: 0px;\">정상적인 5V 출력전압을 낼 수 있다. 만약 5.5V를 넣어주었다면 1V가 drop될 경우 REG의 출력전압은 4.5V가 되며, MCU의 VCC단에</p>\r\n   <p style=\"padding: 0px;\">4.5V가 공급되고 기준전압도 4.5V가 된다. 이를 감안하여 아두이노 홈페이지의 아두이노 SPEC 항목을 보면 입력전압범위가 7~12V로 되어있다.</p>\r\n   <p style=\"padding: 0px;\"><br /></p>\r\n   <p style=\"padding: 0px;\"><a href=\"http://blog.naver.com/mkhee77/221074391861\" target=\"_blank\" _foo=\"con_link\" style=\"color: #005fc1; cursor: pointer; -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);\">http://blog.naver.com/mkhee77/221074391861</a>&nbsp;</p>\r\n   </div>','https://m.blog.naver.com/PostView.nhn?blogId=mkhee77&logNo=220967454846&proxyReferer=https:%2F%2Fwww.google.com%2F','',0,0,4,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2020-06-08 17:08:48',0,'2020-06-08 17:08:48','210.101.103.92','','','','','','','','','','','',''),(435,-435,'',435,0,0,'','','html1','[Arduino] Serial.write()함수 / byte배열 시리얼 쓰기','<div class=\"fusion-page-title-bar fusion-page-title-bar-none fusion-page-title-bar-left\" style=\"box-sizing: border-box; clear: both; padding: 0px 30px; height: 87px; width: 1261px; background-position: center center; background-repeat: no-repeat; border: none; color: #50586b; font-family: IcoMoon, &quot;Nanum Gothic&quot;; font-size: 14px;\">\r\n   <div class=\"fusion-page-title-row\" style=\"box-sizing: border-box; overflow: hidden; margin: 0px auto; height: 87px; max-width: 930px;\">\r\n      <div class=\"fusion-page-title-wrapper\" style=\"box-sizing: border-box; display: table; z-index: 1; position: relative; height: 87px; width: 930px;\">\r\n         <div class=\"fusion-page-title-captions\" style=\"box-sizing: border-box; display: table-cell; vertical-align: middle; width: 930px;\">\r\n            <h1 class=\"entry-title\" data-fontsize=\"20\" data-lineheight=\"NaN\" style=\"box-sizing: border-box; font-variant-numeric: normal; font-variant-east-asian: normal; font-stretch: normal; font-size: 20px; line-height: normal; font-family: &quot;Open Sans&quot;, Arial, Helvetica, sans-serif; margin: 0px; padding: 0px; color: #495b7a;\">[아두이노 레퍼런스] Serial.write() 함수</h1>\r\n            </div>\r\n         </div>\r\n      </div>\r\n   </div>\r\n<div id=\"main\" class=\"clearfix \" style=\"box-sizing: border-box; padding: 5px 30px 20px; background: rgb(255, 255, 255); clear: both; color: #50586b; font-family: IcoMoon, &quot;Nanum Gothic&quot;; font-size: 14px;\">\r\n   <div class=\"fusion-row\" style=\"box-sizing: border-box; margin: 0px auto; zoom: 1; max-width: 930px;\">\r\n      <div id=\"content\" class=\"portfolio-one-sidebar\" style=\"box-sizing: border-box; width: 641.688px; float: left; min-height: 1px;\">\r\n         <div id=\"post-7239\" class=\"post post-7239 type-post status-publish format-standard has-post-thumbnail hentry category-arduino category-tutorials tag-serial tag-serial-write tag-298 tag-295\" style=\"box-sizing: border-box; margin-bottom: 65px;\">\r\n            <div class=\"post-content\" style=\"box-sizing: border-box;\">\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\">아두이노의 Serial.write() 함수는 &nbsp;<strong style=\"box-sizing: border-box;\">Serial 포트에 하나의 바이트 또는 그 이상의 바이트를 전송</strong>하는데 사용합니다. 주로 데이터 통신을 구현할 때 사용되며&nbsp;<a href=\"http://www.iamamaker.kr/ko/tutorials/arduino/%EC%95%84%EB%91%90%EC%9D%B4%EB%85%B8-%EB%A0%88%ED%8D%BC%EB%9F%B0%EC%8A%A4-serial-print-%ED%95%A8%EC%88%98/\" style=\"box-sizing: border-box; text-decoration-line: none; color: #50586b;\" target=\"_blank\">Serial.print()</a>&nbsp;함수와 구분되어 사용합니다.</p>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\">Serial.write() 함수는 숫자를 전송할 때&nbsp;<strong style=\"box-sizing: border-box;\">숫자 있는 그대로 전송</strong>합니다. 이는 숫자를 ASCII 코드로 변환하여 전송하는 Serial.print() 함수와 구분되며 일부 매개변수 입력에도 차이가 있습니다.</p>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\">&nbsp;</p>\r\n               <h3 data-fontsize=\"19\" data-lineheight=\"32\" style=\"box-sizing: border-box; font-family: &quot;Open Sans&quot;, Arial, Helvetica, sans-serif; margin-top: 0.2em; margin-bottom: 0.5em; font-size: 19px; line-height: 32px;\">Serial.write()</h3>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\">&nbsp;</p>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\"><em style=\"box-sizing: border-box;\">Serial.write(val);<br style=\"box-sizing: border-box;\" /></em><em style=\"box-sizing: border-box;\">Serial.write(str);<br style=\"box-sizing: border-box;\" /></em><em style=\"box-sizing: border-box;\">Serial.write(buf, len);</em></p>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\"><strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #ffa147;\">매개변수(Parameters)</span></strong><br style=\"box-sizing: border-box;\" />val&nbsp;: 1 바이트 데이터(0x00 ~ 0xFF)<br style=\"box-sizing: border-box;\" />str : 문자열(ex ‘A’, “Hello”)<br style=\"box-sizing: border-box;\" />buf : byte형 배열에 저장된 데이터, len 만큼 바이트 전송</p>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\"><strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #ffa147;\">반환값(Return)</span></strong><br style=\"box-sizing: border-box;\" />size_t: write() : 전송한 byte 수</p>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\">&nbsp;</p>\r\n               <div id=\"crayon-5dd62076ea80e337114635\" class=\"crayon-syntax crayon-theme-monokai crayon-font-monaco crayon-os-pc print-yes notranslate\" data-settings=\" minimize scroll-mouseover\" style=\"box-sizing: border-box; text-size-adjust: none; width: 641.688px; padding: 0px; margin: 12px 0px; font-family: Monaco, MonacoRegular, &quot;Courier New&quot;, monospace; height: auto; overflow: hidden !important; position: relative !important; direction: ltr !important; border-width: 1px !important; border-color: #ffae00 !important; text-shadow: none !important; background: rgb(51, 51, 51) !important; border-style: solid !important; font-size: 12px !important; line-height: 17px !important;\">\r\n                  <div class=\"crayon-plain-wrap\" style=\"box-sizing: border-box; background: 0px center; border: 0px; padding: 0px !important; margin: 0px !important; height: auto !important;\"><textarea wrap=\"soft\" class=\"crayon-plain print-no\" data-settings=\"dblclick\" readonly=\"\" style=\"-webkit-appearance: none; border-radius: 0px; vertical-align: middle; color: #000000; background-image: initial; background-position: initial; background-size: initial; background-repeat: initial; background-attachment: initial; background-origin: initial; background-clip: initial; border-width: 0px; border-style: initial; border-color: initial; width: 639.688px; overflow: hidden; padding-top: 0px; padding-right: 5px; padding-left: 5px; margin: 0px; height: 221px; position: absolute; opacity: 0; box-shadow: none; white-space: pre; overflow-wrap: normal; resize: none; tab-size: 4; z-index: 0; font-size: 12px !important; line-height: 17px !important; font-family: Monaco, MonacoRegular, &quot;Courier New&quot;, monospace !important;\"></textarea></div>\r\n                  <div class=\"crayon-main\" style=\"box-sizing: border-box; background: 0px center; border: 0px; padding: 0px; margin: 0px; width: 639.688px; overflow: hidden; position: relative; z-index: 1;\">\r\n                     <table class=\"crayon-table\" style=\"box-sizing: border-box; max-width: 100%; margin-left: 0px; background: none !important; border-spacing: 0px !important; border-width: initial !important; border-style: none !important; border-color: initial !important; padding: 0px !important; margin-right: 0px !important; margin-bottom: 0px !important; margin-top: 0px !important; width: auto !important; table-layout: auto !important;\">\r\n                        <tbody style=\"box-sizing: border-box;\">\r\n                           <tr class=\"crayon-row\" style=\"box-sizing: border-box; background: 0px center; padding: 0px !important; border: none !important; vertical-align: top !important; margin: 0px !important;\">\r\n                              <td class=\"crayon-nums \" data-settings=\"show\" style=\"box-sizing: border-box; border-top: 0px; border-bottom: 0px; border-left: 0px; border-right-style: solid !important; border-right-color: #555555 !important; vertical-align: top !important; padding: 0px !important; margin: 0px !important; background: rgb(34, 34, 34) !important; color: #898989 !important;\">\r\n                                 <div class=\"crayon-nums-content\" style=\"box-sizing: border-box; background: 0px center; border: 0px; padding: 0px; margin: 0px; white-space: nowrap; line-height: 17px !important;\">\r\n                                    <div class=\"crayon-num\" data-line=\"crayon-5dd62076ea80e337114635-1\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">1</div>\r\n                                    <div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5dd62076ea80e337114635-2\" style=\"box-sizing: border-box; font-family: inherit; background: rgb(40, 40, 40) !important; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #979797 !important;\">2</div>\r\n                                    <div class=\"crayon-num\" data-line=\"crayon-5dd62076ea80e337114635-3\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">3</div>\r\n                                    <div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5dd62076ea80e337114635-4\" style=\"box-sizing: border-box; font-family: inherit; background: rgb(40, 40, 40) !important; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #979797 !important;\">4</div>\r\n                                    <div class=\"crayon-num\" data-line=\"crayon-5dd62076ea80e337114635-5\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">5</div>\r\n                                    <div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5dd62076ea80e337114635-6\" style=\"box-sizing: border-box; font-family: inherit; background: rgb(40, 40, 40) !important; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #979797 !important;\">6</div>\r\n                                    <div class=\"crayon-num\" data-line=\"crayon-5dd62076ea80e337114635-7\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">7</div>\r\n                                    <div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5dd62076ea80e337114635-8\" style=\"box-sizing: border-box; font-family: inherit; background: rgb(40, 40, 40) !important; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #979797 !important;\">8</div>\r\n                                    <div class=\"crayon-num\" data-line=\"crayon-5dd62076ea80e337114635-9\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">9</div>\r\n                                    <div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5dd62076ea80e337114635-10\" style=\"box-sizing: border-box; font-family: inherit; background: rgb(40, 40, 40) !important; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #979797 !important;\">10</div>\r\n                                    <div class=\"crayon-num\" data-line=\"crayon-5dd62076ea80e337114635-11\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">11</div>\r\n                                    <div class=\"crayon-num crayon-striped-num\" data-line=\"crayon-5dd62076ea80e337114635-12\" style=\"box-sizing: border-box; font-family: inherit; background: rgb(40, 40, 40) !important; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #979797 !important;\">12</div>\r\n                                    <div class=\"crayon-num\" data-line=\"crayon-5dd62076ea80e337114635-13\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; text-align: center; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">13</div>\r\n                                    </div>\r\n                                 </td>\r\n                              <td class=\"crayon-code\" style=\"box-sizing: border-box; border-width: 0px; border-style: initial; border-color: initial; background: 0px center; width: 614px; vertical-align: top !important; padding: 0px !important; margin: 0px !important;\">\r\n                                 <div class=\"crayon-pre\" style=\"box-sizing: border-box; padding: 0px; margin: 0px; white-space: pre; overflow: visible; tab-size: 4; background: none !important; border: none !important; color: #ffffff !important; line-height: 17px !important;\">\r\n                                    <div class=\"crayon-line\" id=\"crayon-5dd62076ea80e337114635-1\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-r\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">byte</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-v\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">buff</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">[</span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">10</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">]</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-o\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f92672 !important;\">=</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">{</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">64</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">,</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-s\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e6db74 !important;\">\'A\'</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">,</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">0x42</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">,</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">67</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">,</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">68</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">,</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">69</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">,</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">70</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">,</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">71</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">,</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">72</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">,</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">73</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">}</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">;</span></div>\r\n                                    <div class=\"crayon-line crayon-striped-line\" id=\"crayon-5dd62076ea80e337114635-2\" style=\"box-sizing: border-box; font-family: inherit; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; background: rgb(54, 54, 54) !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">&nbsp;</div>\r\n                                    <div class=\"crayon-line\" id=\"crayon-5dd62076ea80e337114635-3\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-t\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #66d9ef !important;\">void</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-st\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f92672 !important;\">setup</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">(</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">)</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">{</span></div>\r\n                                    <div class=\"crayon-line crayon-striped-line\" id=\"crayon-5dd62076ea80e337114635-4\" style=\"box-sizing: border-box; font-family: inherit; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; background: rgb(54, 54, 54) !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\">&nbsp;&nbsp;</span><span class=\"crayon-st\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f92672 !important;\">Serial</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">.</span><span class=\"crayon-v\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">begin</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">(</span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">115200</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">)</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">;</span></div>\r\n                                    <div class=\"crayon-line\" id=\"crayon-5dd62076ea80e337114635-5\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">}</span></div>\r\n                                    <div class=\"crayon-line crayon-striped-line\" id=\"crayon-5dd62076ea80e337114635-6\" style=\"box-sizing: border-box; font-family: inherit; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; background: rgb(54, 54, 54) !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\">&nbsp;</div>\r\n                                    <div class=\"crayon-line\" id=\"crayon-5dd62076ea80e337114635-7\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-t\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #66d9ef !important;\">void</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-st\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f92672 !important;\">loop</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">(</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">)</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">{</span></div>\r\n                                    <div class=\"crayon-line crayon-striped-line\" id=\"crayon-5dd62076ea80e337114635-8\" style=\"box-sizing: border-box; font-family: inherit; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; background: rgb(54, 54, 54) !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\">&nbsp;&nbsp;</span><span class=\"crayon-st\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f92672 !important;\">Serial</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">.</span><span class=\"crayon-v\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">write</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">(</span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">64</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">)</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">;</span></div>\r\n                                    <div class=\"crayon-line\" id=\"crayon-5dd62076ea80e337114635-9\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\">&nbsp;&nbsp;</span><span class=\"crayon-st\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f92672 !important;\">Serial</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">.</span><span class=\"crayon-v\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">write</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">(</span><span class=\"crayon-s\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e6db74 !important;\">\"abc\"</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">)</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">;</span></div>\r\n                                    <div class=\"crayon-line crayon-striped-line\" id=\"crayon-5dd62076ea80e337114635-10\" style=\"box-sizing: border-box; font-family: inherit; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; background: rgb(54, 54, 54) !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\">&nbsp;&nbsp;</span><span class=\"crayon-st\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f92672 !important;\">Serial</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">.</span><span class=\"crayon-v\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">write</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">(</span><span class=\"crayon-v\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">buff</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">,</span><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\"></span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">5</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">)</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">;</span></div>\r\n                                    <div class=\"crayon-line\" id=\"crayon-5dd62076ea80e337114635-11\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\">&nbsp;&nbsp;</span><span class=\"crayon-st\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f92672 !important;\">Serial</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">.</span><span class=\"crayon-e\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #66d9ef !important;\">println</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">(</span><span class=\"crayon-s\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e6db74 !important;\">\" \"</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">)</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">;</span></div>\r\n                                    <div class=\"crayon-line crayon-striped-line\" id=\"crayon-5dd62076ea80e337114635-12\" style=\"box-sizing: border-box; font-family: inherit; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; background: rgb(54, 54, 54) !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-h\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #006fe0 !important;\">&nbsp;&nbsp;</span><span class=\"crayon-st\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f92672 !important;\">delay</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">(</span><span class=\"crayon-cn\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #e7a37a !important;\">1000</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">)</span><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">;</span></div>\r\n                                    <div class=\"crayon-line\" id=\"crayon-5dd62076ea80e337114635-13\" style=\"box-sizing: border-box; font-family: inherit; background: 0px center; border: 0px; padding: 0px 5px; margin: 0px; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important;\"><span class=\"crayon-sy\" style=\"box-sizing: border-box; font-family: inherit; height: inherit; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: #f8f8f2 !important;\">}</span></div>\r\n                                    </div>\r\n                                 </td>\r\n                              </tr>\r\n                           </tbody>\r\n                        </table>\r\n                     </div>\r\n                  </div>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\">위 예제를 아두이노 보드에 업로드하고 시리얼 모니터로 실행 결과를 보면 “@abc$ABCD” 이 반복적으로 출력될 것입니다.</p>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\">하나씩 살펴보면</p>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\">시리얼 모니터에서 수신된 &lt;64&gt;를 ASCII 값으로 판단하고 이에 해당하는 문자 ‘@’을 출력합니다. 문자열은 그대로 출력하여 “abc”가 이어서 출력되고 byte형 배열 중 5개의 데이터는 숫자는 ASCII 문자로, 문자는 문자로 출력합니다.</p>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\">&lt;64&gt;&nbsp;→ ‘@’<br style=\"box-sizing: border-box;\" />“abc”&nbsp;→ “abc”<br style=\"box-sizing: border-box;\" />&lt;36&gt;&nbsp;→ ‘$’<br style=\"box-sizing: border-box;\" />‘A’&nbsp;→ ‘A’<br style=\"box-sizing: border-box;\" />&lt;0x42&gt;&nbsp;→ ‘B’<br style=\"box-sizing: border-box;\" />&lt;67&gt;&nbsp;→ ‘C’<br style=\"box-sizing: border-box;\" />&lt;68&gt;&nbsp;→ ‘D’</p>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\">&nbsp;<strong style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; color: #ffa147;\">참고</span></strong></p>\r\n               <p style=\"box-sizing: border-box; margin-bottom: 20px;\">아두이노 시리얼 모니터는 수신된 데이터를 ASCII 코드의 문자로 변화하여 출력합니다. &nbsp;raw 데이터를 확인하기 위해서는 헥사(16진수) 값 등을 확인할 수 있는 별도의 시리얼 모니터 프로그램을 사용하셔야 합니다.</p>\r\n               </div>\r\n            </div>\r\n         </div>\r\n      </div>\r\n   </div>','http://www.iamamaker.kr/ko/tutorials/arduino/%EC%95%84%EB%91%90%EC%9D%B4%EB%85%B8-%EB%A0%88%ED%8D%BC%EB%9F%B0%EC%8A%A4-serial-write-%ED%95%A8%EC%88%98/','',0,0,2,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2019-11-21 14:41:37',0,'2019-11-21 14:41:37','210.101.103.92','','','','','','','','','','','',''),(436,-436,'',436,0,0,'','','html1','[Arduino] 아두이노 내부클럭 8Mhz 이용하기(앱두이노 설정법)','<p>boards.txt 파일경로</p>\r\n<p>&gt;&gt; c:\\Users\\내pc\\AppData\\Local\\Arduino15\\packages\\arduino\\hardware\\avr\\1.8.11</p>\r\n<p>================================================================</p>\r\n<p>######################################################</p>\r\n<p><br /></p>\r\n<p>internal328_8.name=ATmega328 w/ 8 MHz internal clock (Optiboot)</p>\r\n<p>internal328_8.upload.protocol=arduino</p>\r\n<p>internal328_8.upload.maximum_size=32256</p>\r\n<p>internal328_8.upload.speed=57600</p>\r\n<p>internal328_8.upload.tool=avrdude</p>\r\n<p>internal328_8.bootloader.low_fuses=0xe2</p>\r\n<p>internal328_8.bootloader.high_fuses=0xde</p>\r\n<p>internal328_8.bootloader.extended_fuses=0xfd</p>\r\n<p>internal328_8.bootloader.file=optiboot/optiboot_atmega328.hex</p>\r\n<p>internal328_8.bootloader.unlock_bits=0x3F</p>\r\n<p>internal328_8.bootloader.lock_bits=0x0F</p>\r\n<p>internal328_8.bootloader.tool=avrdude</p>\r\n<p>internal328_8.build.mcu=atmega328p</p>\r\n<p>internal328_8.build.f_cpu=8000000L&nbsp;</p>\r\n<p>internal328_8.build.board=AVR_PRO</p>\r\n<p>internal328_8.build.core=arduino</p>\r\n<p>&nbsp;</p>\r\n<p>internal328_8.build.variant=eightanaloginputs</p>','','',0,0,8,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2020-01-30 01:56:02',0,'2020-01-30 01:56:02','192.168.219.102','','','','','','','','','','','',''),(437,-437,'',437,0,0,'','','html1','[Linux] Raspberry pi Gstreamer 설치','<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-size: 12pt; font-family: &quot;Times New Roman&quot;;\">라즈베리 파이 3에 GStreamer RTSP Server를 설치해서 카메라 영상을 스트리밍하는 서버를 구축한다.</span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 14px; letter-spacing: -0.4px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt;\"><span style=\"box-sizing: border-box; font-size: 10pt; font-family: &quot;Times New Roman&quot;;\">Hardware: Raspberry Pi 3 (with Pi Camera v2)</span></span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 10pt; font-family: &quot;Times New Roman&quot;;\">OS: Raspbian (Stretch with desktop</span><span style=\"box-sizing: border-box; font-size: 10pt; font-family: &quot;Times New Roman&quot;;\">)</span><span style=\"box-sizing: border-box; font-size: 10pt; font-family: &quot;Times New Roman&quot;;\">&nbsp;</span></li>\r\n   </ul>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">필요한 패키지 설치에 앞서 라즈베리 파이 환경 설정이 필요.</span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><span style=\"box-sizing: border-box; font-size: 10pt; font-family: &quot;Times New Roman&quot;;\">메뉴 - Preference - Raspberry Pi Configuration</span></span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 14px; letter-spacing: -0.4px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">Enable ssh (Option)</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">Enable camera</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">Increase memory split to 256MB</span></li>\r\n   </ul>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p class=\"blog-image\" style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; text-align: center; background-color: #ffffff; clear: none; float: none;\"><span class=\"imageblock\" style=\"box-sizing: border-box; max-width: 100%; display: inline-block; width: 664.5px; height: auto;\"><span data-url=\"https://t1.daumcdn.net/cfile/tistory/9992E4375BCD261126?download\" data-lightbox=\"lightbox\" style=\"box-sizing: border-box; cursor: pointer;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/9992E4375BCD261126\" width=\"300\" filename=\"c2_.PNG\" filemime=\"image/jpeg\" original=\"yes\" style=\"box-sizing: border-box; border: 0px; vertical-align: middle; cursor: pointer; max-width: 100%; height: auto;\" /></span></span>&nbsp; &nbsp;<span class=\"imageblock\" style=\"box-sizing: border-box; max-width: 100%; display: inline-block; width: 664.5px; height: auto;\"><span data-url=\"https://t1.daumcdn.net/cfile/tistory/995D96375BCD261127?download\" data-lightbox=\"lightbox\" style=\"box-sizing: border-box; cursor: pointer;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/995D96375BCD261127\" width=\"300\" filename=\"c3_.PNG\" filemime=\"image/jpeg\" original=\"yes\" style=\"box-sizing: border-box; border: 0px; vertical-align: middle; cursor: pointer; max-width: 100%; height: auto;\" /></span></span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\">&nbsp;</p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /><span style=\"box-sizing: border-box; font-size: 12pt;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">1. GStreamer 기본 패키지 설치</span></span></span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 14px; letter-spacing: -0.4px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">sudo apt&nbsp;install vim git</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">sudo apt-get install gstreamer1.0-plugins-bad gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-ugly gstreamer1.0-tools libgstreamer1.0-dev libgstreamer1.0-0-dbg libgstreamer1.0-0 libgstreamer-plugins-base1.0-dev gtk-doc-tools</span></li>\r\n   </ul>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><span style=\"box-sizing: border-box; font-size: 12pt; font-family: &quot;Times New Roman&quot;;\">2. GStreamer Camera Source 설치</span></span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 14px; letter-spacing: -0.4px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">git clone https://github.com/thaytan/gst-rpicamsrc.git</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">cd gst-rpicamsrc</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">./autogen.sh</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">make</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">sudo make install</span></li>\r\n   </ul>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">설치 후 아래 명령어를 입력하여 파이 카메라가 잡히는지 확인</span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 14px; letter-spacing: -0.4px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">gst-inspect-1.0 |grep rpicamsrc</span></li>\r\n   </ul>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p class=\"blog-image\" style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; text-align: center; background-color: #ffffff; clear: none; float: none;\"><span class=\"imageblock\" style=\"box-sizing: border-box; max-width: 100%; display: inline-block; width: 664.5px; height: auto;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/9907713E5BCD26651C\" width=\"506\" filename=\"c1.PNG\" filemime=\"image/jpeg\" \"\"=\"\" style=\"box-sizing: border-box; border: 0px; vertical-align: middle; max-width: 100%; height: auto;\" /></span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><span style=\"box-sizing: border-box; font-size: 12pt; font-family: &quot;Times New Roman&quot;;\">3. GStreamer RTSP Server 라이브러리 설치</span></span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">라즈비안 OS는 현재 최신 버전의 GStreamer이 호환되지 않는다. 불안정적이기도 하고... 무슨 에러를 발생시킬지 모른다.</span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">그래서 검증된(?) 안정된 1.4 버전으로 설치한다.</span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 14px; letter-spacing: -0.4px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">git clone git://anongit.freedesktop.org/gstreamer/gst-rtsp-server</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">cd gst-rtsp-server</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">git checkout 1.4</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">./autogen.sh</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">make</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">sudo make install</span></li>\r\n   </ul>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><span style=\"box-sizing: border-box; font-size: 12pt; font-family: &quot;Times New Roman&quot;;\">4. RTSP Server 실행</span></span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">먼저 Pi Camera의 지원 사양부터 확인한다.</span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 14px; letter-spacing: -0.4px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">gst-inspect-1.0 rpicamsrc</span></li>\r\n   </ul>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">기존에 다운받은 gst-rtsp-server/example</span><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">&nbsp;폴더로 이동해서 아래 명령어를 실행한다.</span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\"><br style=\"box-sizing: border-box;\" /></span></p>\r\n<ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style: none; background-color: #ffffff;\">\r\n   <li style=\"font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 14px; letter-spacing: -0.4px; box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 14.6667px; font-family: &quot;Times New Roman&quot;;\">./test-launch \"( rpicamsrc preview=false bitrate=2000000 keyframe-interval=15 ! video/x-h264, framerate=15/1 ! h264parse ! rtph264pay name=pay0 pt=96 )\"</span></li>\r\n   <li style=\"font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 14px; letter-spacing: -0.4px; box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 14.6667px; font-family: &quot;Times New Roman&quot;;\">(수정)</span></li>\r\n   <li style=\"box-sizing: border-box; line-height: 2;\"><span style=\"box-sizing: border-box; font-size: 14.6667px; letter-spacing: -0.4px;\"><font face=\"Times New Roman\">./test-launch \"v4l2src ! video/x-raw, width=1280, height=720 ! queue ! omxh264enc ! video/x-h264, profile=(string)high ! rtph264pay name=pay0 pt=96\"</font></span></li>\r\n   </ul>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p class=\"blog-image\" style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; text-align: center; background-color: #ffffff; clear: none; float: none;\"><span class=\"imageblock\" style=\"box-sizing: border-box; max-width: 100%; display: inline-block; width: 664.5px; height: auto;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/9983C8385BCD268E18\" width=\"644\" filename=\"c4.PNG\" filemime=\"image/jpeg\" \"\"=\"\" style=\"box-sizing: border-box; border: 0px; vertical-align: middle; max-width: 100%; height: auto;\" /></span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-weight: 700;\"><span style=\"box-sizing: border-box; font-size: 12pt; font-family: &quot;Times New Roman&quot;;\">5. Client에서 RTSP Server 연결</span></span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">여기서 Client는 윈도우 기반 PC이다.&nbsp;</span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">RTSP Server에 접속하여 영상을 디스플레이하기 위해 팟플레이어를 사용한다.</span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">팟플레이어에서 열기 - 주소 열기 실행 (Ctrl + U)</span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><span style=\"box-sizing: border-box; font-family: &quot;Times New Roman&quot;;\">주소 입력창에 아래와 같이 입력</span></p>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<ul style=\"box-sizing: border-box; margin-top: 0px; margin-bottom: 10px; list-style-position: initial; list-style-image: initial; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 14px; letter-spacing: -0.4px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\"><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">rtsp://xxx.xxx.x.x:8554/test&nbsp; &nbsp; (xxx.xxx.x.x: Raspberry&nbsp;</span><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">IP주소 =&nbsp;</span><span style=\"box-sizing: border-box; font-size: 11pt; font-family: &quot;Times New Roman&quot;;\">RTSP Server 주소)</span></li>\r\n   </ul>\r\n<p style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; background-color: #ffffff;\"><br style=\"box-sizing: border-box;\" /></p>\r\n<p class=\"blog-image\" style=\"box-sizing: border-box; padding: 0px 15px; font-family: Helvetica-Light, HelveticaNeue-Light, &quot;Helvetica Neue Light&quot;, 나눔고딕, nanumgothic, AppleSDGothicNeo, &quot;malgun gothic&quot;, &quot;맑은 고딕&quot;, sans-serif; font-size: 11pt; line-height: 28px; letter-spacing: -0.4px; text-align: center; background-color: #ffffff; clear: none; float: none;\"><span class=\"imageblock\" style=\"box-sizing: border-box; max-width: 100%; display: inline-block; width: 664.5px; height: auto;\"><span data-url=\"https://t1.daumcdn.net/cfile/tistory/99E461385BCD26AA13?download\" data-lightbox=\"lightbox\" style=\"box-sizing: border-box; cursor: pointer;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/99E461385BCD26AA13\" width=\"300\" filename=\"1.PNG\" filemime=\"image/jpeg\" original=\"yes\" style=\"box-sizing: border-box; border: 0px; vertical-align: middle; cursor: pointer; max-width: 100%; height: auto;\" /></span></span></p>','https://imsoftpro.tistory.com/53','',0,0,3,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2020-02-14 10:13:01',0,'2020-02-14 10:13:01','210.101.103.92','','','','','','','','','','','',''),(438,-438,'',438,0,0,'','','html1','[ETC] 윈도우10 컴퓨터 사양을 평가하는 체험 지수 보는 방법','<p>&nbsp; 출처: https://mainia.tistory.com/4932 [녹두장군 - 상상을 현실로]</p>\r\n<p>&nbsp;</p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify;\"><span style=\"font-size: 12pt; color: #000000;\">윈도우에는 컴퓨터의 사양을 전체적으로 평가할 수 있는 체험 지수 정보를 제공하고 있습니다.&nbsp;별도의 프로그램을 설치하지 않고도 주요 영역별로 성능을 체크해 볼 수 있어서 하드웨어 교체 여부를 결정할 때 참고하곤 합니다.&nbsp;윈도우7&nbsp;에서는 제어판에서 제공하지만 윈도우10에서는 찾을 수가 없더군요.&nbsp;오늘은 윈도우10의&nbsp;PowerShell&nbsp;을 통해서 컴퓨터 사양을 체크하는 방법에 대해 알아 보겠습니다.</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify;\"><span style=\"font-size: 12pt; color: #000000;\">&nbsp;</span></p>\r\n<p style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; text-align: justify;\"><span style=\"color: #000000;\">&nbsp;</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify;\"><span style=\"font-size: 12pt; color: #000000;\">▼</span><span style=\"font-size: 12pt;\"><span style=\"color: #000000;\">&nbsp;윈도우7&nbsp;에서의 체험 지수는&nbsp;</span><b><i><span style=\"color: #000000;\">[제어판] &gt; [성능 정보 및 도구]</span></i></b><span style=\"color: #000000;\">&nbsp;에서 확인이 가능합니다. 5개의 구성 요소 별로 점수를 매기게 되는데 가장 낮은 점수가 체험 지수 값이 됩니다.&nbsp;그림처럼 저 같은 경우 하드 디스크의 점수가 가장 낮습니다.&nbsp;그래서&nbsp;SSD&nbsp;로 교체할지 말지 고민하고 있습니다.</span></span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify; clear: none; float: none;\"><span class=\"imageblock\" style=\"border: 0px solid rgb(221, 221, 221); padding: 5px; margin: 5px 0px; display: inline-block; width: 620px; height: auto; max-width: 100%;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/256A2E4D5855264229\" width=\"620\" alt=\"윈도우10 컴퓨터 사양을 평가하는 체험 지수 보는 방법\" filename=\"image001.jpg\" filemime=\"image/jpeg\" original=\"yes\" style=\"border: 0px; max-width: 100%; height: auto;\" /></span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify;\"><span style=\"font-size: 12pt; color: #000000;\">&nbsp;</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify; clear: none; float: none;\"><span style=\"color: #000000;\">&nbsp;</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify;\"><span style=\"font-size: 12pt; color: #000000;\">▼</span><span style=\"font-size: 12pt;\"><span style=\"color: #000000;\">&nbsp;윈도우10&nbsp;에서는 윈도우7&nbsp;과 달리 제어판에서 제공하고 있지 않기 때문에 다른 방법으로 측정할 수 밖에 없습니다.&nbsp;</span><b><i><span style=\"color: #000000;\">[</span></i></b><b><i><span style=\"color: #000000;\">윈도우키&nbsp;+ R]</span></i></b><span style=\"color: #000000;\">&nbsp;단축키를 눌러 실행창을 띄운 후&nbsp;</span><b><i><span style=\"color: #000000;\">powershell</span></i></b><span style=\"color: #000000;\">&nbsp;이라고 입력합니다.&nbsp;</span></span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify; clear: none; float: none;\"><span class=\"imageblock\" style=\"border: 0px solid rgb(221, 221, 221); padding: 5px; margin: 5px 0px; display: inline-block; width: 620px; height: auto; max-width: 100%;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/277EF64D5855264318\" width=\"620\" alt=\"윈도우10 컴퓨터 사양을 평가하는 체험 지수 보는 방법\" filename=\"image002.jpg\" filemime=\"image/jpeg\" original=\"yes\" style=\"border: 0px; max-width: 100%; height: auto;\" /></span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify;\"><span style=\"font-size: 12pt; color: #000000;\">&nbsp;</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify; clear: none; float: none;\"><span style=\"color: #000000;\">&nbsp;</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify;\"><span style=\"font-size: 12pt; color: #000000;\">▼</span><span style=\"font-size: 12pt;\"><span style=\"color: #000000;\">&nbsp;PowerShell&nbsp;은 윈도우 시스템을 관리할 수 있도록 만든 명령어 인터프리터 입니다. PowerShell&nbsp;창에서 명령어를 이용해서 모든 시스템 관리 업무가 가능합니다.&nbsp;일반인들은 주로 불필요한 앱을 삭제할 때 많이 이용합니다.&nbsp;이번에는&nbsp;PowerShell&nbsp;로 컴퓨터 성능을 측정해 보려고 합니다. PowerShell&nbsp;에서 명령어를 입력할 수 있도록 커서가 준비되면&nbsp;</span><b><i><span style=\"color: #000000;\">winsat formal</span></i></b><span style=\"color: #000000;\">&nbsp;입력하고&nbsp;Enter&nbsp;를 누릅니다.&nbsp;</span></span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify; clear: none; float: none;\"><span class=\"imageblock\" style=\"border: 0px solid rgb(221, 221, 221); padding: 5px; margin: 5px 0px; display: inline-block; width: 620px; height: auto; max-width: 100%;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/21070D4D5855264412\" width=\"620\" alt=\"윈도우10 컴퓨터 사양을 평가하는 체험 지수 보는 방법\" filename=\"image003.jpg\" filemime=\"image/jpeg\" original=\"yes\" style=\"border: 0px; max-width: 100%; height: auto;\" /></span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify;\"><span style=\"font-size: 12pt; color: #000000;\">&nbsp;</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify; clear: none; float: none;\"><span style=\"color: #000000;\">&nbsp;</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify;\"><span style=\"font-size: 12pt; color: #000000;\">▼</span><span style=\"font-size: 12pt; color: #000000;\">&nbsp;그럼 또 다른 콘솔 창이 뜨게 되는데 시스템의 평가가 진행됩니다.&nbsp;콘솔창에서 평가가 끝나면 창이 닫히고&nbsp;Windows Power Shell&nbsp;화면으로 돌아오게 됩니다.&nbsp;</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify; clear: none; float: none;\"><span class=\"imageblock\" style=\"border: 0px solid rgb(221, 221, 221); padding: 5px; margin: 5px 0px; display: inline-block; width: 620px; height: auto; max-width: 100%;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/265A534D5855264637\" width=\"620\" alt=\"윈도우10 컴퓨터 사양을 평가하는 체험 지수 보는 방법\" filename=\"image004.jpg\" filemime=\"image/jpeg\" original=\"yes\" style=\"border: 0px; max-width: 100%; height: auto;\" /></span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify;\"><span style=\"font-size: 12pt; color: #000000;\">&nbsp;</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: justify;\"><span style=\"font-size: 12pt; color: #000000;\">▼</span><span style=\"font-size: 12pt;\"><span style=\"color: #000000;\">&nbsp;다음은&nbsp;</span><b><i><span style=\"color: #000000;\">get-wmiobject –class win32_winsat&nbsp;</span></i></b><span style=\"color: #000000;\">라고 입력하고&nbsp;Enter&nbsp;를 누릅니다.&nbsp;그럼 아래에 평가 결과가 나타나게 됩니다.&nbsp;윈도우7&nbsp;에서와 평가 항목은 같습니다.&nbsp;체험 지수는&nbsp;WinSPRLevel&nbsp;이 되겠죠. WinSPRLevel&nbsp;은 높을수록 좋고&nbsp;9.9&nbsp;가 만점입니다. &nbsp;</span></span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt;\"><span style=\"font-size: 12pt; color: #000000;\">&nbsp;</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin: 0cm 10.7pt 0.0001pt 40pt; text-indent: -20pt;\"><span style=\"font-size: 12pt; font-family: wingdings;\"><span style=\"color: #000000;\">l</span><span style=\"font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: &quot;times new roman&quot;; color: #000000;\">&nbsp;&nbsp;</span></span><b><span style=\"font-size: 12pt; color: #000000;\">CPUScore(</span></b><b><span style=\"font-size: 12pt; color: #000000;\">프로세스) : CPU&nbsp;성능 측정 점수</span></b></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin: 0cm 10.7pt 0.0001pt 40pt; text-indent: -20pt;\"><span style=\"font-size: 12pt; font-family: wingdings;\"><span style=\"color: #000000;\">l</span><span style=\"font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: &quot;times new roman&quot;; color: #000000;\">&nbsp;&nbsp;</span></span><b><span style=\"font-size: 12pt; color: #000000;\">D3DScore(</span></b><b><span style=\"font-size: 12pt; color: #000000;\">게임 그래픽) :&nbsp;다이렉스&nbsp;X&nbsp;와&nbsp;3D,&nbsp;게임 그래픽 성능 측정 점수</span></b></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin: 0cm 10.7pt 0.0001pt 40pt; text-indent: -20pt;\"><span style=\"font-size: 12pt; font-family: wingdings;\"><span style=\"color: #000000;\">l</span><span style=\"font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: &quot;times new roman&quot;; color: #000000;\">&nbsp;&nbsp;</span></span><b><span style=\"font-size: 12pt; color: #000000;\">DiskScore(</span></b><b><span style=\"font-size: 12pt; color: #000000;\">주 하드 디스크) :&nbsp;하드 디스크 성능 측정 점수</span></b></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin: 0cm 10.7pt 0.0001pt 40pt; text-indent: -20pt;\"><span style=\"font-size: 12pt; font-family: wingdings;\"><span style=\"color: #000000;\">l</span><span style=\"font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: &quot;times new roman&quot;; color: #000000;\">&nbsp;&nbsp;</span></span><b><span style=\"font-size: 12pt; color: #000000;\">GraphicsScore(</span></b><b><span style=\"font-size: 12pt; color: #000000;\">그래픽) :&nbsp;그래픽 카드 성능 점수</span></b></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin: 0cm 10.7pt 0.0001pt 40pt; text-indent: -20pt;\"><span style=\"font-size: 12pt; font-family: wingdings;\"><span style=\"color: #000000;\">l</span><span style=\"font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: &quot;times new roman&quot;; color: #000000;\">&nbsp;&nbsp;</span></span><b><span style=\"font-size: 12pt; color: #000000;\">MemoryScore(</span></b><b><span style=\"font-size: 12pt; color: #000000;\">메모리) :&nbsp;메모리 성능 측정 점수</span></b></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: center; clear: none; float: none;\"><span style=\"color: #000000;\">&nbsp;</span></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin: 0cm 10.7pt 0.0001pt 40pt; text-indent: -20pt;\"><span style=\"font-size: 12pt; font-family: wingdings;\"><span style=\"color: #000000;\">l</span><span style=\"font-variant-numeric: normal; font-stretch: normal; font-size: 7pt; line-height: normal; font-family: &quot;times new roman&quot;; color: #000000;\">&nbsp;&nbsp;</span></span><b><span style=\"font-size: 12pt; color: #000000;\">WinSPRLevel(</span></b><b><span style=\"font-size: 12pt; color: #000000;\">최저 점수) :&nbsp;윈도우 전체 체험 지수 레벨이며&nbsp;9.9&nbsp;가 만점이다.&nbsp;</span></b></p>\r\n<p class=\"1\" style=\"font-family: dotum, verdana, applegothic, sans-serif; background-color: #969696; margin-right: 10.7pt; text-align: center; clear: none; float: none;\"><span class=\"imageblock\" style=\"border: 0px solid rgb(221, 221, 221); padding: 5px; margin: 5px 0px; display: inline-block; width: 620px; height: auto; max-width: 100%;\"><img src=\"https://t1.daumcdn.net/cfile/tistory/2606F14D5855264712\" width=\"620\" alt=\"윈도우10 컴퓨터 사양을 평가하는 체험 지수 보는 방법\" filename=\"image005.jpg\" filemime=\"image/jpeg\" original=\"yes\" style=\"border: 0px; max-width: 100%; height: auto;\" /></span></p>','https://mainia.tistory.com/4932','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2020-03-03 21:56:11',0,'2020-03-03 21:56:11','192.168.219.102','','','','','','','','','','','',''),(439,-439,'',439,0,0,'','','html1','[Linux] 라즈베리파이 멀티 카메라 V2 모듈 사용','<h2 style=\"box-sizing: border-box; margin-bottom: 16px; line-height: 1.25; padding-bottom: 0.3em; border-bottom: 1px solid rgb(234, 236, 239); color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: #ffffff; margin-top: 0px !important;\">updating</h2>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">Due to the Raspbian GNU/Linux 9.9 (stretch) is not compatible with our Multli Adapter board V2.1, we have updated our board to support new firmware.</li>\r\n   </ul>\r\n<h3 style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; font-size: 1.25em; line-height: 1.25; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: #ffffff;\"><a id=\"user-content-for-the-version-99-above-firmwareyou-can-use-our-new-board\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github.com/ArduCAM/RaspberryPi/tree/master/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2#for-the-version-99-above-firmwareyou-can-use-our-new-board\" style=\"box-sizing: border-box; background-color: initial; color: #0366d6; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\" target=\"_blank\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>for the version 9.9 above firmware,you can use our new board.</h3>\r\n<p style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/ArduCAM/RaspberryPi/blob/master/data/Multi_Cam_Adapter_Board_v2.1.1.jpg\" style=\"box-sizing: border-box; background-color: initial; color: #0366d6; text-decoration-line: none;\"><img src=\"https://github.com/ArduCAM/RaspberryPi/raw/master/data/Multi_Cam_Adapter_Board_v2.1.1.jpg\" alt=\"Alt text\" style=\"box-sizing: initial; border-style: none; max-width: 100%;\" /></a></p>\r\n<h2 style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; line-height: 1.25; padding-bottom: 0.3em; border-bottom: 1px solid rgb(234, 236, 239); color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: #ffffff;\"><a id=\"user-content-quickly-start\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github.com/ArduCAM/RaspberryPi/tree/master/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2#quickly-start\" style=\"box-sizing: border-box; background-color: initial; color: #0366d6; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\" target=\"_blank\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Quickly start</h2>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">Run the below command to install the PyQt5 module</li>\r\n   </ul>\r\n<div class=\"highlight highlight-source-shell\" style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <pre style=\"box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; word-break: normal;\">sudo apt-get install python-pyqt5</pre>\r\n   </div>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">Run the below command to install the cv2 module</li>\r\n   </ul>\r\n<div class=\"highlight highlight-source-shell\" style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <pre style=\"box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; word-break: normal;\">sudo apt-get install python-opencv</pre>\r\n   </div>\r\n<h2 style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; line-height: 1.25; padding-bottom: 0.3em; border-bottom: 1px solid rgb(234, 236, 239); color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: #ffffff;\"><a id=\"user-content-configuration\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github.com/ArduCAM/RaspberryPi/tree/master/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2#configuration\" style=\"box-sizing: border-box; background-color: initial; color: #0366d6; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\" target=\"_blank\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Configuration</h2>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">Enable the camera</li>\r\n   <li style=\"box-sizing: border-box; margin-top: 0.25em;\">Configure the i2c1</li>\r\n   </ul>\r\n<p style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/ArduCAM/RaspberryPi/blob/master/data/cfg_i2c1_1.png\" style=\"box-sizing: border-box; background-color: initial; color: #0366d6; text-decoration-line: none;\"><img src=\"https://github.com/ArduCAM/RaspberryPi/raw/master/data/cfg_i2c1_1.png\" alt=\"Alt text\" style=\"box-sizing: initial; border-style: none; max-width: 100%;\" /></a></p>\r\n<p style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/ArduCAM/RaspberryPi/blob/master/data/cfg_i2c1_2.png\" style=\"box-sizing: border-box; background-color: initial; color: #0366d6; text-decoration-line: none;\"><img src=\"https://github.com/ArduCAM/RaspberryPi/raw/master/data/cfg_i2c1_2.png\" alt=\"Alt text\" style=\"box-sizing: initial; border-style: none; max-width: 100%;\" /></a></p>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">Download the RaspberryPi library</li>\r\n   </ul>\r\n<div class=\"highlight highlight-source-shell\" style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <pre style=\"box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; word-break: normal;\">git clone https://github.com/ArduCAM/RaspberryPi.git</pre>\r\n   </div>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">Go to RaspberryPi/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2 folder</li>\r\n   </ul>\r\n<div class=\"highlight highlight-source-shell\" style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <pre style=\"box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; word-break: normal;\"><span class=\"pl-c1\" style=\"box-sizing: border-box; color: #005cc5;\">cd</span> RaspberryPi/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2</pre>\r\n   </div>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">Run the below command to init and check the camera</li>\r\n   </ul>\r\n<div class=\"highlight highlight-source-shell\" style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <pre style=\"box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; word-break: normal;\">sudo ./init_camera.sh</pre>\r\n   </div>\r\n<p style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">-If anything is normal, you will see below message&nbsp;<a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/ArduCAM/RaspberryPi/blob/master/data/check_msg.png\" style=\"box-sizing: border-box; background-color: initial; color: #0366d6; text-decoration-line: none;\"><img src=\"https://github.com/ArduCAM/RaspberryPi/raw/master/data/check_msg.png\" alt=\"Alt text\" style=\"box-sizing: initial; border-style: none; max-width: 100%;\" /></a></p>\r\n<h2 style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; line-height: 1.25; padding-bottom: 0.3em; border-bottom: 1px solid rgb(234, 236, 239); color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: #ffffff;\"><a id=\"user-content-add-support-for-pi4-b\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github.com/ArduCAM/RaspberryPi/tree/master/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2#add-support-for-pi4-b\" style=\"box-sizing: border-box; background-color: initial; color: #0366d6; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\" target=\"_blank\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Add support for Pi4 B</h2>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">Just a quick post to let you know that you’ll need a new wiringPi for the Raspberry Pi 4B.</li>\r\n   <li style=\"box-sizing: border-box; margin-top: 0.25em;\">To upgrade:</li>\r\n   </ul>\r\n<div class=\"highlight highlight-source-shell\" style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <pre style=\"box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; word-break: normal;\"><span class=\"pl-c1\" style=\"box-sizing: border-box; color: #005cc5;\">cd</span> /tmp</pre>\r\n   </div>\r\n<div class=\"highlight highlight-source-shell\" style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <pre style=\"box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; word-break: normal;\">wget https://project-downloads.drogon.net/wiringpi-latest.deb</pre>\r\n   </div>\r\n<div class=\"highlight highlight-source-shell\" style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <pre style=\"box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; word-break: normal;\">sudo dpkg -i wiringpi-latest.deb</pre>\r\n   </div>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">Run the below command to start the demo</li>\r\n   <li style=\"box-sizing: border-box; margin-top: 0.25em;\">opencv2.0</li>\r\n   </ul>\r\n<div class=\"highlight highlight-source-shell\" style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <pre style=\"box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; word-break: normal;\">sudo python 4cam_cv2.py</pre>\r\n   </div>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">opencv3.0</li>\r\n   </ul>\r\n<div class=\"highlight highlight-source-shell\" style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <pre style=\"box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; word-break: normal;\">sudo python 4cam_cv3.py</pre>\r\n   </div>\r\n<p style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\"><a target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://github.com/ArduCAM/RaspberryPi/blob/master/data/Multi_Camera_Adapter_Board_openCV3.0.png\" style=\"box-sizing: border-box; background-color: initial; color: #0366d6; text-decoration-line: none;\"><img src=\"https://github.com/ArduCAM/RaspberryPi/raw/master/data/Multi_Camera_Adapter_Board_openCV3.0.png\" alt=\"Alt text\" style=\"box-sizing: initial; border-style: none; max-width: 100%;\" /></a></p>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <li style=\"box-sizing: border-box;\">Operation video demo link</li>\r\n   </ul>\r\n<div class=\"highlight highlight-source-shell\" style=\"box-sizing: border-box; margin-bottom: 16px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff;\">\r\n   <pre style=\"box-sizing: border-box; font-family: SFMono-Regular, Consolas, &quot;Liberation Mono&quot;, Menlo, monospace; font-size: 13.6px; margin-top: 0px; margin-bottom: 0px; overflow-wrap: normal; padding: 16px; overflow: auto; line-height: 1.45; background-color: #f6f8fa; border-radius: 3px; word-break: normal;\"> https://youtu.be/DRIeM5uMy0I</pre>\r\n   </div>\r\n<h2 style=\"box-sizing: border-box; margin-top: 24px; margin-bottom: 16px; line-height: 1.25; padding-bottom: 0.3em; border-bottom: 1px solid rgb(234, 236, 239); color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; background-color: #ffffff;\"><a id=\"user-content-troubleshoot\" class=\"anchor\" aria-hidden=\"true\" href=\"https://github.com/ArduCAM/RaspberryPi/tree/master/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2#troubleshoot\" style=\"box-sizing: border-box; background-color: initial; color: #0366d6; text-decoration-line: none; float: left; padding-right: 4px; margin-left: -20px; line-height: 1;\" target=\"_blank\"><svg class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Troubleshoot</h2>\r\n<ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; color: #24292e; font-family: -apple-system, BlinkMacSystemFont, &quot;Segoe UI&quot;, Helvetica, Arial, sans-serif, &quot;Apple Color Emoji&quot;, &quot;Segoe UI Emoji&quot;; font-size: 16px; background-color: #ffffff; margin-bottom: 0px !important;\">\r\n   <li style=\"box-sizing: border-box;\">Can\'t find video0\r\n      <ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 0px;\">\r\n         <li style=\"box-sizing: border-box;\">check if the i2c bus is normal\r\n            <ul style=\"box-sizing: border-box; padding-left: 2em; margin-top: 0px; margin-bottom: 0px;\">\r\n               <li style=\"box-sizing: border-box;\">add dtparam=i2c_vc=on to /boot/config.txt,then reboot</li>\r\n               <li style=\"box-sizing: border-box; margin-top: 0.25em;\">run i2cdetect -y 0 to check the devive\'s address.</li>\r\n               <li style=\"box-sizing: border-box; margin-top: 0.25em;\">if it does not detect the device\'s address, please check the ribbon cable connection to ensure it is not reversed.</li>\r\n               </ul>\r\n            </li>\r\n         </ul>\r\n      </li>\r\n   </ul>','https://github.com/ArduCAM/RaspberryPi/tree/master/Multi_Camera_Adapter/Multi_Adapter_Board_4Channel/Multi_Camera_Adapter_V2.2','',0,0,3,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2020-03-04 10:03:24',0,'2020-03-04 10:03:24','210.101.103.92','','','','','','','','','','','',''),(440,-440,'',440,0,0,'','','html1','[ETC] 가정 전력 관리 시스템','<h1 class=\"pagetitle\" style=\"color: #333333; font-size: 32px; font-family: NanumGothicBoldWeb, Bitter, Arial, Helvetica, sans-serif; font-weight: 400; margin: -5px 0px 0px; padding: 5px 0px; line-height: 36px; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/archives/37446\" rel=\"bookmark\" style=\"color: #333333; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s; border: none; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif;\" target=\"_blank\">[57호]가정 전력 관리 시스템</a></h1>\r\n<div class=\"postauthor\" style=\"margin: -4px 0px 6px; padding: 0px 0px 6px; border-bottom: 1px solid rgb(221, 221, 221); color: #333333; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; background-color: #ffffff;\">\r\n   <p style=\"padding: 0px; color: #999999; font-size: 11px; font-style: italic;\">Posted by&nbsp;<a href=\"http://www.ntrexgo.com/archives/author/hj1224\" title=\"Posts by 디바이스마트 매거진\" rel=\"author\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\">디바이스마트 매거진</a>&nbsp;on December 20, 2019 ·&nbsp;<a href=\"http://www.ntrexgo.com/archives/37446#respond\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\">Leave a Comment</a>&nbsp;</p>\r\n   </div>\r\n<p><a class=\"postimg\" href=\"http://www.ntrexgo.com/archives/37446\" rel=\"bookmark\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; background-color: #ffffff;\" target=\"_blank\"><img width=\"610\" height=\"344\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-26-610x344.png\" class=\"attachment-post-feature wp-post-image\" alt=\"57 ict 가정전력관리 (26)\" style=\"border: 1px solid rgb(221, 221, 221); display: block; background: rgb(249, 249, 249); padding: 4px; margin: 15px auto 10px; overflow: hidden;\" /></a><span style=\"color: #333333; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; background-color: #ffffff;\"></span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-1.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37869\" alt=\"57 ict 가정전력관리 (1)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-1-620x188.png\" width=\"620\" height=\"188\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong>2019 ICT 융합 프로젝트 공모전 참가상</strong></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"font-size: x-large;\"><strong>가정 전력 관리 시스템</strong></span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">&nbsp;</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #0000ff;\"><strong>1. 심사평</strong></span><br /><strong>칩센</strong>&nbsp;IoT를 이용한 가정용 스마트 전력 측정 및 관리의 방식은 배전판에 적용하는 방식과 콘센트 플러그에 적용하는 방식의 두가지가 가장 대표적으로 알고 있고, 제작된 작품 결과물이 이와 유사한 사용방안 유사한 구성으로 구현된 것이 매우 좋아 보인다. 한가지 아쉬운 점이 있다면 데이터 저장 및 분석을 위하여 가정내 WiFi를 이용하여 우선 SERVER로 전송하고, 이를 스마트폰 또는 모니터링 장치(PC)를 통해 확인이 가능하도록 한 것이다. 서버를 거치지 않고 스마트폰 또는 가정내 PC를 통하여 현재의 상황을 직접 확인하고 컨트롤할 수 있는 방안에 대하여 조금 더 고민한다면 사용자의 편의성을 고려한 제품이 될 듯하다.<br /><strong>뉴티씨</strong>&nbsp;대기전력의 감소는 에너지 절약으로 이어지고, 이는 국가 경쟁력의 수치로 표시될 수 있는 시대가 되어 있는 현재, 이러한 작품은 큰 의미가 있습니다. 다만, 이와 비슷한 종류의 작품들이 많이 나오고 있으므로, 독창성을 강조하고 특허 등의 요건을 구비하여 제품화 하는 것이 중요하다고 생각됩니다. 또한, 대기전력 감소를 위하여 OFF 시에 다시 ON 하기 위하여 쉽게 켤 수 있어야 하는 점 등도 고려사항이라고 하겠습니다. 많은 제품들이 나왔지만, 가격이나 대응 가능한 전류량 등에도 신경을 써서, 실용적으로 제작하여, 시중에서 판매될 수 있다면 좋겠습니다.<br /><strong>위드로봇</strong>&nbsp;작품의 완성도가 높습니다. 보고서 결론 부분이 빠져서 아쉽습니다.<br /><strong>펌테크</strong>&nbsp;전원 컨트롤을 온, 오프 전원 스위칭 방식으로 단순히 구성하지 않고 비접촉식 전력 측정 센서를 통해 실제 사용된 전력 측정을 하고 이를 스마트폰으로 모니터링과 제어가 가능하게 기술을 구현한 점과 오픈소스를 활용해서 한눈에 전력 상황을 모니터링에 할 수 있게 GUI로 구성한 점등 작품이 전체적으로 세심하고 짜임새 있게 잘 구성이 되었다고 생각됩니다. 전제적인 구성도 아이디어도 좋고 기술적 구현도, 작품 완성도 등이 높은 훌륭한 작품이라고 생각합니다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #0000ff;\"><strong>2. 작품 개요</strong></span><br /><span style=\"color: #33cccc;\"><strong>2.1. 개발 배경 및 필요성</strong></span><br />실시간 요금 정보 접근의 어려움 : 한국전력에서 제공하는 모바일 앱 ‘스마트 한전’ 에서 전기 사용량에 대한 정보를 제공하지만 많은 사람이 모바일 앱에 대한 정보를 모르고 있으며 실시간으로 사용량을 확인하지 못해 전기사용에 대한 경각심을 갖지 않게 된다.<br />대기 전력의 상시 소모 : 가전제품의 전원이 OFF 상태일지라도 콘센트가 꽂혀 있으면 대기전력 발생함<br />스마트 홈 시장의 성장 : 스마트 홈 시장의 성장에서 가정 전력 모니터링 기기의 필요성이 대두된다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #33cccc;\"><strong>2.2. 작품 소개</strong></span><br /><span style=\"color: #008080;\"><strong>2.2.1. 기획의도 및 내용</strong></span><br />① 전기 사용량에 경각심 유도 : 가정에서 사용되는 전기 사용정보 및 요금정보를 사용자에게 알려주어 전기 사용에 대한 경각심을 일깨우고 무분별한 전기사용을 줄여주고자 한다.<br />② 가정 전기 모니터링을 통한 관리 : 관리자가 실시간 모니터링 하여 사용자에게 전기 사용에 대한 매뉴얼을 제공해주어 전기 사용을 줄일 수 있도록 도와준다.<br />③ 앱을 통한 가전기기 제어 : 앱을 통해 콘센트에 꽂힌 각각의 전원을 내ㆍ외부에서 제어한다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-2.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37871\" alt=\"57 ict 가정전력관리 (2)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-2.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-3.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37872\" alt=\"57 ict 가정전력관리 (3)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-3.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">① 전체 전력량을 측정 하는 전체 전력 측정기기와 개별 전력을 측정하는 스마트 멀티탭을 통해 측정된 데이터가 서버로 전송된다.<br />② 측정된 데이터가 서버에 저장되며 전기 사용 데이터를 분석 및 예측한다.<br />③ 사용자는 안드로이드 앱을 통해 사용량 조회 및 원격제어 한다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>2.2.2. 작품의 특징 및 장점</strong></span><br />① 자발적인 전기 절약 유도 : 사용자가 전기 사용량과 전기 요금 정보를 실시간으로 확인하여 전기 사용에 대한 지속적인 경각심을 갖게 해준다.<br />② 전기 절약을 위한 매뉴얼 제시 : 사용자가 사용한 전기 데이터를 분석하여 사용자의 전기 절약 매뉴얼을 제공한다.<br />③ 대기 전력 절감 : 원격으로 가전기기 전원을 제어하여 대기 전력을 차단한다.<br />④ 모니터링의 편리성 : 관리자가 사용자들의 전기 사용량을 실시간으로 확인하고 사용량에 따른 조치를 취해준다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>2.2.3. 기대효과</strong></span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-4.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37873\" alt=\"57 ict 가정전력관리 (4)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-4.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">① 전기요금 절약 및 화제 예방<br />우리의 제품은 각 사용자들의 소비 전력을 측정하여 사용자에게 3분 간격으로 측정된 데이터를 보여준다. 측정 된 데이터를 통해 전력요금을 계산하고 발생되는 금액을 보여주어, 사용자가 자신의 전력사용량과 전력요금을 보고 이에 대해 경각심을 갖게 하여 전기세 절약에 도움이 된다. 멀티콘센트의 전원을 원격으로 조종하는 ON/OFF 기능을 통해 쓸모없는 전력 사용 부분을 차단하고 자신의 전력사용량을 조절하여 과도한 전력 사용으로 인해 발생되는 화재를 예방할 수 있다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">② IoT 홈 인프라 구축</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-5.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37874\" alt=\"57 ict 가정전력관리 (5)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-5.png\" width=\"378\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a><br />가정에서 쓰이는 여러 IoT 제품과 더불어 IoT 홈 인프라 구축에 사용될 수 있다. 사용자는 가정에서 쓰이는 각 전기 사용량을 모니터링 하여 전기 사용량이 많은 전자기기의 전원을 제어하여 전기 절약을 할 수 있도록 도와준다.<br />제품을 이용하는 사용자가 많아질수록 전력 사용량에 대한 데이터가 쌓여 각 가정별 전기 수요 예측이 가능해지고, 기상정보를 바탕으로 사용자에게 전기사용에 관련된 효율적인 정보를 제공해준다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-6.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37875\" alt=\"57 ict 가정전력관리 (6)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-6.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">③ 전기 수요 예측<br />각 가정에서 쓰이는 전기 사용량에 대한 데이터가 지속적으로 수집된다면 수집된 데이터를 분석하여 각 가정의 전기 수요 예측이 가능해진다. 예를 들어 날씨정보와 수집된 데이터를 분석하여 날씨에 따른 전기 수요 예측이 가능해진다. 예측된 데이터를 사용자에게 제공하여 전기 수요에 대한 경각심을 유도하며 자발적인 전기 절약을 끌어낸다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #0000ff;\"><strong>3. 작품 설명</strong></span><br /><span style=\"color: #33cccc;\"><strong>3.1. 주요 동작 및 특징</strong></span><br /><span style=\"color: #008080;\"><strong>3.1.1. 전체 전력 측정기</strong></span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-7.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37876\" alt=\"57 ict 가정전력관리 (7)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-7.png\" width=\"318\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a><br />1) 구조 : 비접촉 전력 측정 센서(1)와 통신부(2)로 구성되어 있다.<br />2) 동작 :<br />비접촉 전력 측정 센서 : 배전반을 측정센서로 측정하여 총 전류 측정한다.<br />통신부 : WiFi를 통해 측정 전류를 서버로 전송한다.<br />3) 특징<br />· 현재 측정 현황을 모바일 어플리케이션을 통해 확인 가능<br />· 최초 설정 이후에는 전원 공급이 중단되어도 변경사항을 유지<br />· 측정한 전류를 수식을 이용해 전력으로 변환 후 서버로 송신</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>3.1.2. 스마트 멀티탭</strong></span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-8.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37877\" alt=\"57 ict 가정전력관리 (8)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-8.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a><br />1) 구조 : 일반적인 멀티탭의 구조에 측정, 제어, 모니터링 및 통신부 추가<br />2) 동작<br />전류 측정부 : 전류 측정센서를 이용해서 각 구의 개별 전류를 측정한다.<br />전원 제어부 : 모바일 앱과 연동하여 개별 구의 전원 제어 기능을 제공한다.<br />표시부 : LCD를 통해 멀티탭의 현재 상태를 표시한다.<br />통신부 : WiFi를 통해 측정 전류를 서버로 전송하거나 모바일 앱으로부터 전원 제어 신호를 수신한다.<br />3) 특징<br />· 현재 측정 현황을 LCD 및 모바일 어플리케이션을 통해 확인 가능<br />· AP모드, Station모드를 모두 사용하여 사용자의 통신 연결 편의성 제공<br />· 최초 설정 이후에는 전원 공급이 중단되어도 변경사항 유지<br />· 측정한 전류는 수식을 이용해 전력으로 변환 후 서버로 송신<br />· 앱으로부터 구별 제어신호를 받으면 해당 구의 전원을 차단 또는 복구</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>3.1.3. ITEM 어플리케이션</strong></span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-9.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37878\" alt=\"57 ict 가정전력관리 (9)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-9.png\" width=\"376\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a><br />1) 구조 : 스마트폰 어플리케이션<br />2) 동작 :<br />스마트탭 제어 및 관리 :멀티탭의 각 구를 제어한다.<br />전력량 통계 : 월간 사용량 통계와 전체 전력, 예상 전력 확인 가능하다.<br />요금 통계 : 목표요금을 설정 후 예상 요금을 계산 하고, 초과 예상시 경고창이 뜬다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #33cccc;\"><strong>3.2. 전체 시스템 구성</strong></span><br /><span style=\"color: #008080;\"><strong>3.2.1. H/W 기능</strong></span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-10.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37879\" alt=\"57 ict 가정전력관리 (10)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-10.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></strong></span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>3.2.2. S/W 기능</strong></span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-11.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone  wp-image-37880\" alt=\"57 ict 가정전력관리 (11)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-11-620x592.png\" width=\"500\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-12.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone  wp-image-37881\" alt=\"57 ict 가정전력관리 (12)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-12-367x620.png\" width=\"500\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a><br /><span style=\"color: #33cccc;\"><strong>3.3. 개발 환경</strong></span><br /><span style=\"color: #008080;\"><strong>3.3.1. 스마트 멀티탭</strong></span><br />개발 언어 : Python<br />사용 시스템 : 마이크로 컨트롤러 : Raspberry Pi, 전류 측정 센서 : ACS712, 전원 제어 : 릴레이모듈, 화면 표시 : LED, 통신 : WiFi (AP모드, Station 모드)</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>3.3.2. 전체 전류 측정기</strong></span><br />개발 언어 : Python<br />사용 시스템, 마이크로 컨트롤러 : Raspberry Pi, 전류 측정 센서 : SCT-013-000, 통신 : WiFi (AP모드)</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>3.3.3. Android Application</strong></span><br />개발 언어 : java, Tool : Android studio</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>3.3.4. Server</strong></span><br />Tool : AWS EC2 ubuntu 18.04 LTS, InfluxDB, MySQL</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>3.3.5. Monitering</strong></span><br />Tool : Grafana</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>3.3.6. Machine Learning</strong></span><br />개발 언어 : python, Tool : Anaconda, Brightics Studio</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #0000ff;\"><strong>4. 단계별 제작 과정</strong></span><br /><span style=\"color: #33cccc;\"><strong>4.1. 전력 측정기기</strong></span><br /><span style=\"color: #008080;\"><strong>4.1.1. 전체 전류 측정기 기기</strong></span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong>전류측정 센서 (using arduino) : SCT-013-000</strong></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-13.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37882\" alt=\"57 ict 가정전력관리 (13)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-13-620x232.png\" width=\"620\" height=\"232\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong>회로구성</strong></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-14.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37883\" alt=\"57 ict 가정전력관리 (14)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-14-620x400.png\" width=\"620\" height=\"400\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong>동작과정</strong><br />① 측정 대상 전선에서 발생된 자기장을 이용하여 전류 센싱<br />② 출력된 전류값을 토대로 전압(V), 실효값(IRMS, VRMS) 계산 (‘Emonlib’ 이용)<br />③ 노이즈로 인한 오차를 줄이기 위해 하드웨어, 소프트웨어 필터 설계<br />④ 실제 상용 측정기를 이용한 측정 결과와 테스트 결과를 반복 비교<br />⑤ 발생하는 오차에 대해 소프트웨어를 이용한 사후보정 실시</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-15.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37884\" alt=\"57 ict 가정전력관리 (15)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-15-620x360.png\" width=\"620\" height=\"360\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-16.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37885\" alt=\"57 ict 가정전력관리 (16)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-16-620x344.png\" width=\"620\" height=\"344\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">※푸시 버튼을 통해 연결된 WiFi AP모드를 이용하여 SSID와 PASSWD를 공유한다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong>전류포트 컨버터 for rasp</strong></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">RPICT3V1</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-17.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img alt=\"57 ict 가정전력관리 (17)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-17-620x239.png\" width=\"620\" height=\"239\" style=\"border: none;\" /></a></strong></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong>동작과정</strong><br />1) CT센서의 전류포트와 라즈베리파이를 RPICT3V1에 연결<br />2) 제공되는 오픈 API 라이브러리 사용하여 전류 측정 후 실제값과 비교</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-18.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37887\" alt=\"57 ict 가정전력관리 (18)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-18-620x133.png\" width=\"620\" height=\"133\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>4.1.2. 스마트 멀티탭(개별 전력 측정기기)</strong></span><br /><strong>전류측정 센서</strong></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-19.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37888\" alt=\"57 ict 가정전력관리 (19)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-19-620x236.png\" width=\"620\" height=\"236\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a><br /><strong></strong></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong>전력과 전압의 관계</strong><br />AC 전압은 같은 양의 일을 할 수 있는 능력의 DC 전압으로 표시<br />사인형태의 전압의 값은 피크전압(Vo)의 1/√2배 (V_RMS)<br />전력 P=V<sup>2</sup>&nbsp;/R, 시간영역에서 RMS =<a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-20.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone  wp-image-37889\" alt=\"57 ict 가정전력관리 (20)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-20.png\" width=\"100\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">시간에 따른 평균 전력&nbsp;(단, &lt;…&gt;는 함수의 평균값)</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-21.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37890\" alt=\"57 ict 가정전력관리 (21)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-21.png\" width=\"213\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong>측정된 전류 값으로 전력 구하기</strong><br />전류 센서의 측정값에 RMS를 계산하면 아날로그 출력 V의 실효값을 알 수 있다. V값을 위의 그래프 식에 대입하면 측정된 전류값의 실효값을 확인할 수 있게 되며 이를 바탕으로 전력값의 평균을 구할 수 있다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong>릴레이 모듈</strong></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-22.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img alt=\"57 ict 가정전력관리 (22)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-22-620x340.png\" width=\"620\" height=\"340\" style=\"border: none;\" /></a></strong><br />도선 연결 : 한 선은 COM에, 나머지 한 선은 NO 또는 NC에 연결, NO, NC 중 어디에 전선을 연결하는지에 따라 프로세서가 주는 신호에 대해 HIGH에 켜지거나 LOW에 켜지는 것을 결정</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong>푸시 버튼</strong><br />버튼은 그냥 사용할 시 플로팅 상태에 이르기 때문에 Vcc쪽에 저항을 다는 풀업 저항이나 Gnd쪽에 저항을 추가하는 풀다운 저항 구성이 필요하다. 라즈베리 파이는 내부에 회로가 내장되어 있어서 코드를 불러옴으로써 풀업/풀다운 저항 회로를 구현할 수 있다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><strong>아두이노 나노로 제작한 멀티탭 (prototype)</strong><br />프로토타입으로 제작된 멀티탭의 내부 모습</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-1.jpg\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37903\" alt=\"57 ict 가정전력관리 (1)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-1-620x187.jpg\" width=\"620\" height=\"187\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">WiFi<br />통신 설정 방법<br />① AP 모드</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-23.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37892\" alt=\"57 ict 가정전력관리 (23)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-23-620x283.png\" width=\"620\" height=\"283\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">3초간 버튼 입력시 WiFi 모듈이 AP모드로 설정한다. 안드로이드 앱에서 멀티탭의 WiFi에 접속하여 SSID와 Password를 전송한다. 해당 공유기에 접속 후 프로그래밍 상에 설정된 서버 주소로 데이터를 전송한다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">② Station 모드</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-24.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37893\" alt=\"57 ict 가정전력관리 (24)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-24.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">멀티탭의 전원 코드를 뽑았다가 다시 꽂을 경우 Station 모드를 통해 기존에 설정된 공유기로 SSID와 Password를 전송하여 접속한다. 접속이 성공되면 데이터를 서버로 전송한다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #33cccc;\"><strong>4.2. 안드로이드 앱</strong></span><br /><span style=\"color: #008080;\"><strong>4.2.1. Android Application</strong></span><br />블록도</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-25.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37894\" alt=\"57 ict 가정전력관리 (25)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-25.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">UI별 기능</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-26.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37895\" alt=\"57 ict 가정전력관리 (26)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-26.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-27.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37896\" alt=\"57 ict 가정전력관리 (27)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-27-438x620.png\" width=\"438\" height=\"620\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #33cccc;\"><strong>4.3. 통신</strong></span><br /><span style=\"color: #008080;\"><strong>4.3.1. MQTT protocol을 이용한 통신</strong></span><br />① 구성 방식<br />1) Publisher/Client : 데이터를 수집하여 송신하는 곳<br />2) Broker/Server : 데이터를 통신하기 위한 매개체<br />3) Subscriber/Clien : 데이터를 수신 받는 곳</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-28.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37897\" alt=\"57 ict 가정전력관리 (28)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-28.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">② 선정 이유</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">통상 IOT에서 많이 사용되는 가벼운 메시지 프로토콜이며, 첫 번째 방식과 같이 굳이 복잡하게 할 이유가 없다. 또한 제품 특성상 정확성은 굉장히 중요한 부분이다. MQTT protocol은 자체 Qos(Quality of service)를 제공함으로 정확성을 보장한다.<br />또한 Topic을 기준으로 작동하기 때문에 계층적으로 구성할 수 있어서 대량의 기기들을 효율적으로 관리할 수 있다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-29.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37898\" alt=\"57 ict 가정전력관리 (29)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-29.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #33cccc;\"><strong>4.4. Server</strong></span><br /><span style=\"color: #008080;\"><strong>4.4.1. AWS (EC2 ubuntu 18.04 LTS – Free tier)</strong></span><br />선정 이유 : Azure나 다른 플랫폼을 비교하였을 때 비교적 많은 open source가 존재한다. 또한 1년간 Free tier를 제공함으로써 학생으로서 연구개발하기에 적절하다. EC2뿐만 아니라 RDS나 여러 플랫폼을 제공함으로 필요시 활용할 여지가 있다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>4.4.2. 모니터링 : Open API인 grafana를 Influx DB와 연동시켜 구성</strong></span><br />선정 이유 : 모든 측정 항목에 대한 분석 플랫폼으로 100% open source라는 장점이 있고 어디에 저장되어 있던지 쿼리하고 시각화하며 이벤트 발생도 가능하다.<br /><span style=\"color: #3366ff;\">※ Mysql의 데이터를 dash board에 올릴 때, 시계열 데이터를 제공하는 Influxdb와 데이터 수집 agent로서 telegraf나 FluentD 등을 이용하여 쉽게, 체계적으로 사용 가능하다.</span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #33cccc;\"><strong>4.5. 데이터 분석 및 예측</strong></span></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-2.jpg\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37870\" alt=\"57 ict 가정전력관리 (2)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-2.jpg\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">분석 알고리즘 (Random Forest Regression) : 랜덤 포레스트는 앙상블 기법의 한 종류로 여러 개의 의사결정트리를 만들고, 투표를 시켜 다수결로 결과를 결정하는 방법이다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-30.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-full wp-image-37899\" alt=\"57 ict 가정전력관리 (30)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-30.png\" width=\"620\" style=\"border: none; max-width: 620px; height: auto; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">알고리즘 적용 결과 : 알고리즘 구현을 위해 데이터는 일본 시코쿠 시의 전력 소비량을 기상 데이터를 통해 진행하였다.<br />파란색 실선으로 이어진 것이 2013년 전력 사용량이고, 빨간색 점으로 표시되어 있는 부분이 독립변수들을 통해 트레이닝을 거쳐 예측한 내용이다. 파란색 실선으로 이어진 것이 2014년 전력 사용량이고, 빨간색 실선으로 표시되어있는 부분이 2013년의 자료를 기반으로 모델링한 결과에 2014년의 기상변수들을 대입시킨 예측 사용량이다. 전반적으로 비슷한 형태를 보이고 있으며 부분적으로 오차가 발생함을 알 수 있다. 사용자가 전력 사용량의 예측을 원하면 위와 같이 예측 된 데이터가 사용자의 앱에 전송되고 해당 그래프가 출력되어 사용자에게 보이게 된다. 이를 통해 사용자는 앞으로의 예상 전력 사용량을 확인할 수 있다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-31.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37900\" alt=\"57 ict 가정전력관리 (31)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-31-620x325.png\" width=\"620\" height=\"325\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>4.5.1. Server에 적용</strong></span><br />앞서 구현한 예측 그래프들은 Winodw 기반이다. 자원을 절약하기 위해서 AWS ec2서버를 이용하기로 한 우리는 AWS에서 위의 내용들을 점검할 필요가 있었고, Python을 통해 같은 방법으로 구현 후 그래프를 png 파일로 저장하였다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-32.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone size-large wp-image-37901\" alt=\"57 ict 가정전력관리 (32)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-32-620x399.png\" width=\"620\" height=\"399\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a><br />그리고 png 파일을 확인하기 위해서 github에 저장 공간을 임시로 생성한 후 git add, git commit, git push 명령어로 내용들을 올려 보았다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><span style=\"color: #008080;\"><strong>4.5.2. Brightics studio</strong></span><br />Brightics Studio는 삼성 SDS의 머신러닝 데이터 분석 및 시각화를 해주는 분석 플랫폼이다. 다양한 분석 방법들을 쉽게 해볼 수 있다는 장점이 있다. https://github.com/brightics/studio 에서 소스코드와 Window 버전, Linux 버전, Mac os 버전을 무료로 배포 중 이어서 학생들이 분석 연구하기에 적절하다고 판단했다.<br />위의 랜덤포레스트 기법을 여기에 적용해 보았다.</p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\"><a href=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-33.png\" rel=\"lightbox[37446]\" style=\"color: #0000ff; text-decoration-line: none; transition: background 0.25s ease 0s, color 0.25s ease 0s;\" target=\"_blank\"><img class=\"alignnone  wp-image-37902\" alt=\"57 ict 가정전력관리 (33)\" src=\"http://www.ntrexgo.com/wp-content/uploads/2019/12/57-ict-%EA%B0%80%EC%A0%95%EC%A0%84%EB%A0%A5%EA%B4%80%EB%A6%AC-33-510x620.png\" width=\"620\" style=\"border: none; padding: 0px; margin: 5px 0px; display: block;\" /></a></p>\r\n<p style=\"padding: 6px 0px; font-family: NanumGothicWeb, Arial, Helvetica, sans-serif; color: #333333; background-color: #ffffff;\">위의 그래프가 2013년 후반기의 실제 전력 데이터, 아래의 그래프가 2012년 데이터를 기반으로 훈련시킨 2013년 후반기의 예측치 그래프이다.</p>','http://www.ntrexgo.com/blog/page/2?sa=X&ved=0CBoQ9QEwATi0AWoVChMI__3K-_v8xgIVQukUCh3g9gCv','',0,0,1,0,0,'admin','*B9FF5DF52BD3C5F13EA3D506E09A21D17ECF6557','최고관리자','bk94005@naver.com','','2020-03-29 12:19:47',0,'2020-03-29 12:19:47','192.168.219.102','','','','','','','','','','','','');
