How to use Arduino as an emulator to filter signals ?

2 ビュー (過去 30 日間)
SOUMYA SUVRA GHOSAL
SOUMYA SUVRA GHOSAL 2019 年 2 月 12 日
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
SOUMYA SUVRA GHOSAL 2019 年 2 月 12 日
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 Center および File ExchangeArduino Hardware についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by