{"id":421226,"date":"2024-06-30T03:58:10","date_gmt":"2024-06-30T03:58:10","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=421226"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=421226","title":{"rendered":"<span>\u041a\u0430\u043a \u043e\u0431\u0445\u0438\u0442\u0440\u0438\u0442\u044c \u0442\u0430\u0439\u043c \u0442\u0440\u0435\u043a\u0435\u0440 \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 Arduino<\/span>"},"content":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/553\/83c\/4e4\/55383c4e405a5930e081f92941a3b809.jpg\" width=\"805\" height=\"136\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/553\/83c\/4e4\/55383c4e405a5930e081f92941a3b809.jpg\" data-blurred=\"true\"\/><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435!<br \/>\u0412\u0441\u044f \u043c\u043e\u044f \u0441\u0435\u043c\u044c\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e. \u0421\u0443\u043f\u0440\u0443\u0433\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u043a\u0440\u0443\u043f\u043d\u043e\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043a\u043d\u043e\u043f\u043e\u043a \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438 \u043a\u043e\u043b\u0435\u0441\u043e \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u043c\u044b\u0448\u0438, \u0441 \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u043e\u043c 5 \u043c\u0438\u043d\u0443\u0442. \u0416\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u0431\u043e\u043b\u0435\u043b\u0430 COVID-19 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0431\u043e\u043b\u0435\u0437\u043d\u0438 \u0441\u0442\u0430\u043b\u0430 \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u0432\u0430\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0435\u0431\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043f\u0435\u0440\u0435\u0440\u044b\u0432\u0447\u0438\u043a\u0438. \u041d\u0430 \u0432\u0440\u0435\u043c\u044f \u044d\u0442\u0438\u0445 \u043f\u0435\u0440\u0435\u0440\u044b\u0432\u0447\u0438\u043a\u043e\u0432 \u043e\u043d\u0430 \u043f\u0440\u043e\u0441\u0438\u0442 \u043c\u0435\u043d\u044f \u043f\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u043e \u043c\u044b\u0448\u0438, \u043d\u043e \u044f\u00a0\u0431\u044b\u0432\u0430\u0435\u0442 \u0442\u0430\u043a \u0443\u0432\u043b\u0435\u043a\u0443\u0441\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0439, \u0447\u0442\u043e \u0437\u0430\u0431\u044b\u0432\u0430\u044e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u044d\u0442\u0438\u043c \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.<\/p>\n<hr\/>\n<p>\u042f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0432\u0430\u043b\u044f\u0435\u0442\u0441\u044f Arduino\u00a0Leonardo, \u0430 \u0435\u0433\u043e \u043b\u0435\u0433\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u044e \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438 \u043c\u044b\u0448\u0438. \u041f\u043e\u043a\u043e\u043f\u0430\u0432\u0448\u0438\u0441\u044c \u0432 \u044f\u0449\u0438\u043a\u0430\u0445 \u043d\u0430\u0448\u0435\u043b \u0435\u0433\u043e \u0438 \u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0430 \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u044e \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u0430 \u043c\u044b\u0448\u0438. \u041d\u043e \u0436\u0435\u043d\u0430 \u043c\u0435\u043d\u044f \u0440\u0430\u0441\u043a\u0440\u0438\u0442\u0438\u043a\u043e\u0432\u0430\u043b\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0443 \u043d\u0438\u0445 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 USB\u00a0\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 (\u0430 Arduino \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u00a0\u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u043e \u043c\u044b\u0448\u0438 \u043c\u0435\u0445\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0438, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0431\u044b\u043b \u0437\u0430\u043a\u0430\u0437\u0430\u043d \u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c 28BYJ-48 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435 ULN2003 \u0438 \u0432\u0437\u044f\u0442 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u00ab\u043f\u044b\u043b\u044c\u043d\u043e\u0433\u043e\u00bb \u044f\u0449\u0438\u043a\u0430 Arduino\u00a0Nano.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/b5f\/9e9\/269\/b5f9e9269e13b987c160c0093a68fdf4.jpg\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 1. \u0428\u0430\u0433\u043e\u0432\u044b\u0439 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c 28BYJ-48 \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435 ULN2003.\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 1. \u0428\u0430\u0433\u043e\u0432\u044b\u0439 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c 28BYJ-48 \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435 ULN2003.\" width=\"550\" height=\"425\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/b5f\/9e9\/269\/b5f9e9269e13b987c160c0093a68fdf4.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 1. \u0428\u0430\u0433\u043e\u0432\u044b\u0439 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c 28BYJ-48 \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435 ULN2003.<\/figcaption><\/figure>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u0438 \u043a\u043d\u043e\u043f\u043a\u0443 \u043a Arduno, \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043f\u0438\u0442\u044b\u0432\u0430\u043b \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0447\u0435\u0440\u0435\u0437 Arduino, \u0442\u0430\u043a \u0438 \u0447\u0435\u0440\u0435\u0437 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0438\u0442\u0430\u043d\u0438\u044f. \u0421\u0435\u0439\u0447\u0430\u0441 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043f\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 Arduino (\u0442\u0430\u043a \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432 \u0432\u0438\u0441\u0438\u0442, \u0430 \u0410rduino \u044d\u0442\u043e \u0442\u0435\u0440\u043f\u0438\u0442). \u041d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0435\u0442\u0447 (\u043a\u0430\u043a \u0441\u043c\u043e\u0433) \u0438\u043c\u0438\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c \u043f\u0440\u0438 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430. \u041f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u0442\u043e \u0432 \u043e\u0434\u043d\u0443, \u0442\u043e \u0432 \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0447\u0435\u0440\u0435\u0437 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\/\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u00abSTART\u00bb, \u00abSTOP\u00bb\u00a0\u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u043c\u0438\u00a0\u043f\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u043e\u0440\u0442\u0443.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/4b2\/1d8\/94b\/4b21d894b24d57e8e6a76823cdf61358.jpg\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 2. \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0448\u0430\u0433\u043e\u0432\u043e\u0433\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f (\u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0430\u0439\u0432\u0435\u0440) \u0441 \u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c \u043e\u0442 Arduino.\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 2. \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0448\u0430\u0433\u043e\u0432\u043e\u0433\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f (\u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0430\u0439\u0432\u0435\u0440) \u0441 \u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c \u043e\u0442 Arduino.\" width=\"1023\" height=\"802\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/4b2\/1d8\/94b\/4b21d894b24d57e8e6a76823cdf61358.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 2. \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0448\u0430\u0433\u043e\u0432\u043e\u0433\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f (\u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0430\u0439\u0432\u0435\u0440) \u0441 \u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c \u043e\u0442 Arduino.<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/23e\/e02\/6c7\/23ee026c705d7fc716a2ea6f389430d7.jpg\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 3. \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0448\u0430\u0433\u043e\u0432\u043e\u0433\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f (\u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0430\u0439\u0432\u0435\u0440) \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c  \u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c.\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 3. \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0448\u0430\u0433\u043e\u0432\u043e\u0433\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f (\u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0430\u0439\u0432\u0435\u0440) \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c  \u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c.\" width=\"900\" height=\"705\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/23e\/e02\/6c7\/23ee026c705d7fc716a2ea6f389430d7.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 3. \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0448\u0430\u0433\u043e\u0432\u043e\u0433\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f (\u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0430\u0439\u0432\u0435\u0440) \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c  \u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c.<\/figcaption><\/figure>\n<pre><code class=\"cpp\">#include&lt;AccelStepper.h> #include &lt;SoftwareSerial.h>  #define HALFSTEP 8      \/\/ \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0438\u043d\u043e\u0432 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u0435\u043c #define motorPin1  2 \/\/ IN1 \u043d\u0430 1-\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 ULN2003 #define motorPin2  3 \/\/ IN2 \u043d\u0430 1-\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 ULN2003 #define motorPin3  4 \/\/ IN3 \u043d\u0430 1-\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 ULN2003 #define motorPin4  5 \/\/ IN4 \u043d\u0430 1-\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 ULN2003  \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0432\u043e\u0434\u043e\u0432 IN1-IN3-IN2-IN4  \/\/ \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f AccelStepper \u0441 28BYJ-48 AccelStepper stepper1(HALFSTEP, motorPin1, motorPin3, motorPin2, motorPin4); String str = \"START\";  const int buttonPin = 12;     \/\/ \u041d\u043e\u043c\u0435\u0440 \u043f\u0438\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438  const int minMaxSpeed = 800; const int maxMaxSpeed = 1300; const int minAcceleration = 500; const int maxAcceleration = 700; const int minSpeed = 700; const int maxSpeed = 1000; const int move = 600; \/\/ \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f const int minPause = 1; \/\/ \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0430\u0443\u0437\u0430 \u043c\u0435\u0436\u0434\u0443 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043e\u043a (\u0441\u0435\u043a\u0443\u043d\u0434\u044b) const int maxPause = 3*60; \/\/ \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0430\u0443\u0437\u0430 \u043c\u0435\u0436\u0434\u0443 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043e\u043a (\u0441\u0435\u043a\u0443\u043d\u0434\u044b)  long pos = 0; int smove = move; int sMaxSpeed = maxMaxSpeed; int sAcceleration = maxAcceleration; int sSpeed = maxSpeed; unsigned msec = 1000; bool PREV = false; int dir = 50; int count = 5;   void setup(){   pinMode(LED_BUILTIN, OUTPUT); \/\/ \u0421\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 (\u043a\u0440\u0430\u0441\u043d\u044b\u0439) \u0434\u043b\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 (\u0441\u0432\u0435\u0442\u0438\u0442 - \u0441\u0442\u043e\u043f, \u043d\u0435 \u0441\u0432\u0435\u0442\u0438\u0442 - \u0440\u0430\u0431\u043e\u0442\u0430)      Serial.begin(9600);   Serial.println(\"start\");     stepper1.setMaxSpeed(sMaxSpeed);   stepper1.setAcceleration(sAcceleration);   stepper1.setSpeed(sSpeed);    pinMode(buttonPin, INPUT_PULLUP); \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043d\u043e\u043f\u043a\u0438   stepper1.move(move); }  int inputHandler(){ \/\/ \u0427\u0442\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434 \u0438\u0437 \u043f\u043e\u0440\u0442\u0430 \u0438 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438   int res = 0;     if (Serial.available() > 0) {       str=Serial.readString();       str.trim();       Serial.println(\">>>>>>>>>>>>>>>>>\");       Serial.println(str);       res = 1;     }      buttonState = digitalRead(buttonPin);     if (buttonState == LOW &amp;&amp; PREV == HIGH ) {         if (str==\"START\") {           str = \"STOP\";           Serial.println(\"Press button to 'STOP'\");           stepper1.move(0);           res = 1;         } else {           str = \"START\";           Serial.println(\"Press button to 'START'\");           res = 1;         }         delay(150);     }      if (str!=\"START\") {       digitalWrite(LED_BUILTIN, HIGH);     } else {       digitalWrite(LED_BUILTIN, LOW);     }          PREV = buttonState;     return res;      }   int delayWithRead(unsigned ms){ \/\/ \u041f\u0430\u0443\u0437\u0430 \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0432\u0432\u043e\u0434\u0430   Serial.print(\"Delay = \");   Serial.print(ms);   Serial.println(\" msec.\");   int time = 0;   while (time&lt;ms) {     delay(100);     if (inputHandler() == 1) {       Serial.println(\"Press Key\");       delay(2000);       return 1;     }     time += 100;   }   return 0; }    void printData(){ \/\/ \u0412\u044b\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u0440\u0442     Serial.print(\"sMaxSpeed=\");     Serial.println(sMaxSpeed);          Serial.print(\"sAcceleration=\");     Serial.println(sAcceleration);      Serial.print(\"sSpeed=\");     Serial.println(sSpeed);      Serial.print(\"count=\");     Serial.println(count);      Serial.print(\"pos=\");     Serial.println(pos);      Serial.print(\"smove=\");     Serial.println(smove); }  void goNewPosition(){ \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0438\u043a \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e     sMaxSpeed = random(minMaxSpeed, maxMaxSpeed);     sAcceleration = random(minAcceleration, maxAcceleration);     sSpeed = random(minSpeed, maxSpeed);     stepper1.setMaxSpeed(sMaxSpeed);     stepper1.setAcceleration(sAcceleration);     stepper1.setSpeed(sSpeed);     msec = random(100,500); \/\/ \u041f\u0430\u0443\u0437\u0430 \u043c\u0435\u0436\u0434\u0443 \u0441\u043a\u0440\u043e\u043b\u043b\u0430\u043c\u0438 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u0435     delayWithRead(msec); \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0432\u0432\u043e\u0434\u0430     count--;     if (count&lt;0) {       Serial.println(\"*************************************\");\/\/ \u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0433\u0440\u0443\u043f\u043f \u0441\u043a\u0440\u043e\u043b\u043b\u043e\u0432       msec = random(minPause*10,maxPause*10)*100; \/\/ \u041f\u0430\u0443\u0437\u0430 \u043c\u0435\u0436\u0434\u0443 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u0441\u043a\u0440\u043e\u043b\u043b\u043e\u0432       delayWithRead(msec);       dir = random(0,100);       count = random(1,5);     } else {       Serial.println(\"_________________________________________\");\/\/ \u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0441\u043a\u0440\u043e\u043b\u043b\u043e\u0432 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u0435     }     if (dir&lt;35) { \/\/ \u0421\u043a\u0440\u043e\u043b\u043b \u043d\u0430\u0437\u0430\u0434 \u0441 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e 35%       smove = 0 - move + (random(move\/8) - move\/16);     } else {       smove = 0 + move + (random(move\/8) - move\/16);     }             pos = pos + smove; \/\/ \u0421\u0447\u0435\u0442\u0447\u0438\u043a \u043e\u0431\u0449\u0435\u0433\u043e \u0441\u043a\u0440\u043e\u043b\u043b\u0430          printData();\/\/ \u0412\u044b\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u0440\u0442      if (pos>100){ \/\/ \u041a\u0440\u0443\u0442\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0447\u0443\u0442\u044c \u043d\u0438\u0436\u0435 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438       stepper1.move(smove); \/\/ \u0417\u0430\u0434\u0430\u0442\u044c \u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438     }    }   void loop(){ \/\/ \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0438\u043a\u043b     inputHandler(); \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0432\u043e\u0434\u0430     if(stepper1.distanceToGo()==0) { \/\/ \u0415\u0441\u043b\u0438 \u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438       if (str==\"START\") goNewPosition(); \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e     }      if (str==\"START\"){ \/\/ \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u0442\u043e\u044f\u0442\u044c \u0442\u043e       stepper1.run();  \/\/ \u041a\u0440\u0443\u0442\u0438\u043c \u0434\u0432\u0438\u0436\u043e\u043a      } }<\/code><\/pre>\n<p>\u0418\u0437 \u043a\u0430\u0440\u0442\u043e\u043d\u0430 \u0441\u0434\u0435\u043b\u0430\u043b \u0444\u0443\u0442\u043b\u044f\u0440 \u0434\u043b\u044f \u043c\u044b\u0448\u0438, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u043b Arduino\u00a0\u0438 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u0441 \u0432\u0435\u0434\u0443\u0449\u0438\u043c \u043a\u043e\u043b\u0435\u0441\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043a\u043b\u0430\u0434\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u043e \u043c\u044b\u0448\u0438 \u0438 \u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0435\u0433\u043e.<\/p>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7dc\/173\/38c\/7dc17338cdf89aea7c631b667ef8432a.jpg\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 4. \u0412\u0438\u0434 \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 4. \u0412\u0438\u0434 \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.\" width=\"900\" height=\"600\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7dc\/173\/38c\/7dc17338cdf89aea7c631b667ef8432a.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 4. \u0412\u0438\u0434 \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/af5\/92c\/2ba\/af592c2badf9a4edd9d8244de69be365.jpg\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 5. \u0412\u0438\u0434 \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 5. \u0412\u0438\u0434 \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.\" width=\"900\" height=\"600\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/af5\/92c\/2ba\/af592c2badf9a4edd9d8244de69be365.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 5. \u0412\u0438\u0434 \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/c9e\/e95\/25c\/c9ee9525ca3fa1634658a60e78dc1d9e.jpg\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 6. \u0413\u0430\u0434\u0436\u0435\u0442 \u0441 \u043f\u043e\u0434\u043e\u043f\u044b\u0442\u043d\u043e\u0439 \u043c\u044b\u0448\u044c\u044e:)\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 6. \u0413\u0430\u0434\u0436\u0435\u0442 \u0441 \u043f\u043e\u0434\u043e\u043f\u044b\u0442\u043d\u043e\u0439 \u043c\u044b\u0448\u044c\u044e:)\" width=\"900\" height=\"600\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c9e\/e95\/25c\/c9ee9525ca3fa1634658a60e78dc1d9e.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 6. \u0413\u0430\u0434\u0436\u0435\u0442 \u0441 \u043f\u043e\u0434\u043e\u043f\u044b\u0442\u043d\u043e\u0439 \u043c\u044b\u0448\u044c\u044e:)<\/figcaption><\/figure>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w780q1\/getpro\/habr\/upload_files\/7de\/321\/7de\/7de3217deba9b9e3655bf02f1f57b03e.jpg\" alt=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 7. \u041c\u044b\u0448\u044c \u0432 \u0433\u0430\u0434\u0436\u0435\u0442\u0435.\" title=\"\u0420\u0438\u0441\u0443\u043d\u043e\u043a 7. \u041c\u044b\u0448\u044c \u0432 \u0433\u0430\u0434\u0436\u0435\u0442\u0435.\" width=\"900\" height=\"600\" data-src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7de\/321\/7de\/7de3217deba9b9e3655bf02f1f57b03e.jpg\" data-blurred=\"true\"\/><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 7. \u041c\u044b\u0448\u044c \u0432 \u0433\u0430\u0434\u0436\u0435\u0442\u0435.<\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0432\u0438\u0434\u0435\u043e.<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/61ae0baead041b3b9bfdc83b\" data-style=\"\" id=\"61ae0baead041b3b9bfdc83b\" width=\"\"><\/div>\n<p>\u00a0\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0436\u0435\u043d\u0435 \u043d\u0430\u0434\u043e \u043e\u0442\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f, \u043e\u043d\u0430\u00a0\u0432\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u043c\u044b\u0448\u044c \u0432 \u0444\u0443\u0442\u043b\u044f\u0440 \u0438\u00a0\u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u0434\u0435\u0432\u0430\u0439\u0441.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/593697\/\"> https:\/\/habr.com\/ru\/articles\/593697\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div><!--[--><!--]--><\/div>\n<div id=\"post-content-body\">\n<div>\n<div class=\"article-formatted-body article-formatted-body article-formatted-body_version-2\">\n<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<p>\u0417\u0434\u0440\u0430\u0432\u0441\u0442\u0432\u0443\u0439\u0442\u0435!<br \/>\u0412\u0441\u044f \u043c\u043e\u044f \u0441\u0435\u043c\u044c\u044f \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0443\u0434\u0430\u043b\u0451\u043d\u043d\u043e. \u0421\u0443\u043f\u0440\u0443\u0433\u0430 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0432 \u043a\u0440\u0443\u043f\u043d\u043e\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438, \u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u043d\u0430\u0436\u0430\u0442\u0438\u0435 \u043a\u043d\u043e\u043f\u043e\u043a \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438 \u043a\u043e\u043b\u0435\u0441\u043e \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0438 \u043c\u044b\u0448\u0438, \u0441 \u0442\u0430\u0439\u043c\u0430\u0443\u0442\u043e\u043c 5 \u043c\u0438\u043d\u0443\u0442. \u0416\u0435\u043d\u0430 \u043f\u0435\u0440\u0435\u0431\u043e\u043b\u0435\u043b\u0430 COVID-19 \u0438 \u043f\u043e\u0441\u043b\u0435 \u0431\u043e\u043b\u0435\u0437\u043d\u0438 \u0441\u0442\u0430\u043b\u0430 \u0441\u0438\u043b\u044c\u043d\u043e \u0443\u0441\u0442\u0430\u0432\u0430\u0442\u044c \u0432\u043e \u0432\u0440\u0435\u043c\u044f \u0440\u0430\u0431\u043e\u0442\u044b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0441\u0435\u0431\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u0438\u0435 \u043f\u0435\u0440\u0435\u0440\u044b\u0432\u0447\u0438\u043a\u0438. \u041d\u0430 \u0432\u0440\u0435\u043c\u044f \u044d\u0442\u0438\u0445 \u043f\u0435\u0440\u0435\u0440\u044b\u0432\u0447\u0438\u043a\u043e\u0432 \u043e\u043d\u0430 \u043f\u0440\u043e\u0441\u0438\u0442 \u043c\u0435\u043d\u044f \u043f\u043e\u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u043e \u043c\u044b\u0448\u0438, \u043d\u043e \u044f\u00a0\u0431\u044b\u0432\u0430\u0435\u0442 \u0442\u0430\u043a \u0443\u0432\u043b\u0435\u043a\u0443\u0441\u044c \u0440\u0430\u0431\u043e\u0442\u043e\u0439, \u0447\u0442\u043e \u0437\u0430\u0431\u044b\u0432\u0430\u044e \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0412 \u0441\u0432\u044f\u0437\u0438 \u0441 \u044d\u0442\u0438\u043c \u0443 \u043c\u0435\u043d\u044f \u0432\u043e\u0437\u043d\u0438\u043a\u043b\u043e \u0436\u0435\u043b\u0430\u043d\u0438\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u043e\u0442 \u043f\u0440\u043e\u0446\u0435\u0441\u0441.<\/p>\n<hr\/>\n<p>\u042f \u0432\u0441\u043f\u043e\u043c\u043d\u0438\u043b \u0447\u0442\u043e \u0443 \u043c\u0435\u043d\u044f \u0432\u0430\u043b\u044f\u0435\u0442\u0441\u044f Arduino\u00a0Leonardo, \u0430 \u0435\u0433\u043e \u043b\u0435\u0433\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043d\u0430 \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u044e \u043a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u044b \u0438 \u043c\u044b\u0448\u0438. \u041f\u043e\u043a\u043e\u043f\u0430\u0432\u0448\u0438\u0441\u044c \u0432 \u044f\u0449\u0438\u043a\u0430\u0445 \u043d\u0430\u0448\u0435\u043b \u0435\u0433\u043e \u0438 \u0437\u0430\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043b \u043d\u0430 \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u044e \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u0430 \u043c\u044b\u0448\u0438. \u041d\u043e \u0436\u0435\u043d\u0430 \u043c\u0435\u043d\u044f \u0440\u0430\u0441\u043a\u0440\u0438\u0442\u0438\u043a\u043e\u0432\u0430\u043b\u0430, \u0442\u0430\u043a \u043a\u0430\u043a \u0443 \u043d\u0438\u0445 \u0437\u0430\u043f\u0440\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0435 \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u043c\u0438 USB\u00a0\u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438 (\u0430 Arduino \u043e\u0431\u044f\u0437\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u00a0\u0432\u044b\u0437\u043e\u0432\u0435\u0442 \u0432\u043e\u043f\u0440\u043e\u0441\u044b). \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u0431\u044b\u043b\u043e \u0440\u0435\u0448\u0435\u043d\u043e \u043a\u0440\u0443\u0442\u0438\u0442\u044c \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u043e \u043c\u044b\u0448\u0438 \u043c\u0435\u0445\u0430\u043d\u0438\u0447\u0435\u0441\u043a\u0438, \u0434\u043b\u044f \u0447\u0435\u0433\u043e \u0431\u044b\u043b \u0437\u0430\u043a\u0430\u0437\u0430\u043d \u0448\u0430\u0433\u043e\u0432\u044b\u0439 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c 28BYJ-48 \u0432 \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0442\u0435 \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435 ULN2003 \u0438 \u0432\u0437\u044f\u0442 \u0438\u0437 \u0434\u0440\u0443\u0433\u043e\u0433\u043e \u00ab\u043f\u044b\u043b\u044c\u043d\u043e\u0433\u043e\u00bb \u044f\u0449\u0438\u043a\u0430 Arduino\u00a0Nano.<\/p>\n<figure class=\"full-width\"><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 1. \u0428\u0430\u0433\u043e\u0432\u044b\u0439 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c 28BYJ-48 \u0441 \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u043e\u043c \u043d\u0430 \u043c\u0438\u043a\u0440\u043e\u0441\u0445\u0435\u043c\u0435 ULN2003.<\/figcaption><\/figure>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043b \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u0438 \u043a\u043d\u043e\u043f\u043a\u0443 \u043a Arduno, \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043f\u0438\u0442\u044b\u0432\u0430\u043b \u043a\u0430\u043a \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u0447\u0435\u0440\u0435\u0437 Arduino, \u0442\u0430\u043a \u0438 \u0447\u0435\u0440\u0435\u0437 \u0432\u043d\u0435\u0448\u043d\u0438\u0439 \u0438\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u043f\u0438\u0442\u0430\u043d\u0438\u044f. \u0421\u0435\u0439\u0447\u0430\u0441 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u0437\u0430\u043f\u0438\u0442\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 Arduino (\u0442\u0430\u043a \u043c\u0435\u043d\u044c\u0448\u0435 \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u0432 \u0432\u0438\u0441\u0438\u0442, \u0430 \u0410rduino \u044d\u0442\u043e \u0442\u0435\u0440\u043f\u0438\u0442). \u041d\u0430\u043f\u0438\u0441\u0430\u043b \u0441\u043a\u0435\u0442\u0447 (\u043a\u0430\u043a \u0441\u043c\u043e\u0433) \u0438\u043c\u0438\u0442\u0438\u0440\u0443\u044e\u0449\u0438\u0439 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0443 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430 \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c \u043f\u0440\u0438 \u0438\u0437\u0443\u0447\u0435\u043d\u0438\u0438 \u0441\u043b\u043e\u0436\u043d\u043e\u0433\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430. \u041f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u0442\u043e \u0432 \u043e\u0434\u043d\u0443, \u0442\u043e \u0432 \u0434\u0440\u0443\u0433\u0443\u044e \u0441\u0442\u043e\u0440\u043e\u043d\u0443 \u0447\u0435\u0440\u0435\u0437 \u0440\u0430\u0437\u043d\u044b\u0435 \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043a\u0438 \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u044c\/\u043e\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u0442\u044c \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0441\u043a\u0440\u043e\u043b\u043b\u0438\u043d\u0433\u0430 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 \u0438\u043b\u0438 \u043a\u043e\u043c\u0430\u043d\u0434\u0430\u043c\u0438 \u00abSTART\u00bb, \u00abSTOP\u00bb\u00a0\u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u043c\u0438\u00a0\u043f\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u043f\u043e\u0440\u0442\u0443.<\/p>\n<figure class=\"full-width\"><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 2. \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0448\u0430\u0433\u043e\u0432\u043e\u0433\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f (\u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0430\u0439\u0432\u0435\u0440) \u0441 \u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c \u043e\u0442 Arduino.<\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 3. \u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0448\u0430\u0433\u043e\u0432\u043e\u0433\u043e \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044f (\u0447\u0435\u0440\u0435\u0437 \u0434\u0440\u0430\u0439\u0432\u0435\u0440) \u0441 \u0432\u043d\u0435\u0448\u043d\u0438\u043c  \u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c.<\/figcaption><\/figure>\n<pre><code class=\"cpp\">#include&lt;AccelStepper.h> #include &lt;SoftwareSerial.h>  #define HALFSTEP 8      \/\/ \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043f\u0438\u043d\u043e\u0432 \u0434\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u0435\u043c #define motorPin1  2 \/\/ IN1 \u043d\u0430 1-\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 ULN2003 #define motorPin2  3 \/\/ IN2 \u043d\u0430 1-\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 ULN2003 #define motorPin3  4 \/\/ IN3 \u043d\u0430 1-\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 ULN2003 #define motorPin4  5 \/\/ IN4 \u043d\u0430 1-\u043c \u0434\u0440\u0430\u0439\u0432\u0435\u0440\u0435 ULN2003  \/\/ \u0418\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u0435\u043c\u0441\u044f \u0441 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c\u044e \u0432\u044b\u0432\u043e\u0434\u043e\u0432 IN1-IN3-IN2-IN4  \/\/ \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f AccelStepper \u0441 28BYJ-48 AccelStepper stepper1(HALFSTEP, motorPin1, motorPin3, motorPin2, motorPin4); String str = \"START\";  const int buttonPin = 12;     \/\/ \u041d\u043e\u043c\u0435\u0440 \u043f\u0438\u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0438  const int minMaxSpeed = 800; const int maxMaxSpeed = 1300; const int minAcceleration = 500; const int maxAcceleration = 700; const int minSpeed = 700; const int maxSpeed = 1000; const int move = 600; \/\/ \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u0430\u044f \u0434\u043b\u0438\u043d\u0430 \u043e\u0434\u043d\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0435\u043d\u0438\u044f const int minPause = 1; \/\/ \u041c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0430\u0443\u0437\u0430 \u043c\u0435\u0436\u0434\u0443 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043e\u043a (\u0441\u0435\u043a\u0443\u043d\u0434\u044b) const int maxPause = 3*60; \/\/ \u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u043f\u0430\u0443\u0437\u0430 \u043c\u0435\u0436\u0434\u0443 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043e\u043a (\u0441\u0435\u043a\u0443\u043d\u0434\u044b)  long pos = 0; int smove = move; int sMaxSpeed = maxMaxSpeed; int sAcceleration = maxAcceleration; int sSpeed = maxSpeed; unsigned msec = 1000; bool PREV = false; int dir = 50; int count = 5;   void setup(){   pinMode(LED_BUILTIN, OUTPUT); \/\/ \u0421\u0432\u0435\u0442\u043e\u0434\u0438\u043e\u0434 (\u043a\u0440\u0430\u0441\u043d\u044b\u0439) \u0434\u043b\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 (\u0441\u0432\u0435\u0442\u0438\u0442 - \u0441\u0442\u043e\u043f, \u043d\u0435 \u0441\u0432\u0435\u0442\u0438\u0442 - \u0440\u0430\u0431\u043e\u0442\u0430)      Serial.begin(9600);   Serial.println(\"start\");     stepper1.setMaxSpeed(sMaxSpeed);   stepper1.setAcceleration(sAcceleration);   stepper1.setSpeed(sSpeed);    pinMode(buttonPin, INPUT_PULLUP); \/\/ \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043a\u043d\u043e\u043f\u043a\u0438   stepper1.move(move); }  int inputHandler(){ \/\/ \u0427\u0442\u0435\u043d\u0438\u0435 \u043a\u043e\u043c\u0430\u043d\u0434 \u0438\u0437 \u043f\u043e\u0440\u0442\u0430 \u0438 \u043e\u0442\u0441\u043b\u0435\u0436\u0438\u0432\u0430\u043d\u0438\u0435 \u043d\u0430\u0436\u0430\u0442\u0438\u044f \u043a\u043d\u043e\u043f\u043a\u0438   int res = 0;     if (Serial.available() > 0) {       str=Serial.readString();       str.trim();       Serial.println(\">>>>>>>>>>>>>>>>>\");       Serial.println(str);       res = 1;     }      buttonState = digitalRead(buttonPin);     if (buttonState == LOW &amp;&amp; PREV == HIGH ) {         if (str==\"START\") {           str = \"STOP\";           Serial.println(\"Press button to 'STOP'\");           stepper1.move(0);           res = 1;         } else {           str = \"START\";           Serial.println(\"Press button to 'START'\");           res = 1;         }         delay(150);     }      if (str!=\"START\") {       digitalWrite(LED_BUILTIN, HIGH);     } else {       digitalWrite(LED_BUILTIN, LOW);     }          PREV = buttonState;     return res;      }   int delayWithRead(unsigned ms){ \/\/ \u041f\u0430\u0443\u0437\u0430 \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0432\u0432\u043e\u0434\u0430   Serial.print(\"Delay = \");   Serial.print(ms);   Serial.println(\" msec.\");   int time = 0;   while (time&lt;ms) {     delay(100);     if (inputHandler() == 1) {       Serial.println(\"Press Key\");       delay(2000);       return 1;     }     time += 100;   }   return 0; }    void printData(){ \/\/ \u0412\u044b\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u0440\u0442     Serial.print(\"sMaxSpeed=\");     Serial.println(sMaxSpeed);          Serial.print(\"sAcceleration=\");     Serial.println(sAcceleration);      Serial.print(\"sSpeed=\");     Serial.println(sSpeed);      Serial.print(\"count=\");     Serial.println(count);      Serial.print(\"pos=\");     Serial.println(pos);      Serial.print(\"smove=\");     Serial.println(smove); }  void goNewPosition(){ \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u0438\u043a \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0430 \u043d\u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e     sMaxSpeed = random(minMaxSpeed, maxMaxSpeed);     sAcceleration = random(minAcceleration, maxAcceleration);     sSpeed = random(minSpeed, maxSpeed);     stepper1.setMaxSpeed(sMaxSpeed);     stepper1.setAcceleration(sAcceleration);     stepper1.setSpeed(sSpeed);     msec = random(100,500); \/\/ \u041f\u0430\u0443\u0437\u0430 \u043c\u0435\u0436\u0434\u0443 \u0441\u043a\u0440\u043e\u043b\u043b\u0430\u043c\u0438 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u0435     delayWithRead(msec); \/\/ \u0417\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u0441 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u043e\u0439 \u0432\u0432\u043e\u0434\u0430     count--;     if (count&lt;0) {       Serial.println(\"*************************************\");\/\/ \u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0433\u0440\u0443\u043f\u043f \u0441\u043a\u0440\u043e\u043b\u043b\u043e\u0432       msec = random(minPause*10,maxPause*10)*100; \/\/ \u041f\u0430\u0443\u0437\u0430 \u043c\u0435\u0436\u0434\u0443 \u0433\u0440\u0443\u043f\u043f\u0430\u043c\u0438 \u0441\u043a\u0440\u043e\u043b\u043b\u043e\u0432       delayWithRead(msec);       dir = random(0,100);       count = random(1,5);     } else {       Serial.println(\"_________________________________________\");\/\/ \u0420\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u044c \u0441\u043a\u0440\u043e\u043b\u043b\u043e\u0432 \u0432 \u043e\u0434\u043d\u043e\u0439 \u0433\u0440\u0443\u043f\u043f\u0435     }     if (dir&lt;35) { \/\/ \u0421\u043a\u0440\u043e\u043b\u043b \u043d\u0430\u0437\u0430\u0434 \u0441 \u0432\u0435\u0440\u043e\u044f\u0442\u043d\u043e\u0441\u0442\u044c\u044e 35%       smove = 0 - move + (random(move\/8) - move\/16);     } else {       smove = 0 + move + (random(move\/8) - move\/16);     }             pos = pos + smove; \/\/ \u0421\u0447\u0435\u0442\u0447\u0438\u043a \u043e\u0431\u0449\u0435\u0433\u043e \u0441\u043a\u0440\u043e\u043b\u043b\u0430          printData();\/\/ \u0412\u044b\u0432\u043e\u0434 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u043e\u0440\u0442      if (pos>100){ \/\/ \u041a\u0440\u0443\u0442\u0438\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0447\u0443\u0442\u044c \u043d\u0438\u0436\u0435 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u043e\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438       stepper1.move(smove); \/\/ \u0417\u0430\u0434\u0430\u0442\u044c \u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u043f\u043e\u0437\u0438\u0446\u0438\u0438     }    }   void loop(){ \/\/ \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0446\u0438\u043a\u043b     inputHandler(); \/\/ \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0432\u0432\u043e\u0434\u0430     if(stepper1.distanceToGo()==0) { \/\/ \u0415\u0441\u043b\u0438 \u043f\u043e\u0432\u043e\u0440\u043e\u0442 \u0437\u0430\u043a\u043e\u043d\u0447\u0438\u043b\u0438       if (str==\"START\") goNewPosition(); \/\/ \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u043f\u043e\u0437\u0438\u0446\u0438\u044e     }      if (str==\"START\"){ \/\/ \u0415\u0441\u043b\u0438 \u043d\u0435\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u044b \u0441\u0442\u043e\u044f\u0442\u044c \u0442\u043e       stepper1.run();  \/\/ \u041a\u0440\u0443\u0442\u0438\u043c \u0434\u0432\u0438\u0436\u043e\u043a      } }<\/code><\/pre>\n<p>\u0418\u0437 \u043a\u0430\u0440\u0442\u043e\u043d\u0430 \u0441\u0434\u0435\u043b\u0430\u043b \u0444\u0443\u0442\u043b\u044f\u0440 \u0434\u043b\u044f \u043c\u044b\u0448\u0438, \u043a \u043a\u043e\u0442\u043e\u0440\u043e\u043c\u0443 \u043f\u0440\u0438\u043a\u0440\u0435\u043f\u0438\u043b Arduino\u00a0\u0438 \u0434\u0432\u0438\u0433\u0430\u0442\u0435\u043b\u044c \u0441 \u0432\u0435\u0434\u0443\u0449\u0438\u043c \u043a\u043e\u043b\u0435\u0441\u043e\u043c \u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u043a\u043b\u0430\u0434\u0435\u0442\u0441\u044f \u043d\u0430 \u043a\u043e\u043b\u0435\u0441\u0438\u043a\u043e \u043c\u044b\u0448\u0438 \u0438 \u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0435\u0433\u043e.<\/p>\n<figure class=\"full-width\"><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 4. \u0412\u0438\u0434 \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u0441 \u043e\u0434\u043d\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 5. \u0412\u0438\u0434 \u0433\u0430\u0434\u0436\u0435\u0442\u0430 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 6. \u0413\u0430\u0434\u0436\u0435\u0442 \u0441 \u043f\u043e\u0434\u043e\u043f\u044b\u0442\u043d\u043e\u0439 \u043c\u044b\u0448\u044c\u044e:)<\/figcaption><\/figure>\n<figure class=\"full-width\"><figcaption>\u0420\u0438\u0441\u0443\u043d\u043e\u043a 7. \u041c\u044b\u0448\u044c \u0432 \u0433\u0430\u0434\u0436\u0435\u0442\u0435.<\/figcaption><\/figure>\n<p>\u041a\u0430\u043a \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0432 \u0432\u0438\u0434\u0435\u043e.<\/p>\n<div class=\"tm-iframe_temp\" data-src=\"https:\/\/embedd.srv.habr.com\/iframe\/61ae0baead041b3b9bfdc83b\" data-style=\"\" id=\"61ae0baead041b3b9bfdc83b\" width=\"\"><\/div>\n<p>\u00a0\u0422\u0435\u043f\u0435\u0440\u044c, \u043a\u043e\u0433\u0434\u0430 \u0436\u0435\u043d\u0435 \u043d\u0430\u0434\u043e \u043e\u0442\u043b\u0443\u0447\u0438\u0442\u044c\u0441\u044f, \u043e\u043d\u0430\u00a0\u0432\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u0435\u0442 \u043c\u044b\u0448\u044c \u0432 \u0444\u0443\u0442\u043b\u044f\u0440 \u0438\u00a0\u043f\u0440\u043e\u0441\u0442\u043e \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 \u044d\u0442\u043e\u0442 \u0434\u0435\u0432\u0430\u0439\u0441.<\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><!----><!----><\/div>\n<p><!----><!----><br \/> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/593697\/\"> https:\/\/habr.com\/ru\/articles\/593697\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-421226","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/421226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=421226"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/421226\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=421226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=421226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=421226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}