Memuat
Memuat
FIR Filter Design for Robotics and Mechatronics
0 views
Apply FIR filtering to the encoder position signal to identify the filter cutoff frequency amid quantisation noise through simulation. A FIR filter has a finite impulse response, is always stable, and can be designed with linear phase. It suits signal filtering that must avoid phase distortion, such as EEG, ECG, and audio.

Apply FIR filtering to the encoder position signal to identify the filter cutoff frequency amid quantisation noise through simulation.
| Role | Variable | Unit |
|---|---|---|
| Main | Encoder position signal | deg |
| Supporting 1 | Filter cutoff frequency | Hz |
| Supporting 2 | Quantisation noise | deg |
The order-80 FIR filter with a 100 Hz cutoff raises the signal-to-noise ratio of Encoder position signal from 2.3 dB to 24.5 dB, with 60.5 dB of stopband attenuation suppressing the interference in Quantisation noise.
Computed from illustrative synthetic data, not from a real study.
A FIR filter has a finite impulse response, is always stable, and can be designed with linear phase. It suits signal filtering that must avoid phase distortion, such as EEG, ECG, and audio.
Report type, order, window, cutoff, stopband attenuation, and group delay. Show the frequency response and the effect of the filter on the signal.
A short starting script with this project's variable names. The delivered version is adapted to your data and fully commented.
rng(2);
fs = 1000;
filter_cutoff_frequency = (0:1/fs:2-1/fs)';
encoder_position_signal = sin(2*pi*10*filter_cutoff_frequency) + 0.6*sin(2*pi*200*filter_cutoff_frequency) + 0.1*randn(size(filter_cutoff_frequency));
order = 60;
fc = 50; % cutoff in Hz
b = fir1(order, fc/(fs/2), 'low', hamming(order+1));
yf = filtfilt(b, 1, encoder_position_signal); % zero-phase filtering
[h, w] = freqz(b, 1, 2048, fs);
att200 = interp1(w, 20*log10(abs(h)), 200);
fprintf('Order %d, group delay %d samples\n', order, order/2);
fprintf('Attenuation at 200 Hz: %.1f dB\n', att200);
fprintf('RMS before: %.3f, after: %.3f\n', rms(encoder_position_signal), rms(yf));
figure;
subplot(2,1,1);
plot(w, 20*log10(abs(h) + eps)); grid on;
xlabel('Frequency (Hz)'); ylabel('Magnitude (dB)'); ylim([-120 5]);
subplot(2,1,2);
idx = 1:500;
plot(filter_cutoff_frequency(idx), encoder_position_signal(idx), filter_cutoff_frequency(idx), yf(idx), 'LineWidth', 1.2);
legend('Raw', 'FIR filtered'); xlabel('Time (s)');Choose how much help you need. Each higher package includes everything in the lower ones. Prices exclude 11% VAT.
Package 1
US$22
excl. 11% VAT
Duration: 3 working days
Output: MATLAB files + result figures
Deliverables
Package 2 · most chosen
US$63
excl. 11% VAT
Duration: 7 working days
Output: Code + analysis + interpretation notes
Includes all of Package 1, plus
Package 3
US$138
excl. 11% VAT
Duration: 12-15 working days
Output: Code + analysis + guidance until ready to present
Includes all of Packages 1 & 2, plus
Yes. FIR Filter Design is commonly used at this level in Robotics and Mechatronics. We adapt the analysis to your research question, your own data and your supervisor's requirements.
No. The sheet is computed from illustrative synthetic data so you can see the kind of output MATLAB gives. For your order we run the same method on your own data.
That is the point of the packages. Every script is commented, and Package 3 includes two coaching sessions plus practice questions so you can explain the method and the results at your seminar and defence.
Each project has three packages: Package 1 (code and explanation) US$22, Package 2 (your data analysis and interpretation) US$63 and Package 3 (full guidance) US$138, excluding 11% VAT. Larger datasets, extra methods or tight deadlines adjust the quote after a short consultation.
The result sheet uses illustrative synthetic data. MATLAB is a trademark of The MathWorks, Inc.
Back to MATLAB portfolio