Font Size: a A A

Design Of Cage Chicken Diet Monitoring System Based On WiFi And GSM

Posted on:2020-03-17Degree:MasterType:Thesis
Country:ChinaCandidate:W H ChenFull Text:PDF
GTID:2493305981955399Subject:Master of Agriculture
Abstract/Summary:PDF Full Text Request
At present,the level of informatization of traditional poultry farming methods in China is low,and the amount of poultry diet is generally observed and recorded by humans.Manual testing is inefficient,requires a lot of work,and requires a wealth of experience.Therefore,this paper designed a cage chicken diet monitoring system based on Wi Fi and GSM,the main contents are as follows:(1)Taking cage chicken as the object,a poultry diet monitoring system based on Wi Fi and GSM network was constructed.The selection methods of flow sensor,pressure sensor and analog-to-digital converter were introduced.The common communication methods were compared and analyzed.As the main network,GSM is the information transmission mode of the auxiliary network.(2)Aiming at the problem that the current flowmeter sensor has insufficient measurement range and high price,a method based on piezoelectric effect to measure drinking water is proposed.By modifying the existing nipple drinker,the piezoelectric ceramic buzzer is placed in its inner cavity,and the piezoelectric effect is used to calculate the drinking frequency of the poultry.Since the outlet flow of the drinker is fixed under constant pressure,the drinking water can be roughly measured.According to the measured value of the ultrasonic flowmeter,the relative error of the piezoelectric ceramic is 18.35%.Then,the LCD,button,analog-to-digital converter and other circuits used by the lower computer are analyzed and selected.(3)The food volume collection and transmission system was constructed.The STM32 MCU,ESP8266 Wi Fi module,SIM900 A module,YZC-133 pressure sensor and flow sensor constitute the whole lower computer system.The STM32 MCU is the main controller of the lower computer system.The measurement error is ±1g by the weighing sensor calibration.The TCP protocol is used for real-time data transmission,and the AP and STA modes are configured for the user to select,and the function of SMS short-distancequery data is realized by the Text Mode based on the AT command.(4)The PC client is designed.In order to receive and process the data transmitted by the lower computer,the host computer that receives the data is designed.The Socket is used as the handle,the data is transmitted through the TCP protocol,and the data is separated and type-converted.The processed data is displayed in different forms in the QText Edit control and the QText Browser control,and the data is converted to a QText Stream and saved as text.The PC side can draw the received data into a line graph and dynamically display it in the QWidget control.The SQLite database was built and the functions of data query and fuzzy query were implemented.(5)The Android client is designed.In order to stably perform network access,multi-threading is added,and functions such as Activity value transfer,Socket communication,data reception,database storage,data query,and local IP query are implemented.In order to facilitate data transmission and storage,The Android side also uses the TCP protocol and the SQLite database.After comprehensive testing of the system,the PC host computer and the Android client complete the functions of data reception,database storage,and data visualization.During the test,the software runs stably,the average CPU usage of the PC is 14.257%,and the average CPU usage of the Android is 5.36%.In the indoor communication distance test,the PC receives good data at about 24 meters,and the Android terminal receives data well at about 40 meters.The transmission distance of GSM is mainly related to the signal of the operator.This system enables remote monitoring of the amount of poultry consumed.
Keywords/Search Tags:Poultry food intake, WiFi, GSM, PC, Android
PDF Full Text Request
Related items