目录
一、设计题目...........................................................................................................................5
1.1 设计要求.........................................................................................................5
1.2 项目分析.........................................................................................................5
二、系统方案...........................................................................................................................6
2.1 方案选择..........................................................................................................6
三、系统硬件选择........................................................................................................8
3.1 直流电机.........................................................................................................8
3.2 主控制芯片方案的选择..................................................................................8
3.3 显示模块的选择..............................................................................................9
3.4 电机的驱动模块的选择..................................................................................9
3.5 稳压模块的选择..............................................................................................9
3.6 光栅................................................................................................................10
3.7 光电传感器....................................................................................................10
四、算法设计........................................................................................................................10
4.1 PID 与 PWM 算法............................................................................................10
4.2 数字 PID 参数的确定...................................................................................13
五、硬件电路设计与实现 ..................................................................................................14
5.1 单片机最小系统............................................................................................14
5.2 系统显示模块................................................................................................15
5.3 直流电机驱动模块和稳压模块...................................................................15
5.4 直流电机测速模块.......................................................................................16
5.5 总体电路设计................................................................................................16
六、系统软件设计...............................................................................................................16
6.1 软件流程图...................................................................................................16
6.2 软件(见附录)...............................................................................................18
七、性能指标 .......................................................................................................................18
7.1 误差分析........................................................................................................18
八、心得体会 .......................................................................................................................19
九、附录.................................................................................................................................19