Can we send a bipolar signal to the ADC of ATmega88?
We know that an analogue signal has a positive value as well a negative value. So can an ADC take a negative value or does it just take the positive value of a bipolar signal?
Can we send a bipolar signal to the ADC of ATmega88?
We know that an analogue signal has a positive value as well a negative value. So can an ADC take a negative value or does it just take the positive value of a bipolar signal?
This information can be found in the datasheet.
In the ADC section it says it can measure voltages between 0 V and Vcc. In the electrical characteristics section it says the absolute maximum for any pin except reset is -0.5 V to Vcc + 0.5 V.
Therefore, no it can't measure a negative voltage, and additionally, a negative voltage below -0.5 V is not recommended.
However you can bias the input so that it is within the 0 V to Vcc range of the ADC. For example, see the first answer to question How to read an audio signal using ATmega328?.
No. Just positive.
If this is a bipolar DC signal, you may be able to reduce the range and bias to midrange of analog V+ (VCCA) with an appropriate resistor divider, while taking care of any loading and supply/ground noise issues with low ESR caps on the VCCA. Otherwise AC couple and bias to VCCA/2 for AC signals.
Side notes
No.
However, if you do not need the DC component of the signal, you could capacitively couple it into an ADC input which is biased to the middle of the allowable range, choosing the capacitor and bias resistor values to keep the variation in the allowable range. This will of course have a high-pass filter effect, which you can model and decide if is problematic for your measurement - to a degree you could even compensate for it mathematically.
If you do need the DC component, consider using an op amp to add an offset voltage and adjust the gain as needed to remain within the allowable range.