摘要
以CAN总线技术为基础,以单片机为核心,设计了某型军械装备发动机的转速实时控制器。控制器的本地单片机用于实时测量转速和执行控制指令,另一个远程单片机作为数字式控制器,采用PID控制方式,两个单片机之间通过CAN总线实现数据通信。本地单片机将发动机的实时转速发送给远程单片机,在数字式控制器中与目标转速相比对,形成偏差量反馈,并送回本地单片机,实现转速的闭环控制。基于CAN总线协议,开发了通信软件。实践证明,该控制器能实时精确地修正发动机转速误差。
Based on the CAN bus technology, design of ordnance weapon with the core of the microcontroller is il- lustrated. A local microcontroller is used for real-time measurement of speed and execution of control commands, while another remote microcontroller is used as a digital controller under the PID control. Different microcontrollers communi- cate via CAN bus. Local microcontroller sends real-time engine speed value to the remote microcontroller. Compared with the target speed, a feedback deviation will be sent back to the local microcontroller to achieve closed-loop control of speed. Based on CAN bus protocol, communication software has been developed. It is proved that the controller can pre- cisely correct errors of real-time engine speed.
出处
《仪表技术》
2014年第4期25-27,31,共4页
Instrumentation Technology
关键词
实时控制
单片机
CAN总线
real-time control
microcontroller
CAN bus