This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PCM3060: PCM3060 Assistance | Audio Codec Selection

Part Number: PCM3060

Good morning, I need assistance in selecting an audio codec for my Banana Pi M2 Zero. I want to connect a microphone and a speaker, but my Banana Pi does not have integrated ADC or DAC. I am looking for an audio codec that can read from a microphone and write to a speaker through the SPI, I2C, or UART interfaces available on my board.

Initially, I considered using the PCM3060, which has a 3-wire SPI or I2C control interface. However, upon reviewing the datasheet, I noticed that it mentions that the input and output formats are I2S (my device does not have I2S) or T left-justified or right-justified format (which I do not fully understand what it refers to), although I am not sure if this suits my needs.

Basically, I am looking to convert an analog signal from a microphone to PCM format so that I can play it on my Banana Pi and subsequently save it as an audio file such as WAV or MP3. Additionally, I need the ability to take existing audio files in formats like WAV or MP3 and convert them to a format that can be played and sent to the speaker

  • Hi Celeste,

    I2S is the standard serial audio format. This is how all of our devices communicate audio information. SPI and I2C are for control of the device itself. Left/Right justified are generalizations of the standard I2S format, but all of these formats are PCM in nature.

    I'm not an expert on the Banana Pi M2 Zero, but you will need an I2S/TDM interface of some kind in order to receive audio data. Maybe there's a library that can set some GPIO pins to do that. 

    What you're describing (Analog to PCM/I2S ; PCM/I2S -> Speaker) can be done by virtually any of our codec selections. I think the crux of your issue is just how to interface the audio data to your controller.

    Best regards,
    Jeff McPherson