{"id":75438,"date":"2020-01-31T08:46:00","date_gmt":"2020-01-31T02:46:00","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=75438"},"modified":"2022-01-08T22:26:57","modified_gmt":"2022-01-08T16:26:57","slug":"%d1%87%d0%b0%d1%81%d1%8b-%d1%80%d0%b5%d0%b0%d0%bb%d1%8c%d0%bd%d0%be%d0%b3%d0%be-%d0%b2%d1%80%d0%b5%d0%bc%d0%b5%d0%bd%d0%b8-ds1307","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=75438","title":{"rendered":"\u0427\u0430\u0441\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 DS1307"},"content":{"rendered":"<p>\u041c\u043e\u0434\u0443\u043b\u044c \u0447\u0430\u0441\u043e\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438\u00a0 DS1307 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0431\u0430\u0437\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b DS1307ZN \u0441 \u043f\u0438\u0442\u0430\u043d\u0438\u0435 \u043e\u0442 \u043b\u0438\u0442\u0438\u0435\u0432\u043e\u0439 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438 (LIR2032), \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0422\u0430\u043a\u0436\u0435 \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u0435, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u044d\u043d\u0435\u0440\u0433\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c EEPROM \u043e\u0431\u044a\u0435\u043c\u043e\u043c 32 \u041a\u0431\u0430\u0439\u0442 (AT24C32).<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\" border=\"1\">\n<tbody>\n<tr>\n<td style=\"width: 50%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084053.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-75442\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084053.png\" alt=\"\" width=\"266\" height=\"301\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084053.png 359w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084053-200x226.png 200w\" sizes=\"auto, (max-width: 266px) 100vw, 266px\" \/><\/a><\/td>\n<td style=\"width: 50%;\"><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084112.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75441\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084112.png\" alt=\"\" width=\"415\" height=\"332\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084112.png 415w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084112-200x160.png 200w\" sizes=\"auto, (max-width: 415px) 100vw, 415px\" \/><\/a><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p class=\"bl\">\u041e\u0442\u043b\u0438\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438:<\/p>\n<ul>\n<li>\u041f\u043e\u0434\u0441\u0447\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445, \u043c\u0438\u043d\u0443\u0442\u0430\u0445, \u0447\u0430\u0441\u0430\u0445, \u0434\u0430\u0442\u0430\u0445 \u043c\u0435\u0441\u044f\u0446\u0430, \u043c\u0435\u0441\u044f\u0446\u0430\u0445, \u0434\u043d\u044f\u0445 \u043d\u0435\u0434\u0435\u043b\u0438 \u0438 \u0433\u043e\u0434\u0430\u0445 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0432\u044b\u0441\u043e\u043a\u043e\u0441\u043d\u043e\u0441\u0442\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u0433\u043e\u0434\u0430 \u0432\u043f\u043b\u043e\u0442\u044c \u0434\u043e 2100 \u0433.<\/li>\n<li>56 \u0431\u0430\u0439\u0442 \u044d\u043d\u0435\u0440\u0433\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0433\u043e \u041e\u0417\u0423 \u0434\u043b\u044f \u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445<\/li>\n<li>2 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u043e\u0439 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441<\/li>\n<li>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u0443\u0435\u043c\u044b\u0439 \u0433\u0435\u043d\u0435\u0440\u0430\u0442\u043e\u0440 \u043f\u0440\u044f\u043c\u043e\u0443\u0433\u043e\u043b\u044c\u043d\u044b\u0445 \u0438\u043c\u043f\u0443\u043b\u044c\u0441\u043e\u0432<\/li>\n<li>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043e\u0442\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u0433\u043e \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a\u0430 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0433\u043e<\/li>\n<li>\u041f\u043e\u0442\u0440\u0435\u0431\u043b\u0435\u043d\u0438\u0435 \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 500 \u043dA \u043f\u0440\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u0438 \u043e\u0442 \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u043e\u0439 \u0431\u0430\u0442\u0430\u0440\u0435\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043f\u0440\u0438 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440\u0435 25\u00b0C<\/li>\n<li>\u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u0442\u0430\u0432\u043a\u0438 \u0432 \u043f\u0440\u043e\u043c\u044b\u0448\u043b\u0435\u043d\u043d\u043e\u043c \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u0435 \u0442\u0435\u043c\u043f\u0435\u0440\u0430\u0442\u0443\u0440: \u043e\u0442 -40\u00b0C \u0434\u043e+85\u00b0C<\/li>\n<\/ul>\n<p>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 <a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/iarduino_RTC.zip\">iarduino_RTC<\/a> \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0435\u0442 \u0432\u0441\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0435 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0447\u0430\u0441\u043e\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043f\u0440\u043e\u0441\u0442\u0430 \u0432 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u0438.<\/p>\n<p>\u041f\u043b\u0430\u0442\u0430 Arduino Nano \u0438 \u0447\u0430\u0441\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 DS1307 \u043e\u0431\u043c\u0435\u043d\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u043d\u0430 \u0448\u0438\u043d\u0435 I2C \u043f\u043e \u043b\u0438\u043d\u0438\u044f\u043c SDA (data \u2014 \u0434\u0430\u043d\u043d\u044b\u0435) \u0438 SCL (clock \u2014 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f).<\/p>\n<div id=\"marketWidget\"><\/div>\n<table width=\"688\">\n<tbody>\n<tr>\n<th>\u041f\u043b\u0430\u0442\u0430<\/th>\n<th>\u041f\u0438\u043d SDA<\/th>\n<th>\u041f\u0438\u043d SCL<\/th>\n<\/tr>\n<tr>\n<td>Arduino Uno, Nano, Pro \u0438 Pro Mini<\/td>\n<td>A4<\/td>\n<td>A5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;Wire.h&gt;\r\n#include &lt;iarduino_RTC.h&gt; \/\/ <a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/iarduino_RTC.zip\">iarduino_RTC<\/a>.zip<\/span>\r\niarduino_RTC <span style=\"color: #0066cc;\">time<\/span><span style=\"color: #66cc66;\">(<\/span>RTC_DS1307<span style=\"color: #66cc66;\">)<\/span>;\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    delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">300<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    Serial.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">9600<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    <span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/ \u0423\u0421\u0422\u0410\u041d\u041e\u0412\u041a\u0410 \u0412\u0420\u0415\u041c\u0415\u041d\u0418<\/span>\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/  time.settime(0,5,11,30,1,20,4);  \/\/ 0  \u0441\u0435\u043a, 5 \u043c\u0438\u043d, 11 \u0447\u0430\u0441, 30, \u044f\u043d\u0432\u0430\u0440\u044f, 2020 \u0433\u043e\u0434\u0430, \u0447\u0435\u0442\u0432\u0435\u0440\u0433<\/span>\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/  time.settime(-1, -1, -1, 30, 1, 20); \/\/ \u0423\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u0434\u0430\u0442\u0443 30.01.2020, \u0430 \u0432\u0440\u0435\u043c\u044f \u0438 \u0434\u0435\u043d\u044c \u043d\u0435\u0434\u0435\u043b\u0438 \u043e\u0441\u0442\u0430\u0432\u0438\u0442\u044c \u0431\u0435\u0437 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0439<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\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      <span style=\"color: #808080; font-style: italic;\">\/\/ time.gettime(); \/\/ \u043e\u043f\u0440\u043e\u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 - \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0441\u043b\u0438 \u043d\u0435 \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0435 time.gettime(\"d-m-Y, H:i:s, D\")<\/span>\r\n\u00a0\r\n      Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #0066cc;\">gettime<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"d-m-Y, H:i:s, D\"<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432\u0440\u0435\u043c\u044f<\/span>\r\n      Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #0066cc;\">gettime<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"d-M-Y, H:i:s, D\"<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432\u0440\u0435\u043c\u044f<\/span>\r\n      <span style=\"color: #808080; font-style: italic;\">\/\/ \u0447\u0430\u0441\u044b: h (01-12) \/ H (01-24)<\/span>\r\n      <span style=\"color: #808080; font-style: italic;\">\/\/ \u0434\u0435\u043d\u044c \u043d\u0435\u0434\u0435\u043b\u0438: D (Mon Tue Wed Thu Fri Sat Sun) \/ w (0-\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435, 6-\u0441\u0443\u0431\u0431\u043e\u0442\u0430)<\/span>\r\n      <span style=\"color: #808080; font-style: italic;\">\/\/ \u043c\u0435\u0441\u044f\u0446: m (1-12) \/ M (Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec)<\/span>\r\n      <span style=\"color: #808080; font-style: italic;\">\/\/ \u0433\u043e\u0434: Y (2020) \/ y (20)<\/span>\r\n      <span style=\"color: #808080; font-style: italic;\">\/\/ \u043f\u043e\u043b\u0434\u0435\u043d\u044c: a (am pm) \/ A (AM PM)<\/span>\r\n\u00a0\r\n      Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>; \r\n      <span style=\"color: #808080; font-style: italic;\">\/\/ int &amp; byte<\/span>\r\n      Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\u0447\u0430\u0441\u044b \"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #006600;\">Hours<\/span><span style=\"color: #66cc66;\">)<\/span>;      <span style=\"color: #808080; font-style: italic;\">\/\/ \u0447\u0430\u0441\u044b 0-24 \/\/ hours 0-12<\/span>\r\n      Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\u043c\u0438\u043d\u0443\u0442\u044b \"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #006600;\">minutes<\/span><span style=\"color: #66cc66;\">)<\/span>;    <span style=\"color: #808080; font-style: italic;\">\/\/ \u043c\u0438\u043d\u0443\u0442\u044b<\/span>\r\n      Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\u0441\u0435\u043a\u0443\u043d\u0434\u044b \"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #006600;\">seconds<\/span><span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ \u0441\u0435\u043a\u0443\u043d\u0434\u044b<\/span>\r\n      Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\u0434\u0435\u043d\u044c \"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #006600;\">day<\/span><span style=\"color: #66cc66;\">)<\/span>;        <span style=\"color: #808080; font-style: italic;\">\/\/ \u0434\u0435\u043d\u044c 0-31<\/span>\r\n      Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\u043c\u0435\u0441\u044f\u0446 \"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #006600;\">month<\/span><span style=\"color: #66cc66;\">)<\/span>;      <span style=\"color: #808080; font-style: italic;\">\/\/ \u043c\u0435\u0441\u044f\u0446 1-12<\/span>\r\n      Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\u0433\u043e\u0434 \"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #006600;\">year<\/span><span style=\"color: #66cc66;\">)<\/span>;       <span style=\"color: #808080; font-style: italic;\">\/\/ \u0433\u043e\u0434 <\/span>\r\n      Serial.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"\u0434\u0435\u043d\u044c \u043d\u0435\u0434\u0435\u043b\u0438 \"<\/span><span style=\"color: #66cc66;\">)<\/span>;Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #006600;\">weekday<\/span><span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ 0-\u0432\u043e\u0441\u043a\u0440\u0435\u0441\u0435\u043d\u044c\u0435, 1-\u043f\u043e\u043d\u0435\u0434\u0435\u043b\u044c\u043d\u0438\u043a, ... , 6-\u0441\u0443\u0431\u0431\u043e\u0442\u0430<\/span>\r\n\u00a0\r\n      Serial.<span style=\"color: #006600;\">println<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\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><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-075210.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-75440\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-075210.png\" alt=\"\" width=\"228\" height=\"175\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-075210.png 228w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-075210-200x154.png 200w\" sizes=\"auto, (max-width: 228px) 100vw, 228px\" \/><\/a><\/p>\n<p>\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0434\u0438\u0441\u043f\u043b\u0435\u0439 LCD1602(<a href=\"http:\/\/forum.rcl-radio.ru\/viewtopic.php?id=103\">I2C<\/a>) (\u043d\u0430 \u0431\u0430\u0437\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 HD44780) \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u043f\u0440\u043e\u0441\u0442\u044b\u0435 \u0447\u0430\u0441\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0431\u0443\u0434\u0443\u0442 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u0438 \u0434\u0430\u0442\u0443.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084031.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-75443 size-medium\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084031-e1580438547634-500x393.png\" alt=\"\" width=\"500\" height=\"393\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084031-e1580438547634-500x393.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084031-e1580438547634-200x157.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084031-e1580438547634-768x604.png 768w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084031-e1580438547634.png 796w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a> <a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084010.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-75444 size-medium\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084010-500x191.png\" alt=\"\" width=\"500\" height=\"191\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084010-500x191.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084010-200x76.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084010-768x294.png 768w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/Screenshot-31.01.2020-084010.png 884w\" sizes=\"auto, (max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;Wire.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;iarduino_RTC.h&gt; \/\/ <a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2020\/01\/iarduino_RTC.zip\">iarduino_RTC<\/a>,zip<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;LiquidCrystal_I2C.h&gt;\/\/ http:\/\/forum.rcl-radio.ru\/misc.php?action=pan_download&amp;item=45&amp;download=1<\/span>\r\n  LiquidCrystal_I2C lcd<span style=\"color: #66cc66;\">(<\/span>0x27,<span style=\"color: #cc66cc;\">16<\/span>,<span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span>;  <span style=\"color: #808080; font-style: italic;\">\/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u0441\u043f\u043b\u0435\u0439<\/span>\r\n  iarduino_RTC <span style=\"color: #0066cc;\">time<\/span><span style=\"color: #66cc66;\">(<\/span>RTC_DS1307<span style=\"color: #66cc66;\">)<\/span>;\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     Serial.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">9600<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n     <span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n     lcd.<span style=\"color: #006600;\">init<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;                     \r\n     lcd.<span style=\"color: #006600;\">backlight<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #808080; font-style: italic;\">\/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0443 \u0434\u0438\u0441\u043f\u043b\u0435\u044f<\/span>\r\n  <span style=\"color: #808080; font-style: italic;\">\/\/  time.settime(0,5,11,30,1,20,4);  \/\/ 0  \u0441\u0435\u043a, 5 \u043c\u0438\u043d, 11 \u0447\u0430\u0441, 30, \u044f\u043d\u0432\u0430\u0440\u044f, 2020 \u0433\u043e\u0434\u0430, \u0447\u0435\u0442\u0432\u0435\u0440\u0433<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\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    <span style=\"color: #808080; font-style: italic;\">\/\/  time.gettime(); \/\/ \u043e\u043f\u0440\u043e\u0441 \u0432\u0440\u0435\u043c\u0435\u043d\u0438<\/span>\r\n      lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span>, <span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n      lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #0066cc;\">gettime<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"H:i:s\"<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432\u0440\u0435\u043c\u044f<\/span>\r\n      lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span>, <span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n      lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">time<\/span>.<span style=\"color: #0066cc;\">gettime<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"d-m-Y D\"<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #808080; font-style: italic;\">\/\/ \u0432\u044b\u0432\u043e\u0434\u0438\u043c \u0432\u0440\u0435\u043c\u044f<\/span>\r\n\u00a0\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","protected":false},"excerpt":{"rendered":"<p>\u041c\u043e\u0434\u0443\u043b\u044c \u0447\u0430\u0441\u043e\u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438\u00a0 DS1307 \u0441\u043e\u0431\u0440\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u0431\u0430\u0437\u0435 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u044b DS1307ZN \u0441 \u043f\u0438\u0442\u0430\u043d\u0438\u0435 \u043e\u0442 \u043b\u0438\u0442\u0438\u0435\u0432\u043e\u0439 \u0431\u0430\u0442\u0430\u0440\u0435\u0439\u043a\u0438 (LIR2032), \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u0430\u0432\u0442\u043e\u043d\u043e\u043c\u043d\u043e \u0432 \u0442\u0435\u0447\u0435\u043d\u0438\u0435 \u0434\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0422\u0430\u043a\u0436\u0435 \u043d\u0430 \u043c\u043e\u0434\u0443\u043b\u0435, \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 \u044d\u043d\u0435\u0440\u0433\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0430\u044f \u043f\u0430\u043c\u044f\u0442\u044c EEPROM \u043e\u0431\u044a\u0435\u043c\u043e\u043c 32 \u041a\u0431\u0430\u0439\u0442 (AT24C32). \u041e\u0442\u043b\u0438\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0438: \u041f\u043e\u0434\u0441\u0447\u0435\u0442 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 \u0441\u0435\u043a\u0443\u043d\u0434\u0430\u0445, \u043c\u0438\u043d\u0443\u0442\u0430\u0445, \u0447\u0430\u0441\u0430\u0445, \u0434\u0430\u0442\u0430\u0445 \u043c\u0435\u0441\u044f\u0446\u0430, \u043c\u0435\u0441\u044f\u0446\u0430\u0445, \u0434\u043d\u044f\u0445 \u043d\u0435\u0434\u0435\u043b\u0438 \u0438 \u0433\u043e\u0434\u0430\u0445 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u0432\u044b\u0441\u043e\u043a\u043e\u0441\u043d\u043e\u0441\u0442\u0438 \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":75442,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239],"tags":[],"class_list":["post-75438","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino"],"views":4472,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/75438","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=75438"}],"version-history":[{"count":3,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/75438\/revisions"}],"predecessor-version":[{"id":111278,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/75438\/revisions\/111278"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/75442"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=75438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=75438"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=75438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}