Dtynin
Dtynin
Trying to implement a real-time data processing feature using Edge Computing on the AVR128DA48
Still on my project, I’m trying to implement a real-time data processing feature using Edge Computing on the AVR128DA48. The goal is to perform basic filtering on the sensor data ( removing noise from the vibration sensor). Here’s my simple filtering code:
int16_t filter_data(int16_t raw_data) {
static int16_t last_data = 0;
return (last_data + raw_data) / 2;
}
int16_t filter_data(int16_t raw_data) {
static int16_t last_data = 0;
return (last_data + raw_data) / 2;
}
I expected the filtered data to be smoother, but I’m still seeing a lot of noise. Is this filtering method too just there(simple) for real-time processing? and how can I implement a more robust filtering algorithm on the AVR128DA48?
3 replies