freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

溫室大棚自動控制系統(tǒng)的設(shè)計-wenkub.com

2025-07-04 16:30 本頁面
   

【正文】 if(inte1=inteset1*10) relay3=0。 if(temp1=tempset1*100) relay1=0。 delay(20)。 print(0x80,set)。 } if(s4num==4) { write_(0x01)。 print1(0xcb,i_ge+0x30)。 else print1(0xc9,0x20)。 print1(0x8c,0+0x30)。 } if(s4num==3) { print(0x80,inteset)。 print1(0xcb,h_shi+0x30)。 else print1(0xc9,0x20)。 print1(0x80+10,0x20)。 } if(s4num==2) { print(0x80,hunset)。 print1(0xcb,0x2e)。 else print1(0xc8,0x20)。 print1(14,0+0x30)。 print1(0x8e,0x43)。 if(s4==0) { s4num++。 write_(0x80+11)。 if(inteset1==25) inteset1=0。 if(s2==0) { while(!s2)。 write_(0x80+11)。 if(hunset1==90) hunset1=10。 if(s2==0) { while(!s2)。 write_(0x80+11)。 if(tempset1==40) tempset1=15。 if(s2==0) { while(!s2)。 } if(s1num==5) { s1num=0。 print1(0x80+13,0+0x30)。 } if(s1num==3) { write_(0x01)。 print1(0x8d,0x25)。 delay(20)。 print1(0x80+12,0+0x30)。 if(s1num==1) { write_(0x01)。}////////////////////////////////////////////////////////////void keyscan() //鍵盤掃描函數(shù){ rd=0。 sge=t1%10。 }void print1(uchar a,uchar t) //輸出18b20數(shù)據(jù)到1602{ write_(a)。 while(*str!=39。 delay(10)。 delay(10)。 inteset1=15。 lcden=0。 P0=date。}void write_data(uchar date) //lcd寫數(shù)據(jù)函數(shù){ lcdrs=1。 delay(10)。 //個位數(shù)}///////////////////////////////////////////////////////////void write_(uchar ) //lcd寫命令函數(shù){ lcdrs=0。 //讀數(shù)完畢 hun1=hun2/。 //稍延時,等待讀完數(shù) delay(20)。 wr = 1。 wr = 1。 //讀數(shù)完畢 i_bai = inte1/100。 _nop_()。 wr = 0。 }/////////////////////////////////////////////////////////////void inteadc0804() //光照度adc轉(zhuǎn)換子程序與數(shù)據(jù)處理{ rd = 1。 t_ge=y/100。 t_bai=(uint)temp1/10000。 T_H=T_Hamp。 k=T_Hamp。 tmpwritebyte(0xcc)。 tmpwritebyte(0xcc)。 uchar T_H=0。 i++。 } else { DS=0。i++。0x01。 bit testb。 dat=(j7)|(dat1)。 dat=0。 i=8。 //i++ for delay 小延時一下 DS=1。}bit tmpreadbit(void) //read a bit 讀一位{ uint i。 while(i0)i。y)。 for(x=z。sbit lcdrs=P3^5。sbit cs2=P3^1。sbit relay1=P1^5。sbit s1=P1^0。uchar tempset1,s1num,s4num,hunset1,hun1,hun2,inteset1,inte1。uchar code hunset[]={hunset: }。system[Abstract] The system consists of microcontroller STC89C52, the temperature detection circuit, humidity detection circuit, light detection circuit, the keyboard scanning circuit, clock circuit, sensor circuit and relay control circuit and other ponents. System uses STC89C52 SCM, the features of which as follows: strong function, low power consumption, low prices, stable and reliable, widely used, versatile and so on. The thesis mainly focus on: the base block diagram, working principle and the design of relay control which use STC89C52 microcontroller with sensor, HS1101 temperature DS18B20 humidity sensor, photoresistance, etc for the system as the core to collect, conduct, display the data of the air temperature, soil humidity, illuminance and so on. The system use Realtime and continuous detection, display intuitively and control automatically on soil moisture, ambient temperature, illuminance in the process of plant growth. To overe the defects from the traditional manual methods of measurement which can not measure continuously, save the amount of work, avoid omissions or unnecessary losses that caused by errors. [Key words] SCM humidity sensors digital temperature sensors light dependent resistor relay control 附錄程序:include includeincludeincludedefine uchar unsigned chardefine uint unsigned intdefine T_cont 。automatic monitoring and control論文完成了以STC89C52單片機為核心,以HS1101溫度傳感器、DS18B20濕度傳感器,光敏電阻等為系統(tǒng),對空氣溫度、土壤濕度、光照度進行數(shù)據(jù)的采集、處理、顯示等系統(tǒng)的基本框圖、工作原理和繼電器控制的設(shè)計的闡述。[N].農(nóng)業(yè)科技,2010(8)[9][D].西北農(nóng)林科技大學(xué),2007:1530[10]王華祥,[M].天津:天津大學(xué)出版社,2007:2224[11]HUMIREL Relative Humidity Measurement using the Humerel HS1101 Sensor 2008[12] amp。從系統(tǒng)的調(diào)研,系統(tǒng)的分析,開發(fā)實現(xiàn),整體設(shè)計,系統(tǒng)的測試,都離不開老師的細心指導(dǎo)以及寶貴的意見,其豐富專業(yè)的知識,嚴謹?shù)闹螌W(xué)態(tài)度,勤奮不倦的科研精神,使我又學(xué)到了不少有用的知識。 而在本次論文的寫作過程中,讓我感受到所學(xué)的知識甚少,還有一些知識遺忘的太多了。采用STC89C52單片機、HS1101數(shù)字溫濕度傳感器、LCD1602液晶顯示模塊等器件設(shè)計溫室大棚控制系統(tǒng),實現(xiàn)溫度、濕度、光照的信息采集以及自動調(diào)節(jié)功能。 鍵盤掃描子程序流程鍵盤掃描子程序流程如圖53圖53 鍵盤掃描流程圖鍵盤掃描子程序一開始先掃描按鍵,判斷是否有按鍵被按下,確定有按鍵被按下時判斷被按下的是哪個按鍵,如果是按鍵S1,系統(tǒng)將進入設(shè)置模式,這時按鍵S2和S3被啟用,進入那個參數(shù)的設(shè)置取決于按鍵S1被按下的次數(shù),S1被按下一次,進行溫度值設(shè)置,S1被按下兩次,進行濕度值設(shè)置,S1被按下三次,進行光照度設(shè)置,當(dāng)按下第四次,返回正常顯示,按鍵S2和S3被禁用。(4)各項參數(shù)的繼電器控制。 (11)、我們單擊Output, 選中Create HEX F,再單擊“確定”。 (7)、存好后把此文件加入到工程中方法如下:用鼠標在Source Group1上單擊右鍵, 然后再單擊Add Files to Group Source Group 1。 (3)、選擇工程文件要存放的路徑 ,輸入工程文件名xdch最后單擊保存。目標文件可由LIB51創(chuàng)建生成庫文件,也可以與庫文件一起經(jīng)L51連接定位生成絕對目標文件(.ABS)。下面詳細介紹Keil C51開發(fā)系統(tǒng)各部分功能和使用。 Keil C51是美國Keil Software公司出品的51系列兼容單片機C語言軟件開發(fā)系統(tǒng),與匯編相比,C語言在功能上、結(jié)構(gòu)性、可讀性、可維護性上有明顯的優(yōu)勢,因而易學(xué)易用用過匯編語言后再使用C來開發(fā),體會更加深刻。第5章 軟件設(shè)計單片機開發(fā)中除必要的硬件外,同樣離不開軟件,隨著單片機開發(fā)技術(shù)的不斷發(fā)展,從普遍使用匯編語言到逐漸使用高級語言開發(fā),單片機的開發(fā)軟件也在不斷發(fā)展,Keil軟件是目前最流行開發(fā)MCS51系列單片機的軟件,這從近年來各仿真機廠商紛紛宣布全面支持Keil即可看出。220V交流市電通過電源變壓器變換成交流低壓,再經(jīng)過橋式整流電路D1~D4和濾波電容C1的整流和濾波,在固定式三端穩(wěn)壓器LM7805的Vin和GND兩端形成一個并不十分穩(wěn)定的直流電壓(該電壓常常會因為市電電壓的波動或負載的變化等原因而發(fā)生變化)。 電源設(shè)計如圖所示電路為輸出電壓+5V、。在這里,繼電器驅(qū)動含有兩個意思:一是對繼電器進行驅(qū)動,因為繼電器本身對于單片機來說就是一個功率器件;還有就是繼電器去驅(qū)動其他負載,比如繼電器可以驅(qū)動中間繼電器,可以直接驅(qū)動接觸器,所以,繼電器驅(qū)動就是單片機與其他大功率負載接口[11]。鍵盤電路如圖46:圖46 鍵盤電路圖單片機是一個弱電器件,一般情況下它們大都工作在5V甚至更低。手動復(fù)位是指通過接通一按鍵開關(guān),使單片機進入復(fù)位狀態(tài)。根據(jù)光敏電阻在不同的光照下有不同的阻值,經(jīng)過A/D轉(zhuǎn)換后輸入到單片機內(nèi)進行處理。 (4)溫度特性:(EV為電子伏特),故可以在20176。光敏光敏電阻器以硫化隔制成,所以簡稱為CDS,通常使用熱壓結(jié)晶體之光電傳導(dǎo)零件,其特性有:(1)光傳導(dǎo)零件特性:CDS相對靈敏度與照射光線靈敏度有關(guān),波長從5500至6500A(1A=)之間有最大的靈敏度。(6)內(nèi)部有溫度上、下限告警設(shè)置。(4)測量溫度范圍在-55oC到+125oC之間。(2)在DS18B20中的每個器件上都有獨一無二的序列號。等量電容HS1101/HS1100通過R19與R20充電到門限電壓(),通過R19放電到觸發(fā)電平(),然后R20通過引腳7短路到地。ADC0804[7]為8bit的一路A/D轉(zhuǎn)換器,其輸入電壓范圍在0—5v,轉(zhuǎn)換速度小于100us,﹪,滿足設(shè)計的精度要求。參考電壓:。模擬輸入電壓范圍:0V5V。度~85總誤差:177。ms。ms。(
點擊復(fù)制文檔內(nèi)容
畢業(yè)設(shè)計相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖片鄂ICP備17016276號-1