摘要步进电机是一种将电脉冲信号转化为角位移或者线位移的开环控制电机,因其具有结构简单、控制方便、成本低、通用性强等优点,广泛应用于工业控制和数字信号控制当中。本文以两相混合式步进电机为例,介绍了一种基于FPGA的步进电机驱动控制方式。本文主要分为三个方面。76099
一、MFC可视化界面设计。利用windows编程编辑电机的控制界面,主要包括电机的一系列控制功能,例如开始、结束、加速、减速、正转、反转、单步运转等功能键。
二、串口设计。本文主要包含两方面的串口设计,即MFC的串口发送数据和FPGA的串口接收数据。MFC串口发送数据主要采用Mscommm控件。而在FPGA中,设计了对8位数据的接收模式。
三、步进电机的控制。利用FPGA对两相混合式步进电机进行控制,控制量为脉冲频率和运转方向
本设计软件硬件相结合,形成了可面向用户使用的步进电机控制系统,功能齐全,使用方便。
毕业论文关键词 步进电机 FPGA 串口传输 MFC 驱动
毕业设计说明书外文摘要
Title Design of a Stepper Motor Control System Based on FPGA
Abstract Stepper motor is a kind of open-loop motor transferring the electric pulse into angular displacement or linear displacement ,owing to its simple structure, convenient control, low cost and versatility, it is used widely in industrial and digital signal control , this paper make two-phase hybrid stepping motor example, introduce a drive way controlled stepper-motor based on FPGA。 This paper was pided into 3 parts。
1。 Visual interface design based on MFC。 Take use of windows programming to design motor control interface, including a series of functions controlling the motor, such as the function of start, end, acceleration, deceleration, forward, reverse, single-step operation and other function keys。
2。 Serial port design。 This paper contains two designs about serial port, first is sending data serial port based on MFC, and second is receiving data serial port based on FPGA。 The MFC serial port takes use of the control of Mscommm。 In the design of FPGA serial port, I introduce a mode receiving 8-bit data。
3。 Stepper motor control。 Use the FPGA to control the two-phase hybrid stepper motor, the control variable are pulse frequency and direction。
This design combines software with hardware, made a stepper motor controlling system directly to users。 It is full-featured and easy to use。
Keywords step-motor FPGA serial port transmission MFC drive
目 次
1 引言1
1。1论文的研究背景1
1。2研究现状及前景2
1。3本文的主要工作3
2 步进电机总体设计方案4
2。1步进电机优点 4
2。2步进电机分类4
2。3步进电机的运动原理4
2。4 步进电机驱动设计方案及开发工具5
2。5本章小结9
3 上位机通讯设计10
3。1 MFC10
3。2可视化界面的编写10
3。3 MFC串口设计12
3。4 本章小结15
4 FPGA串口设计16