Home > other >  How to understand STM32F407 PID control timer sampling time?
How to understand STM32F407 PID control timer sampling time?

Time:11-29

STM32F407 PID control timer is how to set the sampling time and perform a PID operation time? Looks at various bosses to give directions,

CodePudding user response:

Have a PID module? If is using software timer timing processing, cycle need according to the actual system, generally simple cook 1 to 2 seconds, the cycle into n shares, usually 100

CodePudding user response:

First, the acquisition cycle can be right, but the sampling period must be at least 2 times faster than PID the lifecycle of above,
Second, if the control object response quickly, PID adjustment cycle faster, for example: 50 milliseconds for a PID regulation;
If control object response is slow, slower PID adjustment period, for example: 500 milliseconds for a PID regulation;
Third, if using a PID temperature control is very difficult to control, if you want to use a PID and stable control of the temperature, must use fuzzy PID or other experts experience curve of PID,
Fourth, if it's not fuzzy PID or other experts experience curve of PID, to the stable control of the temperature, must be conducted with cascade PID control,
In the power plant boiler control system [level 1 water spray desuperheating system], [] secondary water spray cooling system, is done with the cascade PID control to control temperature stable,

CodePudding user response:

refer to the second floor ba_wang_mao response:
first, acquisition cycle can be right, but the sampling period must be at least 2 times faster than PID execution cycle,
Second, if the control object response quickly, PID adjustment cycle faster, for example: 50 milliseconds for a PID regulation;
If control object response is slow, slower PID adjustment period, for example: 500 milliseconds for a PID regulation;
Third, if using a PID temperature control is very difficult to control, if you want to use a PID and stable control of the temperature, must use fuzzy PID or other experts experience curve of PID,
Fourth, if it's not fuzzy PID or other experts experience curve of PID, to the stable control of the temperature, must be conducted with cascade PID control,
In the power plant boiler control system [1 water spray desuperheating system], [] secondary water spray cooling system, is done with the cascade PID control to control temperature stable,

So you speak quite fully, but there are specific implementation timer sampling time code? May be it's better to understand how it is implemented in the program,

CodePudding user response:

reference sinat_41011590 reply: 3/f
Quote: refer to the second floor ba_wang_mao response:
first, appropriate collection cycle, but the sampling period must be at least 2 times faster than PID execution cycle,
Second, if the control object response quickly, PID adjustment cycle faster, for example: 50 milliseconds for a PID regulation;
If control object response is slow, slower PID adjustment period, for example: 500 milliseconds for a PID regulation;
Third, if using a PID temperature control is very difficult to control, if you want to use a PID and stable control of the temperature, must use fuzzy PID or other experts experience curve of PID,
Fourth, if it's not fuzzy PID or other experts experience curve of PID, to the stable control of the temperature, must be conducted with cascade PID control,
In the power plant boiler control system [1 water spray desuperheating system], [] secondary water spray cooling system, is done with the cascade PID control to control temperature stable,

So you speak quite fully, but there are specific implementation timer sampling time code? May be it's better to understand how it is implemented in the program,

Thank you very much, give directions

CodePudding user response:

Image, is very helpful to understand, thank you very much,

CodePudding user response:

Sampling period and computation period, with a TIM timer,
  • Related