. In this project, we will apply a low pass filter to a digital signal recorded from Hexabitz temperature sensor module (H09R0).
First, we connected the STLINK(H40R0) programming module to the thermocouple temperature module (H09R0) so that the module can be programmed as shown in the following figure:
The low-pass filter is applied using the following equations:
To transform Z, we substitute all S by the following equation:
After substitution, the equation becomes a formula for Z:
The cutoff frequency was chosen based on the sampling time of the module's analog-to-digital converter, where the sampling time is 239.5 clock cycles and the cutoff frequency is therefore 0.041 HZ. The sampling frequency should be greater than the cutoff frequency, so we chose a frequency of 4 HZ.
Substituting the cutoff frequency and the sampling frequency into the previous equation gives the final form of the low-pass filter equation applied to the thermocouple temperature module signal:
The signal was monitored by the STM32CubeMonitor software.
In the figure (1) the folder reading the signal was selected by the temperature module.
Figure (2), Notice that the file extension is “.elf”.
In figure (3), you can see the selection of the variable that measures the temperature, and the other variable is the filtered signal.
In the figure (4), we see the output of the module, i.e., the signal before filtering and the signal after filtering.







Comments