基于单片机的水灾液位检测系统的设计Design of flood level detection system based on single chip computer内容摘要一直以来,水总是我们生活中十分常见但又不可或缺的部分。往小了说,一个人的一日三餐衣食住行都离不开生活用水,而往大了说,长江三峡水利枢纽工程所产生的效益也与我们的生活息息相关。古有诸葛孔明北征时,征集兵丁开设专职维护管理都江堰,今有 1952 年毛主席视察黄河时提出的南水北调工程,而这些,都与水,或者说都与水利工程,水的治理息息相关。同样的,本次毕业设计也是紧紧围绕着水而展开的。本次毕设选用宏晶科技有限公司的一款单片机作为主控 IC 设计一款水灾液位检测系统。硬件系统是由 STC15F2K60S2 单片机、液位传感器、超声波传感器、步进电机、步进电机驱动 IC、12864 液晶显示屏、旋转编码器、有源蜂鸣器和时钟 IC 组成。其功能有,水位值得实时显示、超预警时步进电机的水闸控制、蜂鸣器的报警、相关时间以及状态信息的显示及直观的图标数据显示功能。关键词: STC15F2K60S2 液位传感器 水灾检测 单片机AbstractWater has always been a very common but indispensable part of our lives. To a younger age, one person cannot eat, drink, eat or live without water for daily meals, but to a large age, when the Three Gorges Water Conservancy Project in the Yangtze River had a history of Zhuge and Kongming North expeditions, soldiers were recruited to set up full-time maintenance and management of Dujiangyan. Today is 1952. The South-to-North Water Diversion Project proposed by Chairman Nian Mao during his inspection of the Yellow River was closely related to water, or water conservancy projects and water treatment. Similarly, this graduation project is also developed around water.The hardware system is composed of STC15F2K60S2 microcontroller, liquid level sensor, ultrasonic sensor, stepper motor, stepper motor driver IC, 12864 LCD display, rotary encoder, active buzzer and clock IC. Its functions are: the water level is worth real-time display, the...