Possibility of implementing transfer function in arduino.
16 views (last 30 days)
Show older comments
Derek Kweku Degbedzui
on 20 Feb 2017
Commented: HAMMAD ALI
on 29 Dec 2025 at 10:08
Using the Matlab, I obtained the transfer function
1.741e08
---------------------------
s^2 + 1.866e04 s + 1.741e08
I need help to implement the transfer function in Arduino.
Thanks for any help anyone can offer to steer me in the right direction
2 Comments
Accepted Answer
Tashi Wangyal
on 25 Feb 2017
you first have to convert to Z-domain either hand calculation or easily can be done in matlab by using c2d function. once you have your tf in z-domain, simply by substituting H(z) = Y(Z)/U(Z) = "your z-domain tf". make Y(Z) as your subject, which would be a function of Y(Z) itself and Y(Z-1), U(Z), U(Z-1).....so on, which are delayed version of Y(Z) and U(Z). Make sure to update this values after each loop iteration.
0 Comments
More Answers (0)
See Also
Categories
Find more on Analog Filters in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!