Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4955

Python • Re: PID controller help

$
0
0
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
I'm doing a lot of PID .

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.
thanks i will check this out tonight!

Statistics: Posted by Ykdave — Fri Oct 18, 2024 12:57 am



Viewing all articles
Browse latest Browse all 4955

Trending Articles