【正文】
8 生活污水 9 某電氣公司處理前水樣 10 某電氣公司處理后水樣 11 加入汽油的水樣 12 加入煤油的水樣 水的渾濁度的監(jiān)測原理 當(dāng)液體濁度增加時,由于液體阻礙增強(qiáng),光的通過率低,光敏電阻器接受光線弱。 圖 是系統(tǒng)的框圖,本系統(tǒng)是基于單片機(jī)技術(shù)的水質(zhì)監(jiān)測系統(tǒng),傳感器采集目標(biāo)對象的信息,將信息送到 A/D 的模擬通道中,由單片機(jī)通過程序?qū)⒔?jīng)過 A/D 模數(shù)轉(zhuǎn)換后的信息讀到自己內(nèi)部的寄存器中,單片機(jī)通過自己內(nèi)部的 ROM 中的程序,將輸入的信息處理,然后將得到的信息通過顯示裝置顯示出來。 本系統(tǒng)以單片機(jī)為系統(tǒng)核心,從單片機(jī)發(fā)展與應(yīng)用情況分析,雖然嵌入式技術(shù)日臻成熟,但 8 位單片機(jī)仍然是單片機(jī)應(yīng)用場合的寵兒,以 MCS51 單片機(jī)應(yīng)用最為廣泛,考慮到本系統(tǒng)設(shè)計的成本和實用性等多方因素,遂選擇同是 ATEML 公司生產(chǎn)的 AT89C51 單片機(jī)作為系統(tǒng) MCU。片上 Flash 允許程序存儲器在系統(tǒng)可編程。對 P0 口寫 1 時,引腳用作高阻抗輸入。對 P1 寫“ 1”時,上拉電阻把端口拉高,此時可以用作輸入口。 P3 口: P2 口是一個具有上拉電阻的 8 位雙向 I/O 口, P2 輸出緩沖器能驅(qū)動 4 個 TTL 邏輯電平。對于單片機(jī)內(nèi)部資源已能夠滿足系統(tǒng)余姚的,可直接采用最小系統(tǒng)。 ( 3) 內(nèi)部有 4KB 的程序存儲器,地址空間為 0000H~0FFFH,沒有片外程序存儲器。比如復(fù)位電路和晶振電路就是單片機(jī)必要的外圍的電路。本系統(tǒng)設(shè)計采用按鍵復(fù)位電路,方便并且可以對單片機(jī)工作狀態(tài)進(jìn)行直接重啟。沒有晶振,就沒有時鐘周期,沒有時鐘周期,就無法執(zhí)行程序,單片機(jī)就無法工作。本系統(tǒng)采用內(nèi)部時鐘方式的晶振電路 [3]。 LED 數(shù)碼管是由發(fā)光二極管按 一定的結(jié)構(gòu)排列而成的顯示器件。當(dāng)液體濁度下降時,光敏電阻器接受光線強(qiáng)。 表 傳感器的性能 測試實驗數(shù)據(jù)表 測試點(序號) 1 2 3 4 5 6 7 8 9 10 濁度值( mg/L) 74 122 202 332 544 701 898 1156 1481 1904 電壓值( mV) 106 107 112 125 159 195 253 350 508 770 統(tǒng)計實驗數(shù)據(jù)可以得出:濁度值與電壓值之間近似一條二次曲線,因此,采用二次曲線擬和,得到濁度傳感器的測試公式為: 1 0 5V8 0 ? 式中 Z 為濁度 mg/L; V為濁度傳感器的電壓讀數(shù) mV。還應(yīng)根據(jù)單片機(jī)接口特征選擇 A/D 轉(zhuǎn)換器的輸出狀態(tài)。由于它體積小,兼容性強(qiáng),性價比高而深受單片機(jī)愛好者及企業(yè)歡迎,其目前已經(jīng)有很高的普及率。C to +85176。 C 語言是近年來在國內(nèi)外普遍使用的一種程序設(shè)計語言,其功能豐富,表達(dá)力強(qiáng),使用靈活方便,應(yīng)用面廣,目標(biāo)程序效率高,可移植性好,而且也能直接對計算機(jī)硬件進(jìn)行操作,既有高級語言的特點,也有匯編語言的特點。 ( 3)數(shù)據(jù)結(jié)構(gòu)豐富,具有現(xiàn)代化語言的各種數(shù)據(jù)結(jié)構(gòu)。另外 C 語言程序以函數(shù)為模塊單位,一個 C 語言程序就是由許多個函數(shù)組成,一個函數(shù)相當(dāng)于一個程序模塊,因此 C 語言程序可以很容易地進(jìn)行結(jié)構(gòu)化程序設(shè)計。 ( 7) 可移植性好 不同的計算機(jī)匯編指令不一樣,用于匯編語言編寫的程序用于其他的機(jī)型使用時,必須改成對應(yīng)機(jī)型的指令代碼。知道了自己在學(xué)習(xí)單片機(jī)方面有哪些不足之處,以便 于以后更好更深入的來了解學(xué)習(xí)單片機(jī)。 sbit LED_GN = P1^0。 sbit DO = P1^3。 //顯示緩沖區(qū) uchar dis[4]={0x00,0x00,0x00,0x00}。 //ADC0832 通道值 uint i。 i 75。 ulong root = 0。 i++) { root = 1。 if(divisor = rem){ rem = divisor。 Clk=0。 //芯片選定 _nop_()。 //第一次拉低時鐘 DI=1。 Clk=0。 _nop_()。 Clk=1。 //通道 1的第二位 _nop_()。 //第三次拉低時鐘 ,此前 DI 兩次賦值決定通道 DI=1。 dis0= 1。 if (DO) dis0|=0x01。i++) //讀取后 8位的值 { dis1= 1。 Clk=1。 //則賦值給 dat _nop_()。 //拉高 時鐘 return date。 //取個位 temp=a%51。 temp=temp*10。 dis[0] = ZD / 1000。 } /***************************************** 顯示函數(shù) *****************************************/ void display(void) { int i = 0。 delay(5)。 delay(5)。 delay(5)。 delay(5)。 delay(5)。 P2 = DisWX[i]。 P2 = DisWX[i]。 P2 = DisWX[i]。 } delay(5)。 date=ADC0832(CH)。 } } 皖西學(xué)院本科畢業(yè)設(shè)計 第 27 頁 致謝 經(jīng)過近半年的忙碌和 工作,本次畢業(yè)論文已經(jīng)接近尾聲,這次設(shè)計中感謝我的輔導(dǎo)老師張仲義 為我提供了許多的單片機(jī)和傳感器方面的信息和材料,在輔助我如何選擇外圍電路和芯片方面,張老師給予了很大的幫助,張老師一絲不茍的科研精神,給予了我很大的鼓舞,使我 有動力去學(xué)習(xí)更多的知識和技能。 然后還要感謝大學(xué)四年來所有的老師,為本設(shè)計打下牢固的專業(yè)知識的基礎(chǔ),正是因為有了你們的支持和鼓勵,此次畢業(yè)論文才會順利完成。t appealed against the disciplinary action your employer has taken against you. However, if you win your case, the tribunal may reduce any pensation awarded to you as a result of your failure to appeal. Remember that in most cases you must make an application to an employment tribunal within three months of the date when the event you are plaining about happened. If your application is received after this time limit, the tribunal will not usually accept it. If you are worried about how the time limits apply to you, take advice from one of the anisations listed under Further help. Employment tribunals are less formal than some other courts, but it is still a legal process and you will need to give evidence under an oath or affirmation. Most people find making a claim to an employment tribunal challenging. If you are thinking about making a claim to an employment tribunal, you should get help straight away from one of the anisations listed under Further help. If you are being represented by a solicitor at the tribunal, they may ask you to sign an agreement where you pay their fee out of your pensation if you win the case. This is known as a damagesbased agreement. In England and Wales, your solicitor can39。s 150th anniversary celebrations and will attend City39。s governing body, has also ordered an immediate investigation into the referee39?;蛟S是愧疚于自己似乎把轉(zhuǎn)瞬即逝的很多個不同的日子過成了同一天的樣子;或許是追溯過去,對自己那些近乎偏執(zhí)的怪異信念的醒悟,這些天以來,思緒一直很凌亂,在腦海中不斷糾纏。 Junior high school, thought to have a crush on just means that the real growth, but over the past three years later, his writing of alumni in peace, suddenly found that isn39。t remember his appearance. 童年時,覺得壓歲錢和新衣服是過年必備,但是隨著年齡的推進(jìn),會越來越發(fā)現(xiàn),那些東西根本就可有可無;初中時,以為要有一場暗戀才意味著真正的成長,但三年過去后,自己心平氣和的寫同學(xué)錄的時候,突然就發(fā)現(xiàn)是不是真正的成長了,好像并沒有那么重要了;然后到了高中,覺得非要吐露出自己的心聲才能為高中生涯里的懵懂情愫劃上一個句點,但皖西學(xué)院本科畢業(yè)設(shè)計 第 29 頁 畢業(yè)晚會的時候最終還是被梗塞在了咽喉,后來再次站在他曾經(jīng)揮汗如雨的球場,看著他投過籃球的球框時,突然間發(fā)現(xiàn)自己已經(jīng)想不起他的容顏。想要的,不想要的,界限明確,好像沒有什么可以撼動自己。 At the moment, the sky is dark, the air is fresh factor after just rained. Suddenly thought of blue plaid shirt。t start planning... Those years, those days of do, finally, like youth, will end in our life. 此刻,天空是陰暗的,空氣里有著剛下過雨之后的清新因子。s not needed. Instead, he plans to deploy his 270squarefoot (25squaremeter) main chute at an altitude of around 5,000 feet (1,524 meters). In order to deploy this chute successfully, he will have to slow to 172 mph (277 kph). He will have a reserve parachute that will open automatically if he loses consciousness at mach speeds. Even if everything goes as planned, it won39。 Baumgartner the disappointing news: Mission aborted. r plays an important role in this mission. Starting at the ground, conditions have to be very calm winds less than 2 mph, with no precipitation or humidity and limited cloud cover. The balloon, with capsule attached, will move through the lower level of the atmosphere (the troposphere) where our daytoday weather lives. It will climb higher than the tip of Mount Everest ( miles/ kilometers), drifting even higher than the cruising altitude of mercial airliners ( miles/ kilometers) and into the stratosphere. As he c