Dlloydev / QuickPID

A fast PID controller with multiple options. Various Integral anti-windup, Proportional, Derivative and timer control modes.
MIT License
195 stars 50 forks source link

Question: Application and Negative Use Cycle #15

Closed lbussy closed 3 years ago

lbussy commented 3 years ago

Hello @Dlloydev, and thanks for sharing your library.

I have two basic questions, but let me tell you the application first: I will be controlling heat using SSRs and heat lamps. I expect the system to be fairly slow-acting, maybe even 60 minutes to reach the setpoint. Since this is an outside application, the load will be somewhat seasonal. It's also agricultural in nature, so being a degree off will not kill anything.

That said, here are my questions:

  1. Are there any tips you can give me for my application using your lib? I chose your library quite frankly because of all the branches of the original, yours seemed the most maintained. If the answer/tip is "go try this other dude's lib" that's fine too. :)
  2. This application will be heat only, and therefore weird things may happen during days/weeks/months where no heat is needed. Do you see any implications with insane windup there?
Dlloydev commented 3 years ago

Hello and thanks for your interest in this library.

Should be no problem using QuickPID or the upstream original library for your application. My plan is to eventually use QuickPID for a reflow oven controller using a zero-crossing SSR and quartz heating element.

I'll probably add a few things to suit this application, like a new method to reduce any thermal cycling of the SSR and heatsink during normal operation.

Windup shouldn't be an issue (I've added some extra integral anti-windup) but haven't tested this on a slow responding system yet.

lbussy commented 3 years ago

Great, now I have something else to worry about (the SSR). :smile:

It's been a REALLY long time since messing with a PID, and that was in a building control system. Should be fun!