目 录
绪论........................................................................................................................................1
1 设计思路与方案................................................................................................................1
1.1 设计思路...................................................................................................................1
1.2 设计方案...................................................................................................................1
2 步进电机的工作原理及特性..........................................................................................2
2.1 步进电机的简介.......................................................................................................2
2.2 步进电机的特点.......................................................................................................2
2.3 步进电机的工作原理...............................................................................................3
3 硬件电路设计....................................................................................................................5
3.1 单片机最小系统电路...............................................................................................5
3.2 控制模块.................................................................................................................10
3.3 驱动模块.................................................................................................................10
3.4 激光检测电路输出 .................................................................................................13
3.5 串口通信模块.........................................................................................................13
4 软件设计........................................................................................................................14
4.1 程序流程图.............................................................................................................14
4.2 系统主程序.............................................................................................................15
4.3 定时中断设计.........................................................................................................16
4.4 外部中断设计.........................................................................................................17
4.5 Proteus 仿真软件....................................................................................................17
4.6 本次系统的仿真图.................................................................................................18
5 PCB 板设计及硬件调试.................................................................................................19
5.1 PCB 制作过程 ........................................................................................................19
5.2 硬件调试 PCB ........................................................................................................20
5.3 系统设计实物图.....................................................................................................20
结束语..................................................................................................................................22
参考文献..............................................................................................................................23
附 录..................................................................................................................................24
致 谢..................................................................................................................................29