目 录
摘 要 .....................................................................................................................................I
Abstract ......................................................................................................................................II
1 绪论.........................................................................................................................................1
1.1 按摩机的发展..............................................................................................................1
1.2 按摩机的结构..............................................................................................................1
2 控制器的核心 AT89C51 及步进电机...................................................................................3
2.1 AT89C51 的主要性能..................................................................................................3
2.2 AT89C51 引脚功能说明...........................................................................................3
2.3 步进电机介绍..............................................................................................................6
3 系统基本实现方案.................................................................................................................8
3.1 系统框图......................................................................................................................8
3.2 硬件电路图...................................................................................................................9
3.3 系统单片机扩展.........................................................................................................10
3.4 步进电机驱动模块.....................................................................................................11
3.5 显示模块.....................................................................................................................12
3.5.1 液晶显示器工作原理......................................................................................12
3.5.2 液晶管脚定义..................................................................................................13
3.5.3 液晶显示指令描述..........................................................................................14
3.6 按键显示部分电路.....................................................................................................16
4 按摩机控制系统软件设计思想...........................................................................................17
4.1 系统流程.....................................................................................................................17
4.2 进步电机驱动程序.....................................................................................................17
4.2.1 四相单四拍正转子程序................................................................................17
4.2.2 四相单四拍反转子程序...............................................................................18
4.2.3 四相双四拍正转子程序...............................................................................18
4.3 显示驱动子程序.........................................................................................................18
4.4 PWM 软件实现...........................................................................................................20
4.5 速度显示输出.............................................................................................................21
结束语.......................................................................................................................................22
参 考 文 献.............................................................................................................................23
致谢...........................................................................................................................................24