Function: The serial data is received after filtering, and before and after the filtering data display, the data can be saved to see the spectrum.
This routine:
1, the serial port data received and have the protocol decoding (here everyone download, you can modify, or contact me to help modify)
2. Data after analysis, dynamic filtering
3, the data before and after filtering are displayed, easy to compare.
File list
FFT: Use this function for spectral analysis of the saved data.
Myfilter: Modifying filter coefficients
SERIALAPI: Serial Reception letter Fung
Testfilter: After designing the filter coefficient, we can produce fixed waveform and test effect.
WAV: Main program, run this function for data reception, filtering, display, save.
Above: The Blue Line is a 10Hz and 50Hz frequency waveform of two. The red line is a waveform filtered by the ECG filter, which shows that 50Hz is completely out of the picture.
If not MATLAB users, you can find I want a vs writing software, the same is the data display. Just can't filter.
Note:
Need friends, go to my Taobao pat. Just to make friends. Price 10 RMB
https://item.taobao.com/item.htm?id=556545965199