




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
摘要 I-河北理工大學(xué)信息學(xué)院II-摘要隨著人們對環(huán)境保護(hù)和資源節(jié)約意識的提高,太陽能自動滴灌系統(tǒng)應(yīng)運而生。該系統(tǒng)利用可再生能源太陽能,實現(xiàn)對土壤濕度的自動檢測和補(bǔ)水,大大節(jié)省了人力和水資源。本設(shè)計介紹了基于STC89C52單片機(jī)的太陽能自動滴灌系統(tǒng)的設(shè)計與實現(xiàn)。本系統(tǒng)由YL-69土壤濕度檢測模塊檢測土壤濕度,當(dāng)土壤濕度低于設(shè)定下限時,系統(tǒng)自動啟動小水泵進(jìn)行滴灌;當(dāng)濕度高于上限時,自動停止滴灌。系統(tǒng)的供電方式是利用太陽能電池板給鋰電池充電。此外,為提高充電效率設(shè)計了太陽能電池板自動跟蹤裝置,根據(jù)光照強(qiáng)度,調(diào)整電機(jī)使太陽能電池板面向光照最強(qiáng)的方向。關(guān)鍵詞:太陽能;自動滴灌;單片機(jī);土壤濕度檢測;自動跟蹤AbstractAbstractAbstractAspeople'sawarenessofenvironmentalprotectionandresourceconservationincreases,solarautomaticdripirrigationsystemshaveemerged.Thesystemusesrenewableenergysolarenergytoautomaticallydetectsoilmoistureandreplenishwater,greatlysavingmanpowerandwaterresources.ThisdesignintroducesthedesignandimplementationofasolarautomaticdripirrigationsystembasedonSTC89C52MCU.ThissystemdetectsthesoilmoisturebytheYL-69soilmoisturedetectionmodule.Whenthesoilmoistureislowerthanthesetlowerlimit,thesystemautomaticallystartsthesmallwaterpumpfordripirrigation;whenthehumidityishigherthantheupperlimit,dripirrigationisautomaticallystopped.Thesystem'spowersupplymethodistousesolarpanelstochargelithiumbatteries.Inaddition,anautomaticsolarpaneltrackingdevicewasdesignedtoimprovechargingefficiency.Accordingtothelightintensity,themotorwasadjustedtomakethesolarpanelfacethedirectionwiththestrongestlight.Keywords:solarenergy;automaticdripirrigation;MCU;soilmoisturedetection;automatictracking 目錄 目錄 目錄292摘要 i附錄B部分源程序:#include<reg52.h>#include<intrins.h>#defineucharunsignedchar#defineuintunsignedintunsignedintSL_baojing=20; //濕度下限值unsignedintSH_baojing=70; //濕度上限值unsignedcharstr_SL[4]; //濕度下限報警緩存unsignedcharstr_SH[4];//濕度上限報警緩存unsignedcharmoshi=0; //模式選擇unsignedchardata1; intValue1,Value2;unsignedchardat=0x00;//AD值unsignedcharstr_H[4]; //濕度值緩存unsignedintshidu; //濕度值sbitCS=P1^3; //ADC引腳定義sbitClk=P1^4;sbitDATI=P1^5;sbitDATO=P1^5;sbitshezhi=P3^3; //設(shè)置sbitjia=P3^4; //加sbitjian=P3^5; //減sbitJDQ1=P1^6; //水泵控制引腳sbitin_1=P2^3;sbitin_2=P2^2;sbitout1=P2^0;sbitout2=P2^1;externvoidInitLcd1602();externvoidLcdShowStr(unsignedcharx,unsignedchary,unsignedchar*str);externvoidLcdWriteCmd(unsignedcharcmd);externvoidLcdWriteDat(unsignedchardat);externvoidLcdSetCursor(unsignedcharx,unsignedchary);/*****************************************************************************延遲函數(shù)/****************************************************************************/voidDelay_Ms(unsignedinta){ unsignedinti; while(a--!=0) { for(i=0;i<600;i++); }}/****************************************************************************函數(shù)功能:AD轉(zhuǎn)換子程序入口參數(shù):CH出口參數(shù):dat****************************************************************************/unsignedcharadc0832(unsignedcharCH){unsignedchari,test,adval;adval=0x00;test=0x00;Clk=0;//初始化DATI=1;_nop_();CS=0;_nop_();Clk=1;_nop_();if(CH==0x00)//通道選擇{Clk=0;DATI=1;//通道0的第一位_nop_();Clk=1;_nop_();Clk=0;DATI=0;//通道0的第二位_nop_();Clk=1;_nop_();}else{Clk=0;DATI=1;//通道1的第一位_nop_();Clk=1;_nop_();Clk=0;DATI=1;//通道1的第二位_nop_();Clk=1;_nop_();}Clk=0;DATI=1;for(i=0;i<8;
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 農(nóng)村地基轉(zhuǎn)租合同范本
- 口罩材料轉(zhuǎn)讓合同范本
- 借款和欠款合同范本
- 書刊發(fā)行合同范本
- 打樁工程合同范本
- 五軸數(shù)控系統(tǒng)加工編程與操作 課件 項目五-五軸聯(lián)動加工旋轉(zhuǎn)刀具中心點手動編程V3
- 礦山工程開采合同范本
- 2024年秋季學(xué)期新人教PEP版英語三年級上冊課件 Unit 5 PartA(2) Let's learn~Listen and chant
- 小學(xué)美術(shù)類課題申報書
- 舌診中醫(yī)診斷學(xué)
- 2023年山東鋁業(yè)職業(yè)學(xué)院單招綜合素質(zhì)題庫及答案解析
- 【人教版二年級下冊數(shù)學(xué)】全冊課時鞏固提升練習(xí)和單元鞏固提升練習(xí)
- GB/T 2007.1-1987散裝礦產(chǎn)品取樣、制樣通則手工取樣方法
- 交流課:資本主義世界市場的形成
- 城市社會學(xué)(2015)課件
- 年產(chǎn)2萬噸馬來酸二乙酯技改建設(shè)項目環(huán)評報告書
- 中國古代文論教程完整版課件
- 中班美工區(qū)角活動教案10篇
- SJG 103-2021 無障礙設(shè)計標(biāo)準(zhǔn)-高清現(xiàn)行
- 皇冠假日酒店智能化系統(tǒng)安裝工程施工合同范本
- 路面工程重點、關(guān)鍵、和難點工程的施工方案(技術(shù)標(biāo))
評論
0/150
提交評論