SimpleMovingAverage
Example of a Simple Moving Average (SMA, also known as Running Average) filter.
- Boards:
- AVR, AVR USB, Nano 33 IoT, Nano 33 BLE, Due, Teensy 3.x, ESP8266, ESP32
Written by PieterP, 2020-01-07
https://github.com/tttapa/Arduino-Filters
#include <AH/STL/cmath>
void setup() {
Serial.begin(115200);
}
const double f_s = 100;
void loop() {
if (timer)
}
Dummy header file for Arduino builder.
Simple Moving Average filter.
A class for easily managing timed events.
analog_t analogRead(pin_t pin)
An ExtIO version of the Arduino function.