

The PCM5102A DAC Decoder Board is a high-performance, low-power, 24-bit stereo audio digital-to-analog converter (DAC) designed for audio applications. Manufactured by diymore, this component boasts a dynamic range of 105 dB and supports sampling rates up to 192 kHz. It is ideal for applications requiring high-quality audio output, such as digital audio players, home theater systems, and audio interfaces.








| Parameter | Value |
|---|---|
| Manufacturer | diymore |
| Part ID | PCM5102A DAC Decoder Board |
| Resolution | 24-bit |
| Dynamic Range | 105 dB |
| Sampling Rate | Up to 192 kHz |
| Power Supply Voltage | 3.3V to 5V |
| Interface | I2S, IIC |
| Output Type | Stereo Analog |
| Power Consumption | Low Power |
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | GND | Ground |
| 2 | VCC | Power Supply (3.3V to 5V) |
| 3 | LRCK | Left/Right Clock (I2S Interface) |
| 4 | BCK | Bit Clock (I2S Interface) |
| 5 | DATA | Serial Data Input (I2S Interface) |
| 6 | SCL | Serial Clock Line (IIC Interface) |
| 7 | SDA | Serial Data Line (IIC Interface) |
| 8 | FMT | Format Selection (I2S/IIC) |
| 9 | XSMT | Mute Control |
| 10 | FLT | Filter Selection |
| 11 | SCK | System Clock |
| 12 | GND | Ground |
#include <Wire.h>
#include <I2S.h>
void setup() {
// Initialize I2S with 32-bit data and 44.1 kHz sample rate
if (!I2S.begin(I2S_PHILIPS_MODE, 44100, 32)) {
Serial.println("Failed to initialize I2S!");
while (1); // Halt if I2S initialization fails
}
// Initialize IIC communication
Wire.begin();
Serial.begin(9600);
}
void loop() {
// Example: Send a sine wave to the DAC
for (int i = 0; i < 360; i++) {
float sample = sin(i * PI / 180);
int32_t sampleValue = (int32_t)(sample * 2147483647); // Convert to 32-bit
I2S.write(sampleValue); // Send sample to DAC
delay(1); // Delay to control sample rate
}
}
No Audio Output:
Distorted Audio:
I2S Initialization Failure:
Q1: Can the PCM5102A be used with a 5V power supply?
Q2: What is the maximum sampling rate supported by the PCM5102A?
Q3: How do I select the data format (I2S/IIC)?
Q4: Can I mute the audio output?
Q5: What type of filter can be selected using the FLT pin?
By following this documentation, users can effectively integrate the PCM5102A DAC Decoder Board into their audio projects, ensuring high-quality audio output and reliable performance.