| Combining with the requirements of pig breeding and characteristics of piggery environment, on the basic of consulting a lot of Chinese and English literatures, this thesis summarizes four major environmental factors-- temperature, humidity, ventilation, light-- affecting the growth and development of pig, has also a preliminary understanding of the historical development and current situation of environmental control technology.Firstly, investigates the actual existing problems through accessing in-depth farm enterprises and consults managerial staffs’ personnel needs, at the same time, achieves the porkets’ growth curve and the most appropriate growth environment of different stages of pig. Secondly, puts forward the system’s overall outline, draws up some feasible plans, through comparison and analysis, screening out the best scheme. Finally, completes the hardware circuit design, the software design based on the development environment of library function. After the actual test, the main controller can accurately measure the environmental variables, to realize the control of a variety of output devices.On the basic of the comprehensive application of sensor technology, modern control theory and microelectronic technology, this thesis developed a set of environmental monitoring system for large-scale pig breeding. The system gathers real time value of each environmental factor through the sensor, will sent them to STM32 controller, after analysis and comparison with the preset value, following the control strategy has been fixed in advance, generates a control signal to drive the related implementing equipment, so as to achieve the purpose of control parameters, create a comfortable piggery environment. In addition, these values through the CAN bus to upload to the host of office end, to facilitate the administrative staffs can real-time view of these quantities through the man-machine interface, and can adjust each parameter’s limited values according to the need at any time, in order to adapt to the demands on the environment at different stages of swine. |