ivPID icon indicating copy to clipboard operation
ivPID copied to clipboard

Bare minimum example for RPI

Open mbobinger opened this issue 3 years ago • 1 comments

Hi Guys, could you please include a bare minimum PID controller based on this REPO for the RPI?

I have found a blog entry for Onion here: https://onion.io/2bt-pid-control-python/

Please also check my question on stackoverflow that I opened in the meantime: https://raspberrypi.stackexchange.com/questions/137099/how-to-pid-control-a-heater-with-ssr-raspberry-pi-and-a-heater

Can you guide me a bit here? Maybe that's already a tutorial.

mbobinger avatar Apr 16 '22 09:04 mbobinger

@mbobinger A bare minimum PID, in my experience, just uses P and D. The I term can be problematic as anything holding control can make it build up dangerously .

So P is just difference times a constant to target and D is just rate of change times a constant.

So you just take in a measurement every scan and calculate the two and add....... and adjust to get good result. . .

grayerbeard avatar Apr 17 '22 14:04 grayerbeard