{"id":129144,"date":"2022-09-08T18:27:01","date_gmt":"2022-09-08T12:27:01","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=129144"},"modified":"2022-09-12T20:11:43","modified_gmt":"2022-09-12T14:11:43","slug":"lcd1601a-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=129144","title":{"rendered":"LCD1601A (Arduino)"},"content":{"rendered":"<p>LCD1601A \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 HD44780 \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 LiquidCrystal \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 Arduino IDE.<\/p>\n<p style=\"text-align: center;\">\u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-18-20-52.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129145\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-18-20-52.png\" alt=\"\" width=\"357\" height=\"448\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-18-20-52.png 357w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-18-20-52-200x251.png 200w\" sizes=\"auto, (max-width: 357px) 100vw, 357px\" \/><\/a><\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-18-21-57.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129146\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-18-21-57.png\" alt=\"\" width=\"765\" height=\"387\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-18-21-57.png 765w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-18-21-57-500x253.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-18-21-57-200x101.png 200w\" sizes=\"auto, (max-width: 765px) 100vw, 765px\" \/><\/a><\/p>\n<div id=\"marketWidget\"><\/div>\n<p>\u0412 \u0440\u0430\u0431\u043e\u0442\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u044d\u043a\u0440\u0430\u043d \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d \u043d\u0430 \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438 \u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0434\u0438\u0441\u043f\u043b\u0435\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043a\u0430\u043a \u043a \u0434\u0438\u0441\u043f\u043b\u0435\u044e LCD0802. \u041f\u0435\u0440\u0432\u044b\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u0435\u0441\u0442 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u044d\u0442\u043e \u043a\u0430\u043a \u0431\u044b \u043f\u0435\u0440\u0432\u0430\u044f (\u043d\u0443\u043b\u0435\u0432\u0430\u044f) \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u044f LCD0802, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u0435\u0441\u0442 \u044d\u0442\u043e \u0432\u0442\u043e\u0440\u0430\u044f (\u043f\u0435\u0440\u0432\u0430\u044f) \u0441\u0442\u0440\u043e\u043a\u0430 LCD0802.<\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;LiquidCrystal.h&gt; \/\/ \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u0443\u044e \u0432 Arduino IDE \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0443 \u0434\u043b\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u044f LCD 16x1 <\/span>\r\n\u00a0\r\nLiquidCrystal lcd<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">12<\/span>, <span style=\"color: #cc66cc;\">11<\/span>, <span style=\"color: #cc66cc;\">5<\/span>, <span style=\"color: #cc66cc;\">6<\/span>, <span style=\"color: #cc66cc;\">7<\/span>, <span style=\"color: #cc66cc;\">8<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u043d\u043e\u043c\u0435\u0440 \u0432\u044b\u0432\u043e\u0434\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u044f(\u0432\u044b\u0432\u043e\u0434 Arduino):RS(12),E(11),D4(5),D5(6),D6(7),D7(8) <\/span>\r\n\u00a0\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n  lcd.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">8<\/span>, <span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u043c \u0442\u0438\u043f \u0434\u0438\u0441\u043f\u043b\u0435\u044f LCD 16X1 \u043a\u0430\u043a LCD0802<\/span>\r\n  lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0443\u0440\u0441\u043e\u0440\u0430 - \u043d\u0443\u043b\u0435\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b<\/span>\r\n  lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" HELLO! \"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0432\u044b\u0432\u043e\u0434 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d<\/span>\r\n  delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3000<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  lcd.<span style=\"color: #0066cc;\">clear<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n  lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0443\u0440\u0441\u043e\u0440\u0430 - \u043d\u0443\u043b\u0435\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b<\/span>\r\n  lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"LCD1601\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0432\u044b\u0432\u043e\u0434 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d<\/span>\r\n  lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u043f\u043e\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u043a\u0443\u0440\u0441\u043e\u0440\u0430 - \u043f\u0435\u0440\u0432\u0430\u044f \u0441\u0442\u0440\u043e\u043a\u0430, \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0438\u043c\u0432\u043e\u043b<\/span>\r\n  lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"ARDUINO\"<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0432\u044b\u0432\u043e\u0434 \u043d\u0430 \u044d\u043a\u0440\u0430\u043d<\/span>\r\n  delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1000<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p>\u0414\u043b\u044f \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0438 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043f\u0438\u043d\u044b 15 LED+ \u0438 16 LED- , \u0432\u044b\u0432\u043e\u0434 16 \u0441\u043e\u0435\u0434\u0438\u043d\u044f\u0435\u0442\u0441\u044f \u0441 VSS (GND) \u0434\u0438\u0441\u043f\u043b\u0435\u044f, \u0430 \u043d\u0430 \u0432\u044b\u0432\u043e\u0434 15 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0430\u0442\u044c \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 3,3 \u0412 \u0438\u043b\u0438 5 \u0412 (\u0441 VDD \u0434\u0438\u0441\u043f\u043b\u0435\u044f), \u0442\u0430\u043a \u043a\u0430\u043a \u0442\u043e\u043a\u043e\u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0438\u0432\u0430\u044e\u0449\u0438\u0439 \u0440\u0435\u0437\u0438\u0441\u0442\u043e\u0440 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d \u043d\u0430 \u043f\u043b\u0430\u0442\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u044f.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-20-15-37.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-129149\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-20-15-37.png\" alt=\"\" width=\"1013\" height=\"563\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-20-15-37.png 1013w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-20-15-37-500x278.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-20-15-37-200x111.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2022\/09\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2022-09-08-20-15-37-768x427.png 768w\" sizes=\"auto, (max-width: 1013px) 100vw, 1013px\" \/><\/a><\/p>\n<p>\u0424\u043e\u0440\u0443\u043c &#8212; <a href=\"http:\/\/forum.rcl-radio.ru\/viewtopic.php?id=511\">http:\/\/forum.rcl-radio.ru\/viewtopic.php?id=511<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>LCD1601A \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0435 HD44780 \u0438 \u043f\u043e\u043b\u043d\u043e\u0441\u0442\u044c\u044e \u0441\u043e\u0432\u043c\u0435\u0441\u0442\u0438\u043c \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 LiquidCrystal \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 Arduino IDE. \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0412 \u0440\u0430\u0431\u043e\u0442\u0435 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u043e\u0434\u043d\u0430 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c, \u044d\u043a\u0440\u0430\u043d \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d \u043d\u0430 \u0434\u0432\u0435 \u0447\u0430\u0441\u0442\u0438 \u0438 \u043e\u0431\u0440\u0430\u0449\u0430\u0442\u044c\u0441\u044f \u043a \u0434\u0438\u0441\u043f\u043b\u0435\u044e \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e \u043a\u0430\u043a \u043a \u0434\u0438\u0441\u043f\u043b\u0435\u044e LCD0802. \u041f\u0435\u0440\u0432\u044b\u0435 \u0432\u043e\u0441\u0435\u043c\u044c \u0437\u043d\u0430\u043a\u043e\u043c\u0435\u0441\u0442 \u0434\u0438\u0441\u043f\u043b\u0435\u044f \u044d\u0442\u043e \u043a\u0430\u043a \u0431\u044b \u043f\u0435\u0440\u0432\u0430\u044f (\u043d\u0443\u043b\u0435\u0432\u0430\u044f) \u0441\u0442\u0440\u043e\u043a\u0430 \u0434\u0438\u0441\u043f\u043b\u0435\u044f LCD0802, \u0430 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0441\u0435\u043c\u044c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":129146,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,21],"tags":[],"class_list":["post-129144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-21"],"views":2904,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/129144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=129144"}],"version-history":[{"count":4,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/129144\/revisions"}],"predecessor-version":[{"id":129151,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/129144\/revisions\/129151"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/129146"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=129144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=129144"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=129144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}