摘要船闸水位实时监测是船闸安全与自动化运行的一项关键内容。针对船闸站多点水位实时测量及其发布的需求,现在的水位监测大多是人用双眼测量,效率相对较低而且准确率不高。不能满足广大船民的过闸需求。本项目设计了一种基于高性能单片机STC89C52RC的多通道水位监测及其短信息交互系统。利用压力式水位传感器对船闸上、下游、闸室等多点水位进行实时采集,单片机程序设计时使用的是keil软件,对单片机主体以及A/D转换器AD7888、LCD12864进行相对应的程序设计。工控机(PC机)的操作界面是基于VB6.0进行设计的,采用GSM模块以短消息方式与指定手机用户群进行水位信息的双向交互。最终调试后发现,系统总体方案合理、软硬件工作可靠、运行成本低廉,完全可以满足船闸多通道水位监测及双向信息交互的要求,宜于推广应用。50737
毕业论文关键词:水位采集;单片机;GSM短消息;双向交互
Abstract The real-time monitoring of water level is a key element for the security and automation of ship lock. For the needs of multipoint real time measurement of water level and its publishing of ship lock station, Now people use their eyes for the water level monitoring , The relatively is very low and the efficiency and accuracy is not high. Can not meet the needs of the majority of migrants lockage.we design a multi-channel level monitoring and SMS for interactive systems based on high-performance MCU STC89C52RC . We acquire multipoint real time water level data of upstream, downstream lock chamber acquisition by using pressure water level sensor, Using keil software when you design micro controller , It can design the MCU subject and A / D converter AD7888, LCD12864 . IPC interface design based on VB6.0, and complete the two-way interaction of water level information by using GSM module with short messages to cell phone user. The final commissioning shows that: overall scheme of the system is reasonable, hardware and software works well, low running costs ,it fully meet the requirements of ship lock and it’s worth popularizing and using.
Key words: water level data acquisition; MCU; GSM short message; bi-directional interaction
目 录
第一章 绪论 1
1.1 作品研发背景及意义 1
1.2本项目的技术特点 1
第二章 系统总体方案设计 4
2.1 系统总体方案介绍 4
2.2 系统可行性分析 4
第三章 软件的编写 6
3.1单片机软件设计 6
3.1.1 编程语言选择 8
3.1.2 软件总体流程 9
3.1.3 A/D转换关键代码 10
3.1.4 LCD的程序设计 14
3.1.5 串口的程序设计 19
3.2 PC机软件设计 20
3.2.1 编程语言选择 20
3.2.2 软件总体流程 20
3.2.3 GSM模块访问 22
3.2.4 典型操作界面 ,,,23
第四章 系统的调试 24
4.1单片机程序调试 24
4.2 PC机程序调试