摘要
系统由单片机产生数字脉冲信号,通过ULN2003驱动芯片控制电机的运行。由于脉冲信号的频率决定电机的转动速度,所以要改变转速就需要改变脉冲频率。系统采用定时中断的方法改变脉冲频率,而按键次数主要控制外部中断用以改变存储区中的速度值,步进电机的输出脉冲频率就发生相应的改变,最终达到改变转速的效果。
The system produces a digital pluse signal by SCM,and uses the ULN2003 to drive chip control the operation of motor. Because the rotational speed of motor is detemined by the frequency of the pulse signal,to change the system speed need change the pulse frequency. The system adopts the method of timing interrupt which is the way of changing the pulse frequency. In the meanwhile,the number of buttons could control the external interrupt that is used to change the speed value in the storage area. The output pulse frequency of stepping motor will change accordingly. Finally the speed has to change.
出处
《智能计算机与应用》
2015年第2期62-63,67,共3页
Intelligent Computer and Applications
关键词
脉冲频率
转速
定时中断
外部中断
Pluse Frequency
Rotation Rate
Timing Interruput
External Interrupt