基于PC机与单片机的分布式禽舍环境监控系统研究
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
随着我国经济的快速发展和人民生活水平的逐步提高,特别是国际市场对肉食品需求多元化的发展趋势,促进了我国畜禽养殖业的快速发展。同时,由禽舍环境问题造成畜禽大量死亡带来的巨大经济损失,使人们越来越重视禽场的环境质量及管理。目前,我国畜禽养殖业正处于由千家万户小规模、分散饲养为主向规模化、科学化养殖转型阶段,而大中型养殖场家禽种类繁多,每种家禽在不同的生长周期对生长环境的要求又不相同,使得大中型养殖场管理复杂、混乱,需要投入大量的人力、物力资源,从而增加了生产成本。
     本文针对大中型禽舍群存在的问题提出了一种低成本、分布式和智能化的禽舍环境监控解决方案,开发了以多个多功能单片机智能控制器为节点、个人微机为监控服务器的基于RS-485总线网络的分布式禽舍环境监控系统。本系统由下位机监控模块、上位机监控管理模块和通信模块三大部分组成。下位机设计主要分为硬件和软件两部分,以汇编语言和电子自动化技术为主要开发工具,它是以单片机为核心的微控器,包括数据采集、键盘设置、数码显示、控制输出、通信模块,完成对禽舍内温度、NH3浓度的设置、监测、控制与通信等任务;上位机软件采用Visual Basic开发了禽场环境管理软件,该软件对整个系统进行统一管理,实现对各个禽舍内系统参数的设置,对多个禽舍内环境信息数据的采集、处理、实时直观显示;在比较了现有常用通信总线的基础上,考虑到RS-485总线廉价、开发周期短、通信协议自定、便于扩展和维护的特点,通信模块选择了RS-485作为通信总线,定义了串行通信协议,进行了PC机侧和单片机侧的通信程序设计,实现了一台PC机与多个单片机之间的通信。
     本论文设计的分布式禽舍环境监控系统,通过实验和仿真能够达到预期设计要求,下位机既可单独运行控制,也可通过串口由PC机进行监控,实现了一台PC机对多个禽舍的统一管理。大大改善了禽舍中的环境管理手段,降低了管理与饲养人员的劳动强度,可广泛应用于大型现代化畜禽养殖场,具有较高的推广应用价值。另外,系统为后续的开发留有足够的空间,可以在上位机上继续开发专家知识库,在下位机上继续增加其它环境信息,为大型禽场现代化管理研究奠定了基础。
As the fast development of our country economy and improvement of people's living standards, specially diversified development trend of international market to meat produce demand., which promoted fast development of our country livestock and poultry breeding. And, poultry house environment problems induced by germ breeding cause huge economic loss of the poultry mass death,which make people take more and more importance to environment quality and management of poultry house.Currently,our country livestock and poultry breeding from previous small scale,dispersed bring change into scaled, scientific farming, but the large and middle scale breeding farms have wide varieties poultry, different poultry have different request in the different growth cycle to growth environment, which make large and middle scale breeding farms exist complex, chaotic management, and request massive investment of human and material resources, so as to increase the production cost.
     In view of the middle and large-scaled poultry house group existing problems, this article proposed a low cost, distributed and intelligent poultry house environment monitoring solution, develop distributed poultry house environment monitoring system which take several multi-function MCU as node, personal computer as surveillance server, and based on RS-485 bus network.The system composed of lower controllers monitoring module, upper master computer monitoring module and communication module.The lower controllers design mainly divides into the hardware and the software two parts, using assembly language and electronic automatic technology as mian developmental tool, it is a microcontroller takeing MCU as core, including data acquisition, keyboard configuration, digital displaying, control output, and communication, which complete task of setting, monitoring, controlling and communicating to temperature and ammonia concentration in the poultry house; Upper master computer use Visual Basic to develop poultry farm environmental management software, responsible for the whole system unified management, realizes system parameters setting, environmental information data gathering, processing, real-time visual displaying of each poultry house; By comparing existing general bus, considering RS-485 bus characteristic of cheap, short developing period, communication protocol self-defined, convenient to expansion and the maintenance, so the communication module choose RS-485 as communication bus, and define serial communication protocol, has carried communication program design on the PC machine side and the MCU side, has realized communication between one PC and several MCU.
     The paper has designed a low cost and distributed poultry house environment monitoring system, the lower controllers can individually operate, also can be monitored by PC through serial port, the system realized one PC unified management to monitor several poultry house. Greatly improve environmental condition of the poultry house, decrease labor intensity of managers and feeding people, the system can widely applies in large-scale modernized poultry breeding farm, has the high popularization using value. And the system leave enough space for its continual exploitation, can continue to develop the expert expert knowledge database on upper computer, increase other environmental information on lower controllers, the system has laid a foundation for modernized large poultry farm’s further study.
