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

正文內(nèi)容

畢業(yè)設(shè)計基于單片機的溫室大棚自動控制系統(tǒng)(存儲版)

2025-07-28 11:19上一頁面

下一頁面
  

【正文】 2(9,inteset1)。 print1(0xc8,0x20)。 s4num=0。 delay(20)。 if(inte1=inteset1*10) relay3=0。 delay(20)。 } if(s4num==4) { write_(0x01)。 else print1(0xc9,0x20)。 } if(s4num==3) { print(0x80,inteset)。 else print1(0xc9,0x20)。 } if(s4num==2) { print(0x80,hunset)。 else print1(0xc8,0x20)。 print1(0x8e,0x43)。 write_(0x80+11)。 if(s2==0) { while(!s2)。 if(hunset1==90) hunset1=10。 write_(0x80+11)。 if(s2==0) { while(!s2)。 print1(0x80+13,0+0x30)。 print1(0x8d,0x25)。 print1(0x80+12,0+0x30)。}////////////////////////////////////////////////////////////void keyscan() //鍵盤掃描函數(shù){ rd=0。 }void print1(uchar a,uchar t) //輸出18b20數(shù)據(jù)到1602{ write_(a)。 delay(10)。 inteset1=15。 P0=date。 delay(10)。 //讀數(shù)完畢 hun1=hun2/。 wr = 1。 //讀數(shù)完畢 i_bai = inte1/100。 wr = 0。 t_ge=y/100。 T_H=T_Hamp。 tmpwritebyte(0xcc)。 uchar T_H=0。 } else { DS=0。0x01。 dat=(j7)|(dat1)。 i=8。}bit tmpreadbit(void) //read a bit 讀一位{ uint i。y)。sbit lcdrs=P3^5。sbit relay1=P1^5。uchar tempset1,s1num,s4num,hunset1,hun1,hun2,inteset1,inte1。systemElectronic Information Engineering, Department of Electronic Information Engineering118542007050 Pan Xiaoqi Teacher: Yu Jianming【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 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. 附錄1 電子元器件明細表類 型封 裝型 號數(shù)量備 注瓷片電容1042 瓷片電容302 瓷片電容1502 電解電容2200uF1 電解電容10uF1 電位器RP310K1 插針HDR1X22p4 插針HDR1X33p1 插針HDR1X916p1 三極管BCYW3IN54013二極管IN40078 發(fā)光二極管LED1LED13電阻576K1 電阻50K1 電阻3K3電阻1K8 電阻909K1電阻10K15 光敏電阻MG45141液晶模塊HDRX16LCD16021 集成電路N020ADC08042 集成電路40P6STC89C521 集成電路DIP08TLC5551 集成電路Header 2HHS11011 集成電路Header 3HDS18B201 穩(wěn)壓電路T03BLM78051 按鍵SWKEP ()12晶振XTAL1 附錄2:系統(tǒng)總體電路圖:::附錄3:實物圖系統(tǒng)實物圖1系統(tǒng)實物圖2系統(tǒng)實物圖3附錄4:系統(tǒng)源代碼程序:/*項 目(Project) :基于單片機的溫室光溫濕度自動控制系統(tǒng)創(chuàng) 建 人 (Author) : 日 期 (Data) :201111編 譯 器 (Complie) :keil 3 版 本 :單 片 機 (MCU type):STC89C52RC注意事項(Attention):修改時間:*/ include includeincludeincludedefine uchar unsigned chardefine uint unsigned intdefine T_cont 。 鍵盤掃描子程序流程如圖53圖53 鍵盤掃描流程圖 鍵盤掃描子程序一開始先掃描按鍵,判斷是否有按鍵被按下,確定有按鍵被按下時判斷被按下的是哪個按鍵,如果是按鍵S1,系統(tǒng)將進入設(shè)置模式,這時按鍵S2和S
點擊復(fù)制文檔內(nèi)容
環(huán)評公示相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1