Do-it-yourself Audio is a popular topic, bringing lots of enthusiasts. What would you do without digital audio nowadays?

You can build your own diyAudio kit using the PIC32MX2 Breakout Board hosted here on electrodesigns.net and the mikroE Audio Codec Board. The mikroE Audio Codec Board is equipped with a WM8731 codec chip featuring a full duplex I2S interface and stereo 24-bit oversampling sigma delta ADCs and DACs. The analog outputs can operate at different listening volumes. For the sake of simplicity, mikroE only wired the single mike input and the buffered headphones outputs. The WM8731 requires an additional communication (SPI or I2C) for defining the listening volumes and other settings, however mikroE wired and labelled the concerned pins for I2C only.

diyAudio with PIC32MX2Following is a concrete proposition for connecting a mikroE Audio Codec Board on a PIC32MX2 Breakout Board.  Such audio setup, exploiting the mike input and the headphones outputs, beats the Microchip PIC32MX1/MX2 starter kit. The audio signal presented at the mike input gets digitized by the WM8731, gets processed by the PIC32 in realtime, gets converted back to analog by the WM8731, and gets finally presented at the headphones outputs. On top of this, the PIC32MX2 USB connectivity allows experimenting with the USB-audio protocol.

The image shows the two boards interconnects. Other layouts may exist thanks to the PIC32MX2 pin multiplex.

Share