That's me in our office with my wife Heide's painting in the background. |
Original Paint Flow Control simulated very slow response. |
The chart above shows that the paint flow reaches the setpoint in about 25 seconds. So I decided to see if I could improve the FLA to speed up the response. I had used Octave (Octave) along with L. Markowsky's Fuzzy Logic Toolkit to generate a Look-Up-Table or LUT that I then used in my Python code to produce the output signal for the paint flow pump.
The LUT that I had previously generated is shown below.
Coarse LUT, August 23, 2015 |
The August 2015 LUT worked pretty well but I decided to rework the Fuzzy Rules from the original 25 to 49 rules, then as before I used Octave and Markowsky's Fuzzy Logic Toolkit to produce a new LUT, shown below.
LUT, January 31, 2018 |
However, although the revised LUT shown above is a little smoother than the August, 2015 LUT, it did not to improve the simulated controller response.
Consequently, I decided to tweak my Python code and discovered that in my haste I had mistakenly set the output_scale_factor or gain constant to 6.0 when, for large errors > 200 the output_scale_factor should have been 250.0! So drastically increasing the output_scale_factor from 6.0 to 250.0 greatly improved the simulated system response. Below is the simulated response for the corrected output_scale_factor.
New Python code response, system time constant 2.0 seconds. |
So problem solved, easily, and the controller response should be greatly improved. Next to load the software into my Beaglebone Black microcomputer and give it a try.
No comments:
Post a Comment