论文部分内容阅读
以CAN总线技术为基础,以单片机为核心,设计了某型军械装备发动机的转速实时控制器。控制器的本地单片机用于实时测量转速和执行控制指令,另一个远程单片机作为数字式控制器,采用PID控制方式,两个单片机之间通过CAN总线实现数据通信。本地单片机将发动机的实时转速发送给远程单片机,在数字式控制器中与目标转速相比对,形成偏差量反馈,并送回本地单片机,实现转速的闭环控制。基于CAN总线协议,开发了通信软件。实践证明,该控制器能实时精确地修正发动机转速误差。
Based on CAN bus technology and MCU as the core, this paper designs a real-time speed controller of a certain type of ordnance equipment engine. The local microcontroller of the controller is used for real-time measurement of speed and execution of control commands. The other remote microcontroller, as a digital controller, adopts PID control mode. Data communication between two microcontrollers is realized through CAN bus. The local microcontroller sends the engine’s real-time speed to the remote microcontroller, compared with the target speed in the digital controller to form a deviation feedback and send it back to the local microcontroller to realize closed loop control of the speed. Based on CAN bus protocol, communication software was developed. Practice has proved that the controller can accurately correct the engine speed error in real time.