mshrestha789
Junior Member level 1
Hello friends,
I am facing problem in implementing IIR filter. I have determined the coefficient for the first order Butterworth filter using MATLAB FDATOOL with sampling frequency 2000 Hz and cutoff frequency 100 Hz and used it to filter the AC signal but it isn't working.
To implement this I took the adc sample in every 0.5ms and used following equation to get the filtered output.
y = x * a1 + x(n-1) * a2 + y(n-1) * b1;
Please help me regarding this. Any help will be appreciated.
I am facing problem in implementing IIR filter. I have determined the coefficient for the first order Butterworth filter using MATLAB FDATOOL with sampling frequency 2000 Hz and cutoff frequency 100 Hz and used it to filter the AC signal but it isn't working.
To implement this I took the adc sample in every 0.5ms and used following equation to get the filtered output.
y = x * a1 + x(n-1) * a2 + y(n-1) * b1;
Please help me regarding this. Any help will be appreciated.