MATLAB Answers


Tuning a PID controller with real time sensor input ?

Asked by Kiat Nern Yeo on 10 Jun 2019
Latest activity Commented on by Kiat Nern Yeo on 19 Jun 2019
Hi all
I understand that it is possible to tune a PID controller according to various inputs, such as a RNG source block, a sine wave block, CSV value files etc.
However, how does one tune a PID controller using real time sensor data, especially from an android phone's sensors ? For example an accelerometer.
Can a PID controller be tuned interactively with the user moving and rotating the phone around ?
Cheers !!


Sign in to comment.

1 Answer

Answer by Sruthi Yenugula on 12 Jun 2019
 Accepted Answer

You can use TCP/IP blocks on Android to send sensor data to other hardware(Adruino/Rasberry pi/Lego) or host PC.
Check this example


Is there an example that i can consult and try to learn from for this USB serial communication ?
Thanks !
Ok sir thank you i will look through them

Sign in to comment.