武汉理工大学《计算机控制技术》课程设计说明书
目录
1 设计方案..........................................................................................................................................2
1.1 单冲量水位控制系统...........................................................................................................2
1.2 双冲量水位控制系统...........................................................................................................2
1.3 具体方案的确定...................................................................................................................2
2 硬件设计..........................................................................................................................................3
2.1 单片机选择...........................................................................................................................3
2.2 复位电路...............................................................................................................................5
2.3 时钟电路...............................................................................................................................5
2.4 显示电路...............................................................................................................................6
2.5 传感器的选择.......................................................................................................................7
2.6 A/D 转换芯片.......................................................................................................................8
2.7 D/A 转换芯片.......................................................................................................................9
3 软件设计........................................................................................................................................10
3.1 主程序.................................................................................................................................10
3.2 T0 定时中断子程序设计...................................................................................................12
3.3 采样子程序设计.................................................................................................................13
3.4 键盘子程序.........................................................................................................................14
4 PID 控制器.....................................................................................................................................15
4.1 PID 控制器原理..................................................................................................................15
4.2 PID 控制器的参数整定.....................................................................................................16
5 总结................................................................................................................................................16
参考文献...........................................................................................................................................17