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

正文內容

畢業(yè)設計基于單片機的溫室大棚自動控制系統(tǒng)設計-文庫吧資料

2025-07-04 11:09本頁面
  

【正文】 (i0)i。 //DS18B20初始化 DS=0。y)。x) for(y=110。 for(x=z。sbit rd=P3^7。sbit lcdrs=P3^5。sbit lcdrw=P3^3。sbit cs2=P3^1。sbit relay3=P1^7。sbit relay1=P1^5。sbit s3=P1^2。sbit s1=P1^0。float temp1=0。uchar tempset1,s1num,s4num,hunset1,hun1,hun2,inteset1,inte1。uchar code inteset[]={inteset: }。uchar code hunset[]={hunset: }。uchar code tempset[]={tempset: }。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 。light and temperatureautomatic monitoring and control每次按下S3,當前設置的參數(shù)值就減一。 鍵盤掃描子程序流程如圖53圖53 鍵盤掃描流程圖 鍵盤掃描子程序一開始先掃描按鍵,判斷是否有按鍵被按下,確定有按鍵被按下時判斷被按下的是哪個按鍵,如果是按鍵S1,系統(tǒng)將進入設置模式,這時按鍵S2和S3被啟用,進入那個參數(shù)的設置取決于按鍵S1被按下的次數(shù),S1被按下一次,進行溫度值設置,S1被按下兩次,進行濕度值設置,S1被按下三次,進行光照度設置,當按下第四次,返回正常顯示,按鍵S2和S3被禁用。 參數(shù)測量子程序流程如圖52圖52 參數(shù)測量子程序流程圖子程序開始先聲明變量和調用的函數(shù)后,調用顯示函數(shù),啟動模數(shù)轉換器ADC0804進行模數(shù)轉換,轉化如果未完成,單片機進行等待。(4)各項參數(shù)的繼電器控制。(2)各項參數(shù)的采集。二極管起保護作用,防止繼電器產生的感應電動勢燒壞三極管或繼電器。本設計采用的繼電器控制電路如圖47:圖47 繼電器控制電路圖圖中的三極管起開關的作用,當單片機輸出高電平時,三極管導通,繼電器吸合。繼電器驅動就是一個典型的、簡單的功率驅動環(huán)節(jié)。驅動電流在mA級以下。這樣的方式可以方便鍵盤掃描部分的的編程。系統(tǒng)上電運行后,如果需要復位,只需通過手動復位就可以實現(xiàn)。與單片機的鏈接電路如圖44:圖44 LCD1602與單片機的連接電路圖 為了確保系統(tǒng)中的電路溫度可靠工作,復位電路[9]是必不可少的部分 ,其第一功能就是低電平復位,低電平復位是在通電瞬間通過充電來實現(xiàn)的。其與ADC0804的連接電路如圖43:圖43 ADC0804與單片機的連接電路圖 系統(tǒng)采用了LCD1602液晶顯示屏[8],LCD1602液晶是一款很常用,也很易用的字符液晶。數(shù)字溫度傳感器的測量電路如圖42所示:圖42 溫度測量電路圖 系統(tǒng)采用價格低廉的光敏電阻測量光照度,因其沒有良好的線性度,所以只能大致的測量。傳感器由不同的電阻R20與R19充放電。HS1101/HS1100作為電容變量接在555
點擊復制文檔內容
環(huán)評公示相關推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1