引文
[1]吴晓丰.当前经济条件下的家禽业发展[J].中国禽业导刊,2008,25(15):26.
    [2]李玉文,杜柏林,魏澍.动物卫生事业在新农村建设中的地位和作用[J].现代畜牧兽医, 2007,(6):4-6.
    [3]黄艳群,陈文,周丽红等.养殖环境控制对家禽生产和防病的影响[J].养禽与禽病防治.2006,(9):20-22.
    [4]刘文奎,于勇成.养禽生产中的环境控制与调节[J].国外畜牧学,1998,(06):25-32.
    [5]李大换,王利君,崔志芳.论畜禽养殖与环境[J].现代农业科,2008 (22):243-247.
    [6]刘向萍.家禽生产中的环境控制[J].中国禽业导刊, 2003,20(14):39.
    [7]朱庆.中国家禽业当前面临的困难及未来之走向[J].中国禽业导刊,2005, 22(3):14-15.
    [8]罗维,李季,江永红.畜禽集约化养殖对生态环境的影响[J].中国畜牧杂志,2001,37(5):55-56.
    [9]杨军,乔晓军,王成.基于专家系统的禽舍环境监控系统设计[J].农机化研究,2007,(6): 163-169.
    [10]陈五湖,王强,蒲俊华.计算机在现代家禽生产中的应用[J].畜牧兽医杂志, 2006,25(03):29-31.
    [11]施正香,李保明.家禽生产环境研究现状与展望[J].中国家禽,2004,26(22):1-4.
    [12]杨军,乔晓军,王成.家禽养殖环境控制技术发展现状及趋势[J].中国家禽,2006,28(23)期: 7-8.
    [13]王成新.荷兰家禽的环境控制[J].河北畜牧兽医,2002,18(1):41-42.
    [14]崔引安.世界家畜环境控制发展的现状与展望[J].农业工程学报,1986,(1):22-25.
    [15] Ali I and Abdalla A M.A Microcomputer-based System for All-year-round Temperature Control in Greenhouse in Dry Arid Lands[J].Computer and Electronics in Agriculture, 1993,(81):195-210.
    [16] Guo Qianzhong. A PC-based Multi Compartment Climatic Control System for Agricultural Buildings[J].Computer and Electronics in Agricultrre,1993,(8):211-223.
    [17] Cole G W.The Application of Control Systems Theory to the Analysis of Ventilated Animal Housing Environments[J].Trans of the ASAE,1980,23(2):431-436.
    [18] Proudfoot F G, Hulan H W. Interrelationship among Lighting, Ambient Temperature, and Dietary Energy and Broiler Chicken Performance[J].Poultry Science,1997,66:1744-1749.
    [19]康永松.我省禽舍生产环境自动化控制初探[J].福建畜牧兽医,2005,27(6):80-81.
    [20]彭道新.冬春季节禽舍中常见的几种有害气体及消除措施[J].中国禽类导刊,2006,23(5):36.
    [21]王思珍,东彦新,夏春丽等.鸡舍内有害气体及调控措施[J].内蒙古民族大学学报(自然科学版),2002,17(1):48-51.
    [22]韩枫.鸡舍内氨气水平对种鸡产蛋性能和人类健康的影响[J].家禽科学,2006,(1):19-20.
    [23]侯晓礁,王秀敏,孟庆大.爱丽素对鸡舍氨气浓度及种鸡生产性能的影响[J].饲料研究,2008,(12):32-22.
    [24]刘树.禽舍最佳小气候环境指标[J].国家气象局.
    [25]王思珍,贾伟星.鸡舍温湿度对鸡生长发育及生产性能的影响[J].农村实用工程技术,2002,(7): 20-21.
    [26]布仁,郭宏,满初日嘎.温湿度等因素对家禽孵化率的影响[J].哲里木畜牧学院学报,1998,8(3):54-56.
    [27]刘开元,尹向东,姜雪春.禽舍的机械通风[J].中国家禽,2003,25(16):27-29.
    [28]王宝亮,李义,王忠坤.谈现代化禽舍纵向通风的设计[J].饲养管理,2006,(9):15-16.
    [29] M B Timmons, G R Baughman. Experimental Evaluation of Poultry Mist-fog Systems[J].Trans of theASAE,1983,26(1):207-210.
    [30]祝常红.数据采集与处理技术[M].北京:电子工业出版社,2008.
    [31]黄从利.基于DDC自动控制对空调系统节能的方法[J].计算机工程与应用,2005,(12):195-197.
    [32]丁高.空调系统DDC控制设计[J].暖通空调,1994,24(3):13-15.
    [33]凌志浩.DCS与现场总线控制系统[M].上海:华东理工大学出版社,2008.
    [34]王常力,罗安.分布式控制系统(DCS)设计与应用实例[M].北京:电子工业出版社,2004.
    [35] Wang and S.Touber, Distributed Dynamic Modeling of a Refrigerated Room[J]. Int.J.Refrigeration,1990,13(6):214.
    [36] Jin Heping, The Hierarchical Distributed Control System For Hydropower Plants[J].International Journal Hydroelectric Enercy,1994,12(4):223-229.
    [37] Johnstone L R.Distributed Computer Control for Power Station[M].Electronic and Power,1978.
    [38]王慧.计算机控制系统[M].北京:化学工业出版社,2005.
    [39]李江全.计算机测控系统设计与编程实现[M].北京:电子工业出版社,2008.
    [40] Daren Lewis.Making more of your DCS[J].C&I,1993(5):41-44.
    [41] Litakow M, Livny M. Experience with the Condor Distributed Batch System[J].1990 IEEE:97-101.
    [42]李滨,彭泽兵.分布式数据采集控制系统的现状及发展趋势[J].航空计测技术,(19):9-10.
    [43]深圳市河山科技开发有限公司,http://www.szmodem.com,RS485简介.
    [44] Moore J A, Herb S M. Understanding Distributed Process Systems[M].Instrument Society of America,1983.
    [45]朱兆优.RS2485总线在远程自动抄表系统中的应用[J].东华理工学院学报,2005,28(2):192-195.
    [46] RS-485 Data Sheet.Downloaded from www.zlg.com.June 2000.
    [47] Gou Qiangzhong. A PC-based multi Compartment Climatic Control System for Agricultural Buildings[J].Computer and Electronics in Agriculture,1993,(8):213-223.
    [48]杨帆.传感器技术[M].北京:高等教育出版社,2004.
    [49]王雪文.传感器原理及应用[M].北京:北京航天航空大学出版社,2004.
    [50]徐科军.传感器与检测技术[M].北京:电子工业出版社,2004.
    [51]邢国泉.LM35温度传感器的温度特性及其应用[J].医疗设备信息,2007,22(11):49-50.
    [52]李志宇.基于LM35温度传感器的温度系统设计[J].微计算机信息,2004(1):63-64.
    [53]萧洛奋.基于LM35温度传感器的高精度恒温控制[J].电子产品世界,2003(3B):57-58.
    [54]高美珍.LM35系列精密温度传感器的原理与应用[J].仪器仪表用户,2005(1):114.
    [55]氨气传感器[J].国外传感器技术,2005,22(3):14-15.
    [56]徐建波,华凯峰,王玉江.电流型氨气传感器的研究[J].郑州轻工业学院学报(自然科学版),2004,19(4):39-42.
    [57] Otagawa T, Zaromb, Stetter J R.The Electrochemical Oxidation of Methane in Nonaqueous Electrolytes at Loom Temperature:Application to Gas Sensors[J].Eleetroehem Sec,1985,(132):2951.
    [58] Lirsi wallfren, Sofiris Sofiropoulos.Oxygen Sensors Based on a New Design Concept for Amperometrie Solid State Devices[J].Sensors and Actuators B,1999,(60):174-183.
    [59]张潜,王立人,杨祥龙等.养殖场氨气检测方法研究现状[J].农业环境科学学报,2007,(26):309-312.
    [60] Gardner J W, Bartlett N.A Brief History of Electronic Nose[J].Sensors and Actuators B,1994,(18-19):211-220.
    [61] Bjarn Timmer, Wouter Olthuis, Albert Van Den Berg. Ammonia Sensors and Their Applications-aReview[J].Sensors and Actuators B,2005,(107):666-677.
    [62]李文春.浅谈鸡舍内氨气的体感检测与控制[J].中国畜牡杂,1995,31(1):54.
    [63]刘金华.基于虚拟仪器的畜禽舍环境监控系统研究,河北农业大学,2003.
    [64]周志德.单片机原理及应用[M].北京:高等教育出版社,2001.
    [65]徐淑华,程退按.单片微型计算机原理及应用[M].哈尔滨:哈尔滨工业大学出版社, 1999.
    [66] AT89C51datasheet.Atmelcorporation,1997.12.
    [67]李维祥.MCS-51单片机原理与应用[M].天津:天津大学出版社,2001.
    [68]杨文龙.单片机原理及应用(51系列)[M].西安:西安电子科技大学出版社,2005.
    [69] PAUL F. LlSTER.Single一chip Microcomputors[M].1984.
    [70] Vinod Kumar Bansal. Design of Microprocessor Based system[M].1985.
    [71]阎石.数字电子技术基础[M].北京:高等教育出版社,1998.
    [72] Katz P.Digital Control Using Microcomputer[M].New York:Hall In ternational Inc.,1981.
    [73] Kuo,B.C.Digital Control Systems[M].New York:Holt,Rinehart and Winston Inc.,1980.
    [74]曹天汉.单片机原理与接口技术[M].北京:电子工业出版社,2003.
    [75] ADC0809datasheet.ationalsemiconductor.1999,6.
    [76]袁玲珑.温室环境因子监控系统的研究,华中农业大学,2005.
    [77]维库电子开发网,http://www.weeqoo.com/icstock/Detail-TPS7150Q.html,TPS7150Q的产品特征.
    [78]沙占友.单片机外围电路设计[M].北京:电子工业出版社,2003.
    [79]李朝青.单片机原理及接口技术[M].北京:北京航空航天大学出版社,1998.
    [80]杭州西子固体继电器有限公司.产品手册.2003版.
    [81] MAXIN.MAX3485 data book.
    [82]王友功,薛培鼎.数字滤波器与信号处理[M].北京:科学出版社,2003.
    [83] Man K F, Tang K S, Kwong S.Genetic Algorithms for Control and Signal Processing[M]. London:SpringerVerlag,1997.
    [84] Cunha J Boaventura, Couto C, Riano A E.Real-time Parameter Estimation of Dynamic Temperature Models for Greenhouse Environmental Control[J].Control Engineering Practice,1997,5 (10): 1473-1481.
    [85]李朝青,刘艳玲,沈怡麟.单片机与PC机网络通信技术[M].北京:北京航空航天大学出版社,2007.
    [86]李楠,刘现收,张东亮.ADAM模块在环境监测系统中的应用[J].硅谷,2008,(11):31,85.
    [87]晋风华,陈光大,刘海英等.ADAM模块在水电厂振动监测系统中的应用[J].国外电子元器件,2002,(4):14-16.
    [88]李朝青.PC机与单片机&DSP数据通信技术选编[M].北京:北京航空航天大学出版社,2003.
    [89]陶永,严勋,允小杰.分布式控制系统中PC机和单片机的串行通讯设计[J].工业控制计算机,2007,20(9):31-33
    [90]谢建菲.分布式微机控制系统的通讯[J].石家庄经济学院学报,1997,20(4):431-434.
    [91]彭可,陈岚,陈际达.基于RS2485协议的单片机对等分布式控制网络.中南工业大学学报,2002.33(3):309-312.
    [92]楼玉萍.Visual Basic程序设计[M].杭州:浙江大学出版社,2006.
    [93]李伟,沈兵.VB6在PC机与单片机握手通讯程序中的应用[J].舰船电子工程2006,(5):99-101.
    [94] Huang Daoying,Li Zupeng,Zhang Yao,Huang Jianhua.Active Distributed Peer-to-Peer NetworkArchietecture[J].Intermational Conference On Communication Technology(ICCT45-462003) Procee- dings, 2003(4):76-81.
    [95] Fiddbus. Digital Communications Link[J].Structure, Control Instruiments, 1990,22(3):25-27.
    [96] Bertine H.U.Physical Level Protocal.IEEE Transactions on Communications,April,1980.32-35.
    [97] Vijay Ahuja.Design and Analysis of Computer Communication Net work. McGraw-Hill Book Co,1982.
    [98] Cay Weitzman.Distributed Micro/Minicomputer Systems.Prentice Hall,1980
    [99]孔巧玲.单片机与PC机串行通讯的实现[J].成都大学学报,2005,24(3):190-197.
    [100]王为青,程国刚.单片机Keil Cx51应用开发技术[M].北京:人民邮电,2007.
    [101] http://www.dzkf.cn/htm/yuanmaziliao/2006/1103/962.html,keil c51教程.
    [102]金炯泰,金奎焕.如何使用KEIL 8051 C编译器[M].北京:北京航空航天大学出版社,2002.
    [103]周润景,张丽娜,刘印群.PROTEUS入门实用教程[M].北京:机械工业出版社,2007.
    [104]丁明亮,唐前辉.51单片机应用设计与仿真--基于Keil C与Proteus[M].北京:北京航空航天大学出版社,2009.
    [105]张靖武,周灵彬.单片机系统的PROTEUS设计与仿真[M].北京:电子工业出版社,2007.

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700