{"id":55557,"date":"2019-01-17T10:03:12","date_gmt":"2019-01-17T04:03:12","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=55557"},"modified":"2022-01-10T22:42:30","modified_gmt":"2022-01-10T16:42:30","slug":"fm-%d0%bf%d1%80%d0%b8%d0%b5%d0%bc%d0%bd%d0%b8%d0%ba-%d0%bd%d0%b0-tea5767-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=55557","title":{"rendered":"FM \u043f\u0440\u0438\u0435\u043c\u043d\u0438\u043a \u043d\u0430 TEA5767 (Arduino)"},"content":{"rendered":"<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-092948.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\" wp-image-55558 alignright\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-092948.png\" alt=\"\" width=\"183\" height=\"169\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-092948.png 279w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-092948-200x184.png 200w\" sizes=\"auto, (max-width: 183px) 100vw, 183px\" \/><\/a>\u0418\u041c\u0421 TEA5767 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u0430\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 NXP \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0438\u0437\u043a\u043e\u0432\u043e\u043b\u044c\u0442\u043d\u044b\u0445 FM-\u0440\u0430\u0434\u0438\u043e \u0442\u044e\u043d\u0435\u0440\u043e\u0432. \u0412 \u0441\u043e\u0441\u0442\u0430\u0432\u0435TEA5767 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0446\u0435\u043f\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0438 \u0434\u0435\u043c\u043e\u0434\u0443\u043b\u044f\u0446\u0438\u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432.<\/p>\n<p>\u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u00a0TEA5767:<\/p>\n<ul>\n<li>\u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043e\u0442 2,5 \u0434\u043e\u00a0 5 \u0412<\/li>\n<li>\u041f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u043c\u044b\u0439 \u0442\u043e\u043a \u043f\u0440\u0438 U\u043f\u0438\u0442 = 5 \u0412 12,8 \u043c\u0410<\/li>\n<li>\u0427\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c 2 \u043c\u043a\u0412<\/li>\n<li>\u041e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\/\u0448\u0443\u043c\u00a0 54 \u0434\u0411<\/li>\n<li>\u0420\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043c\u0435\u0436\u0434\u0443 \u0441\u0442\u0435\u0440\u0435\u043e\u043a\u0430\u043d\u0430\u043b\u0430\u043c\u0438\u00a024 \u0434\u0411<\/li>\n<li>\u041a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u0433\u0430\u0440\u043c\u043e\u043d\u0438\u043a 0,4 %<\/li>\n<li>\u0414\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u044b\u0445 \u0447\u0430\u0441\u0442\u043e\u0442 \u043e\u0442 76 \u041c\u0413\u0446 \u0434\u043e 108 \u041c\u0413\u0446<\/li>\n<li>\u0428\u0438\u043d\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f: I<sup>2<\/sup>C \u0438\u043b\u0438 3-\u0445 \u043f\u0440\u043e\u0432\u043e\u0434\u043d\u0430\u044f<\/li>\n<li>\u0424\u0443\u043d\u043a\u0446\u0438\u044f \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0439 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u043d\u0430 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u044b\u0435 \u0440\u0430\u0434\u0438\u043e\u0441\u0442\u0430\u043d\u0446\u0438\u0438<\/li>\n<li>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0435 \u0441\u0442\u0435\u0440\u0435\u043e\u0434\u0435\u043a\u043e\u0434\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 \u043f\u0440\u0438\u043d\u044f\u0442\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430<\/li>\n<\/ul>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-094617.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55559\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-094617.png\" alt=\"\" width=\"880\" height=\"462\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-094617.png 880w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-094617-200x105.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-094617-500x263.png 500w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-094617-768x403.png 768w\" sizes=\"auto, (max-width: 880px) 100vw, 880px\" \/><\/a><\/p>\n<p>\u0420\u0430\u0434\u0438\u043e \u043c\u043e\u0434\u0443\u043b\u044c\u00a0TEA5767 \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0432\u0441\u0435\u0433\u043e \u0434\u0432\u0443\u043c\u044f \u043a\u043d\u043e\u043f\u043a\u0430\u043c\u0438 &#171;+&#187; \u0438 &#171;-&#171;, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0434\u043b\u044f \u043f\u043e\u0438\u0441\u043a\u0430 \u043d\u0435\u043e\u0431\u0445\u043e\u0434\u0438\u043c\u043e\u0439 \u0441\u0442\u0430\u043d\u0446\u0438\u0438. \u0427\u0435\u0440\u0435\u0437 10 \u0441\u0435\u043a\u0443\u043d\u0434 \u043f\u043e\u0441\u043b\u0435 \u043d\u0435 \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0441\u0442\u0438 \u043a\u043d\u043e\u043f\u043e\u043a, \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u043d\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u0435\u0442\u0441\u044f \u0432 \u044d\u043d\u0435\u0440\u0433\u043e\u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0439 \u043f\u0430\u043c\u044f\u0442\u0438.<\/p>\n<div id=\"marketWidget\"><\/div>\n<blockquote>\n<p style=\"text-align: center;\"><strong>\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0430 &#8212;\u00a0<a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/TEA5767.zip\">TEA5767.zip<\/a><\/strong><\/p>\n<\/blockquote>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 11px;\"><span style=\"color: #808080; font-style: italic;\">#include &lt;TEA5767.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;Wire.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;LiquidCrystal.h&gt;<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#include &lt;EEPROM.h&gt;<\/span>\r\n\u00a0\r\nTEA5767 Radio;\r\nLiquidCrystal lcd<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">7<\/span>, <span style=\"color: #cc66cc;\">6<\/span>, <span style=\"color: #cc66cc;\">2<\/span>, <span style=\"color: #cc66cc;\">3<\/span>, <span style=\"color: #cc66cc;\">4<\/span>, <span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n  unsigned long last_pressed,<span style=\"color: #0066cc;\">time<\/span>;\r\n  unsigned char buf<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">5<\/span><span style=\"color: #66cc66;\">]<\/span>;\r\n  <span style=\"color: #0066cc;\">int<\/span> stereo,signal_level,search_mode = <span style=\"color: #cc66cc;\">0<\/span>,search_direction,i,f_h,f_l,f,w;\r\n  double current_freq;\r\n  float f_new = <span style=\"color: #66cc66;\">(<\/span>EEPROM.<span style=\"color: #006600;\">read<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">256<\/span> +  EEPROM.<span style=\"color: #006600;\">read<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  byte a1<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">8<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #66cc66;\">{<\/span>0b00000,0b00000,0b00000,0b00000,0b00000,0b00000,0b00000,0b11111<span style=\"color: #66cc66;\">}<\/span>;\r\n  byte a2<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">8<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #66cc66;\">{<\/span>0b00000,0b00000,0b00000,0b00000,0b00000,0b00000,0b11111,0b11111<span style=\"color: #66cc66;\">}<\/span>;\r\n  byte a3<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">8<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #66cc66;\">{<\/span>0b00000,0b00000,0b00000,0b00000,0b00000,0b11111,0b11111,0b11111<span style=\"color: #66cc66;\">}<\/span>;\r\n  byte a4<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">8<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #66cc66;\">{<\/span>0b00000,0b00000,0b00000,0b00000,0b11111,0b11111,0b11111,0b11111<span style=\"color: #66cc66;\">}<\/span>;\r\n  byte a5<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">8<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #66cc66;\">{<\/span>0b00000,0b00000,0b00000,0b11111,0b11111,0b11111,0b11111,0b11111<span style=\"color: #66cc66;\">}<\/span>;\r\n  byte a6<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">8<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #66cc66;\">{<\/span>0b00000,0b00000,0b11111,0b11111,0b11111,0b11111,0b11111,0b11111<span style=\"color: #66cc66;\">}<\/span>;\r\n  byte a7<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">8<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #66cc66;\">{<\/span>0b00000,0b11111,0b11111,0b11111,0b11111,0b11111,0b11111,0b11111<span style=\"color: #66cc66;\">}<\/span>;\r\n  byte a8<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">8<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #66cc66;\">{<\/span>0b11111,0b11111,0b11111,0b11111,0b11111,0b11111,0b11111,0b11111<span style=\"color: #66cc66;\">}<\/span>;\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> setup<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span> Serial.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">9600<\/span><span style=\"color: #66cc66;\">)<\/span>; \r\n  Wire.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  Radio.<span style=\"color: #006600;\">init<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  Radio.<span style=\"color: #006600;\">set_frequency<\/span><span style=\"color: #66cc66;\">(<\/span>f_new<span style=\"color: #66cc66;\">\/<\/span><span style=\"color: #cc66cc;\">10<\/span><span style=\"color: #66cc66;\">)<\/span>; \r\n  Serial.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">9600<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  lcd.<span style=\"color: #006600;\">begin<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">16<\/span>,<span style=\"color: #cc66cc;\">2<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  lcd.<span style=\"color: #0066cc;\">clear<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">12<\/span>,INPUT<span style=\"color: #66cc66;\">)<\/span>;\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">11<\/span>,INPUT<span style=\"color: #66cc66;\">)<\/span>;\r\n  lcd.<span style=\"color: #006600;\">createChar<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,a1<span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">createChar<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span>,a2<span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">createChar<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">2<\/span>,a3<span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">createChar<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">3<\/span>,a4<span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">createChar<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">4<\/span>,a5<span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">createChar<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">5<\/span>,a6<span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">createChar<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">6<\/span>,a7<span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">createChar<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">7<\/span>,a8<span style=\"color: #66cc66;\">)<\/span>;\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> loop<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n  <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>Radio.<span style=\"color: #006600;\">read_status<\/span><span style=\"color: #66cc66;\">(<\/span>buf<span style=\"color: #66cc66;\">)<\/span> == <span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    current_freq =  <span style=\"color: #0066cc;\">floor<\/span> <span style=\"color: #66cc66;\">(<\/span>Radio.<span style=\"color: #006600;\">frequency_available<\/span> <span style=\"color: #66cc66;\">(<\/span>buf<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #cc66cc;\">100000<\/span> + .5<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">\/<\/span> <span style=\"color: #cc66cc;\">10<\/span>;\r\n    stereo = Radio.<span style=\"color: #006600;\">stereo<\/span><span style=\"color: #66cc66;\">(<\/span>buf<span style=\"color: #66cc66;\">)<\/span>;\r\n    signal_level = Radio.<span style=\"color: #006600;\">signal_level<\/span><span style=\"color: #66cc66;\">(<\/span>buf<span style=\"color: #66cc66;\">)<\/span>;\r\n    lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"FM \"<\/span><span style=\"color: #66cc66;\">)<\/span>; lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span>current_freq<span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\" MHz \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>stereo<span style=\"color: #66cc66;\">)<\/span> lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"STEREO \"<\/span><span style=\"color: #66cc66;\">)<\/span>; <span style=\"color: #b1b100;\">else<\/span> lcd.<span style=\"color: #0066cc;\">print<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #ff0000;\">\"MONO  \"<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n    <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span>i=<span style=\"color: #cc66cc;\">0<\/span>;i<span style=\"color: #66cc66;\">&lt;<\/span><span style=\"color: #cc66cc;\">8<\/span>;i++<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span><span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>signal_level<span style=\"color: #66cc66;\">&gt;<\/span>=<span style=\"color: #cc66cc;\">8<\/span>+i<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #006600;\">setCursor<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">8<\/span>+i,<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span>;lcd.<span style=\"color: #006600;\">write<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">(<\/span>uint8_t<span style=\"color: #66cc66;\">)<\/span>i<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n  <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>search_mode==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span><span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>Radio.<span style=\"color: #006600;\">process_search<\/span><span style=\"color: #66cc66;\">(<\/span>buf, search_direction<span style=\"color: #66cc66;\">)<\/span>==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>search_mode = <span style=\"color: #cc66cc;\">0<\/span>;<span style=\"color: #66cc66;\">}<\/span><span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n  <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">11<\/span><span style=\"color: #66cc66;\">)<\/span>==HIGH<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span> \r\n    search_mode = <span style=\"color: #cc66cc;\">1<\/span>;<span style=\"color: #0066cc;\">time<\/span>=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;w=<span style=\"color: #cc66cc;\">1<\/span>;\r\n    search_direction = TEA5767_SEARCH_DIR_UP;\r\n    Radio.<span style=\"color: #006600;\">search_up<\/span><span style=\"color: #66cc66;\">(<\/span>buf<span style=\"color: #66cc66;\">)<\/span>;\r\n    delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #66cc66;\">}<\/span>\r\n\u00a0\r\n  <span style=\"color: #b1b100;\">if<\/span> <span style=\"color: #66cc66;\">(<\/span>digitalRead<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">12<\/span><span style=\"color: #66cc66;\">)<\/span>==HIGH<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">{<\/span>\r\n    search_mode = <span style=\"color: #cc66cc;\">1<\/span>;<span style=\"color: #0066cc;\">time<\/span>=millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;w=<span style=\"color: #cc66cc;\">1<\/span>;\r\n    search_direction = TEA5767_SEARCH_DIR_DOWN;\r\n    Radio.<span style=\"color: #006600;\">search_down<\/span><span style=\"color: #66cc66;\">(<\/span>buf<span style=\"color: #66cc66;\">)<\/span>;\r\n    delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">200<\/span><span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #66cc66;\">}<\/span> \r\n  f = current_freq<span style=\"color: #66cc66;\">*<\/span><span style=\"color: #cc66cc;\">10<\/span>;\r\n  f_h = highByte<span style=\"color: #66cc66;\">(<\/span>f<span style=\"color: #66cc66;\">)<\/span>;f_l = lowByte<span style=\"color: #66cc66;\">(<\/span>f<span style=\"color: #66cc66;\">)<\/span>;\r\n  <span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>millis<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>-time<span style=\"color: #66cc66;\">&gt;<\/span><span style=\"color: #cc66cc;\">10000<\/span><span style=\"color: #66cc66;\">&amp;&amp;<\/span>w==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>w=<span style=\"color: #cc66cc;\">0<\/span>; EEPROM.<span style=\"color: #006600;\">update<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,f_h<span style=\"color: #66cc66;\">)<\/span>;EEPROM.<span style=\"color: #006600;\">update<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">1<\/span>,f_l<span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n  delay<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">50<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #b1b100;\">if<\/span><span style=\"color: #66cc66;\">(<\/span>search_mode==<span style=\"color: #cc66cc;\">1<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>lcd.<span style=\"color: #0066cc;\">clear<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>\r\n<span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100116.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55561\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100116.png\" alt=\"\" width=\"606\" height=\"283\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100116.png 606w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100116-200x93.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100116-500x233.png 500w\" sizes=\"auto, (max-width: 606px) 100vw, 606px\" \/><\/a> <a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100106.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55562\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100106.png\" alt=\"\" width=\"633\" height=\"298\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100106.png 633w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100106-200x94.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100106-500x235.png 500w\" sizes=\"auto, (max-width: 633px) 100vw, 633px\" \/><\/a> <a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100000.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-55563\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100000.png\" alt=\"\" width=\"583\" height=\"257\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100000.png 583w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100000-200x88.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2019\/01\/Screenshot-17.01.2019-100000-500x220.png 500w\" sizes=\"auto, (max-width: 583px) 100vw, 583px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0418\u041c\u0421 TEA5767 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0438\u043c\u0430\u044f \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 NXP \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0434\u043b\u044f \u043a\u043e\u043d\u0441\u0442\u0440\u0443\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043d\u0438\u0437\u043a\u043e\u0432\u043e\u043b\u044c\u0442\u043d\u044b\u0445 FM-\u0440\u0430\u0434\u0438\u043e \u0442\u044e\u043d\u0435\u0440\u043e\u0432. \u0412 \u0441\u043e\u0441\u0442\u0430\u0432\u0435TEA5767 \u0438\u043c\u0435\u044e\u0442\u0441\u044f \u0432\u043d\u0443\u0442\u0440\u0435\u043d\u043d\u0438\u0435 \u0446\u0435\u043f\u0438 \u0432\u044b\u0434\u0435\u043b\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u043c\u0435\u0436\u0443\u0442\u043e\u0447\u043d\u043e\u0439 \u0447\u0430\u0441\u0442\u043e\u0442\u044b \u0438 \u0434\u0435\u043c\u043e\u0434\u0443\u043b\u044f\u0446\u0438\u0438 \u043f\u0440\u0438\u043d\u0438\u043c\u0430\u0435\u043c\u043e\u0433\u043e \u0441\u0438\u0433\u043d\u0430\u043b\u0430, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043e\u0431\u0445\u043e\u0434\u0438\u0442\u044c\u0441\u044f \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c \u043d\u0430\u0431\u043e\u0440\u043e\u043c \u0432\u043d\u0435\u0448\u043d\u0438\u0445 \u043a\u043e\u043c\u043f\u043e\u043d\u0435\u043d\u0442\u043e\u0432. \u0422\u0435\u0445\u043d\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b\u00a0TEA5767: \u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043e\u0442 2,5 \u0434\u043e\u00a0 5 \u0412 \u041f\u043e\u0442\u0440\u0435\u0431\u043b\u044f\u0435\u043c\u044b\u0439 \u0442\u043e\u043a \u043f\u0440\u0438 U\u043f\u0438\u0442 = 5 \u0412 12,8 \u043c\u0410 \u0427\u0443\u0432\u0441\u0442\u0432\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0441\u0442\u044c 2 \u043c\u043a\u0412 \u041e\u0442\u043d\u043e\u0448\u0435\u043d\u0438\u0435 \u0441\u0438\u0433\u043d\u0430\u043b\/\u0448\u0443\u043c\u00a0 54 \u0434\u0411 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":55559,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,17,12],"tags":[],"class_list":["post-55557","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-17","category-12"],"views":47399,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/55557","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=55557"}],"version-history":[{"count":4,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/55557\/revisions"}],"predecessor-version":[{"id":111443,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/55557\/revisions\/111443"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/55559"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=55557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=55557"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=55557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}