【正文】
考文獻(xiàn) ............................................................................................................................................... 16 致 謝 ..................................................................................................................................................... 17 延安大學(xué)西安創(chuàng)新學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 1 選題的目的與意義 隨著社會(huì)生活的進(jìn)步,人們對(duì)生活品質(zhì)追求越來(lái)越高。本次設(shè)計(jì)的盆花自動(dòng)澆水系統(tǒng)分為兩大模塊:空氣溫濕度的檢測(cè)與控制和實(shí)時(shí)時(shí)間的顯示與定時(shí)控制。 關(guān)鍵詞: STC89C51 單片機(jī); DHT11 溫濕度傳感器; LCD; DS1302 時(shí)鐘芯 II Design of potted flowers automatic watering system Abstract: The design of an intelligent watering system, to realize the automatic watering flower. Potted plant automatic watering system of this design is divided into two modules: the air temperature and humidity detection and control and realtime display and timing control. The detection and control of air temperature and humidity is divided again for detection of air temperature and humidity and display, automatic watering system. Detection of air temperature and humidity and display of temperature and humidity sensor DHT11 as the sensing ponent, air temperature and humidity will detect the value into the STC89C51 microcontroller, and then display the numerical output to LCD LCD screen. And through the MCU program set the upper and lower limits of water pared to air humidity and DHT11 into the single value, when less than the lower limit, the SCM output a signal to control the electromagic valve is opened, the beginning of watering, higher than the limit value by SCM outputs a signal to control the electromagic valve is closed, stop watering. The real time display and timing control by the SCM from the realtime clock chip DS1302 read and time of day, time and watering watering them through the program setting the amount of watering. Keywords: STC89C51。 盆花澆水量是否能做到適時(shí)適量,是養(yǎng)花成敗的關(guān)鍵。電子類自動(dòng)澆花器又稱時(shí)控淋裝置,根據(jù)電源不同分為交流電自動(dòng)澆花器和電池自動(dòng)澆水器兩種。 其中控制部分選用 STC89C51 單片機(jī),空氣濕溫度采集選用 DHT11 溫濕度傳感器,定時(shí)選用 DS1302 時(shí)鐘芯片,顯示選用 LCD1602 液晶顯示。若是選擇手動(dòng)模式澆花,則是定時(shí)定量的澆水,就在規(guī)定的時(shí)間按照澆水時(shí)間的長(zhǎng)短對(duì)植物進(jìn)行定量澆水。該器件基本功能與普通的 51 單片機(jī)完全兼容。 ( 3) 21 個(gè)特殊功能寄存器( SFR)。 ( 2) GND:接地。 ( 2) ALE/PROG:地址鎖存信號(hào)引腳 /編程脈沖輸入引腳。當(dāng) EA 接地時(shí),僅使用外部程序存儲(chǔ)器;當(dāng) EA 接 VCC 時(shí), CPU 從片內(nèi) 0000H 開(kāi)始取指令。其內(nèi)部含有一個(gè)電阻式感濕元件和一個(gè) NTC 測(cè)溫元件,并且與一個(gè)高性能的 8 位單片機(jī)相連。 DS1320 時(shí)鐘芯片 DS1302是一款美國(guó) DALLAS公司推出的涓流充電式的時(shí)鐘芯片,其片內(nèi)含有一個(gè)實(shí)時(shí)時(shí)鐘 /日歷和 31字節(jié)靜態(tài)數(shù)據(jù)存儲(chǔ)器,可通過(guò)簡(jiǎn)單的串行接口與單片機(jī)進(jìn)行通信。 5:( RST )復(fù)位 /片選端。為了降低成本,現(xiàn)在絕大多數(shù)制造商都直接將裸片做到板子上。 具有 80 字節(jié)的 RAM。四線制時(shí)只用 DB7~延安大學(xué)西安創(chuàng)新學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 11 DB4 四根高位線 電源類引腳包括: ( 1) 引腳 2 為負(fù)、正電源線。 DHT11 濕溫度傳感器將檢測(cè)的空氣濕溫度數(shù)據(jù)通過(guò)單片機(jī)的 I/O 接口傳送到 LCD 上顯 示出來(lái)。系統(tǒng)軟件所實(shí)現(xiàn)的功能是,通過(guò)設(shè)置按鍵次數(shù)來(lái)選擇澆花的方式,若按鍵次數(shù)是奇數(shù)則系統(tǒng)選擇智能澆花,否則為手動(dòng)澆花??諝鉂穸鹊臋z測(cè)和顯示以 SHT11 溫濕度傳感器為感應(yīng)部件,將檢測(cè)到的空氣濕度值送給 STC89C51 單片機(jī),再由單片機(jī)的 I/O 口輸出到 LCD液晶屏中進(jìn)行顯示。 感謝同學(xué)、朋友對(duì)我的幫助, 年的風(fēng)風(fēng)雨雨,我們一同走過(guò),充滿著關(guān)愛(ài),給我留下了值得珍藏的最美好的記憶。 在我的十幾年求學(xué)歷程里,離不開(kāi)父母的鼓勵(lì)和支持,是他們辛勤的勞作,無(wú)私的付出,為我創(chuàng)造良好的學(xué)習(xí)條件,我才能順利完成學(xué)業(yè),感激他們一直以來(lái)對(duì)我的撫養(yǎng)與培育。s antiracism taskforce, is in London for the Football Association39。 May be back in the past, to oneself the paranoid weird belief disillusionment, these days, my mind has been very messy, in my mind constantly. Always feel oneself should go to do something, or write something. Twenty years of life trajectory deeply shallow, suddenly feel something, do it. 一字開(kāi)頭的年齡已經(jīng)到了尾聲。t want to give vent to out your inner voice can be in the high school children of the feelings in a period, but was eventually infarction when graduation party in the throat, later again stood on the pitch he has sweat profusely, looked at his thrown a basketball hoops, suddenly found himself has already can39。那些曾經(jīng)所謂的非做不可,只是青蔥年華里自己給自己注射的一支強(qiáng)心劑,或者說(shuō),是自以為是的精神寄托罷了。 instead of letting the world soften us, we let it drive us deeper into ourselves. We try to deflect the hurt and pain by pretending it doesn’t exist, but although we 延安大學(xué)西安創(chuàng)新學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 20 can try this all we want, in the end, we can’t hide from ourselves. We need to learn to open our hearts to the potentials of life and let the world soften us. 生活發(fā)生不幸時(shí),我們常常會(huì)關(guān)上心門(mén);世界不僅沒(méi)能慰藉我們,反倒使我們更加消沉。其實(shí),我們有能力面對(duì)這些痛苦的感受,從中領(lǐng)悟到出路。ll be traveling fast, so despite the distance, it will not be like diving into the deep end of a pool. It will be like he is diving into the shallow end. Skydiver preps for the big jump When he jumps, he is expected to reach the speed of sound 690 mph (1,110 kph) in less than 40 seconds. Like hitting the top of the water, he will begin to slow as he approaches the more dense air closer to Earth. But this will not be enough to stop him pletely. If he goes too fast or spins out of control, he has a stabilization parachute that can be deployed to slow him down. His team hopes it39。屏住呼吸,生活停滯;呼出呼吸,更多新奇與經(jīng)歷又將拉開(kāi)序幕。突然想到那件藍(lán)格子襯衫;那些被折成各種各樣形狀的信紙;那段從街角深巷伊始的友誼;還有那場(chǎng)還沒(méi)有開(kāi)始就宣告了終結(jié)的邂逅計(jì)劃 …… 那些年那些天的非做不可,終于和青春一樣,都將在我們的人生中謝幕。也曾經(jīng)好像已經(jīng)下定了決心去做某件事,但更多的時(shí)候是最后又打起了退堂鼓。t really 延安大學(xué)西安創(chuàng)新學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 19 grow up, it seems is not so important。s actions. CSKA said they were surprised and disappointed by Toure39。t charge you more than 35% of your pensation if you win the case. you39。同時(shí)也感謝王海軍老師在課題研究中所給予的幫助。 從這里走出,對(duì)我的人生來(lái)說(shuō),將是踏上一個(gè)新的征程,要把所學(xué)的知識(shí)應(yīng)用到實(shí)際工作中去。在用數(shù)字電路控制自動(dòng)給水系統(tǒng)及時(shí)的給澆水系統(tǒng)供水。否則停止?jié)菜? 延安大學(xué)西安創(chuàng)新學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 12 該系統(tǒng)包括空氣濕溫度的采集與顯示系統(tǒng)和定時(shí)器的設(shè)置與顯示系統(tǒng)兩個(gè)系統(tǒng) 。如表 31 所示為 LCD1602 液晶顯示器的引腳功能。 具有字符發(fā)生器 ROM,可顯示 192 種 字符( 160 個(gè) 57 點(diǎn)陣字符和 32個(gè) 510 點(diǎn)陣字符)。它是由字符型液晶顯示屏( LCD),控制驅(qū)動(dòng)主電路 HD44780 及其擴(kuò)展驅(qū)動(dòng)電路 HD44100,以及少量電阻,電容原件和結(jié)構(gòu)件等裝配在 PCB 板上而組成。 3:( X X2)震蕩源,外接 32768Hz 晶振。 3:( NC)空腳,懸浮。 片內(nèi) RAM 可劃分為兩部分: 00H~ 7FH 為低 128 字節(jié)地址; 80H~ FFH 為高128 字節(jié)地址。 AT89C51 片內(nèi)的程序存儲(chǔ)器為 Flash Memory,地址為 0000H~ 0FFFH。 ( 4) ~ :一般 I/O 口引腳或第二功能引腳。 圖 32 STC89C51 的引腳圖 其引腳功能如下。 ( 1) 4KB 程序存儲(chǔ)器( ROM/EPROM/Flash),可外擴(kuò)至 64KB。 本設(shè)計(jì)的主題流程圖如圖 21 所示: 延安大學(xué)西安創(chuàng)新學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 4 圖 21 主題 流程圖 模式 1 模式 2 是 是 開(kāi)始 選擇模式 智能澆花 手動(dòng)澆花 開(kāi)始澆水 開(kāi)始澆水 低于設(shè)置濕度 設(shè)置時(shí)間到? 停止?jié)菜? 否 否 延安大學(xué)西安創(chuàng)新學(xué)院本科畢業(yè)論文(設(shè)計(jì)) 5 STC89C51 單片機(jī) STC89C51 是由美國(guó)設(shè)計(jì)、深圳宏晶科技