{"id":100747,"date":"2021-07-15T18:31:18","date_gmt":"2021-07-15T12:31:18","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=100747"},"modified":"2022-01-08T01:47:04","modified_gmt":"2022-01-07T19:47:04","slug":"atmega16-adc-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=100747","title":{"rendered":"ATmega16 &#8212; ADC (Arduino)"},"content":{"rendered":"<p>\u0410\u043d\u0430\u043b\u043e\u0433\u043e-\u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c (ADC) \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 ATmega16 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 8 \u043e\u0434\u043d\u043e\u043f\u043e\u043b\u044f\u0440\u043d\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 , 7 \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0438 \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u0430\u00a0 \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 10 \u0438 200. \u0412\u0441\u0435 \u043a\u0430\u043d\u0430\u043b\u044b \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 10 \u0431\u0438\u0442. \u0422\u0430\u043a \u0436\u0435 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0418\u041e\u041d \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 \u0434\u0432\u0430 \u043e\u043f\u043e\u0440\u043d\u044b\u0445 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f: \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0438 2.56 \u0412. \u041a \u0432\u044b\u0445\u043e\u0434\u0443 AREF \u0434\u0430\u0436\u0435 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0418\u041e\u041d \u043d\u0430 2.56 \u0412 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0442\u044c \u044d\u043b\u0435\u043a\u0442\u0440\u043e\u043b\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u043a\u043e\u043d\u0434\u0435\u043d\u0441\u0430\u0442\u043e\u0440.<\/p>\n<p><img decoding=\"async\" class=\"aligncenter\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/%D0%A1%D0%BD%D0%B8%D0%BC%D0%BE%D0%BA-%D1%8D%D0%BA%D1%80%D0%B0%D0%BD%D0%B0-%D0%BE%D1%82-2021-07-12-201702.png\" \/><\/p>\n<p>\u0412\u044b\u0431\u043e\u0440 \u043e\u0434\u043d\u043e\u043f\u043e\u043b\u044f\u0440\u043d\u043e\u0433\u043e \u0438\u043b\u0438 \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u0430 \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u0440\u0438 \u043f\u043e\u043c\u043e\u0449\u0438 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 <strong>ADMUX<\/strong> \u043f\u0443\u0442\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u0438 \u0431\u0438\u0442\u043e\u0432 MUX4&#8230;MUX0. \u041e\u0434\u043d\u043e\u043f\u043e\u043b\u044f\u0440\u043d\u044b\u0439 \u0432\u0445\u043e\u0434 \u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u0438\u0437 \u0432\u0445\u043e\u0434\u043e\u0432 ADC0&#8230;ADC7. \u0412 \u0440\u0435\u0436\u0438\u043c\u0435 \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0432\u043e\u0434\u0430 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0432\u044b\u0431\u043e\u0440\u0430 \u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0438 \u043d\u0435\u0438\u043d\u0432\u0435\u0440\u0442\u0438\u0440\u0443\u044e\u0449\u0435\u0433\u043e \u0432\u0445\u043e\u0434\u0430 \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0443\u0441\u0438\u043b\u0438\u0442\u0435\u043b\u044f.<\/p>\n<p style=\"text-align: center;\"><strong>Register \u2013 ADMUX<\/strong><\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113522.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-100748\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113522.png\" alt=\"\" width=\"585\" height=\"102\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113522.png 585w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113522-200x35.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113522-500x87.png 500w\" sizes=\"auto, (max-width: 585px) 100vw, 585px\" \/><\/a><\/p>\n<p><strong>MUX4:0<\/strong> &#8212; \u0411\u0438\u0442\u044b \u0432\u044b\u0431\u043e\u0440\u0430 \u0430\u043d\u0430\u043b\u043e\u0433\u043e\u0432\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u0438 \u043a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442\u0430 \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u044f<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113846.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-100749 size-full\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113846-e1626327591436.png\" alt=\"\" width=\"576\" height=\"779\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113846-e1626327591436.png 576w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113846-e1626327591436-200x270.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113846-e1626327591436-370x500.png 370w\" sizes=\"auto, (max-width: 576px) 100vw, 576px\" \/><\/a><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113915.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-100750 size-full\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113915-e1626327618645.png\" alt=\"\" width=\"578\" height=\"124\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113915-e1626327618645.png 578w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113915-e1626327618645-200x43.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-113915-e1626327618645-500x107.png 500w\" sizes=\"auto, (max-width: 578px) 100vw, 578px\" \/><\/a><\/p>\n<p><strong>ADLAR <\/strong>&#8212; \u0411\u0438\u0442 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u0438\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f, \u0435\u0441\u043b\u0438 ADLAR = 1, \u0442\u043e \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u0443\u0434\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u043b\u0435\u0432\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0439 \u0444\u043e\u0440\u043c\u0430\u0442, \u0432 \u043f\u0440\u043e\u0442\u0438\u0432\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 &#8212; \u043f\u0440\u0430\u0432\u043e\u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u0439.<\/p>\n<p>\u0420\u0430\u0431\u043e\u0442\u0430 ADC \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0435\u043c \u0431\u0438\u0442\u043e\u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 <strong>ADCSRA<\/strong><\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-114434-1.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-100752\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-114434-1.png\" alt=\"\" width=\"589\" height=\"106\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-114434-1.png 589w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-114434-1-200x36.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-114434-1-500x90.png 500w\" sizes=\"auto, (max-width: 589px) 100vw, 589px\" \/><\/a><\/p>\n<p><strong>ADEN<\/strong> &#8212; \u0411\u0438\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u0440\u0430\u0431\u043e\u0442\u044b ADC, \u0435\u0441\u043b\u0438 \u0431\u0438\u0442 \u0437\u0430\u043f\u0438\u0441\u0430\u043d\u0430 1, \u0442\u043e \u0440\u0430\u0431\u043e\u0442\u0430 ADC \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0430, \u0435\u0441\u043b\u0438 0, \u0442\u043e \u0437\u0430\u043f\u0440\u0435\u0449\u0435\u043d\u0430.<\/p>\n<p><strong>ADSC <\/strong>&#8212; \u0411\u0438\u0442 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f ADC.<\/p>\n<p><strong>AD<\/strong><strong>ATE<\/strong> &#8212; \u0411\u0438\u0442 \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u0440\u0435\u0436\u0438\u043c\u0430 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 ADC, \u0435\u0441\u043b\u0438 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0430 1, \u0442\u043e ADC \u043f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u0442 \u0432 \u0440\u0435\u0436\u0438\u043c \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430, \u0432 \u044d\u0442\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435 DAC \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0435\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u043e \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u043c\u0443 \u0444\u0440\u043e\u043d\u0442\u0443 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e\u0449\u0435\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430. \u0418\u0441\u0442\u043e\u0447\u043d\u0438\u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442\u0441\u044f \u0432 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0435 SFIOR.<\/p>\n<p><strong>ADIF <\/strong>&#8212;\u00a0 \u0424\u043b\u0430\u0433 \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f ADC. \u0424\u043b\u0430\u0433 ADIF \u0441\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u043f\u0443\u0442\u0435\u043c \u0437\u0430\u043f\u0438\u0441\u0438 \u0432 \u043d\u0435\u0433\u043e \u043b\u043e\u0433. 1.<\/p>\n<p><strong>ADIE <\/strong>&#8212; \u0411\u0438\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0440\u044b\u0432\u0430\u043d\u0438\u044f ADC.<\/p>\n<p><strong>ADPS2:0 <\/strong>&#8212;\u00a0 \u0411\u0438\u0442\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u0435\u0434\u0434\u0435\u043b\u0438\u0442\u0435\u043b\u0435\u043c ADC, \u0431\u0438\u0442 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u0435\u0442 \u043d\u0430 \u043a\u0430\u043a\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435\u00a0\u0442\u0430\u043a\u0442\u043e\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0426\u041f\u0423 \u0431\u0443\u0434\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u0430\u0442\u044c\u0441\u044f \u043e\u0442 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0432\u0445\u043e\u0434\u043d\u043e\u0439 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438 ADC.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-120107.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-100753\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-120107.png\" alt=\"\" width=\"653\" height=\"267\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-120107.png 653w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-120107-200x82.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-120107-500x204.png 500w\" sizes=\"auto, (max-width: 653px) 100vw, 653px\" \/><\/a><\/p>\n<p>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u043e\u043c\u0435\u0449\u0430\u0435\u0442\u0441\u044f \u0432 \u0434\u0432\u0430 \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 ADCL \u0438 ADCH. \u0412 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0431\u0438\u0442\u0430 ADLAR \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u0430 ADMUX, \u0440\u0435\u0433\u0438\u0441\u0442\u0440\u044b ADCL \u0438 ADCH \u043c\u043e\u0433\u0443\u0442 \u0438\u043c\u0435\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u044b \u0434\u0430\u043d\u043d\u044b\u0445:<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-121129.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-100754\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-121129.png\" alt=\"\" width=\"646\" height=\"383\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-121129.png 646w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-121129-200x119.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-121129-500x296.png 500w\" sizes=\"auto, (max-width: 646px) 100vw, 646px\" \/><\/a><\/p>\n<p>\u0412 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043f\u043e\u0434\u0430\u0434\u0438\u043c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 1.2 \u0412 \u043d\u0430 \u043d\u0435\u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439\u00a0 \u0432\u0445\u043e\u0434 ADC1 \u0438 \u0432\u044b\u0432\u0435\u0434\u0435\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u0438\u044f \u0432 \u043c\u0412 \u043d\u0430 LCD1602 c I2C \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435\u043c. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0418\u041e\u041d \u043d\u0430 2.56 \u0412.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/ATMEGA16_adc.gif\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-100762\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/ATMEGA16_adc.gif\" alt=\"\" width=\"717\" height=\"679\" \/><\/a><\/p>\n<div id=\"marketWidget\"><\/div>\n<pre><span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><span style=\"color: #d35400;\">Wire<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt;<\/span> \r\n<span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><b><span style=\"color: #d35400;\">LiquidCrystal_I2C<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt;<\/span>\r\n<b><span style=\"color: #d35400;\">LiquidCrystal_I2C<\/span><\/b> <span style=\"color: #000000;\">lcd<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0x27<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">16<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">2<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \u00a0<span style=\"color: #434f54;\">\/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u0441\u043f\u043b\u0435\u0439<\/span>\r\n\r\n<span style=\"color: #00979c;\">long<\/span> <span style=\"color: #000000;\">u<\/span><span style=\"color: #000000;\">;<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">setup<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #000000;\">{<\/span>\r\n \u00a0\u00a0<span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">init<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\r\n \u00a0\u00a0<span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">backlight<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0443 \u0434\u0438\u0441\u043f\u043b\u0435\u044f<\/span>\r\n \u00a0\u00a0<span style=\"color: #00979c;\">ADMUX<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">MUX0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #434f54;\">|<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">REFS0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #434f54;\">|<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">REFS1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #00979c;\">ADCSRA<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADEN<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADSC<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADATE<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #00979c;\">ADCSRA<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADPS2<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADPS1<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADPS0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/ Division Factor 128<\/span>\r\n<span style=\"color: #000000;\">}<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">loop<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #5e6d03;\">while<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">ADCSRA<\/span> <span style=\"color: #434f54;\">&amp;<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #5e6d03;\">ADIF<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">==<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #000000;\">u<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">ADCL<\/span><span style=\"color: #434f54;\">|<\/span><span style=\"color: #00979c;\">ADCH<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #000000;\">8<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">setCursor<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">2560<\/span><span style=\"color: #434f54;\">*<\/span><span style=\"color: #000000;\">u<\/span><span style=\"color: #434f54;\">\/<\/span><span style=\"color: #000000;\">1023<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #005c5f;\">\" mV \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">500<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \u00a0\r\n<span style=\"color: #000000;\">}<\/span>\r\n<\/pre>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-153906.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-100758 size-thumbnail\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-153906-200x98.png\" alt=\"\" width=\"200\" height=\"98\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-153906-200x98.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-153906-500x245.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-153906.png 518w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/a><\/p>\n<p>\u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u0434\u0430\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u0438\u043c\u0435\u0440\u0430, \u0438\u0437\u043c\u0435\u0440\u0435\u043d\u043d\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u043e \u0432 10 \u0431\u0438\u0442\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 (0&#8230;1023), \u0434\u043b\u044f \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u044d\u0442\u043e\u0433\u043e \u0447\u0438\u0441\u043b\u0430 \u0432 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043d\u0443\u0436\u043d\u043e \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0443\u043c\u043d\u043e\u0436\u0438\u0442\u044c \u043d\u0430 \u043e\u043f\u043e\u0440\u043d\u043e\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 (\u043c\u0412) \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0438\u0442\u044c \u043d\u0430 1023.<\/p>\n<p>\u0414\u0430\u043b\u0435\u0435 \u043f\u043e\u0434\u0430\u0434\u0438\u043c \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043d\u0430 \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0432\u0445\u043e\u0434 ADC0 ADC1.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/ATMEGA16_dif.gif\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-100763\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/ATMEGA16_dif.gif\" alt=\"\" width=\"717\" height=\"679\" \/><\/a><\/p>\n<pre><span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><span style=\"color: #d35400;\">Wire<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt;<\/span> \r\n<span style=\"color: #5e6d03;\">#include<\/span> <span style=\"color: #434f54;\">&lt;<\/span><b><span style=\"color: #d35400;\">LiquidCrystal_I2C<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #000000;\">h<\/span><span style=\"color: #434f54;\">&gt;<\/span>\r\n<b><span style=\"color: #d35400;\">LiquidCrystal_I2C<\/span><\/b> <span style=\"color: #000000;\">lcd<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0x27<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">16<\/span><span style=\"color: #434f54;\">,<\/span><span style=\"color: #000000;\">2<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \u00a0<span style=\"color: #434f54;\">\/\/ \u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u043c \u0434\u0438\u0441\u043f\u043b\u0435\u0439<\/span>\r\n\r\n<span style=\"color: #00979c;\">long<\/span> <span style=\"color: #000000;\">u<\/span><span style=\"color: #000000;\">;<\/span>\r\n<span style=\"color: #00979c;\">byte<\/span> <span style=\"color: #000000;\">minus<\/span><span style=\"color: #000000;\">;<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">setup<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">init<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\r\n \u00a0<span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">backlight<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/ \u0412\u043a\u043b\u044e\u0447\u0430\u0435\u043c \u043f\u043e\u0434\u0441\u0432\u0435\u0442\u043a\u0443 \u0434\u0438\u0441\u043f\u043b\u0435\u044f<\/span>\r\n \u00a0\r\n \u00a0 <b><span style=\"color: #d35400;\">Serial<\/span><\/b><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">begin<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">9600<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #00979c;\">ADMUX<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">MUX4<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #00979c;\">ADMUX<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">REFS0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #434f54;\">|<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">REFS1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #00979c;\">ADCSRA<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADEN<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADSC<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADATE<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #00979c;\">ADCSRA<\/span> <span style=\"color: #434f54;\">|=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADPS2<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADPS1<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">|<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #434f54;\">&lt;&lt;<\/span><span style=\"color: #5e6d03;\">ADPS0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #434f54;\">\/\/ Division Factor 128<\/span>\r\n<span style=\"color: #000000;\">}<\/span>\r\n\r\n<span style=\"color: #00979c;\">void<\/span> <span style=\"color: #5e6d03;\">loop<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #000000;\">{<\/span>\r\n \u00a0<span style=\"color: #5e6d03;\">while<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">ADCSRA<\/span> <span style=\"color: #434f54;\">&amp;<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #5e6d03;\">ADIF<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">)<\/span> <span style=\"color: #434f54;\">==<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #000000;\">u<\/span> <span style=\"color: #434f54;\">=<\/span> <span style=\"color: #000000;\">(<\/span><span style=\"color: #00979c;\">ADCL<\/span><span style=\"color: #434f54;\">|<\/span><span style=\"color: #00979c;\">ADCH<\/span> <span style=\"color: #434f54;\">&lt;&lt;<\/span> <span style=\"color: #000000;\">8<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span>\r\n \u00a0\u00a0<span style=\"color: #5e6d03;\">if<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">u<\/span><span style=\"color: #434f54;\">&gt;&gt;<\/span><span style=\"color: #000000;\">9<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #434f54;\">==<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span><span style=\"color: #000000;\">minus<\/span><span style=\"color: #434f54;\">=<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">}<\/span><span style=\"color: #5e6d03;\">else<\/span><span style=\"color: #000000;\">{<\/span><span style=\"color: #000000;\">minus<\/span><span style=\"color: #434f54;\">=<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">}<\/span>\r\n \u00a0\u00a0<span style=\"color: #5e6d03;\">if<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">minus<\/span><span style=\"color: #434f54;\">==<\/span><span style=\"color: #000000;\">1<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">{<\/span><span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">setCursor<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #005c5f;\">\"-\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">2560<\/span><span style=\"color: #434f54;\">*<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">u<\/span><span style=\"color: #434f54;\">-<\/span><span style=\"color: #000000;\">511<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #434f54;\">\/<\/span><span style=\"color: #000000;\">511<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #005c5f;\">\" mV \u00a0\u00a0\u00a0\u00a0\u00a0\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">}<\/span>\r\n \u00a0\u00a0\u00a0<span style=\"color: #5e6d03;\">else<\/span><span style=\"color: #000000;\">{<\/span><span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">setCursor<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">0<\/span><span style=\"color: #434f54;\">,<\/span> <span style=\"color: #000000;\">0<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">2560<\/span><span style=\"color: #434f54;\">*<\/span><span style=\"color: #000000;\">u<\/span><span style=\"color: #434f54;\">\/<\/span><span style=\"color: #000000;\">511<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">lcd<\/span><span style=\"color: #434f54;\">.<\/span><span style=\"color: #d35400;\">print<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #005c5f;\">\" mV \u00a0\u00a0\u00a0\u00a0\u00a0\"<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span><span style=\"color: #000000;\">}<\/span>\r\n\r\n \u00a0\u00a0<span style=\"color: #d35400;\">delay<\/span><span style=\"color: #000000;\">(<\/span><span style=\"color: #000000;\">1000<\/span><span style=\"color: #000000;\">)<\/span><span style=\"color: #000000;\">;<\/span> \u00a0\r\n<span style=\"color: #000000;\">}<\/span>\r\n<\/pre>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-154414.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-100759 size-thumbnail\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-154414-200x92.png\" alt=\"\" width=\"200\" height=\"92\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-154414-200x92.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-154414.png 459w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/a> <a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-154350.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-100760 size-thumbnail\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-154350-200x91.png\" alt=\"\" width=\"200\" height=\"91\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-154350-200x91.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-154350-500x228.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/07\/Screenshot-15.07.2021-154350.png 512w\" sizes=\"auto, (max-width: 200px) 100vw, 200px\" \/><\/a><\/p>\n<p>\u0418\u0437\u043c\u0435\u0440\u0435\u043d\u043d\u043e\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0432\u0445\u043e\u0434\u0430 \u0442\u0430\u043a \u0436\u0435 10-\u0438 \u0431\u0438\u0442\u043d\u043e\u0435, \u043d\u043e \u0441\u0442\u0430\u0440\u0448\u0438\u0439 \u0431\u0438\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u043e\u043b\u044f\u0440\u043d\u043e\u0441\u0442\u0438, \u0430 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043f\u043e\u043b\u043e\u0436\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u0438 \u043e\u0442\u0440\u0438\u0446\u0430\u0442\u0435\u043b\u044c\u043d\u043e\u0433\u043e \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f \u0438\u0437\u043c\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u0441 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435\u043c 9 \u0431\u0438\u0442 (0&#8230;511).<\/p>\n<p>\u041a\u0430\u043a \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u043a\u0443 \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 ATmrga16\u00a0 \u0432 Arduino IDE \u0438 \u043f\u0440\u043e\u0448\u0438\u0442\u044c \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440 \u043c\u043e\u0436\u043d\u043e \u0443\u0437\u043d\u0430\u0442\u044c \u0432 <a href=\"http:\/\/rcl-radio.ru\/?p=100721\">http:\/\/rcl-radio.ru\/?p=100721<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0410\u043d\u0430\u043b\u043e\u0433\u043e-\u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043f\u0440\u0435\u043e\u0431\u0440\u0430\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044c (ADC) \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 ATmega16 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 8 \u043e\u0434\u043d\u043e\u043f\u043e\u043b\u044f\u0440\u043d\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 , 7 \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u043e\u0432 \u0438 \u0434\u0438\u0444\u0444\u0435\u0440\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043a\u0430\u043d\u0430\u043b\u0430\u00a0 \u0443\u0441\u0438\u043b\u0435\u043d\u0438\u0435\u043c \u043d\u0430 10 \u0438 200. \u0412\u0441\u0435 \u043a\u0430\u043d\u0430\u043b\u044b \u0438\u043c\u0435\u044e\u0442 \u0440\u0430\u0437\u0440\u0435\u0448\u0435\u043d\u0438\u0435 10 \u0431\u0438\u0442. \u0422\u0430\u043a \u0436\u0435 \u0438\u043c\u0435\u0435\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0439 \u0418\u041e\u041d \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0438\u043c\u0435\u0435\u0442 \u0434\u0432\u0430 \u043e\u043f\u043e\u0440\u043d\u044b\u0445 \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u044f: \u043d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043c\u0438\u043a\u0440\u043e\u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043b\u0435\u0440\u0430 \u0438 2.56 \u0412. \u041a \u0432\u044b\u0445\u043e\u0434\u0443 AREF \u0434\u0430\u0436\u0435 \u043f\u0440\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0438 \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0435\u0433\u043e \u0418\u041e\u041d \u043d\u0430 2.56 \u0412 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":100763,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,17,21],"tags":[],"class_list":["post-100747","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-17","category-21"],"views":3415,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/100747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=100747"}],"version-history":[{"count":7,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/100747\/revisions"}],"predecessor-version":[{"id":111129,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/100747\/revisions\/111129"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/100763"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=100747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=100747"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=100747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}