项目编号:mcuclub-dz-292
设计简介:
项目名:鱼缸(实物)(mcuclub-dz-246)
项目编号:mcuclub-dz-292
单片机类型:STM32F103C8T6
具体功能:
1、通过超声波检测水位,并设定一个鱼缸总高度,当水位低于设置最小值,进行加水
2、通过防水式DS18B20检测水温,当水温低于设置最小值,进行加热(防水加热棒)
3、通过PH检测模块检测PH值,当PH值高于设置最大值或低于设置最小值,启动水泵换水(两个继电器)
4、通过浊度传感器检测浑浊度,浑浊度大于设置最大值,启动水泵换水(两个继电器)
5、通过光敏电阻检测光照值,当光照值低于设置最小值,进行补光
6、通过内部RTC获取时间,并可通过按键设置3个定时投喂时间点,投喂时间到后,开启步进电机,停留10s后,再自动关闭
7、通过按键可设置间隔多少时间充氧一次
8、通过按键可设置各阈值
9、通过OLED显示屏显示测量值
10、通过WIFI模块将测量数据发送到手机端,手机端可调节各阈值,并可以控制加水、排水、加热、投喂、补光以及模式切换
总字数:20786
基于单片机的智能鱼缸系统设计
摘 要:随着人们生活水平的不断提高,精致生活成为一种时尚。为了增添生活情趣,装饰家居环境,养殖观赏鱼已成为一种潮流,为了给鱼营造良好的生活环境,设计智能养鱼环境监测系统必不可少。
本文采用STM32作为主控芯片,配合传感器开发的一种新型养鱼监测系统。采用TDS水质模块检测鱼缸内水的浑浊度,采用防水式DS18B20检测鱼缸内水温,采用超声波模块检测鱼缸水位,采用PH传感器检测水的PH值,采用光敏电阻检测光照值,采用OLED显示屏显示相关监测值,采用按键可以进行阈值设置,还可以控制继电器进行相关工作,达到调节鱼缸水环境的目的,除此之外,还采用了WiFi模块,实现远程控制鱼缸的作用。
实物测试表明,该系统可以解决了目前智能鱼缸面临的通信距离短,功耗较高的问题。测试表明,系统参数可以实现稳定控制,且误差较小,有效提高鱼类的存活率。
关键词:鱼缸;传感器;WiFi:单片机;OLED显示屏
Design of intelligent fish tank system based on single chip microcomputer
Abstract: With the continuous improvement of people’s living standards, exquisite life has become a fashion. In order to add interest to life, decorate the home environment, breeding ornamental fish has become a trend, in order to create a good living environment for fish, the design of intelligent fish environmental monitoring system is essential.
This paper uses STM32 as the main control chip and sensor to develop a new fish monitoring system. TDS water quality module is used to detect the turbidity of the water in the aquarium, waterproof DS18B20 is used to detect the water temperature in the aquarium, ultrasonic module is used to detect the water level of the aquarium, PH sensor is used to detect the PH value of the water, photoresistor is used to detect the light value, OLED display is used to display the relevant monitoring value, and the threshold can be set by buttons. The relay can also be controlled to perform related work to achieve the purpose of adjusting the aquarium water environment. In addition, the WiFi module is also used to achieve remote control of the aquarium.
The actual test shows that the system can solve the problems of short communication distance and high power consumption faced by intelligent fish tanks. The test shows that the system parameters can be controlled stably, and the error is small, and the survival rate of fish can be improved effectively.
Key words: fish tank; Sensor; WiFi: MCU; OLED display
目 录