patan.gova
Full Member level 3

Hello, I am acquiring pulse signal from micro controller sampled at a rate of 100Hz. I want to filter the lowfrequency components pulse signal below 4Hz. I tried like this but it is not working perfectly. Can someone guide me with the lowpass design
the data1 here is used is attached below in the text file.
d = fdesign.lowpass('N,Fc',31,4,100);
Hd1 = design(d);
data2 = filtfilt(Hd1.Numerator,1,data1);
The filter reponse using was this

The data for 1 second sampled at a rate of 100Hz with the incoming pulse signal being 6Hz ia attched below.
can someone help me out with the implemenatation as I am not sure which oen to use FIR or IIR fitler type.
Thanks.View attachment pulse_data5000.txt
the data1 here is used is attached below in the text file.
d = fdesign.lowpass('N,Fc',31,4,100);
Hd1 = design(d);
data2 = filtfilt(Hd1.Numerator,1,data1);
The filter reponse using was this

The data for 1 second sampled at a rate of 100Hz with the incoming pulse signal being 6Hz ia attched below.
can someone help me out with the implemenatation as I am not sure which oen to use FIR or IIR fitler type.
Thanks.View attachment pulse_data5000.txt