{"id":256617,"date":"2015-05-05T16:21:02","date_gmt":"2015-05-05T12:21:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=256617"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=256617","title":{"rendered":"\u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0438 o\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u043d\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f"},"content":{"rendered":"<p> \t\t\t\u0426\u0435\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u044b: \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0432\u0432\u043e\u0434\u0430 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0448\u0438\u0440\u043e\u043a\u043e\u043f\u043e\u043b\u043e\u0441\u043d\u044b\u0445 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432. <br \/>  \u0417\u0430\u0434\u0430\u0447\u0430 \u0440\u0430\u0431\u043e\u0442\u044b: \u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043a\u0430\u043d\u0430\u043b\u0430 \u0432\u0432\u043e\u0434\u0430, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino. <br \/>  \u041f\u0440\u0438\u0431\u043e\u0440\u044b \u0438 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438: \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 Arduino UNO, \u043f\u0430\u043a\u0435\u0442 Simulink \u041c\u0430\u0442\u041b\u0410\u0411 (R2012).<\/p>\n<h4>\u0412\u0412\u0415\u0414\u0415\u041d\u0418\u0415<\/h4>\n<p>  \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0434\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f, \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u0442\u0440\u0430\u0442. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043a \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f (\u0420\u0438\u0441. 1) \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u0435\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. <\/p>\n<p>  \u0425\u043e\u0440\u043e\u0448\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u043c\u043e\u0449\u043d\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u043c\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u041c\u0430\u0442\u041b\u0410\u0411. \u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0435\u0433\u043e \u0441\u043f\u0435\u043a\u0442\u0440 \u0432 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0448\u0438\u0440\u043e\u043a\u043e\u0439 \u043f\u043e\u043b\u043e\u0441\u0435 \u0447\u0430\u0441\u0442\u043e\u0442. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f. <\/p>\n<p>  \u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u00abArduino UNO \u2013 \u041c\u0430\u0442\u041b\u0410\u0411\u00bb \u0434\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0438\u0437\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u0442\u0430\u043a\u0442\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0435 \u041c\u0430\u0442\u041b\u0410\u0411, \u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c Arduino. \u0422\u0430\u043a\u043e\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 Simulink \u043c\u043e\u0434\u0435\u043b\u0438 \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (rtwin.tlc), \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043b\u044e\u0431\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Simulink. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/c89\/756\/fc9\/c89756fc9aa043ec8d12c57f3884482d.PNG\" alt=\"image\"\/><br \/>  \u0420\u0438\u0441. 1. \u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432. \u0414\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u043a\u0430\u043d\u0430\u043b \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c \u0438 \u0441\u0440\u0435\u0434\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f. <br \/>  <a name=\"habracut\"><\/a>   <\/p>\n<h4>\u041e\u0411\u0429\u0418\u0415 \u0421\u0412\u0415\u0414\u0415\u041d\u0418\u042f<\/h4>\n<p>  <b>\u0421\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f, \u0430\u043d\u0430\u043b\u0438\u0437\u0430, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432<\/b><br \/>  \u0412 \u044d\u0442\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0441\u0440\u0435\u0434\u0430 Simulink \u0434\u043b\u044f \u043f\u0440\u0438\u0451\u043c\u0430 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino. <\/p>\n<p>  Simulink \u2013 \u044d\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0430\u043a\u0442\u0438\u0432\u043d\u0430\u044f \u0441\u0440\u0435\u0434\u0430 \u0438 \u044f\u0437\u044b\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u043b\u044f \u0438\u043c\u0438\u0442\u0430\u0446\u0438\u043e\u043d\u043d\u043e\u0433\u043e \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0449\u0430\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0431\u043b\u043e\u043a-\u0434\u0438\u0430\u0433\u0440\u0430\u043c\u043c \u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0432. Simulink \u0438\u043d\u0442\u0435\u0433\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0430 \u0432 \u0441\u0440\u0435\u0434\u0443 MatLAB. \u0418\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0443\u0436\u0435 \u0433\u043e\u0442\u043e\u0432\u044b\u0435 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 \u0431\u043b\u043e\u043a\u043e\u0432, \u0432\u0441\u0442\u0440\u043e\u0435\u043d\u043d\u044b\u0435 \u043c\u0430\u0442\u0435\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b, \u043c\u043e\u0449\u043d\u044b\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432\u0430 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043b\u044f \u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0432\u0441\u0435\u0433\u043e \u0441\u043f\u0435\u043a\u0442\u0440\u0430 \u0437\u0430\u0434\u0430\u0447 \u043e\u0442 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438, \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043a\u043e\u0434\u0430 \u0438 \u0430\u043f\u043f\u0430\u0440\u0430\u0442\u043d\u043e\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<p>  \u0421\u043e\u0441\u0442\u0430\u0432 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Simulink \u043d\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0435 \u043f\u0430\u043a\u0435\u0442\u0430 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u201cDSP System Toolbox\u201d \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u043d\u0430 \u0420\u0438\u0441. 2.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/7e3\/e07\/bb0\/7e3e07bb08b34728b1bcacfe62b83aef.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 2. \u041f\u0440\u0438\u043c\u0435\u0440 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043f\u0430\u043a\u0435\u0442\u0430 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u044f Simulink \u0434\u043b\u044f \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0438\u0441\u0442\u0435\u043c \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432: DSP System Toolbox [1]. \u0412 \u043f\u0430\u043a\u0435\u0442\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u043d\u043e\u0432\u0435\u0439\u0448\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u044b \u0441\u043f\u0435\u043a\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u0412\u044b\u0434\u0435\u043b\u0435\u043d\u043e \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0435 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 Power Spectrum Estimation \u2014 \u0431\u043b\u043e\u043a\u0438 \u0434\u043b\u044f \u0441\u043f\u0435\u043a\u0442\u0440\u0430\u043b\u044c\u043d\u043e\u0439 \u043e\u0446\u0435\u043d\u043a\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u0430.<\/p>\n<p>  <b>\u041f\u043e\u0442\u043e\u043a\u043e\u0432\u0430\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445<\/b> <br \/>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0434\u0432\u0443\u0445 \u0431\u0443\u0444\u0435\u0440\u043e\u0432 \u0434\u043b\u044f \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u043e\u0432\u0430\u0442\u044c \u0431\u0435\u0437 \u0440\u0430\u0437\u0440\u044b\u0432\u043e\u0432 \u0441\u0431\u043e\u0440, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0443 \u0438 \u0432\u0438\u0437\u0443\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e \u0434\u0430\u043d\u043d\u044b\u0445 (\u0434\u043b\u044f \u0438\u0437\u0431\u0435\u0436\u0430\u043d\u0438\u044f \u043f\u043e\u0442\u0435\u0440\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0431\u044b\u0442\u044c \u043d\u0435 \u043d\u0438\u0436\u0435 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0435\u0433\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441\u0430).<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f \u0442\u0430\u043a\u043e\u0439 \u043e\u0440\u0433\u0430\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043c\u043e\u0434\u0443\u043b\u044c E14-440 [2] \u0434\u043b\u044f \u043c\u043d\u043e\u0433\u043e\u043a\u0430\u043d\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430, \u0432\u044b\u0432\u043e\u0434\u0430 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0439 \u0438 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u043c\u044b\u0439 \u043a \u043a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u0443 \u0447\u0435\u0440\u0435\u0437 \u0448\u0438\u043d\u0443 USB.<\/p>\n<p>  \u0412\u0445\u043e\u0434\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u0437\u0430\u043d\u043e\u0441\u044f\u0442\u0441\u044f \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u043a\u0443 FIFO \u0431\u0443\u0444\u0435\u0440\u0430 \u0410\u0426\u041f. \u041f\u043e\u0441\u043b\u0435 \u0435\u0435 \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0430\u0447\u0438\u043d\u0430\u044e\u0442 \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u0432 PC, \u0432 \u0442\u043e\u0436\u0435 \u0432\u0440\u0435\u043c\u044f \u043d\u0435 \u043f\u0440\u0435\u043a\u0440\u0430\u0449\u0430\u0435\u0442\u0441\u044f \u0441\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e \u0432\u0442\u043e\u0440\u0443\u044e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u043a\u0443 FIFO \u0431\u0443\u0444\u0435\u0440\u0430. \u041f\u043e\u0441\u043b\u0435 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432\u043e \u0432\u0442\u043e\u0440\u043e\u0439 \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u043a\u0435 FIFO \u0431\u0443\u0444\u0435\u0440\u0430 \u043e\u043f\u044f\u0442\u044c \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 PC \u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0434\u043e\u043b\u0436\u0430\u0435\u0442\u0441\u044f \u0441\u0431\u043e\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0443\u0436\u0435 \u0432 \u043f\u0435\u0440\u0432\u0443\u044e \u043f\u043e\u043b\u043e\u0432\u0438\u043d\u043a\u0443. <\/p>\n<h4>\u041f\u041e\u0421\u0422\u0420\u041e\u0415\u041d\u0418\u0415 \u041e\u0421\u0426\u0418\u041b\u041b\u041e\u0413\u0420\u0410\u0424\u0410 \u041d\u0410 \u0411\u0410\u0417\u0415 \u041a\u041e\u041d\u0422\u0420\u041e\u041b\u041b\u0415\u0420\u0410 ARDUINO<\/h4>\n<p>  <b>\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0410\u0426\u041f<\/b><br \/>  \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u0432\u044b\u0432\u043e\u0434 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043d\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440 \u0440\u0435\u0434\u0430\u043a\u0442\u043e\u0440\u0430 Arduino \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 (57600 \u0431\u0438\u0442\/\u0441) \u043d\u0430\u043f\u0438\u0448\u0435\u043c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u043f\u043e\u0434\u0441\u0447\u0435\u0442\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0439 \u0410\u0426\u041f \u0437\u0430 \u0444\u0438\u043a\u0441\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043f\u0435\u0440\u0438\u043e\u0434. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/4dc\/ccf\/571\/4dcccf57160f445db46036c63871530c.PNG\" alt=\"image\"\/> <\/p>\n<p>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f:<\/p>\n<p>  const int adc_5 = A5; \/\/ ADC port number <br \/>  unsigned long time_start; \/\/ Start of capturing, ms<br \/>  unsigned long time_end; \/\/ End of capturing, ms<\/p>\n<p>  void setup() {<br \/>   Serial.begin (57600); \/\/ 9600, 19200, 38400, 57600 and 115200 bit\/s<br \/>  }<\/p>\n<p>  void loop(){ <br \/>   time_start = millis(); <br \/>   for (int i = 0; i &lt; 1024; i++) {<br \/>   int val = analogRead(adc_5);<br \/>   }<br \/>   time_end = millis(); <br \/>   int period = time_end \u2014 time_start;<br \/>   Serial.println(period);<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/3fd\/edd\/17a\/3fdedd17a8e24363be2b95f5738e6708.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 3. \u0412\u0440\u0435\u043c\u044f (\u0432 \u043c\u0441\u0435\u043a) 1024 \u0438 512 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0439 \u0410\u0426\u041f. \u0421\u0440\u0435\u0434\u043d\u0435\u0435 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f: 0.1123 \u043c\u0441 (\u043a\u0430\u043a 115\/1024).<\/p>\n<p>  <b>\u0412\u0440\u0435\u043c\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0410\u0426\u041f<\/b><br \/>  \u0414\u043b\u044f \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 10 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0410\u0426\u041f \u0432 8 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0444\u0443\u043d\u043a\u0446\u0438\u044f <br \/>  map(val, 0, 1023, 0, 255);<br \/>  \u0433\u0434\u0435 val \u2013 int \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f c 10 \u0437\u043d\u0430\u0447\u0438\u043c\u044b\u043c\u0438 \u0440\u0430\u0437\u0440\u044f\u0434\u0430\u043c\u0438. <br \/>  \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f \u0441 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432: <\/p>\n<p>  const int adc_5 = A5; \/\/ ADC port number <br \/>  unsigned long time_start; \/\/ Start of capturing, ms<br \/>  unsigned long time_end; \/\/ End of capturing, ms<br \/>  byte adc_bytes[1024]; \/\/ Buffer for ADC data<\/p>\n<p>  void setup() {<br \/>   Serial.begin (57600); \/\/ bit\/s<br \/>  }<\/p>\n<p>  void loop(){ <br \/>   time_start = millis(); <br \/>   for (int i = 0; i &lt; 1024; i++) {<br \/>   int val = analogRead(adc_5);<br \/>   adc_bytes[i] = map(val, 0, 1023, 0, 255); <br \/>   }<br \/>   time_end = millis(); <br \/>   int period = time_end \u2014 time_start;<br \/>   Serial.println(period);<br \/>  }<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/48f\/798\/94b\/48f79894b9904d74bcacdea693e74b8a.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 4. \u0412\u0440\u0435\u043c\u044f (\u0432 \u043c\u0441\u0435\u043a) 1024 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0439 \u0410\u0426\u041f, \u043f\u0435\u0440\u0435\u0432\u043e\u0434\u0430 10 \u0440. \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 8 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0435 \u0438 \u0437\u0430\u043f\u0438\u0441\u044c \u0432 \u043c\u0430\u0441\u0441\u0438\u0432. \u041f\u0435\u0440\u0438\u043e\u0434 \u0410\u0426\u041f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0441 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c: 0.1611 \u043c\u0441 (\u043a\u0430\u043a 165\/1024).<\/p>\n<p>  \u041f\u043e\u0441\u043a\u043e\u043b\u044c\u043a\u0443 \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f 0.13 \u043c\u0441, \u0442\u043e \u043e\u0434\u0438\u043d \u043f\u0435\u0440\u0435\u0432\u043e\u0434 10 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0431\u0430\u0439\u0442\u043e\u0432\u044b\u0439 \u0444\u043e\u0440\u043c\u0430\u0442 (\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435) \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 0.0424 \u043c\u0441. <\/p>\n<p>  <b>\u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c \u043a\u0430\u043d\u0430\u043b\u0430 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 <\/b><br \/>  \u0414\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043f\u043e\u0431\u0430\u0439\u0442\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0432 \u0446\u0438\u043a\u043b\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u043a\u043e\u0434 \u0441\u0438\u043c\u0432\u043e\u043b\u0430 Serial.write(1) \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043d\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u043d\u0430 \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0435.<\/p>\n<p>  \u041e\u0441\u043d\u043e\u0432\u043d\u043e\u0439 \u0431\u043b\u043e\u043a \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438:<\/p>\n<p>  void loop(){ \/\/Do stuff here <br \/>   unsigned long time = millis(); <br \/>   Serial.write(1);<br \/>   rate = rate + 1;<br \/>   if (time &gt; set_time) {<br \/>   set_time = set_time + 30; \/\/ 30 ms RT clock <br \/>   Serial.println(rate);<br \/>   rate = 0;<br \/>   } <br \/>  }<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/b35\/dba\/f39\/b35dbaf39fa64023bbb358b2ca61ebf5.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 5. \u0422\u0435\u0441\u0442\u043e\u0432\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435: \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u043d\u043d\u044b\u0445 \u0431\u0430\u0439\u0442 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b \u0437\u0430 30 \u043c\u0441 \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 57600 \u0431\u0438\u0442\/\u0441. <br \/>  \u0422\u0435\u0441\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u043b, \u0447\u0442\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 173 \u0431\u0430\u0439\u0442 \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 30 \u043c\u0441, \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0437\u0430 30 \u043c\u0441 \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 57600 \u0431\u0438\u0442\/\u0441 \u043c\u043e\u0436\u043d\u043e \u043f\u0435\u0440\u0435\u0434\u0430\u0442\u044c 1728 \u0431\u0438\u0442. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u043d\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0443 \u043e\u0434\u043d\u043e\u0433\u043e \u0431\u0430\u0439\u0442\u0430 \u0440\u0430\u0441\u0445\u043e\u0434\u0443\u0435\u0442\u0441\u044f \u0432\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 10 \u0431\u0438\u0442. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u044d\u0442\u043e \u043e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0434\u043b\u044f \u0440\u0435\u0436\u0438\u043c\u0430 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438<br \/>  \u2022 Data bits: 8<br \/>  \u2022 Parity: none<br \/>  \u2022 Stop bits: 1<br \/>  \u2022 Flow control: none <br \/>  \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0434\u0441\u0447\u0438\u0442\u0430\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0445 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044f\u0445. <br \/>  \u041f\u0435\u0440\u0435\u0434\u0430\u0447\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 256 \u0431\u0430\u0439\u0442 \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 9600 \u0431\u043e\u0434 (\u0431\u0438\u0442\/c) \u0437\u0430\u043d\u0438\u043c\u0430\u0435\u0442 267 \u043c\u0441, \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 57600 \u0431\u043e\u0434 \u2013 44 \u043c\u0441; \u0438 \u043d\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 115200 \u0431\u043e\u0434 \u2013 22 \u043c\u0441 (\u043a\u0430\u043a 256*10\/115200).<\/p>\n<p>  <b>\u0420\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0434\u043b\u044f \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445<\/b><br \/>  \u0420\u0430\u0437\u043c\u0435\u0440 \u043e\u043f\u0435\u0440\u0430\u0442\u0438\u0432\u043d\u043e\u0439 (SRAM) \u043f\u0430\u043c\u044f\u0442\u0438 Arduino UNO \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 2 \u041a\u0431\u0430\u0439\u0442. \u0422\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f 10 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e 8 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0445, \u0442\u0430\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u043e\u0431\u0430\u0439\u0442\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043a\u0430\u0437\u0430\u043b\u043e, \u0447\u0442\u043e \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0434\u043b\u044f \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0438 \u043e\u0442\u043f\u0440\u0430\u0432\u043a\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0435 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0435\u0432\u044b\u0448\u0430\u0442\u044c 1800 \u0431\u0430\u0439\u0442. <\/p>\n<p>  \u0411\u043e\u043b\u0435\u0435 \u0441\u043b\u043e\u0436\u043d\u044b\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043c\u043e\u0433\u0443\u0442 \u043f\u043e\u0442\u0440\u0435\u0431\u043e\u0432\u0430\u0442\u044c \u0438 \u0431\u043e\u043b\u044c\u0448\u0435\u0439 \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438 SRAM. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043c\u0430\u0441\u0441\u0438\u0432 \u0434\u043b\u044f \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0410\u0426\u041f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d 1024 \u0431\u0430\u0439\u0442\u0430\u043c\u0438 \u0438\u043b\u0438 512 \u0441\u043b\u043e\u0432\u0430\u043c\u0438. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/216\/d2e\/adb\/216d2eadb5c647a29e572f2ed11a4895.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 6. \u041a\u0443\u0441\u043e\u043a \u043f\u0440\u043e\u0432\u043e\u0434\u0430, \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0435\u043d\u043d\u044b\u0439 \u043a \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u043c\u0443 \u0432\u0445\u043e\u0434\u0443 \u04105 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino \u0434\u043b\u044f \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0435\u043c\u043e\u0439 \u043d\u0430\u0432\u043e\u0434\u043a\u0438 \u0441\u0435\u0442\u0438 50 \u0413\u0446. <\/p>\n<p>  <b>\u0422\u0430\u0431\u043b\u0438\u0446\u0430 1<\/b>. \u0412\u0440\u0435\u043c\u0435\u043d\u0430 \u043e\u043f\u0435\u0440\u0430\u0446\u0438\u0439 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u043d\u0435\u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0446\u0438\u043a\u043b\u043e\u0432 <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/d34\/f76\/0f8\/d34f760f886b4404b4dbb0f1b36111f9.PNG\" alt=\"image\"\/> <\/p>\n<p>  <b>\u041f\u0440\u0438\u043c\u0435\u0440 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043a\u0430\u043d\u0430\u043b\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f 256 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0410\u0426\u041f \u043f\u0440\u0438 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445. <\/b><br \/>  \u041a\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino: <br \/>  const int adc_5 = A5; \/\/ ADC port number <br \/>  unsigned long set_time; \/\/ Time of next clock <br \/>  byte adc_bytes[256]; \/\/ Buffer for scaled ADC data<\/p>\n<p>  void setup() {<br \/>   Serial.begin (115200); \/\/ bit\/s<br \/>  }<\/p>\n<p>  void loop(){ <br \/>   unsigned long time = millis(); \/\/ Current time in ms<\/p>\n<p>  \/\/ ADC data capturing<br \/>   for (int i = 0; i &lt; 256; i++) {<br \/>   int val = analogRead(adc_5);<br \/>   adc_bytes[i] = map(val, 0, 1023, 0, 255);<br \/>   } <\/p>\n<p>  \/\/ send ADC data into serial port<br \/>   Serial.print(\u00abA\u00bb); \/\/ \u00abA\u00bb is header <br \/>   for (int i = 0; i &lt; 256; i++) {<br \/>   Serial.write(adc_bytes[i]);<br \/>   } <\/p>\n<p>  if (time &gt; set_time) { <br \/>   set_time = set_time + 70; \/\/ RT clock is 70 ms<br \/>   } <br \/>  }<br \/>  <habracut\/><br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/a16\/617\/701\/a16617701caf4ce9aa858f9ca4d1470e.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 7. \u041e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043d\u043e\u043c\u0435\u0440\u0430 \u043f\u043e\u0440\u0442\u0430 \u0430 \u0441\u0440\u0435\u0434\u0435 Arduino.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/a69\/bcf\/bbe\/a69bcfbbe8a845828b7a7dc00a4c7ea6.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 8. Simulink \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u043f\u0440\u0438\u0451\u043c\u0430 \u0410\u0426\u041f \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438, \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043f\u043e\u0442\u043e\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043f\u0430\u043c\u044f\u0442\u0438 workspace. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/899\/2a4\/0ba\/8992a40ba48c496cbd77762fc82d198f.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 9. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b COM \u043f\u043e\u0440\u0442\u0430 \u0432 \u0441\u0440\u0435\u0434\u0435 Simulink (\u0431\u043b\u043e\u043a \u043c\u043e\u0434\u0435\u043b\u0438: Serial Configuration)<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/fc7\/b5c\/a8b\/fc7b5ca8b679454cba40c5d79a6c4d8c.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 10. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0431\u043b\u043e\u043a\u043e\u0432 Simulink \u043c\u043e\u0434\u0435\u043b\u0438 \u0438 \u0440\u0435\u0436\u0438\u043c\u0430 \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/p>\n<p>  \u041c\u043e\u0434\u0435\u043b\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442\u0441\u044f \u043d\u0430\u0436\u0430\u0442\u0438\u0435\u043c \u043d\u0430 \u043a\u043d\u043e\u043f\u043a\u0443 Start simulation: <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/066\/121\/b5c\/066121b5cb9c47e1a34ca91db04e13bf.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 11. \u041a\u043d\u043e\u043f\u043a\u0430 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043c\u043e\u0434\u0435\u043b\u0438. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/2c7\/2cd\/084\/2c72cd08485244ee8636a40d07fed3d2.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 12. \u0412\u0438\u0434 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043d\u0430\u0432\u043e\u0434\u043a\u0438 (\u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u043e \u043d\u0430 \u0420\u0438\u0441. 6) \u0441 \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u0438\u0435\u043c \u043a\u0430\u0434\u0440\u043e\u0432 (\u043b\u0435\u0432\u043e\u0435 \u043e\u043a\u043d\u043e) \u0438 \u0432 \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u043e\u043c \u043a\u0430\u0434\u0440\u0435 (\u043f\u0440\u0430\u0432\u043e\u0435 \u043e\u043a\u043d\u043e). \u041f\u0440\u0438\u0447\u0438\u043d\u0430 \u0441\u043c\u0435\u0449\u0435\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043f\u0440\u0438 \u043d\u0430\u043b\u043e\u0436\u0435\u043d\u0438\u0438 \u043a\u0430\u0434\u0440\u043e\u0432 \u2013 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0435 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f. \u041f\u0440\u0438\u043c\u0435\u0447\u0430\u043d\u0438\u0435: Simulink \u0438\u043c\u0435\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u043a\u0430\u043d\u0430\u043b\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<h4>\u041f\u0420\u0418\u041c\u0415\u0420\u042b \u041f\u041e\u041b\u0423\u0427\u0415\u041d\u0418\u042f \u041f\u0420\u041e\u0412\u0415\u0420\u0415\u041d\u041d\u042b\u0425 \u0420\u0415\u0417\u0423\u041b\u042c\u0422\u0410\u0422\u041e\u0412 \u0418 \u0412\u0410\u0420\u0418\u0410\u041d\u0422\u042b \u0414\u041b\u042f \u0421\u0410\u041c\u041e\u041a\u041e\u041d\u0422\u0420\u041e\u041b\u042f<\/h4>\n<p>  <b>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 1<\/b>. \u041d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u043e\u0442\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 (\u0441\u043c. \u043f\u0440\u0438\u043c\u0435\u0440 \u0438 \u0442\u0430\u0431\u043b\u0438\u0446\u0443 \u0432\u0440\u0435\u043c\u0451\u043d \u043d\u0430 \u0441\u0442\u0440. 8).<br \/>  1. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino UNO \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0410\u0426\u041f, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f, \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 1024 \u0431\u0430\u0439\u0442 \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e. \u0421\u0438\u043c\u0432\u043e\u043b A \u2013 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u043f\u0435\u0440\u0435\u0434\u0430\u0432\u0430\u0435\u043c\u043e\u0433\u043e \u043c\u0430\u0441\u0441\u0438\u0432\u0430. <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b:<\/p>\n<p>  const int adc_5 = A5; \/\/ ADC port number <br \/>  unsigned long set_time; \/\/ Time of next clock <br \/>  byte adc_bytes[1024]; \/\/ Buffer for ADC data<\/p>\n<p>  void setup() {<br \/>   Serial.begin (115200); \/\/ bit\/s<br \/>  }<\/p>\n<p>  void loop(){ <br \/>   unsigned long time = millis(); \/\/ Current time in ms <\/p>\n<p>  \/\/ ADC data capturing<br \/>   for (int i = 0; i &lt; 1024; i++) {<br \/>   int val = analogRead(adc_5);<br \/>   adc_bytes[i] = map(val, 0, 1023, 0, 255);<br \/>   } <\/p>\n<p>  \/\/ send ADC data into serial port<br \/>   Serial.print(\u00abA\u00bb); \/\/ \u00abA\u00bb is header <br \/>   for (int i = 0; i &lt; 1024; i++) {<br \/>   Serial.write(adc_bytes[i]);<br \/>   } <\/p>\n<p>  if (time &gt; set_time) { <br \/>   set_time = set_time + 270; \/\/ RT clock is 270 ms<br \/>   } <br \/>  }<\/p>\n<p>  2. \u0412 \u0441\u0440\u0435\u0434\u0435 \u041c\u0430\u0442\u041b\u0410\u0411 \u0441\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0438\u0437 Simulink \u0431\u043b\u043e\u043a\u043e\u0432 \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u0430 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c, \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0430\u043a\u0435\u0442\u0430, \u043f\u0435\u0440\u0438\u043e\u0434 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0438 \u0442\u0430\u043a\u0442 \u0440\u0430\u0431\u043e\u0442\u044b \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u041e\u0442\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0439\u0442\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/105\/d76\/919\/105d7691970d43a680586dd7996ef630.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 13. Simulink \u043c\u043e\u0434\u0435\u043b\u044c \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435: 115200 \u0431\u043e\u0434. \u041e\u0431\u044a\u0435\u0434\u0438\u043d\u0435\u043d\u0438\u0435 \u0432\u0435\u043a\u0442\u043e\u0440\u043e\u0432 (Vector Concatenate) \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043f\u043e \u0448\u043a\u0430\u043b\u0435 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043a\u0430\u0434\u0440\u0430 (frame).<\/p>\n<p>  3. \u041f\u0440\u043e\u0432\u0435\u0440\u044c\u0442\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u00ab\u0412\u0445\u043e\u0434 \u0410\u0426\u041f \u2013 \u0434\u0438\u0441\u043f\u043b\u0435\u0439 \u041c\u0430\u0442\u041b\u0410\u0411\u00bb, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0443 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 50 \u0413\u0446 \u043d\u0430\u0432\u043e\u0434\u043a\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u0410\u0426\u041f. \u0414\u043b\u044f \u0443\u0432\u0435\u043b\u0438\u0447\u0435\u043d\u0438\u044f \u0430\u043c\u043f\u043b\u0438\u0442\u0443\u0434\u044b \u043d\u0430\u0432\u043e\u0434\u043a\u0438 \u043a\u043e \u0432\u0445\u043e\u0434\u0443 \u0410\u0426\u041f \u043f\u043e\u0434\u0441\u043e\u0435\u0434\u0438\u043d\u0438\u0442\u0435 \u043a\u0443\u0441\u043e\u043a \u043f\u0440\u043e\u0432\u043e\u0434\u0430 (\u0441\u043c. \u0420\u0438\u0441. 6). \u0410\u043c\u043f\u043b\u0438\u0442\u0443\u0434\u0430 \u043d\u0430\u0432\u043e\u0434\u043a\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u0440\u0430\u0441\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u043f\u0440\u043e\u0432\u043e\u0434\u043e\u043c \u0438 \u0432\u0430\u0448\u0435\u0439 \u0440\u0443\u043a\u043e\u0439. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/0dc\/3fd\/c36\/0dc3fdc36a6643aea7ed9a40359e1501.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 14. \u041d\u0430\u043b\u043e\u0436\u0435\u043d\u0438\u0435 4 \u043a\u0430\u0434\u0440\u043e\u0432 \u043f\u0440\u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0447\u0430\u0441\u0442\u043e\u0442\u044b 50\u0413\u0446 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u0410\u0426\u041f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/ab6\/f5d\/642\/ab6f5d64202e44bd808439b27f502053.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 15. \u0427\u0430\u0441\u0442\u043e\u0442\u0430 \u0441\u0435\u0442\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u0410\u0426\u041f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430, 4 \u043a\u0430\u0434\u0440. <\/p>\n<p>  <b>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 2<\/b>. \u041d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u0435, \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 10 \u0440\u0430\u0437\u0440\u044f\u0434\u043d\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0410\u0426\u041f. <br \/>  1. \u0414\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino UNO \u043d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0410\u0426\u041f, \u0437\u0430\u043f\u0438\u0441\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u043c\u0430\u0441\u0441\u0438\u0432 512 \u0441\u043b\u043e\u0432 \u0438 \u043f\u043e\u0431\u0430\u0439\u0442\u043d\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0442\u044c\u0441\u044f \u0441 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b:<\/p>\n<p>  const int adc_5 = A5; \/\/ ADC port number <br \/>  unsigned long set_time; \/\/ Time of next clock in ms<br \/>  word adc_int[512]; \/\/ Buffer for ADC data<br \/>  int val;<br \/>  byte val_Lo, val_Hi;<\/p>\n<p>  void setup() {<br \/>   Serial.begin (115200); \/\/ bit\/s<br \/>  }<\/p>\n<p>  void loop(){ <br \/>   unsigned long time = millis(); <\/p>\n<p>  \/\/ ADC data capturing<br \/>   for (int i = 0; i &lt; 512; i++) {<br \/>   adc_int[i] = analogRead(adc_5);<br \/>   } <\/p>\n<p>  \/\/ send ADC data into serial port <br \/>   \/\/ first low bytes then high bytes<br \/>   Serial.print(\u00abA\u00bb); \/\/ \u00abA\u00bb is header <br \/>   for (int i = 0; i &lt; 512; i++) {<br \/>   val = adc_int[i];<br \/>   val_Lo = (val &lt;&lt; 1) &#038; 0xFE; <br \/>   Serial.write(val_Lo); \/\/ Lo byte<br \/>   } <br \/>   for (int i = 0; i &lt; 512; i++) {<br \/>   val = adc_int[i];<br \/>   val_Hi = (val &gt;&gt; 6) &#038; 0xE; <br \/>   Serial.write(val_Hi); \/\/ Hi byte<br \/>   } <\/p>\n<p>   if (time &gt; set_time) { <br \/>   set_time = set_time + 160; \/\/ RT clock is 160 ms<br \/>   } <br \/>  }<\/p>\n<p>  2. \u0421\u043e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 Simulink \u0434\u043b\u044f \u043f\u0440\u0438\u0435\u043c\u0430 \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0410\u0426\u041f \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u0421\u043a\u043e\u0440\u043e\u0441\u0442\u044c, \u0440\u0430\u0437\u043c\u0435\u0440 \u043f\u0430\u043a\u0435\u0442\u0430 \u0438 \u043f\u0435\u0440\u0438\u043e\u0434 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445 \u0434\u043e\u043b\u0436\u043d\u044b \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u043e\u0432\u0430\u0442\u044c \u0441\u043e\u043e\u0442\u0432\u0435\u0442\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u043c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u043c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u041e\u0442\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0439\u0442\u0435 \u0432\u0440\u0435\u043c\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u0445 \u0434\u0430\u043d\u043d\u044b\u0445. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/f5d\/61b\/bc0\/f5d61bbc082443a3b94637e57d606c42.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 16. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 Simulink \u0434\u043b\u044f \u043f\u0440\u0438\u0451\u043c\u0430, \u0432\u043e\u0441\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0434\u0430\u043d\u043d\u044b\u0445 \u0410\u0426\u041f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino UNO. <br \/>  3. \u0417\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0441\u0435\u0442\u0435\u0432\u044b\u0435 50 \u0413\u0446 \u043d\u0430\u0432\u043e\u0434\u043a\u0438.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/051\/c04\/5e3\/051c045e319b4fe8b4773a4a53bfe607.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 17. \u041d\u0430\u043b\u043e\u0436\u0435\u043d\u0438\u0435 15 \u043a\u0430\u0434\u0440\u043e\u0432 \u043f\u0440\u0438 \u0441\u043a\u0430\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0438 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043d\u0430\u0432\u043e\u0434\u043a\u0438 50\u0413\u0446 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u0410\u0426\u041f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. \u041f\u0435\u0440\u0438\u043e\u0434 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b: 160 \u043c\u0441. \u0412\u0440\u0435\u043c\u044f \u0437\u0430\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u043c\u0430\u0441\u0441\u0438\u0432\u0430 \u0434\u0430\u043d\u043d\u044b\u043c\u0438 \u0410\u0426\u041f: 58 \u043c\u0441. \u0412\u0440\u0435\u043c\u044f \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 512\u04452 \u0431\u0430\u0439\u0442 \u043d\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 115200 \u0431\u043e\u0434: 89 \u043c\u0441. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/04b\/963\/ac0\/04b963ac0015427a861d48fbf2ee9b5c.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 18. \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 15 \u043a\u0430\u0434\u0440. \u0412\u0440\u0435\u043c\u044f 3.5 \u0446\u0438\u043a\u043b\u043e\u0432 50 \u0413\u0446 \u0441\u0438\u0433\u043d\u0430\u043b\u0430: 70 \u043c\u0441.<\/p>\n<p>  <b>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 3<\/b>. \u041e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 m-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043e\u0439 \u041c\u0430\u0442\u041b\u0410\u0411<br \/>  1. \u0421\u043e\u0445\u0440\u0430\u043d\u0438\u0442\u0435 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u044b\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 workspace \u043f\u0430\u043c\u044f\u0442\u0438 \u041c\u0430\u0442\u041b\u0410\u0411, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0431\u043b\u043e\u043a\u0430 simout (\u0441\u043c. \u0420\u0438\u0441. 13). <br \/>  2. \u0421\u043a\u043e\u043f\u0438\u0440\u0443\u0439\u0442\u0435 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u0432 \u0440\u0430\u0431\u043e\u0447\u0438\u0439 \u043a\u0430\u0442\u0430\u043b\u043e\u0433, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440: <br \/>   save(&#8216;simout_50Hz&#8217;,&#8217;simout&#8217;);<br \/>  3. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0439\u0442\u0435 m-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u041c\u0430\u0442\u041b\u0410\u0411 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0430\u0440\u0445\u0438\u0432\u043d\u043e\u0433\u043e \u0410\u0426\u041f \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430:<\/p>\n<p>  clear all<br \/>  load(&#8216;simout_50Hz&#8217;);<\/p>\n<p>  d_frame = simout.Time(2)-simout.Time(1);<br \/>  size_frame = size(simout.Data,1);<br \/>  sampling = d_frame\/(size_frame + 163*4); % dt<br \/>  data_size = size(simout.Data,1)*size(simout.Data,2)*size(simout.Data,3); <\/p>\n<p>  % time = (0:data_size-1)*sampling;<br \/>  time = [];<br \/>  for i = 1:length(simout.Time)<br \/>   time = [time (0:1023)*sampling+simout.Time(i)];<br \/>  end<\/p>\n<p>  adc = uint8([]);<br \/>  for i = 1:size(simout.Data,3)<br \/>   adc = [adc simout.Data(:,:,i)&#8217;]; <br \/>  end<\/p>\n<p>  % frame_num = length(simout.Time) % or size(adc,3) % is 54 frame<\/p>\n<p>  if 1 % <br \/>   figure <br \/>   plot(time, adc, &#8216;b&#8217;)<br \/>   grid on<br \/>   xlabel(&#8216;Time, s&#8217;); <br \/>   ylabel(&#8216;ADC [0\u2026 255], bit&#8217;);<br \/>   title(&#8216;8 bit ADC frame against Time&#8217;);<br \/>  end<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/bab\/2d9\/36e\/bab2d936eb6f42f6a7bda55ae614cf06.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 19. \u041f\u043e\u043a\u0430\u0434\u0440\u043e\u0432\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 50 \u0413\u0446 \u043d\u0430\u0432\u043e\u0434\u043a\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u0410\u0426\u041f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino UNO: 24 \u043a\u0430\u0434\u0440\u0430 \u043f\u043e 0.27 \u0441\u0435\u043a. <\/p>\n<p>  4. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u0439\u0442\u0435 m-\u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0434\u043b\u044f \u0432\u044b\u0447\u0438\u0441\u043b\u0435\u043d\u0438\u044f \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0441\u0438\u0433\u043d\u0430\u043b\u0430, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043f\u0435\u0440\u0438\u043e\u0434\u0430 \u0432 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u043c \u043a\u0430\u0434\u0440\u0435. <\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430:<\/p>\n<p>  clear all<br \/>  load(&#8216;simout_50Hz&#8217;);<\/p>\n<p>  d_frame = simout.Time(2)-simout.Time(1);<br \/>  sampling = d_frame\/((256 + 176)*4); % dt<br \/>  data_size = size(simout.Data,1)*size(simout.Data,2)*size(simout.Data,3); % &lt;256 x 1 x 54&gt;<\/p>\n<p>  %FRAME number <br \/>  i = 5;<br \/>  time = (0:1023)*sampling+simout.Time(i);<br \/>  adc = simout.Data(:,:,i)&#8217;; <br \/>  if 1 % <br \/>   figure <br \/>   plot(time, adc, &#8216;b&#8217;)<br \/>   grid on<br \/>   xlabel(&#8216;Time, s&#8217;); <br \/>   ylabel(&#8216;ADC [0\u2026 255], bit&#8217;);<br \/>   title(&#8216;8 bit ADC frame against Time&#8217;);<br \/>  end<br \/>  % period<br \/>  comp_level = 60;<br \/>  j = 1;<br \/>  for i = 2:length(adc)<br \/>   if (adc(i) &gt;= comp_level) &#038;&#038; (adc(i-1) &lt; comp_level)<br \/>   cell_num(j) = i;<br \/>   j = j + 1;<br \/>   end<br \/>  end<br \/>  s_period = diff(time(cell_num));<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/b56\/2e5\/f8f\/b562e5f8fd814c6197f6a0e62594efda.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 20. \u041d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u0435 \u0438 \u043f\u043e\u0442\u043e\u0447\u0435\u0447\u043d\u043e\u0435 \u0438\u0437\u043c\u0435\u043d\u0435\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0432 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u043c \u043a\u0430\u0434\u0440\u0435. \u0412\u0440\u0435\u043c\u044f 5 \u043a\u0430\u0434\u0440\u0430: 1.08\u2026 1.24 \u0441\u0435\u043a. \u0420\u0430\u0437\u043c\u0435\u0440 \u0432\u0435\u043a\u0442\u043e\u0440\u0430: 1024 \u0431\u0430\u0439\u0442. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e \u0432\u0440\u0435\u043c\u044f \u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u0438 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0410\u0426\u041f: 0.156 \u043c\u0441.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/84e\/44b\/88d\/84e44b88de6846f1b0fbb2d66e45b8aa.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 21. \u041f\u0435\u0440\u0438\u043e\u0434 \u043d\u0430\u0432\u043e\u0434\u043a\u0438 \u0441\u0435\u0442\u0438 5 \u043a\u0430\u0434\u0440\u0430: 19.2\u2026 19.4 \u043c\u0441\u0435\u043a.<\/p>\n<p>  <b>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 4<\/b>. \u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0441\u043f\u0435\u043a\u0442\u0440\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. <br \/>  1. \u0414\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u043d\u043e\u0433\u043e \u0441\u043f\u0435\u043a\u0442\u0440\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u043e\u043c\u0443 \u0441\u0438\u0433\u043d\u0430\u043b\u0443 \u043c\u043e\u0434\u0435\u043b\u0438 \u0431\u043b\u043e\u043a \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0424\u0443\u0440\u044c\u0435 (Spectrum Scope: FFT) \u0438\u0437 \u0440\u0430\u0437\u0434\u0435\u043b\u0430 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Simulink &gt; DSP System Toolbox &gt; Sinks.<\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/6ef\/b35\/9d7\/6efb359d743244038fac88518a35481d.PNG\" alt=\"image\"\/><br \/>  \u0420\u0438\u0441. 22. \u041c\u043e\u0434\u0435\u043b\u044c \u0441\u043e \u0441\u043f\u0435\u043a\u0442\u0440\u043e\u0441\u043a\u043e\u043f\u043e\u043c. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/c88\/97e\/ace\/c8897eace3324338b77fc08dab4143a3.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 23. \u0421\u043f\u0435\u043a\u0442\u0440 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043d\u0430\u0432\u043e\u0434\u043a\u0438. \u0421\u0438\u0433\u043d\u0430\u043b \u043a\u0430\u0434\u0440\u0430 \u0432\u043a\u043b\u044e\u0447\u0430\u0435\u0442 1024 \u0430\u043c\u043f\u043b\u0438\u0442\u0443\u0434\u044b \u0438 163&#215;4 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439. <\/p>\n<p>  2. \u0412\u044b\u0434\u0435\u043b\u0438\u0442\u0435 \u043e\u0441\u043d\u043e\u0432\u043d\u0443\u044e \u0433\u0430\u0440\u043c\u043e\u043d\u0438\u043a\u0443 \u0441\u0438\u0433\u043d\u0430\u043b\u0430: 50 \u0413\u0446. <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/360\/8b6\/212\/3608b621277645f4af94c99bd300767b.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 24. \u0413\u0430\u0440\u043c\u043e\u043d\u0438\u043a\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043d\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 50 \u0413\u0446.<\/p>\n<p>  3. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u0431\u043b\u043e\u043a Spectrum Scope: FFT \u043a \u043d\u0435\u043e\u0442\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u043c\u0443 (\u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438) \u0441\u0438\u0433\u043d\u0430\u043b\u0443.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/07a\/bfc\/8c1\/07abfc8c1c7a4cafbb0e3cb509a4579a.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 25. \u041f\u0435\u0440\u0435\u043d\u043e\u0441 \u0442\u043e\u0447\u043a\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0441\u043f\u0435\u043a\u0442\u0440\u043e\u0433\u0440\u0430\u0444\u0430. \u041d\u0430 \u0432\u0445\u043e\u0434\u0435 \u043d\u0435\u043e\u0442\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0441\u0438\u0433\u043d\u0430\u043b \u0441 \u043c\u0435\u043d\u044c\u0448\u0435\u0439 \u0437\u043e\u043d\u043e\u0439 \u043d\u0443\u043b\u0435\u0432\u044b\u0445 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0439 \u0432 \u043a\u043e\u043d\u0446\u0435 \u043c\u0430\u0441\u0441\u0438\u0432\u0430 (\u0432\u0435\u043a\u0442\u043e\u0440\u0430). <\/p>\n<p>  4. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u0431\u043b\u043e\u043a. \u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0442\u0438\u043f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0430\u0435\u043c\u043e\u0433\u043e \u0441\u043f\u0435\u043a\u0442\u0440\u0430: Spectrum Type.<br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/0af\/278\/df7\/0af278df76a443b7bb9b2c17f9a8b46d.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 26. \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0441\u043f\u0435\u043a\u0442\u0440\u043e\u043c\u0435\u0442\u0440\u0430 \u043d\u0435\u043e\u0442\u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0438\u0437 1024 \u0430\u043c\u043f\u043b\u0438\u0442\u0443\u0434. <\/p>\n<p>  <b>\u0417\u0430\u0434\u0430\u043d\u0438\u0435 5<\/b>. \u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043a\u0430\u043d\u0430\u043b\u0430 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u043d\u043e\u0439 \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 8\u0440 \u0434\u0430\u043d\u043d\u044b\u0445 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0431\u0435\u0437 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445.<br \/>  1. \u041d\u0430\u043f\u0438\u0448\u0438\u0442\u0435 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino UNO \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0443 \u0446\u0438\u043a\u043b\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u0439 \u0410\u0426\u041f, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0432 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u043a\u0430\u043d\u0430\u043b 2048 \u0431\u0430\u0439\u0442 \u0441 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u043c. \u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043b\u0436\u043d\u0430 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u0442\u044c \u043f\u043e\u043a\u0430\u0437\u0430\u043d\u0438\u044f \u0410\u0426\u041f \u043d\u0430 \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 \u0431\u0435\u0437 \u043f\u0435\u0440\u0435\u0440\u044b\u0432\u043e\u0432.<\/p>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b:<br \/>  const int adc_5 = A5; \/\/ ADC port number <\/p>\n<p>  void setup() {<br \/>   Serial.begin (115200); \/\/ bit\/s<br \/>  }<\/p>\n<p>  void loop(){ <br \/>   for (int i = 0; i &lt; 2048; i++) {<br \/>   if (i == 0) Serial.print(\u00abA \u201e); \/\/ \u201cA\u00bb is header <br \/>   int val = analogRead(adc_5);<br \/>   byte adc_byte = map(val, 0, 1023, 0, 255);<br \/>   Serial.write(adc_byte); <br \/>   } <br \/>  }<\/p>\n<p>  2. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u043c\u043e\u0434\u0435\u043b\u044c Simulink (\u041c\u0430\u0442\u041b\u0410\u0411) \u043d\u0430 \u043f\u0440\u0438\u0435\u043c \u0434\u0430\u043d\u043d\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430. <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/c47\/265\/9fd\/c472659fdaba4a75be5c7455ee089b57.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 27. \u041f\u0440\u0438\u043c\u0435\u0440 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u043d\u0435\u043f\u0440\u0435\u0440\u044b\u0432\u043d\u043e\u0433\u043e \u043f\u043e\u0442\u043e\u043a\u0430 \u0434\u0430\u043d\u043d\u044b\u0445. \u041a\u0430\u0434\u0440 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 2048 \u0431\u0430\u0439\u0442. <\/p>\n<p>  3. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u0432\u0440\u0435\u043c\u044f \u043c\u043e\u0434\u0435\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u043e\u0434\u0435\u043b\u0438 (\u041c\u0435\u043d\u044e &gt; Simulation &gt; Configuration Parameters &gt; Solver &gt; Fixed-step size) \u0438 \u0442\u0430\u043a\u0442 \u0431\u043b\u043e\u043a\u0430 Serial Receive &gt; Block Sample Time, (\u0441\u043c. \u0420\u0438\u0441. 10) \u043f\u043e \u043f\u0435\u0440\u0438\u043e\u0434\u0443 50 \u0413\u0446 \u0441\u0435\u0442\u0438. <br \/>  \u0420\u0430\u0441\u0447\u0435\u0442\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u0434\u0440\u0430 \u043f\u043e \u0434\u0430\u043d\u043d\u044b\u043c \u0422\u0430\u0431\u043b\u0438\u0446\u0430 1: 254 \u043c\u0441 (\u0434\u043b\u044f 1024 \u0431\u0430\u0439\u0442) =&gt; 508 \u043c\u0441 \u0434\u043b\u044f 2048 \u0431\u0430\u0439\u0442, \u0412 \u0434\u0435\u0439\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u0438, \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u0434\u0440\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u044b (\u0432 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0441\u0447\u0438\u0442\u044b\u0432\u0430\u043d\u0438\u0435 \u0410\u0426\u041f \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0430 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u044e\u0442\u0441\u044f \u043f\u043e\u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e) \u0441\u043e\u0441\u0442\u0430\u0432\u043b\u044f\u0435\u0442 375 \u043c\u0441. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/f8e\/aaf\/9f7\/f8eaaf9f76f548329e5151c4aa3dc7cb.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 28. \u041a\u0430\u0434\u0440 \u0433\u0440\u0430\u0444\u043e\u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u0435\u043b\u044f Vector Scope. \u0412 \u043a\u0430\u0434\u0440\u0435 18.75 \u043f\u0435\u0440\u0438\u043e\u0434\u043e\u0432 50 \u0413\u0446 \u0432\u043e\u043b\u043d\u044b. \u0421\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u043e, \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u0434\u0440\u0430 \u0434\u043e\u043b\u0436\u043d\u043e \u0431\u044b\u0442\u044c 375 \u043c\u0441, \u0430 \u043f\u0435\u0440\u0438\u043e\u0434 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f, \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445: 0.1831 \u043c\u0441.<\/p>\n<p>  4. \u0412 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u043c \u043e\u043a\u043d\u0435 \u041c\u0430\u0442\u041b\u0410\u0411 \u043d\u0430\u0431\u0435\u0440\u0438\u0442\u0435 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 \u0444\u043e\u0440\u043c\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f 5 \u043a\u0430\u0434\u0440\u043e\u0432\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430. <br \/>  sgnl = [simout.Data(:,1,1)&#8217; simout.Data(:,1,2)&#8217; simout.Data(:,1,3)&#8217; simout.Data(:,1,4)&#8217; simout.Data(:,1,5)&#8217;];<\/p>\n<p>  5. \u041f\u043e\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u0433\u0440\u0430\u0444\u0438\u043a 5 \u043f\u0435\u0440\u0432\u044b\u0445 \u043a\u0430\u0434\u0440\u043e\u0432 \u0441\u0438\u0433\u043d\u0430\u043b\u0430. <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/734\/74d\/075\/73474d075ba54a29931e57a670431d8c.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 29. \u041f\u044f\u0442\u044c \u043a\u0430\u0434\u0440\u043e\u0432 \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043c\u043e\u0434\u0435\u043b\u0438.<\/p>\n<p>  6. \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0438\u0442\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0441\u0442\u044b\u043a\u043e\u0432 \u043a\u0430\u0434\u0440\u043e\u0432. <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/94a\/c3e\/7cf\/94ac3e7cfbd94e26b59e8fee78d3902a.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 30. \u0421\u0442\u044b\u043a\u0438 \u043f\u044f\u0442\u0438 \u043a\u0430\u0434\u0440\u043e\u0432. \u0418\u043c\u0435\u044e\u0442\u0441\u044f \u0437\u0430\u043c\u0435\u0442\u043d\u044b\u0435 \u0438\u0441\u043a\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u043f\u0435\u0440\u0432\u043e\u043c \u0431\u0430\u0439\u0442\u0435 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u0430\u0434\u0440\u0430. \u0417\u0430\u043c\u0435\u043d\u043e\u0439 \u043f\u0435\u0440\u0432\u044b\u0445 \u0431\u0430\u0439\u0442 \u0441\u0440\u0435\u0434\u043d\u0438\u043c\u0438 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u043c\u0435\u0436\u0434\u0443 \u0431\u043b\u0438\u0436\u0430\u0439\u0448\u0438\u043c\u0438 \u0442\u043e\u0447\u043a\u0430\u043c\u0438 \u043c\u043e\u0436\u043d\u043e \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0441\u043d\u0438\u0437\u0438\u0442\u044c \u0438\u0441\u043a\u0430\u0436\u0435\u043d\u0438\u044f. <\/p>\n<p>  7. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u0438\u0433\u043d\u0430\u043b\u0443 \u043c\u043e\u0434\u0435\u043b\u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u0441\u043f\u0435\u043a\u0442\u0440\u0430. \u041d\u0430\u0431\u043b\u044e\u0434\u0430\u0439\u0442\u0435 \u0441\u043f\u0435\u043a\u0442\u0440 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/d5e\/26d\/029\/d5e26d029cb74fde875279dd1f130f74.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 31. \u041c\u043e\u0434\u0435\u043b\u044c \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u043f\u0435\u043a\u0442\u0440\u0430 \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 (\u0410\u0426\u041f Arduino UNO) \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/c0a\/d90\/b24\/c0ad90b242f54615a8aee2faf6868d6d.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 32. \u0421\u043f\u0435\u043a\u0442\u0440 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u043d\u0430\u0432\u043e\u0434\u043a\u0438 \u043d\u0430 \u0432\u0445\u043e\u0434\u0435 \u0410\u0426\u041f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino.<\/p>\n<p>  8. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0438\u0442\u0435 \u043a\u043e \u0432\u0445\u043e\u0434\u043d\u043e\u043c\u0443 \u0441\u0438\u0433\u043d\u0430\u043b\u0443 \u043c\u043e\u0434\u0435\u043b\u0438 \u043e\u0441\u0446\u0438\u043b\u043b\u043e\u0433\u0440\u0430\u0444 Time Scope \u0438\u0437 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Simulink &gt; DSP System Toolbox &gt; Sinks. <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/6e4\/306\/f62\/6e4306f62cdf446ba14f58bf3b5a8ecd.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 33. \u041e\u0441\u0446\u0438\u043b\u043b\u043e\u0433\u0440\u0430\u0444 \u0432 \u043c\u043e\u0434\u0435\u043b\u0438 \u0434\u043b\u044f \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432\u0445\u043e\u0434\u043d\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino. <\/p>\n<p>  9. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u0442\u0435 \u043e\u0441\u0446\u0438\u043b\u043b\u043e\u0433\u0440\u0430\u0444 \u043d\u0430 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0433\u043e \u043a\u0430\u0434\u0440\u0430 \u0438 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0441\u0438\u0433\u043d\u0430\u043b\u0430. <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/bb1\/8f7\/ec6\/bb18f7ec60bf48539d7684265c8a0e3f.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 34. \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u043e\u0441\u0446\u0438\u043b\u043b\u043e\u0433\u0440\u0430\u0444\u0430 Time Scope &gt; Menu &gt; View &gt; Properties. <\/p>\n<p>  10. \u0417\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0435 \u043c\u043e\u0434\u0435\u043b\u044c \u0438 \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0439\u0442\u0435 \u0441\u0442\u0430\u0431\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432. <br \/>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/9d5\/e02\/284\/9d5e0228468c48da9f39f77e9e6de3e1.PNG\" alt=\"image\"\/> <br \/>  \u0420\u0438\u0441. 35. \u041e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0438 \u0435\u0433\u043e \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043e\u0441\u0446\u0438\u043b\u043b\u043e\u0433\u0440\u0430\u0444\u0435 Simulink \u043c\u043e\u0434\u0435\u043b\u0438. <\/p>\n<p>  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442 \u043a\u0430\u043d\u0430\u043b\u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 Arduino \u2013 \u041c\u0430\u0442\u041b\u0410\u0411 \u0432 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0438 \u0441 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u043c\u0438 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u0430\u043c\u0438 \u0438\u043c\u0435\u0435\u0442 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u043f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u0430. <br \/>  \u2022 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043f\u0430\u043c\u044f\u0442\u044c \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0434\u043b\u044f \u043d\u0430\u043a\u043e\u043f\u043b\u0435\u043d\u0438\u044f \u0410\u0426\u041f \u0434\u0430\u043d\u043d\u044b\u0445;<br \/>  \u2022 \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0430\u043b\u044b\u0439 \u0442\u0430\u043a\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f \u0441 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u044c\u0448\u0435 \u0442\u0430\u043a\u0442\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f \u0441 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u0438 \u043e\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0438\u0438 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438; <br \/>  \u2022 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u043f\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0432 Simulink \u043c\u043e\u0434\u0435\u043b\u0438;<br \/>  \u2022 \u043c\u043e\u0434\u0435\u043b\u044c \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u0431\u043b\u043e\u043a\u043e\u0432;<br \/>  \u2022 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043d\u0435 \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d \u0440\u0430\u0437\u043c\u0435\u0440 \u0432\u0435\u043a\u0442\u043e\u0440\u0430 \u0438 \u0432\u0440\u0435\u043c\u044f \u043a\u0430\u0434\u0440\u0430. <\/p>\n<h4>\u041a\u041e\u041d\u0422\u0420\u041e\u041b\u042c\u041d\u042b\u0415 \u0412\u041e\u041f\u0420\u041e\u0421\u042b<\/h4>\n<p>  1. \u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435 \u043f\u0435\u0440\u0438\u043e\u0434\u044b \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f \u043f\u0435\u0440\u0432\u043e\u0433\u043e \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0437\u0430\u0434\u0430\u043d\u0438\u0439.<br \/>  2. \u041f\u043e\u0447\u0435\u043c\u0443 \u0434\u043b\u044f \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u044f \u0441\u043f\u0435\u043a\u0442\u0440\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u0430 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u0431\u0440\u0430\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u043a\u0443 \u0440\u0430\u0437\u043c\u0435\u0440\u043e\u043c \u043a\u0440\u0430\u0442\u043d\u0443\u044e \u0434\u0432\u0443\u043c?<br \/>  3. \u041a\u0430\u043a\u043e\u0432\u0430 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0430 \u043f\u043e\u0442\u043e\u043a\u043e\u0432\u043e\u0439 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 1024 \u0431\u0430\u0439\u0442 \u043d\u0430 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 115200 \u0431\u0438\u0442\/c \u043f\u0440\u0438 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0445 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0430\u0445 \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438? <br \/>  \u2022 Data bits: 8<br \/>  \u2022 Parity: none<br \/>  \u2022 Stop bits: 1<br \/>  \u2022 Flow control: none <\/p>\n<h4>\u0411\u0418\u0411\u041b\u0418\u041e\u0413\u0420\u0410\u0424\u0418\u0427\u0415\u0421\u041a\u0418\u0419 \u0421\u041f\u0418\u0421\u041e\u041a<\/h4>\n<p>  1. DSP System Toolbox. <a href=\"http:\/\/matlab.ru\/datasheets\/Dsp-system-toolbox-Ru.pdf\">matlab.ru\/datasheets\/Dsp-system-toolbox-Ru.pdf<\/a><br \/>  2. Dr. Bob Davidov. \u0421\u0438\u0441\u0442\u0435\u043c\u0430 \u0442\u0435\u0440\u043c\u043e\u0441\u0442\u0430\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0430 \u0431\u0430\u0437\u0435 USB \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430 Lcard E14-440 (S-function) <a href=\"http:\/\/portalnp.ru\/2013\/09\/1036\">portalnp.ru\/2013\/09\/1036<\/a><br \/>  3. Dr. Bob Davidov. \u041a\u043e\u043c\u043f\u044c\u044e\u0442\u0435\u0440\u043d\u044b\u0435 \u0442\u0435\u0445\u043d\u043e\u043b\u043e\u0433\u0438\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0432 \u0442\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0441\u0438\u0441\u0442\u0435\u043c\u0430\u0445 <a href=\"http:\/\/portalnp.ru\/author\/bobdavidov\">portalnp.ru\/author\/bobdavidov<\/a>. \t\t\t<\/p>\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=\"http:\/\/habrahabr.ru\/post\/257303\/\"> http:\/\/habrahabr.ru\/post\/257303\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p> \t\t\t\u0426\u0435\u043b\u044c \u0440\u0430\u0431\u043e\u0442\u044b: \u0420\u0430\u0441\u0441\u043c\u043e\u0442\u0440\u0435\u043d\u0438\u0435 \u043e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u0435\u0439 \u0432\u0432\u043e\u0434\u0430 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0448\u0438\u0440\u043e\u043a\u043e\u043f\u043e\u043b\u043e\u0441\u043d\u044b\u0445 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432. <br \/>  \u0417\u0430\u0434\u0430\u0447\u0430 \u0440\u0430\u0431\u043e\u0442\u044b: \u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043a\u0430\u043d\u0430\u043b\u0430 \u0432\u0432\u043e\u0434\u0430, \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0438 \u043e\u0442\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 Arduino. <br \/>  \u041f\u0440\u0438\u0431\u043e\u0440\u044b \u0438 \u043f\u0440\u0438\u043d\u0430\u0434\u043b\u0435\u0436\u043d\u043e\u0441\u0442\u0438: \u041a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 Arduino UNO, \u043f\u0430\u043a\u0435\u0442 Simulink \u041c\u0430\u0442\u041b\u0410\u0411 (R2012).<\/p>\n<h4>\u0412\u0412\u0415\u0414\u0415\u041d\u0418\u0415<\/h4>\n<p>  \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u043d\u044b\u0445 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0434\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f, \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u0432 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0437\u0430\u0442\u0440\u0430\u0442. \u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u043a \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u0435 \u0432\u044b\u0441\u043e\u043a\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f (\u0420\u0438\u0441. 1) \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u0441\u043e\u043a\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u0440\u0435\u043c\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u0430 \u0434\u043b\u044f \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0441 \u0443\u0447\u0435\u0442\u043e\u043c \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u0438\u0439 \u0435\u0433\u043e \u0440\u0435\u0441\u0443\u0440\u0441\u043e\u0432. <\/p>\n<p>  \u0425\u043e\u0440\u043e\u0448\u0438\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u043c \u043c\u043e\u0449\u043d\u043e\u0439 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u0434\u043b\u044f \u0440\u0430\u0431\u043e\u0442\u044b \u0441 \u0441\u0438\u0433\u043d\u0430\u043b\u0430\u043c\u0438 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u041c\u0430\u0442\u041b\u0410\u0411. \u0414\u043b\u044f \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0437\u0430\u0447\u0430\u0441\u0442\u0443\u044e \u0442\u0440\u0435\u0431\u0443\u0435\u0442\u0441\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0430\u0442\u044c \u0435\u0433\u043e \u0441\u043f\u0435\u043a\u0442\u0440 \u0432 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e \u0448\u0438\u0440\u043e\u043a\u043e\u0439 \u043f\u043e\u043b\u043e\u0441\u0435 \u0447\u0430\u0441\u0442\u043e\u0442. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0442\u044c \u0441\u0438\u0433\u043d\u0430\u043b\u044b \u043d\u0430 \u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f. <\/p>\n<p>  \u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u0440\u0430\u0431\u043e\u0447\u0435\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u00abArduino UNO \u2013 \u041c\u0430\u0442\u041b\u0410\u0411\u00bb \u0434\u043b\u044f \u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u0432 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u043c \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u043d\u0430 \u043f\u0440\u0435\u0434\u0435\u043b\u044c\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0410\u0426\u041f \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e \u0438\u0437\u043b\u0430\u0433\u0430\u0435\u0442\u0441\u044f \u0432 \u044d\u0442\u043e\u0439 \u0440\u0430\u0431\u043e\u0442\u0435. \u041e\u0441\u043e\u0431\u0435\u043d\u043d\u043e\u0441\u0442\u044c\u044e \u044d\u0442\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e, \u0447\u0442\u043e \u0442\u0430\u043a\u0442\u044b \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0437\u0430\u0434\u0430\u044e\u0442\u0441\u044f \u043d\u0435 \u041c\u0430\u0442\u041b\u0410\u0411, \u0430 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c Arduino. \u0422\u0430\u043a\u043e\u0435 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 \u043d\u0435 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0446\u0438\u0438 Simulink \u043c\u043e\u0434\u0435\u043b\u0438 \u0441 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u043e\u0439 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 (rtwin.tlc), \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u043c\u043e\u0434\u0435\u043b\u0438 \u043f\u0440\u0430\u043a\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u043b\u044e\u0431\u044b\u0435 \u0431\u043b\u043e\u043a\u0438 \u0431\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0438 Simulink. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/habrastorage.org\/files\/c89\/756\/fc9\/c89756fc9aa043ec8d12c57f3884482d.PNG\" alt=\"image\"\/><br \/>  \u0420\u0438\u0441. 1. \u0421\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0441\u0440\u0435\u0434\u0441\u0442\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432. \u0414\u043b\u044f \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u043b\u0433\u043e\u0440\u0438\u0442\u043c\u043e\u0432 \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e\u0439 \u0441\u0440\u0435\u0434\u044b \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c \u043a\u0430\u043d\u0430\u043b \u043f\u0435\u0440\u0435\u0434\u0430\u0447\u0438 \u0434\u0430\u043d\u043d\u044b\u0445 \u043c\u0435\u0436\u0434\u0443 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u043e\u043c \u0438 \u0441\u0440\u0435\u0434\u043e\u0439 \u043f\u0440\u043e\u0435\u043a\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.   <\/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-256617","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/256617","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=256617"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/256617\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=256617"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=256617"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=256617"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}