Input for 8-bit R/2R DAC

Hi,

I was recently assigned a project to create an 8-bit R/2R DAC which was fairly easy to understand.

However, I am very new to this and therefore confused about getting a proper 8-bit input for the DAC.

Would it be possible to take a digital audio signal from a pc or phone via USB and convert it to an 8-bit output using the pins of the Arduino?

If so how should I go about learning how to do this. I have never used an arduino before but I have been wanting to get into using them so I am willing to learn.

Thank you for any help!

Would it be possible to take a digital audio signal from a pc or phone via USB and convert it to an 8-bit output using the pins of the Arduino?

Yes. But, you need to [u]bias[/u] the ADC input, and since the Arduino's ADC is 10-bits you need to scale it down to 8-bits.

In a real-world application, you'd need to set the sample rate, but as long as you write one sample for every sample you read you should be able to get-by without explicitly setting a sample rate.