I am discretizing the PID equation so we have this equation
Now if we separate the integral term we get
Applying backward euler method
Now as we already have a differentiation , by applying backward euler method
and the end equation is something like this
I just want to ask if I did something mathematically wrong or did I miss a step ?
P.S I am new to this forum so I just added my solution I solved in a word file
error = setpoint - Processvalue
which is the input to our PID controller $\endgroup$