Research on Implementation Method of Fuzzy Logic Control Based on MCU
Jigao Niu, Zhaojun Wang, Pengbo Zhang, Bing Zhang, Chunhua Xu · Journal of Physics Conference Series · 2019
Abstract Fuzzy control belongs to the category of intelligent control, which has outstanding control advantages for more complex systems. Firstly, based on Matlab sltank fuzzy control system, a data extraction model has been established in this paper. By running the model, a number table can be obtained. Secondly, the number table is embedded into the two-dimensional lookup table module, and the C code is generated by real time workshop (RTW) function. Finally, the interpolation principle analysis is carried out, and the interpolation algorithm of two-dimensional lookup table is embedded into the MCU for testing. The real-time test results show that the interpolation result of the MCU is consistent with the off-line simulation result, and the real-time control of the MCU can be guaranteed.