1、 学学 士士 学学 位位 论论 文文 题目:题目:基于 ARM 的 控制电机系统设计 作者:作者: 指导教师: 专业技术职称:副教授 学科专业:计算机科学与技术 申请学位日期:2012 年 6 月 摘 要 目前,基于 ARM 技术的嵌入式系统几乎已经深入应用到各个领域,是当今 32 位嵌 入式系统应用的主流。ARM 在工业控制领域的应用也受到越来越多的关注。 本课题设计了一个基于 ARM 的嵌入式直流电机转速监控系统。 该系统使用 PHILIPS 公司的以 ARM9 为内核的 LPC2124 芯片作为控制核心,配置相应的外设及接口电路,运 用性能价格比较好的集成电机控制芯片 L298 作为直流
2、电动机的 PWM 驱动器件; 采用光 电编码器实现对转速信号的采集;采用 LPC2124 内部集成定时器的捕获功能对编码器生 成的脉冲序列信号进行测量;采用 74LS74 作为鉴相器而识别电动机实时转向;采用单闭 环 PI 控制调节转速;采用 LCD1602 系列显示屏即时显示电动机的转动信息;采用 4 4 矩阵键盘对转速及转向进行设置和控制。系统软件主要使用 C 语言编写,遵循模块化设 计的原则,编写了转速的测量、转速的 PWM 驱动、转速的 PI 调节、转速的显示、键盘 输入等程序模块,程序代码具有良好的易维护性和可移植性。最后使用 Proteus ISIS 仿真 工具对系统仿真,并在仿真
3、平台上对系统性能进行测试与分析。 本系统的设计精度可以满足一般工业控制的要求,能够应用到实际的生产生活中, 满足现代化生产的需要。而且能够防止用户的误操作,增强了系统运行的安全性和稳定 性,具有一定的实用性和较高的社会推广价值。 关键词:关键词:ARM;嵌入式系统;直流电机转速控制;LPC2124 ABSTRACT At present, the embedded system that based on the ARM technology almost has been used on each field, and this technology is the mainstream of
4、 current 32 bits embedded system. Applications of ARM in the field of industrial control have also been attracted more and more attention. This article designed an embedded system of DC motor speed control which based on ARM. This system take the ARM7TDMI-S core to the PHILIPSLPC2124 chip as the con
5、trol core, configured corresponding outside to suppose and the interface electric circuit, uses the integrated motor controller L298 as the PWM driven device which with high performance price ratio; uses the photoelectric encoder to achieve the speed signal acquisition; uses the capture of integrate
6、d timer internal LPC2124 to measure the pulse sequences which generated by encoder; uses the 74LS74 as a phase detector to real-time identify the direction; uses the LCD1602 screen to real-time display the information of the motor rotation; uses the 4 4 matrix keyboard to set and control the speed and direction. The software of this system written in C programming language mainly, follow the principles of modular design, including the speed measurement, speed PWM drive