hello everyone,
I have a doubt with the pdi control. I have implemented a pdi control to control a resistor through the temperature and get the desired temperature. now I have to make another mode of operation where a fan is activated to compensate the over oscillation that occurs when the desired temperature is exceeded.
I think that I need another pdi, but I don't know how implement it. if anyone has a simple example to share it would be appreciated.
if you need more information let me know.
Yes, you can instantiate another PID for the fan (use REVERSE controller direction).
Another possibility is to use the same PID as for the heater and change the controller direction. Here, you'd probably need a separate enable output for the fan.
I think you'd only get marginal overshoot improvement by using a fan ... tuning your existing gains to achieve a near ideal response would be more beneficial.
i need to make the case using the fan for the compensation
Perhaps your instructor is looking for a better response, for example, one demonstrating that using a fan would be inefficient, unnecessarily complicate the project, and be a waste of space and energy.