Possibility of implementing transfer function in arduino.

16 views (last 30 days)
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

Accepted Answer

Tashi Wangyal
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!