【正文】
蘇州科技學(xué)院本科生畢業(yè)設(shè)計(論文) I 基于單片機的酒精濃度測試儀設(shè)計 摘 要 中國經(jīng)濟的飛速發(fā)展使得私家車的占有量越來越高。 人們生活水平的提高 ,車輛的大幅度增多, 也使得道路安全問題越來越嚴(yán)重。 有些事故是讓人回天乏術(shù)的,而有些事故是完全可以避免的。比如酒后駕車,這種行為是對自己以及他人生命的嚴(yán)重不負責(zé)。為了遏制這種行為,對駕駛員進行酒精濃度測試不失為一種有效的方法。酒精濃度測試儀不僅要能準(zhǔn)確測出酒精的濃度,而且要讓測試人員讀出該濃度。當(dāng)然也要有報警裝置,提醒人們濃度超標(biāo)。 本設(shè)計目的在于實現(xiàn)對不同的酒精濃度的檢測和顯示,通過適當(dāng)改進可以用于對 駕駛員進行是否酒后駕車的檢測。本文 主要 采用STC89C52 單片機與 MQ3 型氣體傳感器,而且能夠?qū)︼@示 出所測量的數(shù)據(jù),加之二極管的使用就可以簡單地顯示出所測的酒精濃度。當(dāng)其濃度超過允許值時,檢測 儀將發(fā)出蜂鳴聲。 關(guān)鍵詞 : 酒精濃度檢測; STC89C52 單片機; MQ3 氣體傳感器; A/D 轉(zhuǎn)換, 蘇州科技學(xué)院本科生畢業(yè)設(shè)計(論文) II Alcohol tester based on MCU Abstract The rapid development of China39。s economy makes the share of private cars increase. What’s more, the improvement of people39。s living standards and a substantial increase in the vehicle makes the road safety problem get worse. Some accidents are beyond resurrection, while others are pletely can be avoided . Such as drunk driving. such behavior is serious not responsible to their and the others’ lives . In order to curb this behavior, the driver alcohol test is an effective method. Alcohol tester is not only able to accurately measure the concentration of alcohol, but also can let testers reads the concentration. Of course, we have an alarm system to alert people to the concentration exceeded. The design aims to achieve different alcohol concentration detection and display. And it can be used for the driver is drunk driving tests through appropriate improvements. This paper uses STC89C52 MCU and MQ3 Gas Sensor as the main devices. With the use of the diode, the alcohol tester can display the measured data and simply show the alcohol concentration measured. When the concentration exceeds the allowable value, the detector will beep. Keywords STC89C52 microcontroller。 MQ3 gas sensor。 A/D conversion 蘇州科技學(xué)院本科生畢業(yè)設(shè)計(論文) III 目 錄 第 1 章 緒論 ............................................................................................................................ 1 酒精測試儀現(xiàn)狀和發(fā)展趨勢 ......................................................................................... 1 酒精濃度檢測儀設(shè)計的意義 ......................................................................................... 1 研究內(nèi)容 .................................................................................................................... 2 系統(tǒng)總體思路 .............................................................................................................. 2 第 2 章 系統(tǒng)總體方案設(shè)計 ..................................................................................................... 3 總體設(shè)計 ..................................................................................................................... 3 控制模塊方案論證 ....................................................................................................... 3 顯示模塊方案論證 ....................................................................................................... 4 第 3 章 硬件電路設(shè)計 ............................................................................................................ 5 單片機電路設(shè)計 .......................................................................................................... 5 單片機介紹 ....................................................................................................... 5 STC89C52 的功能特性 ....................................................................................... 6 STC89C52 的原理說明 ....................................................................................... 6 MQ3 氣體傳感器 .......................................................................................................... 7 MQ3 主要技術(shù)指標(biāo) ........................................................................................... 8 MQ3 結(jié)構(gòu)、外形、測試電路 ............................................................................. 8 MQ3 傳感器調(diào)理電路 .......................................................................................10 電源電路 .................................................................................................................... 11 ADC0809 .................................................................................................................... 11 LCD 液晶顯示模塊 .....................................................................................................12 LCD1602 顯示模塊技術(shù)參數(shù) ..............................................................................12 LCD602 顯示模塊功能 ......................................................................................13 發(fā)光二極管顯示報警電路 ...........................................................................................15 閾值存儲電路 .............................................................................................................15 系統(tǒng)硬件設(shè)計原理圖分析 ...........................................................................................16 第 4 章 軟件系統(tǒng)的設(shè)計與實現(xiàn) .................................................................................................18 主程序設(shè)計 ................................................................................................................18 分部分軟件設(shè)計 .........................................................................................................19 ADC 程序流程圖 ...............................................................................................19 LCD 程序流程圖 ...............................................................................................20 蘇州科技學(xué)院本科生畢業(yè)設(shè)計(論文) IV 第 5 章 系統(tǒng)的調(diào)試及實驗結(jié)果 ...............................................................................................21 調(diào)試步驟 ...................................................................................................................21 按鍵修改酒精閾值程序 .....................................................................................21 模數(shù)轉(zhuǎn)換測試 ....................................................