设计简介:
项目名:液位检测
项目编号:mcuclub-dz-145
单片机类型:STM32F103C8T6
具体功能:
1、通过液位传感器进行液位检测,当小于设置最小值进行加水,直到大于设置最大值停止加水
2、通过按键可设置液位阈值,并可手动控制加水
3、通过OLED显示测量数据
4、通过ESP8266进行联网,可将所有监测数据发送到手机端,手机端可控制继电器开关
总字数:10052
实物链接:点击跳转
设计说明书链接:点击跳转
开题报告链接:点击跳转
答辩PPT链接:点击跳转
基于单片机的水位监测系统设计与实现
摘 要:在化工、航天等相关领域,对密闭的容器中水位进行实时且精确的监控和检测是保障安全生产及设备自动化管理的重要前提。为了使水位监测设备的智能化得到快速发展,本文基于STM32单片机,设计一款智能水位监测系统。该系统采用水位传感器对水位进行监测,通过OLED显示屏显示实时水位值,并可通过按键设置水位的阈值。采用ESP8266WIFI模块实现网络通信,将监测到的水位数据值实时传送到手机端,供用户及时查看。同时用户还可以通过手机端控制继电器使得水泵开启或关闭,当检测到的水位低于最小阈值,继电器启动水泵进行抽水,直到检测到的水位值大于最大阈值,继电器断开,水泵关闭,停止抽水。通过实物测试,该系统基本实现水位的监测和控制功能,可用于大部分的液位监测现场,能够有效提高水资源的利用率,因此,该系统具有极高的理论指导意义和实用价值。
关键词:单片机 水位监测 WIFI 继电器
Design and implementation of water level monitoring system based on single chip microcomputer
Abstract:In the fields of chemical engineering, aerospace, and other related fields, real-time and accurate monitoring and detection of water levels in sealed containers is an important prerequisite for ensuring safe production and equipment automation management. In order to rapidly develop the intelligence of water level monitoring equipment, this article designs an intelligent water level monitoring system based on the STM32 microcontroller. The system uses a water level sensor to monitor the water level, displays real-time water level values through an OLED display screen, and can set the threshold of the water level through buttons. Using the ESP8266WIFI module for network communication, the monitored water level data values are transmitted in real-time to the mobile phone for users to view in a timely manner. At the same time, users can also control the relay on their mobile phone to turn on or off the water pump. When the detected water level is below the minimum threshold, the relay starts the water pump to pump until the detected water level is greater than the maximum threshold. The relay disconnects, the water pump shuts down, and pumping stops. Through physical testing, the system has basically achieved water level monitoring and control functions, and can be used in most liquid level monitoring sites, effectively improving the utilization rate of water resources. Therefore, the system has extremely high theoretical guidance significance and practical value.
Key words: Water Level WIFI Relay
目 录
摘 要
Abstract
1 绪论
1.1 选题背景及实际意义
1.2 国内外研究现状
1.3 实现目标
2 系统设计方案
2.1 主要元器件选择
2.1.1 主控芯片选择
2.1.2 显示方案选择
2.2 整体设计方案
3 硬件设计与实现
3.1 单片机主控模块
3.2 水位检测模块
3.3 OLED显示模块
3.4 独立按键模块
3.5 继电器模块
3.6 WIFI模块
4 软件设计与实现
4.1 编程软件介绍
4.2 系统主流程设计
4.3 单片机主控模块
4.4 水位检测模块
4.5 独立按键模块
4.6 OLED显示模块
4.7 WIFI模块
5 实物测试
5.1 系统实物测试
5.3 独立按键功能实物测试
5.4 WIFI模块功能实物测试
结论
谢辞
参考文献:
附录A 原理图
附录B PCB
附录C 主程序