My DAC for the Raspberry Pi

Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.
The Gibbs problem doesn't show up with an 0db sine wave. Try an 0dB square wave. It should look something like this File:Gibbs phenomenon 50.svg - Wikipedia, the free encyclopedia and the tips of the oscillations shouldn't be clipped.

Really this is the fault of the music industry for selling us "music" with 0dB square waves in it. :rolleyes: With a 24-bit DAC you can easily fix it by digitally attenuating the signal say 6dB: you're probably not going to notice the difference between 23 bits of dynamic range and 24, especially since most 24-bit gear only has about 19 bits of DR to start with.

Usul27, how hard do you think it would be to make a version with just a SPDIF transmitter on it? Could we run it with the same driver, or is it expecting to be able to talk to the DAC over I2C to set it up?
 
Last edited:
Yeah, I know it doesn't, but you can get a separate chip that converts I2S to SPDIF, such as the WM8804 or CS8406. I'm asking whether your design would still work if the DAC were replaced by one of these chips.

I've had good results by just connecting the WM8804 in parallel with the I2S lines to the DAC. It is smart enough to figure out the MCLK division ratio and sample rate by itself. The question is whether I could do this to your design, and then throw the DAC away. :)
 
Last edited:
That's the right side . Any idea what typical maximum output is these days ? We said in the past 250 mV rms input for a standard 2 V DAC . My input is about 400 mV for full output . I think it would be OK ? My valve amp of 600 mV sensitivity seemed to go to clipping on some CD's via a Marantz CD 63 .

I have +/- 6V available . Could it be used ?
 
Last edited:
The DAC chip is a PCM5102. Version 2 will use a PCM5122 which will act as master for all clocks.

Doesn't it have compatible pinout with PCM5142? If so it would be interesting to use it (after swapping the PCM5122 with PCM5142) for digital filtering (with or without RPi), meaning for speaker crossovers and like (room correction EQ maybe). If just two cards could share the same data and clocks it would be possible to implement a 2-way stereo crossover (but if both are master then it isn't possible).

Btw. The distortion on PCM514x can be avoided by switching to Vcom mode (don't know if other PCM51xx have that option).
 
Last edited:
Doesn't it have compatible pinout with PCM5142? If so it would be interesting to use it (after swapping the PCM5122 with PCM5142) for digital filtering (with or without RPi), meaning for speaker crossovers and like (room correction EQ maybe). If just two cards could share the same data and clocks it would be possible to implement a 2-way stereo crossover (but if both are master then it isn't possible).

Btw. The distortion on PCM514x can be avoided by switching to Vcom mode (don't know if other PCM51xx have that option).

This would work. However, the DSP on these chips (the 5122 also has the DSP included) is quite limited. For a more powerful version, have a look on my other project:
http://www.diyaudio.com/forums/digital-line-level/245228-dsp-raspberry-pi.html
 
This would work. However, the DSP on these chips (the 5122 also has the DSP included) is quite limited. For a more powerful version, have a look on my other project:
http://www.diyaudio.com/forums/digital-line-level/245228-dsp-raspberry-pi.html

I think PCM5142 is as powerful as the ADAU1701 part, haven't compared them though but TI data sheet tells "The miniDSP can run up to 1024 instructions on every audio sample at a 48kHz sample rate." That's exactly the same 50MIPS as with AD part, right? Only difference is that audio performance for the DAC is better on the PCM5142. PCM5142 can also be fully programmed so it can do FIR as well as the typical biquads. Also it's got several digital outputs (I2S) so you could add another 5142 or just the 5102, or put just the headers on the board.

Regarding extensibility it would be time to design and agree on a common standard I2S header layout which all DIYers would use for their devices. It should supply I2S signals + master clock and I2C at least.
 
I didn't notice yet, that the DSP of the 5142 is fully programmable. I will have a look into this. However, this will take some time, as my DSP software is still in development.

Regarding an I2S standard connector. This will be quite difficult, because different people will have different requirements. For this project, the space is limited, therefore I do not want a very large connector. I will think about it an present a proposal in another thread. Let's see, if we find a common standard.
 
Status
This old topic is closed. If you want to reopen this topic, contact a moderator using the "Report Post" button.