{"id":275464,"date":"2016-03-04T04:48:02","date_gmt":"2016-03-04T01:48:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=275464"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=275464","title":{"rendered":"\u041e\u0431\u0437\u043e\u0440 \u0438\u043d\u0444\u0440\u0430\u043a\u0440\u0430\u0441\u043d\u043e\u0433\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0430 CO2 MH-Z19"},"content":{"rendered":"<p>       \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b \u0433\u0430\u0434\u0436\u0435\u0442\u044b, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0443\u0440\u043e\u0432\u0435\u043d\u044c CO<sub>2<\/sub>, \u0440\u0430\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u0441\u0442\u0430\u0442\u044c\u0438, \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043a\u0430\u043a \u043c\u043e\u043d\u0438\u0442\u043e\u0440 CO<sub>2<\/sub> \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443 \u0434\u0430\u0442\u0447\u0438\u043a. \u042f \u0445\u043e\u0447\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<\/p>\n<p>  \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0441\u0442\u0430\u0440\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 CO<sub>2<\/sub>, MH-Z19 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u0438 \u0438 \u0443\u043c\u0435\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 UART \u0438 PWM.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/614\/0af\/e10\/6140afe1056643be99c19152e6654788.png\"\/><br \/>  <a name=\"habracut\"><\/a>  <\/p>\n<ul>\n<li>Hd \u2014 \u043a\u0430\u043b\u0438\u0431\u0440\u043e\u0432\u043a\u0430 \u043d\u0443\u043b\u044f \u043d\u0430\u0447\u043d\u0435\u0442\u0441\u044f, \u0435\u0441\u043b\u0438 \u043d\u0430 Hd \u0431\u043e\u043b\u0435\u0435 7 \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u043e\u0434\u0430\u0435\u0442\u0441\u044f LOW. \u041a\u0430\u043b\u0438\u0431\u0440\u043e\u0432\u043a\u0443 \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u044c \u043d\u0435 \u043d\u0443\u0436\u043d\u043e.<\/li>\n<li>SR \u2014 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f<\/li>\n<li>Tx \u2014 \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u2014 3.3\u0412<\/li>\n<li>Rx \u2014 \u0442\u043e\u0436\u0435 3.3\u0412 (\u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0441 5\u0412, \u043d\u043e \u044f \u0431\u044b \u043d\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u043e\u0432\u0430\u043b)<\/li>\n<li>Vo \u2014 \u0432\u044b\u0445\u043e\u0434\u043d\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 3.3\u0412, \u043d\u0435 \u0431\u043e\u043b\u0435\u0435 10\u043c\u0410<\/li>\n<\/ul>\n<p>  <\/p>\n<ul>\n<li>PWM, \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043d\u0438\u043c\u0430\u044e\u0442\u0441\u044f \u0442\u0430\u043a \u2014 \u0434\u043b\u0438\u043d\u0430 \u0446\u0438\u043a\u043b\u0430 1004\u043c\u0441. \u041f\u0435\u0440\u0432\u044b\u0435 2\u043c\u0441 \u0432\u0441\u0435\u0433\u0434\u0430 HIGH, \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u2014 \u0432\u0441\u0435\u0433\u0434\u0430 LOW, \u0430 \u00ab\u0441\u0435\u0440\u0435\u0434\u0438\u043d\u0430\u00bb \u043f\u0440\u043e\u043f\u043e\u0440\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u0430 \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u0438 CO2 \u0432 \u043f\u0440\u0435\u0434\u0435\u043b\u0430\u0445 0 \u2014 5000ppm (\u0430 \u043d\u0435 2000ppm \u043a\u0430\u043a \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438).<br \/>  C<sub>ppm<\/sub> = 2000 * (T<sub>high<\/sub> \u2014 2ms)\/(T<sub>high<\/sub> + T<sub>low<\/sub> \u2014 4ms)<br \/>  \u041e\u0442\u043c\u0435\u0447\u0443, \u0447\u0442\u043e PWM \u2014 \u0448\u0442\u0443\u043a\u0430 \u043e\u0447\u0435\u043d\u044c \u043a\u0430\u043f\u0440\u0438\u0437\u043d\u0430\u044f, \u0442\u0440\u0435\u0431\u0443\u044e\u0449\u0430\u044f \u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e\u0439 \u043f\u0430\u0439\u043a\u0438 \u0438 3.3\u0412.  <\/li>\n<li>AOT \u2014 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f<\/li>\n<li>Gnd \u2014 \u0437\u0435\u043c\u043b\u044f<\/li>\n<li>Vin \u2014 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f 3.6 \u2014 5.5\u0412 (\u0441\u0435\u043d\u0441\u043e\u0440 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u0438 \u0432\u044b\u0434\u0430\u0435\u0442 \u0442\u0435 \u0436\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u043f\u0438\u0442\u0430\u043d\u0438\u0438 3.3\u0412, \u043d\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u0442\u0435\u043b\u044c \u043d\u0430\u0441\u0442\u043e\u044f\u0442\u0435\u043b\u044c\u043d\u043e \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442 \u043f\u0440\u0438\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u0442\u044c\u0441\u044f \u0440\u0430\u043c\u043e\u043a)<\/li>\n<\/ul>\n<p>  \u041d\u0435 \u0442\u043e, \u0447\u0442\u043e\u0431\u044b \u044f \u043d\u0435 \u0434\u043e\u0432\u0435\u0440\u044f\u043b PWM, \u043d\u043e \u043b\u0443\u0447\u0448\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0446\u0438\u0444\u0440\u0435 \u0438 \u0441 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439 \u0441\u0443\u043c\u043c\u043e\u0439. UART \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0443\u0440\u043e\u0432\u0435\u043d\u044c \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u0438 CO<sub>2<\/sub> \u0438 \u0437\u0430\u043d\u0438\u043c\u0430\u0442\u044c\u0441\u044f \u0434\u0432\u0443\u043c\u044f \u0432\u0438\u0434\u0430\u043c\u0438 \u043a\u0430\u043b\u0438\u0431\u0440\u043e\u0432\u043a\u0438. \u041e\u0441\u0442\u0430\u0432\u0438\u043c \u043a\u0430\u043b\u0438\u0431\u0440\u043e\u0432\u043a\u0443 \u0413\u0430\u0440\u0440\u0443\u0441\u0443 \u0438 \u0440\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u043c \u0437\u0430\u043f\u0440\u043e\u0441 \u0434\u0430\u043d\u043d\u044b\u0445. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 9600 (8 bit, stop \u2014 1, parity \u2014 none) \u043d\u0443\u0436\u043d\u043e \u043e\u0442\u043f\u0440\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0435\u0432\u044f\u0442\u044c \u0431\u0430\u0439\u0442:<br \/>   \u2022 0xFF \u2014 \u043d\u0430\u0447\u0430\u043b\u043e \u043b\u044e\u0431\u043e\u0439 \u043a\u043e\u043c\u0430\u043d\u0434\u044b<br \/>   \u2022 0x01 \u2014 \u043f\u0435\u0440\u0432\u044b\u0439 \u0441\u0435\u043d\u0441\u043e\u0440 (\u043e\u043d \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d)<br \/>   \u2022 0x86 \u2014 \u043a\u043e\u043c\u0430\u043d\u0434\u0430<br \/>   \u2022 0x00 0x00 0x00 0x00 0x00 \u2014 \u0434\u0430\u043d\u043d\u044b\u0435<br \/>   \u2022 0x79 \u2014 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430.<\/p>\n<p>  \u0412 \u043e\u0442\u0432\u0435\u0442 \u043f\u0440\u0438\u0434\u0435\u0442 \u0447\u0442\u043e-\u0442\u043e \u0442\u0430\u043a\u043e\u0435:<br \/>   \u2022 0xFF \u2014 \u043d\u0430\u0447\u0430\u043b\u043e \u043b\u044e\u0431\u043e\u0433\u043e \u043e\u0442\u0432\u0435\u0442\u0430<br \/>   \u2022 0x86 \u2014 \u043a\u043e\u043c\u0430\u043d\u0434\u0430<br \/>   \u2022 0x01, 0xC1 \u2014 \u0441\u0442\u0430\u0440\u0448\u0435\u0435 \u0438 \u043c\u043b\u0430\u0434\u0448\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (256 * 0x01 + 0xC1 = 449)<br \/>   \u2022 0x3C, 0x04, 0x3C, 0xC1 \u2014 \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441\u043a\u0430\u0437\u0430\u043d\u043e, \u0447\u0442\u043e \u0434\u043e\u043b\u0436\u043d\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0442\u0438\u043f\u0430 0x47, 0x00, 0x00, 0x00, \u043d\u043e \u043d\u0430 \u0434\u0435\u043b\u0435 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442 \u043d\u0435\u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0447\u0442\u043e.<br \/>   \u2022 0x7B \u2014 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430.<\/p>\n<p>  \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u0430\u044f \u0441\u0443\u043c\u043c\u0430 \u0441\u0447\u0438\u0442\u0430\u0435\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c: \u0431\u0435\u0440\u0443\u0442\u0441\u044f 7 \u0431\u0430\u0439\u0442 \u043e\u0442\u0432\u0435\u0442\u0430 (\u0432\u0441\u0435 \u043a\u0440\u043e\u043c\u0435 \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e), \u0441\u043a\u043b\u0430\u0434\u044b\u0432\u0430\u044e\u0442\u0441\u044f, \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u044e\u0442\u0441\u044f, \u0443\u0432\u0435\u043b\u0438\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u043d\u0430 1: 0x86 + 0x01\u2026 + 0xC1 = 0x85, 0x85 xor 0xFF = 0x7A, 0x7A + 1 = 0x7B.<\/p>\n<p>  \u0421\u043e\u0433\u043b\u0430\u0441\u043d\u043e \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u0441\u0435\u043d\u0441\u043e\u0440\u0443 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043e\u043a\u043e\u043b\u043e \u0442\u0440\u0435\u0445 \u043c\u0438\u043d\u0443\u0442, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0439\u0442\u0438 \u043d\u0430 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u0440\u0435\u0436\u0438\u043c. \u041f\u0435\u0440\u0432\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0441\u043b\u0435 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043e\u043d \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u0438\u043b\u0438 5000ppm, \u0438\u043b\u0438 400ppm. \u041f\u043e\u0441\u043b\u0435 \u043e\u0441\u043e\u0431\u043e \u0443\u0441\u0435\u0440\u0434\u043d\u043e\u0439 \u043f\u0430\u0439\u043a\u0438 \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u044c \u0432 \u0441\u0435\u0431\u044f \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0447\u0430\u0441\u043e\u0432.<\/p>\n<p>  \u0421\u0435\u043d\u0441\u043e\u0440 \u0440\u0435\u0430\u0433\u0438\u0440\u0443\u0435\u0442 \u043d\u0430 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u0438 CO<sub>2<\/sub> \u0441 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u043e\u0439 \u043e\u043a\u043e\u043b\u043e \u043c\u0438\u043d\u0443\u0442\u044b. \u041f\u0440\u0438 \u043f\u0440\u0435\u0432\u044b\u0448\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0446\u0435\u043d\u0442\u0440\u0430\u0446\u0438\u0438 \u0432 5000ppm (\u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u0432\u044b \u043c\u0438\u043d\u0443\u0442\u0443 \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e \u043d\u0430 \u043d\u0435\u0433\u043e \u0434\u044b\u0448\u0430\u043b\u0438), \u043e\u043d \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u043b\u043e\u0436\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435, \u0437\u0430\u043d\u0438\u0436\u0430\u044f \u0443\u0440\u043e\u0432\u0435\u043d\u044c CO<sub>2<\/sub> \u2014 \u044f \u0442\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0430\u043b \u0434\u0430\u0436\u0435 80ppm.<\/p>\n<p>  \u0412 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0430\u0446\u0438\u0438 \u044d\u0442\u043e \u043d\u0435 \u043e\u0442\u0440\u0430\u0436\u0435\u043d\u043e, \u043d\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u0437\u0430\u043f\u0440\u0430\u0448\u0438\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u043f\u043e UART \u0447\u0430\u0449\u0435 \u0440\u0430\u0437\u0430 \u0432 10 \u0441\u0435\u043a\u0443\u043d\u0434, \u0438\u043d\u0430\u0447\u0435 \u0441\u0435\u043d\u0441\u043e\u0440 \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u0447\u0442\u043e-\u0442\u043e \u0441\u0442\u0440\u0430\u043d\u043d\u043e\u0435.<\/p>\n<p>  \u041f\u0440\u0438\u0448\u043b\u043e \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u0440\u0442\u0438\u043d\u043e\u043a. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u043c \u0441\u0435\u043d\u0441\u043e\u0440 \u043a Arduino Uno \u0447\u0435\u0440\u0435\u0437 Software Serial, RX\/TX \u0432 A0\/A1, \u043f\u0438\u0442\u0430\u043d\u0438\u0435 \u0432 5\u0412, \u0437\u0435\u043c\u043b\u044e \u2014 \u0432 Gnd:<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/d76\/a7d\/7a6\/d76a7d7a65c446eda4f8cd04ea5b4433.jpg\"\/><\/p>\n<div class=\"spoiler\"><b class=\"spoiler_title\">\u041f\u043e\u0437\u0430\u0438\u043c\u0441\u0442\u0432\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u043a\u0435\u0442\u0447, \u0432 \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u044f \u0434\u043e\u0431\u0430\u0432\u0438\u043b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044c\u043d\u043e\u0439 \u0441\u0443\u043c\u043c\u044b<\/b><\/p>\n<div class=\"spoiler_text\">\n<pre><code class=\"cpp\">#include &lt;SoftwareSerial.h&gt;;  SoftwareSerial mySerial(A0, A1); \/\/ A0 - \u043a TX \u0441\u0435\u043d\u0441\u043e\u0440\u0430, A1 - \u043a RX  byte cmd[9] = {0xFF,0x01,0x86,0x00,0x00,0x00,0x00,0x00,0x79};  unsigned char response[9];  void setup() {   Serial.begin(9600);   mySerial.begin(9600); }  void loop()  {   mySerial.write(cmd, 9);   memset(response, 0, 9);   mySerial.readBytes(response, 9);   int i;   byte crc = 0;   for (i = 1; i &lt; 8; i++) crc+=response[i];   crc = 255 - crc;   crc++;    if ( !(response[0] == 0xFF && response[1] == 0x86 && response[8] == crc) ) {     Serial.println(&quot;CRC error: &quot; + String(crc) + &quot; \/ &quot;+ String(response[8]));   } else {     unsigned int responseHigh = (unsigned int) response[2];     unsigned int responseLow = (unsigned int) response[3];     unsigned int ppm = (256*responseHigh) + responseLow;     Serial.println(ppm);   }   delay(10000); } <\/code><\/pre>\n<p>  <\/div>\n<\/div>\n<p>  \u041a\u0430\u0436\u0434\u043e\u0435 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u0435 \u0438\u0434\u0435\u0442 \u0441 \u0438\u043d\u0442\u0435\u0440\u0432\u0430\u043b\u043e\u043c 10 \u0441\u0435\u043a\u0443\u043d\u0434. \u0417\u043d\u0430\u0447\u0435\u043d\u0438\u044f \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043b\u0438 \u043f\u0440\u044b\u0433\u0430\u0442\u044c \u043a\u043e\u0433\u0434\u0430 \u044f \u043e\u0442\u043e\u0448\u0435\u043b \u043e\u0442 \u0441\u0435\u043d\u0441\u043e\u0440\u0430.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/6ad\/9d4\/dc1\/6ad9d4dc1c18422498ae365a1fb04cd2.png\"\/><\/p>\n<p>  \u0422\u0435\u043f\u0435\u0440\u044c \u0441\u0434\u0435\u043b\u0430\u0435\u043c \u0434\u0430\u0442\u0447\u0438\u043a \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u044b\u043c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043f\u043e\u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u043e \u0441 OTG \u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0442\u0438\u043f\u0430 <a href=\"https:\/\/play.google.com\/store\/apps\/details?id=com.felhr.droidterm&amp;hl=en\">DroidTerm<\/a>.<br \/>  \u0422\u0443\u0442 \u0435\u0441\u0442\u044c \u0442\u043e\u043d\u043a\u043e\u0441\u0442\u044c: \u0447\u0442\u043e\u0431\u044b \u0441\u0432\u044f\u0437\u044c \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u0438\u043b\u0430\u0441\u044c \u2014 \u043d\u0443\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044c Arduino.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/c8b\/149\/796\/c8b149796c824abb89c0f129d36a2999.jpg\"\/><\/p>\n<p>  \u0423\u0431\u0435\u0434\u0438\u0432\u0448\u0438\u0441\u044c, \u0447\u0442\u043e \u0432\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442, \u0443\u0431\u0435\u0440\u0435\u043c Arduino, \u0437\u0430\u043c\u0435\u043d\u0438\u0432 \u0435\u0433\u043e \u043d\u0430 FTDI FT232RL.<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/8b1\/6f8\/e2d\/8b16f8e2d4884545aa66cb173181a90f.png\"\/><\/p>\n<p>  \u041f\u0438\u0442\u0430\u043d\u0438\u0435 \u043d\u0430 \u0434\u0430\u0442\u0447\u0438\u043a \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u0434\u0430\u0432\u0430\u0442\u044c \u0443\u0436\u0435 \u043f\u043e\u0441\u043b\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0447\u0442\u043e\u0431\u044b \u043d\u0435 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435\u043c.<br \/>  \u0414\u043b\u044f \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0431\u0438\u043d\u0430\u0440\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 COM-\u043f\u043e\u0440\u0442 \u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e <a href=\"http:\/\/realterm.sourceforge.net\/\">RealTerm<\/a>:<br \/>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/e61\/841\/2d6\/e618412d627f4ed5b40ec29b474246b1.png\"\/><\/p>\n<p>  \u0412\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u0441\u0442\u043e\u0438\u0442 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u0435\u043c \u0447\u0435\u0440\u0435\u0437 DTR, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0434\u0430\u0442\u0447\u0438\u043a.<\/p>\n<p>  \u041f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0441\u0441\u044b\u043b\u043a\u0438:<br \/>  <a href=\"http:\/\/eleparts.co.kr\/data\/design\/product_file\/SENSOR\/gas\/MH-Z19_CO2%20Manual%20V2.pdf\">\u041c\u0430\u043d\u0443\u0430\u043b \u043f\u043e \u0434\u0430\u0442\u0447\u0438\u043a\u0443 MH-Z19<\/a><br \/>  <a href=\"http:\/\/www.2150692.ru\/faq\/87-co2-mhz19-arduino\">\u0421\u0445\u0435\u043c\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0438 \u043a\u043e\u0434 \u0434\u043b\u044f PWM<\/a><\/p>\n<p>  \u0423 \u043c\u0435\u043d\u044f \u0432\u0441\u0435\u0433\u043e \u043e\u0434\u0438\u043d \u0434\u0430\u0442\u0447\u0438\u043a \u0438 \u044f \u043e\u0447\u0435\u043d\u044c \u043d\u0435 \u043b\u044e\u0431\u043b\u044e \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0442\u044c \u0442\u043e, \u0447\u0442\u043e \u043e\u0434\u043d\u0430\u0436\u0434\u044b \u0441\u0434\u0435\u043b\u0430\u043b, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0435\u0434\u043b\u0430\u0433\u0430\u044e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0432\u0430\u043c.        \t<\/p>\n<div class=\"polling\">\n<form action=\"\/json\/polling\/\" class=\"poll\" method=\"post\">\n<div class=\"poll_title\">\u0427\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0441 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u043c?<\/div>\n<p>  \t\t<input type=\"hidden\" name=\"post_id\" value=\"272090\"\/> \t\t<input type=\"hidden\" name=\"polling_question_id\" value=\"14570\"\/>  \t\t<\/p>\n<table class=\"answer\">\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv70298\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"70298\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv70298\">\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u044c \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443 \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0434\u0435\u0441\u043a\u0442\u043e\u043f\u043d\u043e\u0435 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u0430<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv70300\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"70300\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv70300\">\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0435\u0433\u043e \u0432 \u043f\u043e\u0433\u043e\u0434\u043d\u0443\u044e \u0441\u0442\u0430\u043d\u0446\u0438\u044e<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv70302\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"70302\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv70302\">\u0421\u0434\u0435\u043b\u0430\u0442\u044c \u0433\u0430\u0434\u0436\u0435\u0442 \u0434\u043b\u044f \u043c\u043e\u0431\u0438\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv70304\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"70304\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv70304\">\u0414\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u043a \u043d\u0435\u043c\u0443 ESP8266, \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0432 \u0432 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u0438\u0441\u0442\u0438\u0447\u043d\u044b\u0439 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442 \u0434\u043b\u044f \u00ab\u0443\u043c\u043d\u043e\u0433\u043e \u0434\u043e\u043c\u0430\u00bb.<\/label> \t\t\t\t<\/td>\n<\/tr>\n<tr>\n<td class=\"input\"> \t\t\t\t\t<input type=\"radio\" id=\"vv70306\" \t\t\t\t\t\tclass=\"radio js-field-data\" \t\t\t\t\t\tname=\"variant[]\" \t\t\t\t\t\tvalue=\"70306\" \/> \t\t\t\t<\/td>\n<td class=\"label\"> \t\t\t\t\t<label for=\"vv70306\">\u0421\u0432\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438<\/label> \t\t\t\t<\/td>\n<\/tr>\n<\/table>\n<p class=\"total\">\u041d\u0438\u043a\u0442\u043e \u0435\u0449\u0451 \u043d\u0435 \u0433\u043e\u043b\u043e\u0441\u043e\u0432\u0430\u043b. \u0412\u043e\u0437\u0434\u0435\u0440\u0436\u0430\u0432\u0448\u0438\u0445\u0441\u044f \u043d\u0435\u0442.<\/p>\n<\/p><\/form>\n<p class=\"for_users_only_msg\">\u0422\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u043c\u043e\u0433\u0443\u0442 \u0443\u0447\u0430\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0432 \u043e\u043f\u0440\u043e\u0441\u0435. <a href=\"https:\/\/geektimes.ru\/auth\/login\/\">\u0412\u043e\u0439\u0434\u0438\u0442\u0435<\/a>, \u043f\u043e\u0436\u0430\u043b\u0443\u0439\u0441\u0442\u0430.<\/p>\n<\/p><\/div>\n<div class=\"clear\"><\/div>\n<p> \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:\/\/geektimes.ru\/post\/272090\/\"> https:\/\/geektimes.ru\/post\/272090\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>       \u0412 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u043f\u0443\u043b\u044f\u0440\u043d\u044b \u0433\u0430\u0434\u0436\u0435\u0442\u044b, \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u0443\u0440\u043e\u0432\u0435\u043d\u044c CO<sub>2<\/sub>, \u0440\u0430\u0432\u043d\u043e \u043a\u0430\u043a \u0438 \u0441\u0442\u0430\u0442\u044c\u0438, \u0440\u0430\u0441\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u044e\u0449\u0438\u0435 \u043a\u0430\u043a \u043c\u043e\u043d\u0438\u0442\u043e\u0440 CO<sub>2<\/sub> \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c \u0432 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u043d\u044b\u0439 \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443 \u0434\u0430\u0442\u0447\u0438\u043a. \u042f \u0445\u043e\u0447\u0443 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u0437\u0430\u0434\u0430\u0447\u0438 \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b.<\/p>\n<p>  \u0412 \u043e\u0442\u043b\u0438\u0447\u0438\u0435 \u043e\u0442 \u0441\u0442\u0430\u0440\u044b\u0445 \u0434\u0430\u0442\u0447\u0438\u043a\u043e\u0432 CO<sub>2<\/sub>, MH-Z19 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0441\u043f\u0435\u0446\u0438\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0438\u043b\u0438 \u0432\u044b\u0441\u043e\u043a\u043e\u0439 \u043c\u043e\u0449\u043d\u043e\u0441\u0442\u0438 \u0438 \u0443\u043c\u0435\u0435\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c \u0434\u0430\u043d\u043d\u044b\u0435 \u0447\u0435\u0440\u0435\u0437 UART \u0438 PWM.<\/p>\n<p>  <img decoding=\"async\" src=\"https:\/\/habrastorage.org\/files\/614\/0af\/e10\/6140afe1056643be99c19152e6654788.png\"\/>  <\/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-275464","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275464","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=275464"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/275464\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=275464"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=275464"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=275464"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}