天津职业技术师范大学TianjinUniversityofTechnologyandEducation毕业设计专业:应用电子技术教育班级学号:应电0914–31学生姓名:曹烨玲指导教师:高凤友副教授二〇一四年六月天津职业技术师范大学本科生毕业论文养鸡场智能控制系统设计DesignofFarmsIntelligentControlSystem专业班级:应用电子技术教育学生姓名:曹烨玲指导教师:高凤友副教授学院:电子工程学院2014年6月摘要随着社会的不断进步,科学技术的不断提高,智能化已经逐渐占领市场,比如智能家居、智能温室大棚、智能机器人等,自动化、机械化、智能化的设备已逐渐代替了传统的体力劳作成为新型的劳动力,这种劳动力使人们的生活更加便利,也在一定程度上减少了人们的工作量,节约了大量时间。所以养鸡场的智能控制就体现了智能化的优势,它通过控制、监测鸡场内环境的温湿度、明亮程度、以及水和料的有无,来帮助我们更好的管理鸡场,提高了生产效率,均衡了市场禽类的销售。本设计以ARM芯片STM32作为系统的主控芯片,外围电路有包块温室度检测模块、AD采光模块、红外检测模块、报警模块、料袋检测模块、换气模块。主要功能是通过检测场内的温湿度,看看是不是适合鸡成长,温度以及湿度过高时可以开通风口(打开换气风扇)对其进行降温排湿;养鸡场喂食和添水是一个量很大的工作,所以针对这种情况添加了半自动喂食饮水功能,水盆的水没有满时会自动加满,当料袋子没有料时报警提示,让主人换料袋(这种喂料方式不是适合所有形式的鸡场);当然,小鸡作为一个活的动物,难以避免会飞出或者跳出所呆区域,当出现这种情况时,红外报警防护就开启了,提醒主人有鸡飞出,及时抓取放回原处。关键词:STM32;采光温湿度;红外检测;报警系统ABSTRACTWiththecontinuousprogressofsociety,scienceandtechnology,continuousimprovementandintelligenthasgraduallydominatethemarket,suchassmarthome,smartgreenhouse,intelligentrobots,automation,mechanization,intelligentdeviceshasgraduallyreplacedthetraditionalmanuallabortobecomethenewlabor,thislaborforcetomakepeople'slivesmoreconvenient,butalsoreducestheworkloadofthepeopletosomeextent,savingalotoftime.Sointelligentcontrolchickenfarmembodiesanintelligentadvantagebycontrolling,monitoringthetemperatureandhumiditywithinthefarmenvironment,brightdegree,aswellasthepresenceorabsenceofwaterandmaterials,tohelpusbettermanagefarmstoimproveproductionefficiency,balancingthesalesmarketpoultry.TheSTM32ARMchipdesignasthesystemmasterchipperipheralcircuitshavemassgreenhousedetectionmodule,ADlightingmodule,infrareddetectormodule,alarmmodule,bagdetectionmodule,ventilationmodule.Themainfunctionistodetectthetemperatureandhumidityinside,seeifitissuitableforchickengrowth,theventscanbeopenedwhenthetemperatureandthehumidityistoohigh(openventilationfan)itscoolhumidity;farmfeedingandTimisanamountofwateralotofwork,soforthissituationaddssemiautomaticfeedingwaterfeaturewillautomaticallyfillthebasinwhenwaterisnotfull,thebagwhenthematerialisnomaterialalarm,sothattheownerchangebag(thisisnotthewayfeedingsuitableforallformsoffarms);course,chickenasaliveanimal,wouldinevitablyflyorstayoutofthearea,whenthishappens,itopenstheprotectiveinfraredalarm,toremindtheownerachickenflying,crawlbackinplaceinatimelymanner.Keywords:STM32;lighting;temperatureandhumidity;infrareddetection;alarmsystemI目录1引言...................................................................................................................11.1智能鸡场发展背景..................................................................................11.2设计的目的及意义..................................................................................11.3发展现状及未来发展前景......................................................................21.3.1发展变化.......................................................................................21.3.2发展现状......................................................................................21.3.3未来发展前景..............................................................................32方案设计...........................................................................................................42.1方案论证.................................................................................................42.1.1CPU主控芯片的设计..................................................................42.1.2电源的选择..................................................................................42.1.3自动喂水方案选择....................................................................52.1.4喂食装置选择............................................................................62.1.5报警电路的选择...........................................................................62.1.6温湿度检测原件的选择...............................................................72.1.7显示模块......................................................................................73硬件电路设计...................................................................................................83.1系统整体说明.........................................................................................83.2STM32控制电路....................................................................................93.2.1STM32硬件电路.........................................................................93.3电源电路...............................................................................................103.3.1直流稳压电源的基本组成........................................................103.3.25v直流稳压电源.....................................................................103.3.3电源总体电路图........................................................................113.4温湿度测量...........................................................................................113.4.1引脚说明....................................................................................113.4.3单总线接口.................................................................................123.5压力传感器...........................................................................................123.5.1应变效应讲解.......................................