摘要
为了实现永磁式步进电机的细分控制,采用PIC18F2331单片机作为主控单元接收外部的脉宽调制(PWM)步进电机控制信号,并辅之以外部功率驱动电路完成了步进电机细分控制器的硬件设计,并应用C语言编写了相应的PWM信号至步进电机控制信号的转换程序,实现了对2/4相步进电机的开环细分控制。此外,还利用单片机的串行通信模块,设计了与计算机的串行通信电路,方便了系统的调试和监控。测试结果表明,该控制器能实现对步进电机的细分控制。
Aiming at realizing a permanent magnet stepper motor microstepping management, using PIC18F2331 micro-programmed control unit (MCU) as main control unit detecting external pulse width modulation (PWM) control signal and the other external power drive circuit, the hardware was developed for that controller. Furthermore, with the C programming, the PWM duty ratio detected by PIC18F2331 was converted into the stepper motor control signal to drive a 2/4 phase stepper motor. Additionally, the online debug and monitoring of the controller from a computer was realized with the serial communication port. The test results verify the validity of the proposed theory and control.
出处
《机电工程》
CAS
2009年第1期42-44,84,共4页
Journal of Mechanical & Electrical Engineering
关键词
步进电机
PIC18F2331
单片机
功率驱动电路
细分
脉宽调制
stepper motor
PIC18F2331
microprogrammed control unit (MCU)
power drive circuit
microstepping
pulse width modulation (PWM)