【正文】
......................................................... 3 系統(tǒng)主要設計方案 ............................................................................................. 3 系統(tǒng)整體框圖 .................................................................................................... 3 AT89C2051單片機簡介 ....................................................................................... 3 TDS值測量原理及電路 ....................................................................................... 4 TDS值測量原理 ..................................................................................... 4 TDS值測量電路 ..................................................................................... 5 溫度補償原理與電路 .......................................................................................... 6 溫度補償原理 ........................................................................................ 7 溫度測量電路 ........................................................................................ 8 ............................................................................................................ 8 按鍵與報警電路 ................................................................................................. 9 第三章 系統(tǒng)軟件設計 ................................................................................................... 11 系統(tǒng)總體流程圖 .............................................................................................. 11 電導率測量 .....................................................................................................12 DS18B20溫度采集 ...........................................................................................12 TDS值測量 ......................................................................................................13 數(shù)碼管顯示 .....................................................................................................14 按鍵與報警 .....................................................................................................15 第四章 實驗結果與結論 ................................................................................................16 參考文獻 ........................................................................................................................18 致 謝 .............................................................................................................................19 附 錄 .............................................................................................................................20 湖州師范學院求真學院本科畢業(yè)論文 1 第一章 緒 論 基于 AT89C2051的 TDS水質測試儀的研究背景 水作為一種重要的資源,與人們的生活和生產都有著密切聯(lián)系。電極電導率測量法根據(jù)電解質導電原理,通過測量電阻得到電導率,測量電極過程表現(xiàn)為復雜的電化學系統(tǒng),極化效應、電容效應和溫度影響電導率準確測量,使得傳統(tǒng)的電導率檢測儀精度較低,智能化不夠。 系統(tǒng)整體框圖 圖 21 系統(tǒng)整體硬件框圖 AT89C2051單片機簡介 AT89C2051單片機是 CMOS 8位微處理器,有著 2k字節(jié)的閃速可以重復使用的只讀存儲器, 128字節(jié)的隨機數(shù)據(jù)存儲器,具有低電壓,高性能。電阻越大 , 導電能力越弱。所以在 水質檢測儀器的 設計 中 , 應 加以消除溫度對 TDS的影響。 1腳接地, 8腳接電源,控制電壓端 5 腳懸空,使基準電壓不變,電壓比較器 C1 的同相輸入端的電壓是 2VCC/3,電壓比較器 C2 的反相輸入端電壓是 VCC/3。 兩根探針所夾的被測溶液視為電阻。 使用軟件擬合電導率和溫度的經驗公式對測得的電導率及水溫進行數(shù)據(jù)處理 ,可以較好的做到溫度補償,直接得到補償后的數(shù)值。 數(shù)碼管的 8個腳 ah接到單片機的 P1口,位選控制端 13分別接三極管 Q2Q4的集電極,三極管的基極分別接到單片機的 ,三極管的發(fā)射極連接在一起接 +5V電源。 如圖 32所示,為電導率測量流程框圖。按下按鍵,鎖定相關數(shù)據(jù),蜂鳴器發(fā)出信號,測試成功。在論文即將完成之際,我要向他們表示我最誠摯的感 謝! 在此,對我的指導老師蔡志端老師致以誠摯的謝意,蔡老師雖身負教學,科研的重任,仍抽出時間無私的指導我們的畢業(yè)設計和論文撰寫。 uchar flag=0。 } if(count1400amp。amp。count4499) { count_buff=count/25。 } if(count8000amp。 // } //count_buff=count/10。 } /*********************************************/ void t0(void) interrupt 1 { TR1=1。 DQ = 0。 return (flag)。m++)。 湖州師范學院求真學院本科畢業(yè)論文 25 for(m=0。 if(temp10amp。 TL1=0x00。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。 while(1) { if(key==0) { while(!key)。 for(m=0。 for(m=0。m++)。m3。 DQ = 1。 led3=0。 } if(count10300amp。count6499) { count_buff=count/23。amp。 // } if(count2500amp。 if(count1000) { count_buff=count/66*3。 sbit led1=P3^2。該系統(tǒng)的硬件電路布局設計簡單合理,體積小,功能齊全,精度高,成本低,性價比高。 數(shù)碼管顯示流程框圖,如圖 35所示。軟件通過數(shù)據(jù)處理系統(tǒng)提高儀器精確度和可靠度。對各個數(shù)碼管的的 COM端分時輪流控制,使各個數(shù)碼管輪流受控顯示。 自動溫度補償法,在測量儀器中設置自動溫度補償電路,在測量任意溫度的溶液時,都能自動進行溫度補償并顯示出補償至基準溫度 25℃ 時該 溶液的電導率值。分析電路工作原理得到 f=( RC4),其中 R為被測溶液的電阻。 555 定時器的使用存在著模擬和數(shù)字信號的轉變。 直接測量水的溶解性總固體 程序步驟繁多,測量穩(wěn)定性差,實行起來 復雜 。 導體的導電過程是由于導體本身存在的自由電子在電場作用下運動而產生的 ,它的導電能力除了與金屬本身性質有關外 ,還與它的長度和橫截面積有關。 湖州師范學院求真學院本科畢業(yè)論文 3 第二章 系統(tǒng)硬件電路設計 系統(tǒng)主要設計方案 論文利用單片 機 實現(xiàn) TDS值 信號在線采集, 并 設置溫度測量模塊 , 采用數(shù)字溫度傳感器DS18b20 進行溫度 測量 。 基于 AT89C2051的 TDS水質測試儀的發(fā)展現(xiàn)狀 目前水質 檢 測的方法有分光光度法、熒光法、原子色譜法、電導率法等。 TDS水質測試儀 由于 探頭 極化現(xiàn)象,寄生電容,溫度 對測量 精度 的影響 , 使其存在測量精度低、溫度補償不夠的缺點。稱量法一般采用國標檢測方法,分別為 105℃ 烘干和 180℃ 烘干兩種。分壓法是一種研發(fā)