thanks i will check this out tonight!I'm doing a lot of PID .I’m using a temperature input to control a pwm output, which I’ve got set up and working on fixed points, now I want to use a PID to spit out the variable for the PWM. I just can’t seem to find any examples of similar code I can make work, everything I’ve come across doesn’t allow for any external input
Basically it is Proportional + integral + derivative
Proportional = (target - value) * P_factor
Integral = sum of all (target-value) * I_factor
Derivative = (previous value - current value) * D_factor
I quick look into the web and I found this one in python which is perfect for you
https://simonebertonilab.com/pid-controller-python
It's very well explain.
Statistics: Posted by Ykdave — Fri Oct 18, 2024 12:57 am