MohammadElwakeel
Junior Member level 1
dc offset removal
Dear friends,
I'm currently working on a project including AC current and voltage measurement.
The input signal to the ADC is a sine wave shifted by a constant dc offset, as the ADC is unipolar.
inside the microcontroller I need to remove that DC offset to restore the original signal.
my question is, Can I use some technique other than the digital high pass filter to do this, knowing that the controller is AVR 8 bit RISC core?
I'm thinking of this method: I get the maximum and the minimum of the sampled signal, and calculate the offset as minimum + (maximum - minimum)/2
and then subtract the offset of every sample
can I use these method?
thanks a lot, good luck to everyone,
Mohammad
Dear friends,
I'm currently working on a project including AC current and voltage measurement.
The input signal to the ADC is a sine wave shifted by a constant dc offset, as the ADC is unipolar.
inside the microcontroller I need to remove that DC offset to restore the original signal.
my question is, Can I use some technique other than the digital high pass filter to do this, knowing that the controller is AVR 8 bit RISC core?
I'm thinking of this method: I get the maximum and the minimum of the sampled signal, and calculate the offset as minimum + (maximum - minimum)/2
and then subtract the offset of every sample
can I use these method?
thanks a lot, good luck to everyone,
Mohammad