Odd behavior on ADC, please help!

shubhamgandhi:
P.S. Here is the schematic of the amp circuit: https://lh4.googleusercontent.com/-NoR336KuNxI/T4fCuknClLI/AAAAAAAAAZE/QNEQJGeatxM/s640/vu.png

There are several issues with that circuit - the basic problem is you have severe sensitivity to the supply voltage at the input to your audio amp circuit. Switching on the LED(s) (or perhaps some other fluctuation) causes the supply to change a few mV and this gets amplified by the opamps. Hence the behaviour fixing itself when the current through the LEDs is reduced substantially.

The first op-amp stage is fed from a voltage divider connected to the supply - so you are directly feeding in the supply noise at source - there is no decoupling to ground where it is needed. Secondly your voltage divider is a lot lower in impedance than your microphone source (so it's attenuating the input you want by 13dB or so). Thirdly all your R C values are heavily attenuating the higher audio frequencies, you are only sampling the bass.

The simplest fix is to replace R5 by 470k, replace R8 by two 220k resistors in series and place a decoupling capacitor at the midpoint of the 220k resistors to ground - 100uF would be a good starting value.

The other audio caps might have to be increased - C3 is important in reducing power supply noise pick-up, the others set the high-frequency roll-off.