东南大学本科生毕业设计(论文) 基于 MCU 的通用控制器设计摘要: 电机控制器的发展朝着集成化和通用化的方向发展着。目前, 电机控制专用集成电路芯片技术已经比较成熟,电机控制专用集成电路芯片的种类也十分齐全,但在通用性上还显得不足。而且, 电机控制专用集成电路品种规格繁多, 产品资料和应用资料丰富, 但是又很分散, 需要花时间收集整理、分析消化,研究电机的通用控制器很有必要。本次设计先用 MATLAB 对 PID 控制器进行仿真, 计算, 包括参数整定, 加深对控制器和离散算法的认识, 再进一步探索双闭环反馈的控制器算法。然后在基于 STM32 的电机控制电路中进行检验,以便进一步优化算法。这次设计的通用控制器其通用性主要体现在两个方面: 一是 PID 控制器结构的通用性即可以选择单闭环,双环,甚至三环控制,对不需要的控制只需要将该参数设置为 0 ;二是 PID 参数的通用性,即可以很方便的对 PID 参数进行调整,以适应实际的需求。就目前的研究结果来看, 理论研究基本完成, 亦根据实际情况拟合出了电机转速与占空比之间的函数关系,将这种关系应用在简单的单闭环控制中取得了很好的效果,在不使用这种关系, 亦对 PID 参数进行了整定,还需要进一步检验 PID 算法对实际电机控制的效果,提高其通用性。关键词; STM32 ;通用控制器; PID ; MATLAB 仿真东南大学本科生毕业设计(论文) Design of MCU B ased Universal C ontroller Abstract: The motor controller is ing more and more integrat ed and universal . At present, the technology of motor control ASIC chip is relatively mature, the type s are also plete , but it lacks universality partly . Moreover, there are varieties specifications, product information and application data but very scattered, it takes lots of time to collect and analyze the study of the universal motor controller is necessary. In the d esign , firstly the MATLAB is used to emulate the PID controller, including parameter calcula t ion, to achiev ea better understanding on the controller and the discrete algorithm, and then an algorithm of double closed-loop control system is explored . And then a circuit of motor control based on the STM32 is tested,in order to further optimize the algorithm. The universality of the universal controller is mainly reflected in the two sides : First, the PID controller structure is optional among a single closed loop control system ,a double loop control system , and even three loop control system ; Second is the versatility of the PID parameters, can adjust ed for the actual demand in the field . According to the c urrent results, the theoretical study pleted ,a functional relationship between motor speed and duty cycle is determined based on the actual situation .The relationship is applied
基于MCU的通用控制器设计本科毕业设计 来自淘豆网www.taodocs.com转载请标明出处.