You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I have found this code here on Github in order to reproduce bluetooth music, and I modified it to add a PLL out, but I can get it to work.
I have an external DAC (PCM1754) attached to the ESP32 Wroom32E via I2S.
Since the DAC needs a masterclock to work (unlike the PCM5102 for example, which generates the MCK within itself), I am using GPIO0 to output a PLL of 11.2896MHz.
The DAC is silent, no output.
WS, DATA, BCK are fine.
GPIO0 is a strange quasi SINE of 11.2896MHz (I was expecting a square wave)
Hi,
I have found this code here on Github in order to reproduce bluetooth music, and I modified it to add a PLL out, but I can get it to work.
I have an external DAC (PCM1754) attached to the ESP32 Wroom32E via I2S.
Since the DAC needs a masterclock to work (unlike the PCM5102 for example, which generates the MCK within itself), I am using GPIO0 to output a PLL of 11.2896MHz.
The DAC is silent, no output.
WS, DATA, BCK are fine.
GPIO0 is a strange quasi SINE of 11.2896MHz (I was expecting a square wave)
Can anyone help
Has anybody done this already?
Thanks
#include "AudioTools.h"
#include "BluetoothA2DPSink.h"
I2SStream i2s;
BluetoothA2DPSink a2dp_sink(i2s);
void setup() {
auto cfg = i2s.defaultConfig();
cfg.sample_rate = 44100; // Match Bluetooth A2DP capability
cfg.bits_per_sample = 16; // ESP32 cannot send 24-bit over A2DP
cfg.channels = 2;
cfg.i2s_format = I2S_MSB_FORMAT; // PCM1754 requires MSB
cfg.pin_mck = 0;
cfg.pin_bck = 23;
cfg.pin_ws = 21;
cfg.pin_data = 22;
cfg.buffer_size = 128; // Optimize for stability
cfg.buffer_count = 8;
i2s.begin(cfg);
a2dp_sink.start("MyMusic");
}
void loop() {
}
The text was updated successfully, but these errors were encountered: