Wish List 0

Pcm5102 Module Stereo Dac Digital To Analog Converter Plug In Audio Pll Voice Module

Rs. 188.00 Rs. 215.00

  • Brand: https://www.ti.com/product/PCM5102
  • Product Code: SEN-DAC
  • SKU -
  • Availability: In Stock
  • Price in reward points: 5
  • For Bulk Order 9962060070
    Quick support on WhatsApp (+919962060070) only between morning 11am-4pm, no call will be answered

If music be the food of love, play on. But make sure you use this super little DAC Module Mto get the best out of your Raspberry Pi audio!

The DAC Module provides a super affordable high-quality DAC for the Raspberry Pi.

Pumping out 24-bits at 192KHz of audio goodness from the Raspberry Pi's I2S interface on the 2x20 pin GPIO header.

Since it's digital audio, it sounds really good, much better than the onboard analog audio. The 3.5mm stereo jack comes soldered onto the board already.



SPECIFICATIONS:

24-bit audio at 192KHz

Line out stereo jack

pHAT format board

Uses the PCM5102A DAC to work with the Raspberry I2S interface

OVERVIEW:

-24-bit audio at 192KHz

-Line out stereo jack

-pHAT format board

-Uses the PCM5102A DAC to work with the Raspberry I2S interface

PACKAGE INCLUDES:

1 PCS x Pcm5102 Module Stereo Dac Digital To Analog Converter Plug In Audio Pll Voice Module


//SOURCE CODE TAEKN FROM BELOW LINK

//https://learn.adafruit.com/adafruit-i2s-stereo-decoder-uda1334a/arduino-wiring-test

#include <Arduino.h>


#include <Adafruit_ZeroI2S.h>

#include <math.h>


/* max volume for 32 bit data */

#define VOLUME ( (1UL << 31) - 1)


/* create a buffer for both the left and right channel data */

#define BUFSIZE 128

int left[BUFSIZE];

int right[BUFSIZE];


// Use default pins in board variant

Adafruit_ZeroI2S i2s = Adafruit_ZeroI2S();


void setup()

{

  while (!Serial) delay(10);


  Serial.println("I2S demo");


  for(int i=0; i<BUFSIZE; i++){

      /* create a sine wave on the left channel */

        left[i] = sin( (2*PI / (BUFSIZE) ) * i) * VOLUME;


        /* create a cosine wave on the right channel */

        right[i] = cos( (2*PI / (BUFSIZE) ) * i) * VOLUME;

  }


  /* begin I2S on the default pins. 24 bit depth at

   * 44100 samples per second

   */

  i2s.begin(I2S_32_BIT, 44100);

  i2s.enableTx();

}


void loop()

{

  /* write the output buffers

   * note that i2s.write() will block until both channels are written.

   */

  for(int i=0; i<BUFSIZE; i++){

    i2s.write(left[i], right[i]);

  }

}

15 days 

Write a review

Please login or register to review