Go Down

Topic: SD -> Arduino -> DAC? (Read 2032 times) previous topic - next topic

baum

which is what is on the breakout board linked above. (10k)

baum

Do you think that the SD lib included with Arduino 022 is fast enough for audio playback? Also, should I get a buffer chip to buffer the SD lines (MOSI, SCK, SS)?


baum

baum

I just did some research on the I2C DAC: If in fast mode (400kbps), I can clock out one value (2 bytes) in 40us, giving an ideal maximum sample rate of 25khz. This is just enough for 22khz sample rate wav. However, in high-speed mode (3.4Mbps), one cycle is only ~5us, giving a max sample rate of 212kHz(!) Is this to fast for the arduino? If not, I would love to use the high speed mode and free up some pins...

Also, do I need a buffer on the SD card? is 40mA enough?

Thanks!
baum

Grumpy_Mike

Quote
However, in high-speed mode (3.4Mbps), one cycle is only ~5us, giving a max sample rate of 212kHz(!) Is this to fast for the arduino?

Remember that the I2C bus is dependent on the clock rate you send it. We are just talking about the maximum rates here. There is no problem with sending data at any rate up to the maximum. With the arduino running at 16MHz I think the maximum clock rate for the I2C bus will be 4MHz but you would have to check the data sheet.

Quote
do I need a buffer on the SD card?

What do you mean by this? You defiantly need some logic level converters resistive potential dividers don't always work.
Current requirements for SD cards vary so you are better off regulating down to 3V3 from 5V.

baum

I am running this whole setup from 3.3V (everything...) so no converters are needed... I'm just wondering about an actual buffer if the AVR i/o pins can't handle the sd card requirements.

Quote
4MHz

I2C high speed mode is 3.4Mhz...

baum

Grumpy_Mike

Quote
I2C high speed mode is 3.4Mhz.

Yes so? The arduino hardware is capable of going faster than this it doesn't mean you have to make it go this fast.

If the whole system is 3V3 then I would not expect you will need a buffer.

baum

So high speed mode should work for my purposes.

Go Up