How to get standard positive and negative peak

Yes, except it would be
data = (ADC_Value - x) / 2048 ;
Where the value of the constant 'x' is determined by running a simple sketch to report the idle (DC) value of the ADC.

1 Like