26

Re: M61541fp + PT2323 на Microlab H-600

они идентичны одинаковые

27

Re: M61541fp + PT2323 на Microlab H-600

Микросхемы похожи , разница только в кол-ве входов

28

Re: M61541fp + PT2323 на Microlab H-600

Скетч в библиотеке выдает ошибку

29

Re: M61541fp + PT2323 на Microlab H-600

да когда замикаю дата и клок звук есть но моно играеть

30

Re: M61541fp + PT2323 на Microlab H-600

если вам не трудно на есп напишите тестовое скетч а потом на ардуино

31

Re: M61541fp + PT2323 на Microlab H-600

куда залит мне пдф файл

32

Re: M61541fp + PT2323 на Microlab H-600

Меняйте параметры, тестируйте, если звука не будет поменяйте строчку

digitalWrite(AMUTE, HIGH);

на

digitalWrite(AMUTE, LOW);

пины 2,3,4 поменяйте на свои

#include <r2a15220fp.h>

#define VOLDATA 2
#define VOLCLK  3
#define AMUTE   4


R2A15220FP audiofp(VOLDATA, VOLCLK);

int16_t Fvolume;
int16_t Bass;
int16_t Treble;
uint8_t main_input = 0;
uint8_t sub_input = 0;


void setup() {
  delay(500);
  pinMode(AMUTE, OUTPUT);
  Fvolume = -20;
  Bass = -2;
  Treble = +4;
  main_input = 1;
  sub_input = 2;
  audiofp.set_main_input(main_input);
  audiofp.set_sub_input(sub_input);
  audiofp.set_front_vol(Fvolume);
  audiofp.set_bass(Bass);
  audiofp.set_treble(Treble);
  audiofp.dump(1);
  audiofp.dump(2);
  audiofp.dump(3);
  delay(400);
  digitalWrite(AMUTE, HIGH);
}



void loop() {

}

33

Re: M61541fp + PT2323 на Microlab H-600

ок

34

Re: M61541fp + PT2323 на Microlab H-600

не работает

35

Re: M61541fp + PT2323 на Microlab H-600

digitalWrite(AMUTE, HIGH);
digitalWrite(AMUTE, LOW);
нет резултать

36

Re: M61541fp + PT2323 на Microlab H-600

Эти параметры меняли

  Fvolume = -20;
  Bass = -2;
  Treble = +4;
  main_input = 1;
  sub_input = 2;

указывали правильные пины есп32

#define VOLDATA 2
#define VOLCLK  3
#define AMUTE   4

37

Re: M61541fp + PT2323 на Microlab H-600

[img]"C:\Users\sh_ps\OneDrive\Pictures\Screenshots\Снимок экрана (2).png"[/img]

38

Re: M61541fp + PT2323 на Microlab H-600

http://forum.rcl-radio.ru/uploads/images/2026/02/489c79a2579f3e7dea24784e9c1bf6a1.png

39

Re: M61541fp + PT2323 на Microlab H-600

http://forum.rcl-radio.ru/uploads/images/2026/02/4b1d5e8099cba49fe071c4604cf8285d.png брать a mute здесь по другому посмотри

40

Re: M61541fp + PT2323 на Microlab H-600

#define VOLDATA 18
#define VOLCLK  19

41

Re: M61541fp + PT2323 на Microlab H-600

Mute надо просто на gnd или digitalWrite(AMUTE, LOW);

42

Re: M61541fp + PT2323 на Microlab H-600

когда HIGH шипене нету на калонках

43

Re: M61541fp + PT2323 на Microlab H-600

есть еще одна библиотека

https://forum.arduino.cc/uploads/short- … M4MjMwMTI.

44

Re: M61541fp + PT2323 на Microlab H-600

#include "Arduino.h"
#include <Librarie_R2A15218FP_V1_1.h>


Librarie_R2A15218FP_V1_1 librarie_R2A15218FP_V1_1(30, 31); //pin 30 is data pin, pin 31 is clock pin


//Arduino Mega2560, R2A15218FP/R2A15220FP and M61540FP

int rec_i_o = 0;                        //for R2A15218FP
int bass = 0;
int l_r_vol_input = 0;
int input_sub = 0;
int input_main = 0;
int treble = 0;
int flch_volume_up = 0;
int flch_volume = -40;
int rec_m_s = 0;
int rec5 = 0;
int rec4 = 0;
int rec3 = 0;
int rec2 = 0;
int rec1 = 0;
int frch_volume_up = 0;
int frch_volume = -40;
int swch_volume = -40;
int att = 0;
int c_sw_v = 0;
int cch_volume = -40;
int sl_sr_vol_input = 0;
int srch_volume = -40;
int slch_volume = -40;
int mix = 0;
int bypass = 1;                     //for R2A15218FP    



void setup() {
  // this calls the library
  librarie_R2A15218FP_V1_1.R2A15218FP_V1_1(rec_i_o, bass, l_r_vol_input, input_sub, input_main, treble, flch_volume_up, flch_volume, rec_m_s, rec5, rec4, rec3, rec2, rec1, frch_volume_up, frch_volume, att, c_sw_v, swch_volume, cch_volume, sl_sr_vol_input, srch_volume, slch_volume, mix, bypass); 
 
}

void loop() {}

45

Re: M61541fp + PT2323 на Microlab H-600

СЕЙЧАС ПОСМОТРЮ

46

Re: M61541fp + PT2323 на Microlab H-600

не брать не работаеть о слова совсем

47

Re: M61541fp + PT2323 на Microlab H-600

Возможно аудиопроцессор не исправен, это две разные библиотеки, обе они не могут быть не рабочими.

48

Re: M61541fp + PT2323 на Microlab H-600

брат все я поменял процессор тепер работаеть верхный первый скетч кроме 7,1 входов и тембнр нч и вч

49

Re: M61541fp + PT2323 на Microlab H-600

a mute не добавит и без этого норм работает

50

Re: M61541fp + PT2323 на Microlab H-600

liman324 пишет:
#include "Arduino.h"
#include <Librarie_R2A15218FP_V1_1.h>


Librarie_R2A15218FP_V1_1 librarie_R2A15218FP_V1_1(30, 31); //pin 30 is data pin, pin 31 is clock pin


//Arduino Mega2560, R2A15218FP/R2A15220FP and M61540FP

int rec_i_o = 0;                        //for R2A15218FP
int bass = 0;
int l_r_vol_input = 0;
int input_sub = 0;
int input_main = 0;
int treble = 0;
int flch_volume_up = 0;
int flch_volume = -40;
int rec_m_s = 0;
int rec5 = 0;
int rec4 = 0;
int rec3 = 0;
int rec2 = 0;
int rec1 = 0;
int frch_volume_up = 0;
int frch_volume = -40;
int swch_volume = -40;
int att = 0;
int c_sw_v = 0;
int cch_volume = -40;
int sl_sr_vol_input = 0;
int srch_volume = -40;
int slch_volume = -40;
int mix = 0;
int bypass = 1;                     //for R2A15218FP    



void setup() {
  // this calls the library
  librarie_R2A15218FP_V1_1.R2A15218FP_V1_1(rec_i_o, bass, l_r_vol_input, input_sub, input_main, treble, flch_volume_up, flch_volume, rec_m_s, rec5, rec4, rec3, rec2, rec1, frch_volume_up, frch_volume, att, c_sw_v, swch_volume, cch_volume, sl_sr_vol_input, srch_volume, slch_volume, mix, bypass); 
 
}

void loop() {}

тепер все работает брат