{"id":679,"date":"2016-07-06T20:48:52","date_gmt":"2016-07-06T17:48:52","guid":{"rendered":"http:\/\/arduinolab.pw\/?p=679"},"modified":"2022-08-15T08:54:02","modified_gmt":"2022-08-15T05:54:02","slug":"relejnyj-modul-s-usbuart-interfejsom-obzor","status":"publish","type":"post","link":"https:\/\/arduinolab.pw\/index.php\/2016\/07\/06\/relejnyj-modul-s-usbuart-interfejsom-obzor\/","title":{"rendered":"\u0420\u0435\u043b\u0435\u0439\u043d\u044b\u0439 \u043c\u043e\u0434\u0443\u043b\u044c \u0441 USB\\UART \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u043e\u043c, ICSE013A."},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">\u0420\u0435\u043b\u0435\u0439\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044c \u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0447\u0435\u0440\u0435\u0437 USB \u0438\u043b\u0438 UART \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/p>\n\n\n\n<!--more-->\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u041c\u043e\u0434\u0443\u043b\u044c \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u0440\u0435\u043b\u0435 \u0447\u0435\u0440\u0435\u0437 USB \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0435, \u0442\u0430\u043a \u0436\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430\u043c UART \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 \u043a \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0443.  \u0421\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0432\u0435\u0440\u0441\u0438\u0439 \u043c\u043e\u0434\u0443\u043b\u0435\u0439 \u043d\u0430 \u0440\u0430\u0437\u043d\u043e\u0435 \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u043b\u0435, \u0441 \u0435\u0434\u0438\u043d\u043e\u0439 \u043b\u043e\u0433\u0438\u043a\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u044b.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td>&nbsp;<\/td><td><strong><a href=\"http:\/\/www.icstation.com\/product_info.php?products_id=4012\" target=\"_blank\" rel=\"noreferrer noopener\">ICSE012A<\/a><\/strong><\/td><td><a href=\"http:\/\/www.icstation.com\/product_info.php?products_id=4013\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>ICSE013A<\/strong><\/a><\/td><td><a href=\"http:\/\/www.icstation.com\/product_info.php?products_id=5185\" target=\"_blank\" rel=\"noreferrer noopener\"><strong>ICSE014A<\/strong><\/a><\/td><td><strong>Unit<\/strong><\/td><td><strong>Remark<\/strong><\/td><\/tr><tr><td>CC<\/td><td>4<\/td><td>2<\/td><td>8<\/td><td>&nbsp;<\/td><td>channel count of module<\/td><\/tr><tr><td>I<\/td><td>400<\/td><td>250<\/td><td>700<\/td><td>mA<\/td><td>working current<\/td><\/tr><tr><td>U<\/td><td>5<\/td><td>5<\/td><td>5<\/td><td>V<\/td><td>input voltage<\/td><\/tr><tr><td>&nbsp;<\/td><td>\u221a<\/td><td>\u221a<\/td><td>\u221a<\/td><td>&nbsp;<\/td><td>whether have serial port<\/td><\/tr><tr><td>&nbsp;<\/td><td>9600<\/td><td>9600<\/td><td>9600<\/td><td>bit\/s<\/td><td>baud rate of serial port<\/td><\/tr><tr><td>F<\/td><td>1000<\/td><td>1000<\/td><td>1000<\/td><td>Hz<\/td><td>module control&nbsp;frequency<\/td><\/tr><tr><td>&nbsp;<\/td><td>x<\/td><td>x<\/td><td>\u221a<\/td><td>&nbsp;<\/td><td>whether have power interface<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u041c\u043e\u0434\u0443\u043b\u0438 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u044b \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 STM8S003F3P6 \u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435 USB-UART \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 PL-2303HX. <\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0421\u043e\u0444\u0442:<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u0412 \u0441\u043b\u0443\u0447\u0430\u0438 \u0441 \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043e\u043c \u0438 \u0440\u0430\u0431\u043e\u0442\u043e\u0439 \u043f\u043e USB. <\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u0414\u0440\u0430\u0439\u0432\u0435\u0440, \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435, \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u044f \u0432 pdf \u0438 \u0442\u0434 \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f <a rel=\"noreferrer noopener\" aria-label=\"\u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0442\u0443\u0442 (\u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435)\" href=\"http:\/\/www.icstation.com\/product_document\/Download\/4012.zip\" target=\"_blank\">\u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 \u0442\u0443\u0442<\/a>. \u0435\u0441\u043b\u0438 \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e, \u0432 \u0430\u0440\u0445\u0438\u0432\u0435 \u043d\u0430 \u0441\u0430\u0439\u0442\u0435.<\/p>\n\n\n\n<div class=\"wp-block-file\"><a id=\"wp-block-file--media-4bf97d13-55bd-4000-bcce-5d8168361efd\" href=\"https:\/\/arduinolab.pw\/wp-content\/uploads\/2019\/09\/4012.zip\">4012<\/a><a href=\"https:\/\/arduinolab.pw\/wp-content\/uploads\/2019\/09\/4012.zip\" class=\"wp-block-file__button\" download aria-describedby=\"wp-block-file--media-4bf97d13-55bd-4000-bcce-5d8168361efd\">\u0421\u043a\u0430\u0447\u0430\u0442\u044c<\/a><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">\u0412 \u0441\u043b\u0443\u0447\u0430\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a UART \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430.<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u041c\u043e\u0434\u0443\u043b\u044c \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043d\u0435\u043f\u043e\u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0447\u0435\u0440\u0435\u0437 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043f\u043e\u0440\u0442. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u0440\u0430\u0431\u043e\u0442\u044b \u043f\u043e\u0440\u0442\u0430 9600 bps. <\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u041f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043c\u043e\u0434\u0443\u043b\u044f \u043d\u0430\u043c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b \u0434\u0432\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li> 0x50 &#8212; \u0412\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0432\u0435\u0440\u0441\u0438\u044e \u043c\u043e\u0434\u0443\u043b\u044f, \u043f\u043e \u043d\u0435\u0439 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0435\u043b\u0435 \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u0435<\/li><li> 0x51 &#8212; \u041f\u043e\u0441\u043b\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u043b\u0435. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u043e \u0432\u044b\u0439\u0442\u0438 \u0438\u0437 \u0440\u0435\u0436\u0438\u043c\u0430 \u043d\u0435\u043b\u044c\u0437\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c \u043f\u0438\u0442\u0430\u043d\u0438\u044f.<\/li><\/ul>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td> Upper Monitor <\/td><td> 0x50 <\/td><td> 0x51 <\/td><\/tr><tr><td> ICSE012A&nbsp;  <\/td><td> 0xAB <\/td><td><\/td><\/tr><tr><td> ICSE013A <\/td><td> 0xAD <\/td><td><\/td><\/tr><tr><td> ICSE014A&nbsp; <\/td><td> 0xAC  <\/td><td><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 1 \u0431\u0430\u0439\u0442, \u0431\u0438\u0442\u044b \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0442 \u043d\u043e\u043c\u0435\u0440\u0430\u043c \u0440\u0435\u043b\u0435 \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u0435.<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><br>Bit<\/td><td>ICSE012A<\/td><td>ICSE013A<\/td><td>ICSE014A<\/td><td>Remark<\/td><\/tr><tr><td>0<\/td><td>\u221a<\/td><td>\u221a<\/td><td>\u221a<\/td><td>Control the relay K1<\/td><\/tr><tr><td>1<\/td><td>\u221a<\/td><td>\u221a<\/td><td>\u221a<\/td><td>Control the relay K2<\/td><\/tr><tr><td>2<\/td><td>\u221a<\/td><td>\uff58<\/td><td>\u221a<\/td><td>Control the relay K3<\/td><\/tr><tr><td>3<\/td><td>\u221a<\/td><td>\uff58<\/td><td>\u221a<\/td><td>Control the relay K4<\/td><\/tr><tr><td>4<\/td><td>\uff58<\/td><td>\uff58<\/td><td>\u221a<\/td><td>Control the relay K5<\/td><\/tr><tr><td>5<\/td><td>\uff58<\/td><td>\uff58<\/td><td>\u221a<\/td><td>Control the relay K6<\/td><\/tr><tr><td>6<\/td><td>\uff58<\/td><td>\uff58<\/td><td>\u221a<\/td><td>Control the relay K7<\/td><\/tr><tr><td>7<\/td><td>\uff58<\/td><td>\uff58<\/td><td>\u221a<\/td><td>Control the relay K8<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041a\u043e\u0434 \u0438\u0437 \u0432\u0438\u0434\u0435\u043e:<\/h2>\n\n\n\n<pre><span style=\"color: #434f54;\">\/\/ \u043a\u043e\u0434 \u0438\u0437 \u0432\u0438\u0434\u0435\u043e <\/span><u><span style=\"color: #434f54;\">https:\/\/youtu.be\/fujThP5WV_U<\/span><\/u>\n\n<span style=\"color: #000000;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><b><span style=\"color: #d35400;\">SoftwareSerial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt;<\/span>\n\n<b><span style=\"color: #d35400;\">SoftwareSerial<\/span><\/b> <span style=\"color: #000000;\">relay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">7<\/span><span style=\"color: #434f54;\">,<\/span> <span style=\"color: #000000;\">8<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> <span style=\"color: #434f54;\">\/\/ RX, TX<\/span>\n\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">setup<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #000000;\">{<\/span>\n &nbsp;<b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">begin<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">9600<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;<span style=\"color: #000000;\">relay<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">begin<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">9600<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">10<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n\n &nbsp;<span style=\"color: #434f54;\">\/\/ \u0434\u043b\u044f \u0434\u0435\u043c\u043e\u043d\u0441\u0442\u0440\u0430\u0446\u0438\u0438, \u0441\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0435\u043c \u0447\u0442\u043e \u0437\u0430 \u043c\u043e\u0434\u0443\u043b\u044c<\/span>\n &nbsp;<span style=\"color: #434f54;\">\/\/ \u043e\u0442\u0432\u0435\u0442\u044f\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u043c\u043e\u0434\u0443\u043b\u044c \u043d\u0435 \u0431\u044b\u043b \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d.<\/span>\n &nbsp;<span style=\"color: #000000;\">relay<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">write<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0x50<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n &nbsp;<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">100<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n &nbsp;<span style=\"color: #5e6d03;\">if<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">relay<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">available<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span>\n &nbsp;&nbsp;&nbsp;<span style=\"color: #00979c;\">byte<\/span> <span style=\"color: #000000;\">i<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">relay<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">read<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;&nbsp;&nbsp;<span style=\"color: #5e6d03;\">if<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">i<\/span> <span style=\"color: #434f54;\">==<\/span> <span style=\"color: #000000;\">0xAD<\/span><span style=\"color: #000000;\">)<\/span> <b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">println<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">\"ICSE013A 2-Channel\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;&nbsp;&nbsp;<span style=\"color: #5e6d03;\">else<\/span> <span style=\"color: #5e6d03;\">if<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">i<\/span> <span style=\"color: #434f54;\">==<\/span> <span style=\"color: #000000;\">0xAB<\/span><span style=\"color: #000000;\">)<\/span> <b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">println<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">\"ICSE012A 4-Channel\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;&nbsp;&nbsp;<span style=\"color: #5e6d03;\">else<\/span> <span style=\"color: #5e6d03;\">if<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">i<\/span> <span style=\"color: #434f54;\">==<\/span> <span style=\"color: #000000;\">0xAC<\/span><span style=\"color: #000000;\">)<\/span> <b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">println<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">\"ICSE014A 8-Channel\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;&nbsp;&nbsp;<span style=\"color: #5e6d03;\">else<\/span> <b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">println<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">\"ERROR\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> &nbsp;&nbsp;&nbsp;\n &nbsp;<span style=\"color: #000000;\">}<\/span>\n &nbsp;\n &nbsp;<span style=\"color: #434f54;\">\/\/ \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c, \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0440\u0435\u043b\u0435<\/span>\n &nbsp;<span style=\"color: #000000;\">relay<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">write<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0x51<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;\n &nbsp;<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">10<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n<span style=\"color: #000000;\">}<\/span>\n\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">loop<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #000000;\">{<\/span>\n &nbsp;<span style=\"color: #434f54;\">\/\/ \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u043c \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u044c \u0431\u0430\u0439\u0442, \u0431\u0438\u0442\u044b \u0438\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0433\u043e <\/span>\n &nbsp;&nbsp;<span style=\"color: #000000;\">relay<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0b00000001<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \n &nbsp;&nbsp;<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">500<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;&nbsp;<span style=\"color: #000000;\">relay<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0b00000011<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;&nbsp;<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">500<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;&nbsp;<span style=\"color: #000000;\">relay<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0b00000010<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;&nbsp;<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">500<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;&nbsp;<span style=\"color: #000000;\">relay<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0b00000000<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;&nbsp;<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">500<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\n &nbsp;&nbsp;\n<span style=\"color: #000000;\">}<\/span>\n\n\n<\/pre>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u041a\u0443\u043f\u0438\u0442\u044c:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u041d\u0430 \u0430\u043b\u0438, <a href=\"https:\/\/buyeasy.by\/cashback\/view\/pxhbh5erh1lg80mrcpjqwws8ubodl0yy\/\" target=\"_blank\" rel=\"noreferrer noopener\" aria-label=\"\u0442\u0443\u0442 (\u043e\u0442\u043a\u0440\u043e\u0435\u0442\u0441\u044f \u0432 \u043d\u043e\u0432\u043e\u0439 \u0432\u043a\u043b\u0430\u0434\u043a\u0435)\">\u0442\u0443\u0442<\/a>.<\/p><div class=\"vxhop6ab47963bbab4\" ><hr>\n<!-- Yandex.RTB R-A-1793072-2 -->\n<div id=\"yandex_rtb_R-A-1793072-2\"><\/div>\n<script>window.yaContextCb.push(()=>{\n  Ya.Context.AdvManager.render({\n    renderTo: 'yandex_rtb_R-A-1793072-2',\n    blockId: 'R-A-1793072-2'\n  })\n})<\/script><\/div><style type=\"text\/css\">\r\n@media screen and (min-width: 1201px) {\r\n.vxhop6ab47963bbab4 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 993px) and (max-width: 1200px) {\r\n.vxhop6ab47963bbab4 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 769px) and (max-width: 992px) {\r\n.vxhop6ab47963bbab4 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (min-width: 768px) and (max-width: 768px) {\r\n.vxhop6ab47963bbab4 {\r\ndisplay: block;\r\n}\r\n}\r\n@media screen and (max-width: 767px) {\r\n.vxhop6ab47963bbab4 {\r\ndisplay: block;\r\n}\r\n}\r\n<\/style>\r\n\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u0412\u0438\u0434\u0435\u043e:<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/youtu.be\/fujThP5WV_U\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u0420\u0435\u043b\u0435\u0439\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0443\u043b\u044c \u0441 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0447\u0435\u0440\u0435\u0437 USB \u0438\u043b\u0438 UART \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/p>\n","protected":false},"author":1,"featured_media":680,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":"","_links_to":"","_links_to_target":""},"categories":[7],"tags":[126],"class_list":["post-679","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-video","tag-relejnyj-modul"],"_links":{"self":[{"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/posts\/679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/comments?post=679"}],"version-history":[{"count":0,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/posts\/679\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/media\/680"}],"wp:attachment":[{"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/media?parent=679"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/categories?post=679"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/arduinolab.pw\/index.php\/wp-json\/wp\/v2\/tags?post=679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}