要用STM32 Cube.Ai
教程:https://blog.csdn.net/qq_39505991/article/details/95176720
PID不是人工智能算法。
STM32上用AI,可以用STM32 Cube.AI工具包