![基于单片机的鱼缸控制器设计毕业设计论文_第1页](http://file4.renrendoc.com/view/72c883e8933500576cd93f8e6b5d3bf6/72c883e8933500576cd93f8e6b5d3bf61.gif)
![基于单片机的鱼缸控制器设计毕业设计论文_第2页](http://file4.renrendoc.com/view/72c883e8933500576cd93f8e6b5d3bf6/72c883e8933500576cd93f8e6b5d3bf62.gif)
![基于单片机的鱼缸控制器设计毕业设计论文_第3页](http://file4.renrendoc.com/view/72c883e8933500576cd93f8e6b5d3bf6/72c883e8933500576cd93f8e6b5d3bf63.gif)
![基于单片机的鱼缸控制器设计毕业设计论文_第4页](http://file4.renrendoc.com/view/72c883e8933500576cd93f8e6b5d3bf6/72c883e8933500576cd93f8e6b5d3bf64.gif)
![基于单片机的鱼缸控制器设计毕业设计论文_第5页](http://file4.renrendoc.com/view/72c883e8933500576cd93f8e6b5d3bf6/72c883e8933500576cd93f8e6b5d3bf65.gif)
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
摘要洛阳理工学院毕业设计(论文)参考文献【1】王兆安,电力电子技术第五版(第五版),机械工业出版社,2009【2】李朝青,单片机原理及接口技术,北京航空航天大学出版社,2009【3】刘国荣,计算机控制技术(第二版),北京机械工业出版社,2008【4】胡寿松,自动控制原理(第五版),科学出版社,2006【5】李维祥,单片机原理及应用,天津大学出版社,2001【6】林渭勋,现代电力电子技术,北京机械工业出版社,2006【7】陈治明,电力电子器件基础,北京机械工业出版社,1992【8】师黎,等,反馈控制系统导论,北京科学出版社,2005【9】杨素行,模拟电子技术,高等教育出版社,2008【10】余孟尝,数字电子技术,高等教育出版社,1994【11】付家才,单片机控制工程实践技术,北京化学工业出版社,2004,5【12】郑国钦,夏哲磊,集成传感器入门,浙江科学技术出版社,2002,4【13】周航慈,单片机应用程序设计技术,北京航空航天大学出版社,2002,11【14】赵海兰,朱剑,赵祥伟,DS1302实时显示时间的原理和应用,电子科学技术出版社,2004【15】王幸之,单片机应用系统抗干扰技术,北京航空航天大学出版社,2000,2【16】何立民,单片机应用技术选编(2),北京航空航天大学出版社,2000,8【17】马忠梅,籍顺心,单片机的C语言应用程序设计(第三版),北京航空航天大学出版社,2003,11【18】毕复昭,多功能水族箱,实验教学与仪器,1994【19】彭国平,邓洪波,梁振权,水族箱自动控制装置的设计,广东自动化与信息工程,1999附录时钟显示程序#include<reg52.H>#include<intrins.H>#include<math.H>#defineucharunsignedchar#defineuintunsignedintsbitdula=P2^6;sbitwela=P2^7;sbitrw=P1^1;sbitRS=P1^0;sbitbeep=P2^3;sbitLCDEN=P2^5;sbitrelay=P2^1;sbitP2_0=P2^0;ucharcodetable1[]="15.6.1000:00:00";ucharcount,s1num;charmiao,shi,fen;typedefunsignedcharU8;/*definedforunsigned8-bitsintegervariable 无符号8位整型变量*/typedefunsignedintU16;/*definedforunsigned16-bitsintegervariable 无符号16位整型变量*/U8U8FLAG,k;U8U8count,U8temp;U8U8T_data_H,U8T_data_L,U8RH_data_H,U8RH_data_L,U8checkdata;U8U8T_data_H_temp,U8T_data_L_temp,U8RH_data_H_temp,U8RH_data_L_temp,U8checkdata_temp;U8U8comdata;U8outdata[5];//定义发送的字节数 U8indata[5];U8count,count_r=0;U8str[5]={"RS232"};U16U16temp1,U16temp2;U8num;voiddelay(uintz){ uintx,y; for(x=z;x>0;x--) for(y=110;y>0;y--);}voiddelayUs(){_nop_();}voidwrite_com(ucharcom){ RS=0; LCDEN=0; P0=com; delay(5); LCDEN=1; delay(5); LCDEN=0; }voiddelayMs(uinta){uinti,j;for(i=a;i>0;i--)for(j=100;j>0;j--);}voidwriteComm(ucharcomm){RS=0;P0=comm;LCDEN=1;delayUs();LCDEN=0;delayMs(1);}//写数据:RS=1,RW=0;voidwriteData(uchardat){RS=1;P0=dat;LCDEN=1;delayUs();LCDEN=0;delayMs(1);}voidinit(){rw=0;dula=wela=0;writeComm(0x38);writeComm(0x0c);writeComm(0x06);writeComm(0x01);}voidwriteString(uchar*str,ucharlength){uchari;for(i=0;i<length;i++){writeData(str[i]);}}voidwrite_date(uchardate){ RS=1; LCDEN=0; P0=date; delay(5); LCDEN=1; delay(5); LCDEN=0; }温度读取程序voidwrite_sfm(ucharadd,uchardate){ ucharshi,ge; shi=date/10; ge=date%10; write_com(0x80+add); write_date(0x30+shi); write_date(0x30+ge);}voidCOM(void){ U8i;for(i=0;i<8;i++) { U8FLAG=2; while((!P2_0)&&U8FLAG++); Delay_10us(); Delay_10us(); Delay_10us(); U8temp=0; if(P2_0)U8temp=1; U8FLAG=2; while((P2_0)&&U8FLAG++); //超时则跳出for循环 if(U8FLAG==1)break; //判断数据位是0还是1 //如果高电平高过预定0高电平值则数据位为1 U8comdata<<=1; U8comdata|=U8temp;//0 }//rof } voidinerDelay_us(unsignedcharn){ for(;n>0;n--) _nop_();}voidDelay(U16j){U8i; for(;j>0;j--) { for(i=0;i<27;i++); }}voidRH(void) { //主机拉低18msP2_0=0; Delay(180); P2_0=1; //总线由上拉电阻拉高主机延时20us Delay_10us(); Delay_10us(); Delay_10us(); Delay_10us(); //主机设为输入判断从机响应信号 P2_0=1; //判断从机是否有低电平响应信号如不响应则跳出,响应则向下运行 if(!P2_0) //T! { U8FLAG=2; //判断从机是否发出80us的低电平响应信号是否结束 while((!P2_0)&&U8FLAG++); U8FLAG=2; //判断从机是否发出80us的高电平,如发出则进入数据接收状态 while((P2_0)&&U8FLAG++); //数据接收状态 COM(); U8RH_data_H_temp=U8comdata; COM(); U8RH_data_L_temp=U8comdata; COM(); U8T_data_H_temp=U8comdata; COM(); U8T_data_L_temp=U8comdata; COM(); U8checkdata_temp=U8comdata; P2_0=1; //数据校验 U8temp=(U8T_data_H_temp+U8T_data_L_temp+U8RH_data_H_temp+U8RH_data_L_temp); if(U8temp==U8checkdata_temp) { U8RH_data_H=U8RH_data_H_temp; U8RH_data_L=U8RH_data_L_temp; U8T_data_H=U8T_data_H_temp; U8T_data_L=U8T_data_L_temp; U8checkdata=U8checkdata_temp; }//fi }//fi }voidmain(){ ucharnum;//uchartable[]="xianzaiwendu:";sendChangeCmd(); inerDelay_us(100); // //调用温湿度读取子程序 RH();init();//writeComm(0x80);//writeString(table,16); write_com(0x80); for(num=0;num<16;num++) { write_date(table1[num]); } delay(5); TMOD=0x01; TH0=(65536-50000)/256; TL0=(65536-50000)%256; EA=1; ET0=1; TR0=1;while(1){delayMs(1000);//温度转换时间需要750ms以上writeComm(0xc0);}}voidtimer0()interrupt1{ TH0=(65536-50000)/256; TL0=(65536-50000)%256; count++;if(count==18) { count=0; miao++; if(miao==60) { miao=0; fen++; if(fen==60) { fen=0; shi++; if(shi==24) { shi=0; } write_sfm(8,shi); } write_sfm(11,fen); } write_sfm(14,miao); } }外文资料翻译WiththesubstantialincreaseinChina'seconomicdevelopmentandpeople'slivingstandards,changesinconsumptionconceptofagreatpeople,andthelevelofconsumergradeareimproving.Increasingpeople'squalityoflife,personalizedenvironment,environmentalprotectionmoreandmorepeople'sattention,associatedwithleisure,homedecorationandotherindustriesaccordinglyincreasinglyboomingtrend.Livingandworkingin"reinforcedconcretejungle"inthecitywhosufferallkindsofpressure,heartlostalldesirethattranquilityandharmonyofnaturalliving,andavibrant,verdantgrassaquariumfishcannotonlygivethebandtoverylooseandcomfortablesenseofbeauty,betterregulationofindoorenvironment,peoplefinderthatreturningtothegreen,freshfish,letthebeautyofnaturearoundherforever."Aquarium"Itisinthisindustrydemandemerged."Aquarium"alsoknownas"aquarium","aquarium"termoriginatedinBritain,stillinusetodayhasmorethan150years.Thendefinejustaraisingofanimalsandplantsofthewatercontainer,andastechnologicallevelofprogress,aswellaspeoplegrowornamentalfishbreedingandincreasinglevelsofaquaticplants,theaquariumisnotonlyconsideredtobeacontainerofplantsandanimalstoraise,andwasconsideredtobeamicrocosmofthenaturaldomain,itisarelativelycompleteecosystem.Earlyon,theaquariummorepopularexhibitionspacesandparksforeveryonetoenjoy,withtheimprovementoflivingstandards,scienceandtechnologyandtherapiddevelopmentofaquaticbreedingindustry.Aquariumhasbecomeacommonhouseholdinteriors.Inrecentyears,thisinplants,mainlygoldfishaquariumcalled"miniaturewatergardenfishgrass",lovedbythepeople,butbecausepeoplelacktheskillsortheconservationisnottimelyduetotimeconservationreasons,often"Didnotlastlong,"thefinaloutcomethana"deadfishdeadgrass."Forconservationissuesoftheaquarium,themarketalsohasbeenfoundinvarioustanktemperaturecontrol,drainage,oxygenationandlightingequipment,suchasfilters,heaters,improvingwaterqualityandoxygenpumpsandotherequipment.However,duetomanyproducts.Functionisnotuniform,butmostlynon-intelligent,asingletemperaturecontrol,oxygenationorlightingsystems.Ifyouwanttoformacompletesetofconstanttemperature,oxygenationandlightingfeaturesasoneofthecontrolsystem,oftenyouneedtopurchasemultipledeviceswereinstalled.Greaterneedtoinvestincost.Afterassemblingapluralityofsinglesystemsimultaneouslymechanization,therearesomewasteofresources.Thisnotonlyincreasesthecost,duplicationofinvestment,affecttheappearanceandfunctionoftheuseofinflexible,inconvenient,overallperformancecannotbepromoted.Therefore,tothedailymaintenanceofthefamilybackgroundoftheaquarium,tocontrolthewaterlevelinthetank,watertemperature,dissolvedoxygen,etc.forthestudyoftheprocessofintegratedautomationofroutinemaintenanceandapplicationoftechnologytoexpandresearch,whichusehigh-techdevelopmentofautomationtransformationoftheoriginalhomeaquariumandtraditionallarge-scaleaquacultureindustryhasgreatpracticalsignificanceandresearchvalue.Withtheincreasingeconomiclevelrisebyleapsandbounds,decorationindustry,peoplelivingathomeevenmoreattentiontothepursuitofquality,reflectedintheeconomicpatternsaresignificantlyassociatedwithboomingleisure,homedecorationandotherindustrieswithapotentialdate.Livingandworkingconditionsvivid,warmandmoreandmoreofthehumanspirit,sentiment,newlifeconceptcloselylinked.Leisureaquariumindustry,isalsointhishumandemandemerged,andinrecentyears,therapiddevelopmentofitssituationithasbecomeanemergingeconomicforceconcerneconomiccirclesandtheindustry,accordingtothelatestdatashow:Aquariumproductsincreasinglyrichaquariummarketmoreprosperous.Aquariumtradeindustryannualgrowthrateof13.8percentscale,onlyBeijingonfromthetraditionalseveralsmallmarkets,developintoeightlarge-scalemarket.Speedexpanditsmarketspacealsoshowstherewillbemoreinvestmentopportunitiespointinthisneweconomywasborn.TodayistheinternationalaquariumproductslookChinese,manylargeforeigncompaniestakeaim,China'spurchasesinthismarket,thelong-termgoalsinChina.Withtherapiddevelopmentofaquariumproducts,demandhugeaquariummarkethasgreatlypromotedthevariousdomesticaquariumcontrolequipmentR&Dandproduction.Traditionalaquariumwaterchangesandoftenneedsupplementaloxygen,oftenwithtwodevices:pumpsandairpumps.Tocleanwaterandsupplementaloxygen.However,thesedevicesworktimeduetothenumberofseasons,temperatureandfeedfishanddifferent.Stopoperationsrequiremultipleopeneveryday,socontinuousoperation,willshortenthelifeoftheequipment,butnotconducivetoenergyconservation.Practiceinornamentalfishbreedingprocessshowthat:aquariumavailableonthemarketcontrolsystemsarerelativelysimpledevicesfunction.Suchaslightingcontrol,onlyartificialswitchingcontrol,shortexposuretimecannotsatisfyaquariumfish,especiallythelightingneedsofplants;plantsoveralongtimelightingneeds,isnotconducivetothegrowthofplants,andalsoresultinginawasteofpowerresources.Thecontroltemperaturecontrolusingheatingrodsheated,sincetheheatingroditselfusingbimetallicthermostatandhandcontroloftheheatingrodsstops,resultinginpoorprecisiontemperaturecontrolisdifficulttoachieveconstantresults.Becausethewaterofdissolvedoxygencharacteristicsofthedecision,whenthedissolvedoxygeninthewaterreachesacertainlevel,ordensityoffishinthefishtankisnottoolarge,eveninthesummerandunnecessarybeenoxygenated,andoxygenationcanchangetheintervalwater,otherwisetheoxygenationaresuperfluous,areboundtowastealotofelectricity.Therefore,someofthecircuitissimple,reliableworkand"automaticintermittent"controlunitalsowillproduce.Extendedtocontrolotherparameterswithinthetank.Themarkethasbeenfoundinthetankassociatedwiththecontroldevice.Intermittentoxygenationtimerasaquariumfishtankthermostat,automatictankwatercyclecontrol,automaticfeederfishtank,aquariumlightingautomaticcontroller.Becausethesedevicesareworkingindependently,individuallycontrolledcorrespondingenvironmentalparameters,soyouneedtoconfigureafishtankinseveralseparatecontroldevice;andthesepricesindependentlycontroldevicesaregenerallyinthe100to200yuan.Ifinstalledfortheentirecontrolequipment,thepriceisprobablybetween1000and1500;therefore,thedevelopmentoffunctionalaquariumcontrollerhasalsobeenaconcernofmanymanufacturers,ithasbeenfoundinavarietyofoptimizationfortheaquariumindustry,makingfunctioncontrollerTheseinstrumentssettemperature,lighting,oxygenation,filtration,alarmandothercontrolfunctionsinone.Thepursuitofstableperformanceandreliablefunctionaldesign,installation,commissioningandmaintenance.Inaddition,thesecontrollerscannotonlywidelyusedinthefamilyfishtankmaintenanceandmanagement:butalsoforaquaticbreedingindustry,especiallyhotels,restaurants,showrooms,homeandotherrequirementsforwatersystemsandeconomichighornamentalaquaticconservation.Withrespecttothecurrentmarket'sstrongdemandaquariumindustry,tankcontrollerisstillinthepreliminaryperiodofresearchanddevelopmentproduction,thecorrespondingproductsareinshortsupplystage.Therefore,thisstudybasedonthecurrentdevelopmentofdomesticandinternationalaquariumindustry,combinedwiththeconservationneedsoftheaquarium,andanalyzesproductdevelopmentandaquariumindustrycontrolequipmentcharacteristics,summarize,independentdesignanddevelopmentoflowcost,simpleoperation,energyenvironmentalprotection,setthethermostatcontrol,automaticoxygenation,automaticlevelcontrol,automaticlightingandautomaticfeedingandotherfunctionsandoneoftheaquariumintelligentcontrolsystem.中文翻译随着中国经济的发展和人民生活水平的大幅提高,改变了一个伟大的人的消费观念和消费级的水平正在改善。提高人们的生活品质,个性化的环境,环保越来越受到人们的关注,休闲,家居装饰等行业日益相应蓬勃发展的态势有关。生活和在谁遭受各种压力的城市“钢筋水泥丛林”的工作,心脏失去了所有渴望自然生活的安宁与和谐,充满活力的,嫩绿的草地观赏鱼不仅可以给乐队非常宽松舒适美感,更好地调节室内环境,寻人那久违的绿色,新鲜的鱼,让大自然的美丽她撒手人寰。“水族馆”正是在这样的行业需求应运而生。“水族馆”也被称为“鱼缸”,“水族馆”一词起源于英国,沿用至今已超过150年。然后定义动物和水容器的植物,以及进步的技术水平仅提高,以及人们种植观赏鱼养殖和水生植物水平的不断提高,水族馆不仅被认为是植物和动物的容器提高,被认为是自然域的一个缩影,它是一个相对完整的生态系统。在早期,水族馆更受欢迎的展览空间和公园供大家欣赏,随着生活水平的提高,科学技术和水产养殖业的快速发展提高。水族馆已成为一种常见的家用内饰。近年来,这个植物,主要是所谓的金鱼鱼缸“微缩水景花园鱼草”,受到人们的喜爱,但由于人们缺乏技能或养护不及时,由于时间原因,养护,经常“好景不长,死鱼死草“不是最后的结局”。“对于水族箱的保护问题,市场也一直在各种水箱温度控制,排水,充氧和照明设备中,如过滤器,加热器,改善水质和氧气泵等设备。然而,由于
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年专业财务代理记账合作协议
- 2025年区域快递服务承包经营合同范本
- 2025年临时宿舍租赁协议书
- 2025年员工投资策划入股合作协议书
- 2025年区域间互惠协议规范
- 2025年云计算服务购销合同模板
- 2025年度股东垫付资金互助协议书模板
- 2025年信用协议示范文本索取
- 2025年个人经营店铺质押贷款合同样本
- 2025年企业人力资源专员聘用合同样本
- 销售代理商申请表
- 北京汇文中学新初一均衡分班语文试卷
- 《Visual Basic 6.0程序设计》课件
- 平台革命:改变世界的商业模式
- 塑胶件铜螺母扭拉力标准
- 特殊特性关键工序重要特性区别教学课件
- 定密管理培训课件
- 2023-2024学年四川省凉山州小学语文二年级期末高分考试题详细参考答案解析
- 超市商品4级分类表
- 管道开挖施工方案(修复的)
- 北师大版小学六年级下册数学全册教学设计
评论
0/150
提交评论