{"id":110883,"date":"2021-12-18T21:51:07","date_gmt":"2021-12-18T15:51:07","guid":{"rendered":"http:\/\/rcl-radio.ru\/?p=110883"},"modified":"2022-01-08T01:36:41","modified_gmt":"2022-01-07T19:36:41","slug":"%d1%80%d0%b5%d0%b3%d1%83%d0%bb%d1%8f%d1%82%d0%be%d1%80-%d0%b3%d1%80%d0%be%d0%bc%d0%ba%d0%be%d1%81%d1%82%d0%b8-%d0%b8-%d1%82%d0%b5%d0%bc%d0%b1%d1%80%d0%b0-%d0%bd%d0%b0-lc75343m-arduino","status":"publish","type":"post","link":"http:\/\/rcl-radio.ru\/?p=110883","title":{"rendered":"\u0410\u0443\u0434\u0438\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 LC75343M (Arduino)"},"content":{"rendered":"<p>\u0421\u0442\u0435\u0440\u0435\u043e \u0430\u0443\u0434\u0438\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 LC75343M (\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Sanyo) \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438 \u0438 \u0442\u0435\u043c\u0431\u0440\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0432\u0445\u043e\u0434\u043e\u0432. \u0410\u0443\u0434\u0438\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043c\u0431\u0440 \u043f\u043e 2 \u0438 3 \u043f\u043e\u043b\u043e\u0441\u0430\u043c \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u0445\u0435\u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0438\u043c\u0435\u0435\u0442 \u0433\u0440\u0443\u043f\u043f\u043e\u0432\u0443\u044e \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0443 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438.<\/p>\n<p><strong>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0430\u0443\u0434\u0438\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 LC75343M<\/strong><\/p>\n<ul>\n<li>\u0420\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u043e\u0442 0 \u0434\u0411 \u0434\u043e -78 \u0434\u0411\u00a0 (64 \u0448\u0430\u0433\u0430 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f)\n<ul>\n<li>\u043e\u0442 0 \u0434\u0411 \u0434\u043e -50 \u0434\u0411 (\u0448\u0430\u0433 1 \u0434\u0411),<\/li>\n<li>\u043e\u0442 -50 \u0434\u0411 \u0434\u043e -70 \u0434\u0411 (\u0448\u0430\u0433 2 \u0434\u0411),<\/li>\n<li>\u043e\u0442 -70 \u0434\u0411 \u0434\u043e -78 \u0434\u0411 (\u0448\u0430\u0433 4 \u0434\u0411)<\/li>\n<\/ul>\n<\/li>\n<li>\u041d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0430\u044f \u0438 \u0433\u0440\u0443\u043f\u043f\u043e\u0432\u0430\u044f \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438<\/li>\n<li>\u0420\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0442\u0435\u043c\u0431\u0440\u0430 \u00b110 \u0434\u0411 \u0441 \u0448\u0430\u0433\u043e\u043c 2 \u0434\u0411<\/li>\n<li>\u0422\u0440\u0435\u0445 \u043f\u043e\u043b\u043e\u0441\u043d\u0430\u044f \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0442\u0435\u043c\u0431\u0440\u0430<\/li>\n<li>5-\u0438 \u043a\u0430\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0442\u0435\u0440\u0435\u043e \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0432\u0445\u043e\u0434\u043e\u0432<\/li>\n<li>\u041f\u0440\u0435\u0434\u0432\u0430\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0439 \u0443\u0441\u0438\u043b\u0438\u0442\u0435\u043b\u044c \u0432\u0445\u043e\u0434\u043e\u0432\u00a0\u043e\u0442 0 \u0434\u0411 \u0434\u043e +30 \u0434\u0411 (\u0448\u0430\u0433 2 \u0434\u0411)<\/li>\n<li>\u041d\u0430\u043f\u0440\u044f\u0436\u0435\u043d\u0438\u0435 \u043f\u0438\u0442\u0430\u043d\u0438\u044f \u043e\u0442 4,5 \u0412 \u0434\u043e 9 \u0412<\/li>\n<li>\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0435 3-Wire (\u043c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u0430\u044f \u0442\u0430\u043a\u0442\u043e\u0432\u0430\u044f \u0447\u0430\u0441\u0442\u043e\u0442\u0430 500 \u043a\u0413\u0446)<\/li>\n<li>\u0412\u0445\u043e\u0434\u043d\u043e\u0435 \u0441\u043e\u043f\u0440\u043e\u0442\u0438\u0432\u043b\u0435\u043d\u0438\u0435 50 \u043a\u041e\u043c<\/li>\n<li>\u041a\u043e\u044d\u0444\u0444\u0438\u0446\u0438\u0435\u043d\u0442 \u043d\u0435\u043b\u0438\u043d\u0435\u0439\u043d\u044b\u0445 \u0438\u0441\u043a\u0430\u0436\u0435\u043d\u0438\u0439 0.007 %<\/li>\n<\/ul>\n<p><strong><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2014\/10\/LC75343M.pdf\">\u0414\u0430\u0442\u0430\u0448\u0438\u0442<\/a><\/strong> \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 3-\u0438 \u0442\u0438\u043f\u043e\u0432\u044b\u0435 \u0441\u0445\u0435\u043c\u044b \u0432\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f LC75343M, \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0431\u044b\u043b\u0430 \u0432\u044b\u0431\u0440\u0430\u043d\u0430 \u0441\u0445\u0435\u043c\u0430 \u2116 3, \u0441 \u0442\u0440\u0435\u0445 \u043f\u043e\u043b\u043e\u0441\u043d\u044b\u043c \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435\u043c \u0442\u0435\u043c\u0431\u0440\u0430.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/12\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-12-18-211738.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-110884 size-full\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/12\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-12-18-211738-e1639840697669.png\" alt=\"\" width=\"604\" height=\"822\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/12\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-12-18-211738-e1639840697669.png 604w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/12\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-12-18-211738-e1639840697669-200x272.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/12\/-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-12-18-211738-e1639840697669-367x500.png 367w\" sizes=\"auto, (max-width: 604px) 100vw, 604px\" \/><\/a><\/p>\n<p>\u0414\u043b\u044f \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f LC75343M \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442\u0441\u044f \u0446\u0438\u0444\u0440\u043e\u0432\u044b\u0435 \u0432\u0445\u043e\u0434\u044b CL, DI \u0438 CE. \u041a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u044f \u0434\u0430\u043d\u043d\u044b\u0445 \u0441\u043e\u0441\u0442\u043e\u0438\u0442 \u0432<br \/>\n\u043e\u0431\u0449\u0435\u0439 \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0438\u0437 40 \u0431\u0438\u0442\u043e\u0432, \u043f\u0435\u0440\u0432\u044b\u0435 8 \u0431\u0438\u0442 &#8212; \u0430\u0434\u0440\u0435\u0441 \u0438 \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 32 \u0431\u0438\u0442\u0430 &#8212; \u0434\u0430\u043d\u043d\u044b\u0435.<\/p>\n<p><a href=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/12\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-12-18-212615.png\" class=\"highslide-image\" onclick=\"return hs.expand(this);\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-110886\" src=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/12\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-12-18-212615.png\" alt=\"\" width=\"726\" height=\"294\" srcset=\"http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/12\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-12-18-212615.png 726w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/12\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-12-18-212615-200x81.png 200w, http:\/\/rcl-radio.ru\/wp-content\/uploads\/2021\/12\/\u0421\u043d\u0438\u043c\u043e\u043a-\u044d\u043a\u0440\u0430\u043d\u0430-\u043e\u0442-2021-12-18-212615-500x202.png 500w\" sizes=\"auto, (max-width: 726px) 100vw, 726px\" \/><\/a><\/p>\n<p>\u041d\u0438\u0436\u0435 \u043f\u043e\u043a\u0430\u0437\u0430\u043d \u0442\u0435\u0441\u0442\u043e\u0432\u044b\u0439 \u0441\u043a\u0435\u0442\u0447 \u0437\u0430\u043f\u0443\u0441\u043a\u0430 LC75343M, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u0438 \u0442\u0435\u043c\u0431\u0440 \u043f\u043e 3-\u043c \u043f\u043e\u043b\u043e\u0441\u0430\u043c, \u0443\u043f\u0440\u0430\u0432\u043b\u044f\u0442\u044c \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u043e\u043c \u0432\u0445\u043e\u0434\u043e\u0432.<\/p>\n<div id=\"marketWidget\"><\/div>\n<pre class=\"actionscript\" style=\"font-family: monospace; font-size: 10px;\"><span style=\"color: #808080; font-style: italic;\">#define CE 3<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#define DI 2<\/span>\r\n<span style=\"color: #808080; font-style: italic;\">#define CL 4<\/span>\r\n\u00a0\r\nbyte input_m<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">8<\/span><span style=\"color: #66cc66;\">]<\/span>=<span style=\"color: #66cc66;\">{<\/span>0b0001,0b1001,0b0101,0b1101,0b0011,0b0111,0b1111<span style=\"color: #66cc66;\">}<\/span>;\r\nbyte input_gain_m<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">16<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">{<\/span>0b0000,0b1000,0b0100,0b1100,0b0010,0b1010,0b0110,0b1110,0b0001,0b1001,0b0101,0b1101,0b0011,0b1011,0b0111,0b1111<span style=\"color: #66cc66;\">}<\/span>;\r\nbyte volume_m<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">64<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">{<\/span>0b000000,0b100000,0b010000,0b110001,0b001000,0b101000,0b011000,0b111000,0b000100,0b100100,0b010100,0b110100,0b001100,\r\n0b101100,0b011100,0b111100,0b000010,0b100010,0b010010,0b110010,0b001010,0b101010,0b011010,0b111010,0b000110,0b100110,0b010110,0b110110,\r\n0b001110,0b101110,0b011110,0b111110,0b000001,0b100001,0b010001,0b110001,0b001001,0b101001,0b011001,0b111001,0b000101,0b100101,0b010101,\r\n0b110101,0b001101,0b101101,0b011101,0b111101,0b000011,0b100011,0b010011,0b110011,0b001011,0b101011,0b011011,0b111011,0b000111,0b100111,\r\n0b010111,0b110111,0b001111,0b101111,0b011111,0b111111<span style=\"color: #66cc66;\">}<\/span>;\r\nbyte ch_sel_m<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">3<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">{<\/span>0b10,0b01,0b11<span style=\"color: #66cc66;\">}<\/span>;\r\nbyte tembr_m<span style=\"color: #66cc66;\">[<\/span><span style=\"color: #cc66cc;\">11<\/span><span style=\"color: #66cc66;\">]<\/span><span style=\"color: #66cc66;\">{<\/span>0b1010,0b0010,0b1100,0b0100,0b1000,0b0000,0b1001,0b0101,0b1101,0b0011,0b1011<span style=\"color: #66cc66;\">}<\/span>;\r\n\u00a0\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>\r\n  pinMode<span style=\"color: #66cc66;\">(<\/span>CE,OUTPUT<span style=\"color: #66cc66;\">)<\/span>;pinMode<span style=\"color: #66cc66;\">(<\/span>DI,OUTPUT<span style=\"color: #66cc66;\">)<\/span>;pinMode<span style=\"color: #66cc66;\">(<\/span>CL,OUTPUT<span style=\"color: #66cc66;\">)<\/span>;\r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;digitalWrite<span style=\"color: #66cc66;\">(<\/span>CE,LOW<span style=\"color: #66cc66;\">)<\/span>;digitalWrite<span style=\"color: #66cc66;\">(<\/span>DI,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n\u00a0\r\n  audio_R<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span>;audio_L<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: #0066cc;\">void<\/span> loop<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: #0066cc;\">void<\/span> audio_R<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>Write<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">1<\/span>,  <span style=\"color: #cc66cc;\">0<\/span> , <span style=\"color: #cc66cc;\">5<\/span>,<span style=\"color: #cc66cc;\">5<\/span>,<span style=\"color: #cc66cc;\">5<\/span> <span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>  \r\n<span style=\"color: #0066cc;\">void<\/span> audio_L<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>Write<span style=\"color: #66cc66;\">(<\/span><span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span>,<span style=\"color: #cc66cc;\">0<\/span>,  <span style=\"color: #cc66cc;\">1<\/span> , <span style=\"color: #cc66cc;\">5<\/span>,<span style=\"color: #cc66cc;\">5<\/span>,<span style=\"color: #cc66cc;\">5<\/span> <span style=\"color: #66cc66;\">)<\/span>;<span style=\"color: #66cc66;\">}<\/span>  \r\n\u00a0\r\n<span style=\"color: #0066cc;\">void<\/span> Write<span style=\"color: #66cc66;\">(<\/span>byte input,byte input_gain,byte volume,byte ch_sel,byte treb,byte mid,byte bass<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span>CE,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n  byte addr = 0b01000001;\r\n     <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i = <span style=\"color: #cc66cc;\">7<\/span>; i <span style=\"color: #66cc66;\">&gt;<\/span>= <span style=\"color: #cc66cc;\">0<\/span>; i--<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>DI, <span style=\"color: #66cc66;\">(<\/span>addr <span style=\"color: #66cc66;\">&gt;&gt;<\/span> i<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&amp;<\/span> 0x01<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n        <span style=\"color: #66cc66;\">}<\/span>  \r\n  digitalWrite<span style=\"color: #66cc66;\">(<\/span>CE,HIGH<span style=\"color: #66cc66;\">)<\/span>; \r\n      <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i = <span style=\"color: #cc66cc;\">3<\/span>; i <span style=\"color: #66cc66;\">&gt;<\/span>= <span style=\"color: #cc66cc;\">0<\/span>; i--<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>DI, <span style=\"color: #66cc66;\">(<\/span>input_m<span style=\"color: #66cc66;\">[<\/span>input<span style=\"color: #66cc66;\">]<\/span> <span style=\"color: #66cc66;\">&gt;&gt;<\/span> i<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&amp;<\/span> 0x01<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n        <span style=\"color: #66cc66;\">}<\/span>\r\n      <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i = <span style=\"color: #cc66cc;\">3<\/span>; i <span style=\"color: #66cc66;\">&gt;<\/span>= <span style=\"color: #cc66cc;\">0<\/span>; i--<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>DI, <span style=\"color: #66cc66;\">(<\/span>input_gain_m<span style=\"color: #66cc66;\">[<\/span>input_gain<span style=\"color: #66cc66;\">]<\/span> <span style=\"color: #66cc66;\">&gt;&gt;<\/span> i<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&amp;<\/span> 0x01<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n        <span style=\"color: #66cc66;\">}<\/span>  \r\n      <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i = <span style=\"color: #cc66cc;\">5<\/span>; i <span style=\"color: #66cc66;\">&gt;<\/span>= <span style=\"color: #cc66cc;\">0<\/span>; i--<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>DI, <span style=\"color: #66cc66;\">(<\/span>volume_m<span style=\"color: #66cc66;\">[<\/span>volume<span style=\"color: #66cc66;\">]<\/span> <span style=\"color: #66cc66;\">&gt;&gt;<\/span> i<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&amp;<\/span> 0x01<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n        <span style=\"color: #66cc66;\">}<\/span>  \r\n      <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i = <span style=\"color: #cc66cc;\">1<\/span>; i <span style=\"color: #66cc66;\">&gt;<\/span>= <span style=\"color: #cc66cc;\">0<\/span>; i--<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>DI, <span style=\"color: #66cc66;\">(<\/span>ch_sel_m<span style=\"color: #66cc66;\">[<\/span>ch_sel<span style=\"color: #66cc66;\">]<\/span> <span style=\"color: #66cc66;\">&gt;&gt;<\/span> i<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&amp;<\/span> 0x01<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n        <span style=\"color: #66cc66;\">}<\/span>  \r\n      <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i = <span style=\"color: #cc66cc;\">3<\/span>; i <span style=\"color: #66cc66;\">&gt;<\/span>= <span style=\"color: #cc66cc;\">0<\/span>; i--<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>DI, <span style=\"color: #66cc66;\">(<\/span>tembr_m<span style=\"color: #66cc66;\">[<\/span>treb<span style=\"color: #66cc66;\">]<\/span> <span style=\"color: #66cc66;\">&gt;&gt;<\/span> i<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&amp;<\/span> 0x01<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n        <span style=\"color: #66cc66;\">}<\/span>        \r\n      <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i = <span style=\"color: #cc66cc;\">3<\/span>; i <span style=\"color: #66cc66;\">&gt;<\/span>= <span style=\"color: #cc66cc;\">0<\/span>; i--<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>DI, <span style=\"color: #66cc66;\">(<\/span>tembr_m<span style=\"color: #66cc66;\">[<\/span>mid<span style=\"color: #66cc66;\">]<\/span> <span style=\"color: #66cc66;\">&gt;&gt;<\/span> i<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&amp;<\/span> 0x01<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n        <span style=\"color: #66cc66;\">}<\/span>    \r\n      <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i = <span style=\"color: #cc66cc;\">3<\/span>; i <span style=\"color: #66cc66;\">&gt;<\/span>= <span style=\"color: #cc66cc;\">0<\/span>; i--<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>DI, <span style=\"color: #66cc66;\">(<\/span>tembr_m<span style=\"color: #66cc66;\">[<\/span>bass<span style=\"color: #66cc66;\">]<\/span> <span style=\"color: #66cc66;\">&gt;&gt;<\/span> i<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&amp;<\/span> 0x01<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n        <span style=\"color: #66cc66;\">}<\/span>  \r\n      <span style=\"color: #b1b100;\">for<\/span><span style=\"color: #66cc66;\">(<\/span><span style=\"color: #0066cc;\">int<\/span> i = <span style=\"color: #cc66cc;\">3<\/span>; i <span style=\"color: #66cc66;\">&gt;<\/span>= <span style=\"color: #cc66cc;\">0<\/span>; i--<span style=\"color: #66cc66;\">)<\/span><span style=\"color: #66cc66;\">{<\/span>\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>DI, <span style=\"color: #66cc66;\">(<\/span>0b1101 <span style=\"color: #66cc66;\">&gt;&gt;<\/span> i<span style=\"color: #66cc66;\">)<\/span> <span style=\"color: #66cc66;\">&amp;<\/span> 0x01<span style=\"color: #66cc66;\">)<\/span>;\r\n        digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,HIGH<span style=\"color: #66cc66;\">)<\/span>;\r\n        <span style=\"color: #66cc66;\">}<\/span>                                      \r\n   digitalWrite<span style=\"color: #66cc66;\">(<\/span>CL,LOW<span style=\"color: #66cc66;\">)<\/span>;\r\n   digitalWrite<span style=\"color: #66cc66;\">(<\/span>CE,LOW<span style=\"color: #66cc66;\">)<\/span>;             \r\n  <span style=\"color: #66cc66;\">}<\/span><\/pre>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a Arduino Nano \u043e\u0441\u0443\u0449\u0435\u0441\u0442\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043f\u043e \u0447\u0435\u0442\u044b\u0440\u0435\u043c \u043f\u0440\u043e\u0432\u043e\u0434\u0430\u043c &#8212; CE, DI, CL \u0438 GND<\/p>\n<blockquote><p><span style=\"color: #000000; font-style: italic;\">#define CE 3\u00a0 \/\/ D3<\/span><\/p>\n<p><span style=\"color: #000000; font-style: italic;\">#define DI\u00a0 2\u00a0 \/\/ D2<\/span><\/p>\n<p><span style=\"color: #000000; font-style: italic;\">#define CL 4\u00a0 \/\/ D4<\/span><\/p><\/blockquote>\n<p>\u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f:<\/p>\n<blockquote><p><strong>void audio_R(){Write(0,0,1, 0 , 5,5,5 );} <\/strong><br \/>\n<strong>void audio_L(){Write(0,0,0, 1 , 5,5,5 );} <\/strong><\/p><\/blockquote>\n<p>\u0413\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u0434\u0435\u043b\u044c\u043d\u043e. \u0424\u0443\u043d\u043a\u0446\u0438\u0438 \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u044e\u0442 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0430\u0443\u0434\u0438\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430, \u0432\u0441\u0435\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0441\u0435\u043c\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u043e\u0432.<\/p>\n<p>\u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u044b \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f:<\/p>\n<ol>\n<li><strong>Write(<span style=\"color: #ff0000;\">0<\/span>,0,1, 0 , 5,5,5 ) &#8212; <\/strong>\u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440 \u0432\u0445\u043e\u0434\u043e\u0432 (byte 0&#8230;4 === input 1&#8230;5)<\/li>\n<li><strong>Write(0,<span style=\"color: #ff0000;\">0<\/span>,1, 0 , 5,5,5 )<\/strong> &#8212; \u043f\u0440\u0435\u0434\u0443\u0441\u0438\u043b\u0438\u0442\u0435\u043b\u044c \u0432\u0445\u043e\u0434\u0430 (byte 0&#8230;15 === 0&#8230;30 dB)<\/li>\n<li><strong>Write(0,0,<span style=\"color: #ff0000;\">1<\/span>, 0 , 5,5,5 ) <\/strong>&#8212; \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0430\u044f \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u043a\u0430\u043d\u0430\u043b\u0430 (byte 0&#8230;63 === \u043e\u0442 -90\u00a0\u0434\u043e 0 dB)<\/li>\n<li><strong>Write(0,0,1, <span style=\"color: #ff0000;\">0<\/span> , 5,5,5 ) <\/strong>&#8212; \u043d\u0435\u0437\u0430\u0432\u0438\u0441\u0438\u043c\u0430\u044f \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438 (0 &#8212; \u043b\u0435\u0432\u044b\u0439 \u043a\u0430\u043d\u0430\u043b, 1 &#8212; \u043f\u0440\u0430\u0432\u044b\u0439 \u043a\u0430\u043d\u0430\u043b)<\/li>\n<li><strong>Write(0,0,1, 0 , <span style=\"color: #ff0000;\">5<\/span>,5,5 ) <\/strong>&#8212; \u0420\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0442\u0435\u043c\u0431\u0440\u0430 TREBLE (byte 0&#8230;10 === +10 &#8230; -10 dB, byte 5 === 0 dB)<\/li>\n<li><strong>Write(0,0,1, 0 , 5,<span style=\"color: #ff0000;\">5<\/span>,5 ) <\/strong>&#8212; \u0420\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0442\u0435\u043c\u0431\u0440\u0430 MIDDLE (byte 0&#8230;10 === +10 &#8230; -10 dB, byte 5 === 0 dB)<\/li>\n<li><strong>Write(0,0,1, 0 , 5,5,<span style=\"color: #ff0000;\">5<\/span> )\u00a0<\/strong>&#8212; \u0420\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0442\u0435\u043c\u0431\u0440\u0430 TREBLE (byte 0&#8230;10 === +10 &#8230; -10 dB, byte 5 === 0 dB)<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0421\u0442\u0435\u0440\u0435\u043e \u0430\u0443\u0434\u0438\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 LC75343M (\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0430 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438 Sanyo) \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d \u0434\u043b\u044f \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438 \u0438 \u0442\u0435\u043c\u0431\u0440\u0430, \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u0442 \u0441\u0435\u043b\u0435\u043a\u0442\u043e\u0440 \u0432\u0445\u043e\u0434\u043e\u0432. \u0410\u0443\u0434\u0438\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440 \u043c\u043e\u0436\u0435\u0442 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0435\u043c\u0431\u0440 \u043f\u043e 2 \u0438 3 \u043f\u043e\u043b\u043e\u0441\u0430\u043c \u0432 \u0437\u0430\u0432\u0438\u0441\u0438\u043c\u043e\u0441\u0442\u0438 \u043e\u0442 \u0441\u0445\u0435\u043c\u044b \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f, \u0438\u043c\u0435\u0435\u0442 \u0433\u0440\u0443\u043f\u043f\u043e\u0432\u0443\u044e \u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0443 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u0438. \u041e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0445\u0430\u0440\u0430\u043a\u0442\u0435\u0440\u0438\u0441\u0442\u0438\u043a\u0438 \u0430\u0443\u0434\u0438\u043e\u043f\u0440\u043e\u0446\u0435\u0441\u0441\u043e\u0440\u0430 LC75343M \u0420\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u043a\u0430 \u0433\u0440\u043e\u043c\u043a\u043e\u0441\u0442\u044c \u043e\u0442 0 \u0434\u0411 \u0434\u043e -78 \u0434\u0411\u00a0 (64 \u0448\u0430\u0433\u0430 \u0440\u0435\u0433\u0443\u043b\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f) \u043e\u0442 0 \u0434\u0411 \u0434\u043e -50 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":110886,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[239,5],"tags":[],"class_list":["post-110883","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-arduino","category-5"],"views":2262,"_links":{"self":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/110883","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=110883"}],"version-history":[{"count":7,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/110883\/revisions"}],"predecessor-version":[{"id":111111,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/posts\/110883\/revisions\/111111"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=\/wp\/v2\/media\/110886"}],"wp:attachment":[{"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=110883"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=110883"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/rcl-radio.ru\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=110883"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}