Many time I tried the PID include on different projects but never with success.

This time I am determined to make it work.

The new setup has a 3 phase blower that sucks air from a container, a pressure sensor, a 3-phase inverter to control the motor and a PIC to set the setpoint and measure the pressure.

The pressure is getting close but never on target. I managed to make it stable enough but does not reach the setpoint.

The PID setting so far are as:

pid_Kp = $0250
pid_Ki = $f000
pid_Kd = $ff00
pid_Ti = 8 'Update I-term every 8th call to PID
pid_I_Clamp = 100 'Clamp I-term to max ±100
pid_Out_Clamp = 1023

Increasing the Kp term makes the loop unstable.

Seems the system need a gain but that leads to a non stable loop.

Ioannis