valeriogiampa
Member level 3
Dear Collegue,
I have a Photodiode that produce a ripetitive (but don't periodic) signal with an amplitude of any millivolts.
At this true signal there is an offset that canghe in the time with an amplitude around a volt.
I have supposed to reduce dinamically this offset with a circuit composed of an Programmable Gain Amplifier that amplifier the difference between my signal and the dac feedback.
the signal get out from the PGA is acquired from microcontroller by the ADC.
The microcontroller have to process this input data to obtain the instantaneous value of the offset; than the microcontroller get out this value from DAC.
I have tested two type of alghoritm to estimate the offset:
1. I detect the peak in a windows of n samples and than I evaluate the Mean value;
2. I evaluate the mean value in a windows.
I would like if you can propose an alternative algorithm to estimate the instantaneous offset value becouse the performance of 1. and 2. is very slow.
Thanks
Valerio
I have a Photodiode that produce a ripetitive (but don't periodic) signal with an amplitude of any millivolts.
At this true signal there is an offset that canghe in the time with an amplitude around a volt.
I have supposed to reduce dinamically this offset with a circuit composed of an Programmable Gain Amplifier that amplifier the difference between my signal and the dac feedback.
the signal get out from the PGA is acquired from microcontroller by the ADC.
The microcontroller have to process this input data to obtain the instantaneous value of the offset; than the microcontroller get out this value from DAC.
I have tested two type of alghoritm to estimate the offset:
1. I detect the peak in a windows of n samples and than I evaluate the Mean value;
2. I evaluate the mean value in a windows.
I would like if you can propose an alternative algorithm to estimate the instantaneous offset value becouse the performance of 1. and 2. is very slow.
Thanks
Valerio