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

正文內(nèi)容

基于單片機的溫濕度控制系統(tǒng)畢業(yè)設(shè)計(更新版)

2025-09-03 17:49上一頁面

下一頁面
  

【正文】 蜂鳴器、繼電器電路、和電源部分。以 單片機 為溫濕度的 控制核心,用 DHT11 溫濕度傳感器檢測電力柜內(nèi)溫度和濕度,LCD1602 液晶 顯示溫濕度 。 無論是日常生活電器中還是工業(yè)設(shè)備中都有,在不同場合, 系統(tǒng)設(shè)計也 不同 。 關(guān)鍵詞 : 單片機 STC89C5 DHT11 傳感器、 溫濕度 監(jiān)測 控制 Based on the design and implementation of digital temperature controllers and humidity controllers on STC microcontroller AS a person Che Wenliang The instructor Xingang wang Abstract In electric cabi electrical equipment are in need of a dry, cool environment, some electric power equipment itself there is a big resistance, the electromagic coil also after work for a long time to produce more heat and humid environment corrosion to electrical equipment, greatly reduce its service life, so they need a way to control devices in electric cabi temperature and humidity, environmental temperature and humidity inside ark power to keep the scope of the work in a suitable electrical equipment and power incase of temperature and humidity monitoring, through the great error in manual monitoring in electrical cabi temperature and humidity, randomness, unable to continuous monitoring nor safe. Through the 51 singlechip microputer to monitor temperature and humidity and control relay onoff, dehumidifier and radiator, achieve the goal of power rack cooling dehumidification. Using single chip microputer system for electrical cabi temperature and humidity monitoring and control, can be realtime monitoring control, the error is relatively small, and straightforward, by setting the also can adjust temperature and humidity monitoring and control. Reduces the power equipment maintenance costs, and safeguard the personal safety. Keywords: Microcontroller STC89C51。 降低了電力設(shè)備維護成本,也保障人身安全。 課題研究的意義 類似的 控制在許多方面都有 應(yīng)用。 2 2 方案設(shè)計 功能要求 溫濕 傳感器采集數(shù)據(jù) ; 單片機處理數(shù)據(jù) ; 溫濕度用液晶顯示屏顯示 ; 設(shè)定溫度濕度 控制范圍,其范圍可通過按鍵進行設(shè)置; 超過設(shè)定值時,蜂鳴器報警 設(shè)計思路 基于 51 單片機的電力柜內(nèi)溫濕度監(jiān)測控制系統(tǒng) 由 51 單片機、 傳感器 DHT1 按鍵、LCD1602 液晶顯示器、散熱風扇、除濕器、報警蜂鳴器、繼電器電路、和電源部分 組成 。 單片機主芯片選擇 采用 STC89C52 單片機作為監(jiān)測溫度和輸出控制 的核心, 功能強大, 用其在 整個控制系統(tǒng)中,滿足了最初的設(shè)計需求, 功耗低,內(nèi)部儲存足夠存儲一些程序, 而且 STC單片機功能豐富,也適合在后期改進或者增加功能時候使用, 市面上出售的單片機 STC系列很多, 價格低廉, 4 塊錢一個嗎, 而且好多電子愛好者都使用其對應(yīng)的開發(fā)板,使用這些開發(fā)板讓我們最大限度的學習了其功能,讓初學 者很快上手,所以選擇了 STC系類單片機。 單片機供電接口為 VCC 和 GND。 12345678RST9(RXD)10(TXD)11(INT0)12(INT1)13(T0)14(T1)15(WR)16(RD)17XTAL218XTAL119GND202122232425262728PSEN29ALE/PROG30EA/VPP313233343536373839VCC40U2U1Y112MC2 C3 VCCR1110KC1 10uFVCC1234J1VCCS1S2 S3 S5P24P25546231SW1sw 灰色12P5R13 2K12D5DVCCB1蜂鳴器Q58550VCC+R122KP25R4VCC1 2 3 4U1DTT11P24S4P10P11P12P13P14P15P16P17GND1VCC2VO3RS4RW5E6DB07DB18DB29DB310DB411DB512DB613DB714BG/VCC15BG/GND16LCD1LCD1602VCCVCCP10 P11 P12 P13 P14 P15 P16 P17RS RW ENENRSRWVOVOR3 2KP30P31P26P27Q18550VCCGNDR12KP26K1RelaySPDT12P112D1DR52KQ28550VCCGNDR22KP27K2RelaySPDT12P212D2DR62K 圖 主控模塊原理圖 傳感器模塊設(shè)計 DHT11 傳感器簡介 DHT11 是復(fù)合傳感器 ,可同時測定溫度和濕度,直接取代了單獨的溫度和濕度傳感器 。 Pin3:( NC),空腳,請懸浮。而傳感器的電源端口 Pin1 和 Pin4 分別接單片機的 VDD 和 GND 端。具體電路圖如圖 37 所示: 12 S2 S3 S5GNDS4P20P21P22P23 圖 按鍵模塊電路圖 4 系統(tǒng)軟件設(shè)計 建立程序 流程圖 , 流 程圖如圖 所示: 圖 主程序流程圖 13 液晶軟件設(shè)計 軟件流程圖如圖 42 所示: 圖 1602 液晶顯示模塊程序流程圖 DHT11 溫濕度 傳感器 軟件設(shè)計 DHT11 傳感器模塊的軟件流程圖如下圖所示 : 圖 DHT11 傳感器模塊程序流程圖 14 5 系統(tǒng)分析與調(diào)試 protues 電路仿真和 Keil 編譯器軟件 Protues 軟件是我們常用電路圖繪制軟件,里面元器件種類豐富,從各種集成芯片到每個小電阻等等,元件庫的元件可以讓我們隨性所欲的選擇,其仿 真功能可代替一些實物連接,極大的節(jié)省了實物測試時間 。 [11] 使用開發(fā)板下載程序界面如下圖所示: 圖 STC 下載程序 18 6 結(jié)論與展望 本系統(tǒng) 經(jīng)過自己長時間的探索和改進,基本達到 目標要求 。 //蜂鳴器 IO 口定義 uchar a_a。 //溫度報警參數(shù) uint s_high = 30,s_low = 10。 //用做菜單內(nèi)的初始化的 bit flag_key_b_en,flag_key_set_en。 uchar table_dht11[5]={1,2,3,4,5}。 byte_write(0x2255, a_a)。 flag_key_set_en = byte_read(0x2400)。 } } include include void time_init() { EA = 1。 else key_value = 0。 0x0f) != 0x0f) key_value ++。 //按鍵蜂鳴器使能 26 } } key_can = 20。 (key_old == 1)) { switch(P2 amp。 break。 //顯示濕度 write_sfm2(2,4,table_dht11[2])。amp。amp。 //溫度取消報警時回差 1% } else value1 = 0。 if((flag_s_bj_en == 1) amp。 }else write_string(1,0, DHT11 Kz System )。 if(value 800) { value = 0。 //lcd1602 初始化顯示 dst11()。 } } } key()。 if(value % 6 == 0) { flag_300ms = 1。 //3 次后 秒后連加大些 } } 32 附錄 D 開發(fā)板仿真 附錄 E 電路實物焊接測試 33 附 錄 F PCB 板打樣 附錄 G 最終成品
點擊復(fù)制文檔內(nèi)容
研究報告相關(guān)推薦
文庫吧 www.dybbs8.com
備案圖鄂ICP備17016276號-1