0
$\begingroup$

Arduino is a digital mikrocontroller. But I wonder if it's possible to implement an continuous time feedback regulator in an Arduino microprocessor?

Continuous time feedback regulators such as PID:

$$ K = P(e(t)-D\frac{\mathrm{d} }{\mathrm{d} x}e(t) + I\int_{0}^{\infty} e(t) dt) $$

Or LQG regulator (this is a LQR with kalmanfilter only, not the model): $$ \dot{\hat{x}} = (A - KC)\hat{x} + Bu + Ky + Kn - KC\hat{x} $$

$$ u = r - K\hat{x} $$

Or do it need to be a digital feedback regulator? I mean....those feedback regulators works exellent by using operational amplifiers.

I know that operational amplifier works in real time. But an Arduino working in 16 Mhz speed, and that's very fast too.

$\endgroup$
2
$\begingroup$

continuous time feedback regulator in an Arduino microprocessor.

You can get at most a very accurate approximation of the continuous time system using Arduino by converting the continuous time model of your system into a discrete-time version: once you have the transfer function of you continuous time control system (filter or controller) you can operate a discretization through some well-known method such as the Bilinear transform and then obtaining the digital (dicrete-time) version to implement.

PS: do not confuse the real-time with the continuous time.

EDIT: Every time you deal with the "digital world" (memories, sample&hold processing) you need a discrete-time version of your continuous time model. You cannot directly implement it as it is (beside using an automatic code generator, but even in that case an automatic conversion continuous-to-discrete is also needed). Just to have an example, if you have a simple low-pass filter, easy to build with analog electronic components (resistor and capacitor) as: $$W(s) = \frac{1}{1+sRC}$$

to implement it into a discrete-time system (such as microcontroller) you need its discrete time version which will have comparable performance under certain conditions:

$$W(z) = {\frac {1+z^{{-1}}}{(1+2RC/T)+(1-2RC/T)z^{{-1}}}}$$

The most important thing to observe when a model of a system is converted is Nyqvist-Shannon sampling theorem.

$\endgroup$
  • $\begingroup$ Comments are not for extended discussion; this conversation has been moved to chat. $\endgroup$ – Mark Booth Jun 30 '17 at 10:28
  • $\begingroup$ Welcome to Robotics Orlok. On stack exchange, comments are not intended for extended discussions, for that use Robotics Chat. It is also better to edit your answer to add information requested in comments, rather than adding more comments. Comments are for helping to improve questions and answers, and are distracting, so we try to keep them to a minimum. If all of the information needed to answer the question is contained within it, the comments can be tidied up (deleted). $\endgroup$ – Mark Booth Jun 30 '17 at 10:33

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.