Clear Filters
Clear Filters

How to use Arduino as an emulator to filter signals ?

1 view (last 30 days)
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 Comment
SOUMYA SUVRA GHOSAL
SOUMYA SUVRA GHOSAL on 12 Feb 2019
The attachment is the Simulink model. But on scope no output is coming where using same filter coefficents the digital filter is working good.

Sign in to comment.

Answers (0)

Categories

Find more on Arduino Hardware in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!