- Can an Arduino be a PID controller?
- How do I Discretize a PID controller?
- What is the basic difference between a discrete PID controller and continuous PID controller?
Can an Arduino be a PID controller?
To implement a PID controller in a code or an Arduino sketch, five parameters must be known: proportional, integral and derivative constants, input value and set point value. PID computation must be inside a looping function. The first part of the function should be determining the time elapsed.
How do I Discretize a PID controller?
A straightforward way to discretize this controller is to convert the integral and derivative terms to their discrete-time counterpart. There are commonly 3 variations to do so, by means of forward Euler, backward Euler, and trapezoidal methods.
What is the basic difference between a discrete PID controller and continuous PID controller?
Continuous-time controller is designed in the s-domain, whereas a discrete-time controller is designed in the z-domain. Therefore you cannot use the same numeric values to obtain the same response. Continuous is implemented with analogue electronics. Discrete means digital.