【正文】
5 顯示方案的選擇 ......................................................................................................... 5 報警電路方案的確定 ................................................................................................. 5 總體方案框圖 ............................................................................................................. 5 第三張 硬件的設(shè)計 .................................................................................................................. 7 8031 單片機(jī)簡介 ......................................................................................................... 7 8031 單片機(jī)的組成及結(jié)構(gòu) .............................................................................. 7 8031 單片機(jī)的引腳定義及功能 ...................................................................... 7 存儲器的擴(kuò)展 ............................................................................................................ 10 存儲器的尋址 ................................................................................................ 10 程序存儲器的擴(kuò)展 ........................................................................................ 10 數(shù)據(jù)存儲器的擴(kuò)展 ........................................................................................ 12 并行 I/O 口的擴(kuò)展 .................................................................................................... 14 顯示器接口的設(shè)計 ................................................................................................... 17 LED 顯示器簡介 ......................................................................................... 17 動態(tài)顯示接口 ................................................................................................ 17 鍵盤接口 ................................................................................................................. 19 鍵盤工作原理 .............................................................................................. 19 矩陣式鍵盤 .................................................................................................... 20 液滴點(diǎn)滴速度檢測電路的設(shè)計 ............................................................................. 22 液面檢測電路的設(shè)計 ............................................................................................. 23 報警電路的設(shè)計 ..................................................................................................... 24 發(fā)光二極管的選擇 ...................................................................................... 24 蜂鳴器的選擇 ................................................................................................ 24 報警電路 ........................................................................................................ 25 步進(jìn)電機(jī)的選擇 ....................................................................................................... 26 步進(jìn)電機(jī)驅(qū)動電路的設(shè)計 ..................................................................................... 28 系統(tǒng)的掉電保護(hù) ..................................................................................................... 31 系統(tǒng)的精度論證 ..................................................................................................... 32 第四章 軟件的設(shè)計 .............................................................................................................. 33 主程序的設(shè)計 ........................................................................................................... 33 測速程序的設(shè)計 ..................................................................................................... 34 顯示子程序的設(shè)計 ................................................................................................... 36 調(diào)速程序的設(shè)計 ....................................................................................................... 39 鍵 盤中斷程序的設(shè)計 ............................................................................................... 43 延時子程序的設(shè)計 ................................................................................................... 46 報警程序的設(shè)計 ....................................................................................................... 46 第五章 結(jié)論 ............................................................................................................................ 47 參 考 文 獻(xiàn) ............................................................................................................................ 48 致 謝 .................................................................................................................................. 49 基于單片機(jī)的某液體點(diǎn)滴數(shù)的在線測試系統(tǒng)的設(shè)計 摘 要 本次設(shè)計的系統(tǒng),是以 8031 單片機(jī)為核心 以鍵盤及紅外傳感器為輸入系統(tǒng),以數(shù)碼管、報警電路及步進(jìn)電機(jī)為輸出系統(tǒng) 的智能化 的液體點(diǎn)滴速度的 控制及監(jiān)測系統(tǒng) 。它可以實(shí)現(xiàn)對液體點(diǎn)滴速度的實(shí)時顯示,并對儲液瓶中剩余液體進(jìn)行監(jiān)視。 關(guān)鍵詞 : 單片機(jī) 、液滴數(shù)檢測、紅外傳感器、步進(jìn)電機(jī) The Design Based On MCU Of A Liquid Drop Speed Test Online System Abstract This system uses a MCU as a core , a keyboard and infrared detecter as the input system ,a LED display circuit, a warning circuit and a stepper motor as the output system to realize the auto controlling of the liquid drop speed . It can display the realtime drop speed of the liquid , and scout the remaining liquid in bottle . The system has a high precision and high sensitivity to test and control the speed . This paper introduced the hardware , software and the principle of the system . This system is posed by six parts —— a liquid drop speed test module , a liquid drop speed control module , a the liquid level test module , a keyboard module , a display module and a sound and light alarm module . Use the theory that the pressure is changed by the change of the level of liquid to use the stepper motor to control the liquids bottle rise or fall to realize the controling of the liquid drop speed . The drop speed of liquid can be ascertained by the keyboard at the range of 20 drops per minute to 150 drops per minute , and this system makes the real drop speed at the range of 1