How to use Arduino as an emulator to filter signals ?

1 次查看(过去 30 天)
Arduino Code:
define<IIRFilter.h>
const double numerator={100, 68};
const double denominator={-98,7};
IIRFilter iir(numerator,denominator);
void setup()
{
Serial.begin(9600);
}
void loop()
{
if(Serial.available()>0)
{
int u=Serial.read();
int filtered=iir.filter(u);
Serial.println(filtered)
}
}
  1 个评论
SOUMYA SUVRA GHOSAL
The attachment is the Simulink model. But on scope no output is coming where using same filter coefficents the digital filter is working good.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Arduino Hardware 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by