2 edited tags
| link
source | link

Help choosing coefficients for a simple FIR filter to extract DC component

I am a beginner in design of digital filters... I have just completed Coursera's Linear Circuits course!

I have a signal which is sampled at 50 Hz where the DC component has a value of 800000 and there is some noise with a standard deviation of around 200. The DC component should remain constant but it may change very slowly over time.

I want to design a simple FIR filter to obtain the DC component: would a simple weighted average algorithm be most appropriate? How do I go about choosing suitable coefficients?