ADC

hello world... i made a amplifier for condenser microphone.. the voice output of the amplifier may be 2 volt p-p... now i want to convert the voice analog output signal to digital signal(8 bit) using arduino uno... so how can /which way/ that i may write CODE for this perpose??? helps me please.... thank u very much......

First, you need to [u]bias[/u] the input, because the Arduino can't read the negative half of the AC waveform.

Then you can use the [u]map()[/u] function to convert the 10-bit (0-1023) ADC reading to an 8-bit (0-255) value.

Note that your 8-bit value is also biased.

Note - Normally, digitized signals are sampled at a known-sample rate (i.e. CDs are sampled at 44,100 times per second). And of course if you want to re-produce the analog, the DAC has to run at the same frequency as the ADC.

thank u very much for your kind information.......