【正文】
I 畢業(yè)設計 中文題目:基于單片機的輸液監(jiān)控系統(tǒng)設計 外文題目: DESIGN OF INFUSION MONITORING SYSTEM BASED ON SINGLE CHIP II 摘要 輸液是醫(yī)院常用的治療手段,傳統(tǒng)輸液過程中存在著輸液速度不精確、需要人工監(jiān)護等弊端。本文的目的就是設計一種輸液監(jiān)控系統(tǒng)以解決此問題。 本文設計的輸液監(jiān)控系統(tǒng),實現了對輸液速度的檢測與控制,實現了對儲液瓶中液面體積的檢測報警,并且動態(tài)顯示輸液速度。使用者可以通過 PC 設置輸液速度,系統(tǒng)將自動對輸液 速度進行控制。此外系統(tǒng)還實現了多機通信, 即一個主站控制多個從站和主從機之間的數據傳輸。當輸液結束或輸液速度發(fā)生異常時,從站使用發(fā)光二極管和蜂鳴器進行報警,并將報警信號通過串行口傳送至主站,主站通過監(jiān)控軟件和蜂鳴器實現聲光報警。在整體方案設計中,在保證設計系統(tǒng)能達到的使用要求的精度和穩(wěn)定度的前提下,考慮到系統(tǒng)的輕便性、實用性、可靠性,對電路系統(tǒng)進行了優(yōu)化。 本設計基本完成了預想功能,并指明了以后的研究方向和工作重點。 關鍵詞:單片機; PID;步進電機; CAN 總線; PC III Abstract Transfusion monly used as treatment in hospital, but there were some problems, such as inaccurate, need transfusion of artificial guardianship, etc. The goal is to design a transfusion monitoring system in order to solve those problems. The infusion monitoring system design by this paper,actualize the infusion rate of test, the control of reservoir fluid bottle volume detection alarm and dynamic display of transfusion speed. Users can through the PC to control transfusion the system also actualize multimachine munication, that is, a master station to control multiple machines from a station and the master. slave data transmission between. When the infusion end or infusion speed abnormal, slave light—emitting diodes and buzzer to alarm, and will alarm signals through serial transmission to the master, stood by monitoring software realization and buzzer soundlight alarm. In the overall program design,in ensuring the use of design systems to achieve the required accuracy and stability of the premise, taking into account the system’s portability,practicality, reliability, electrical systems were optimized. Finally,the infusion monitoring system design by this paper, and point out future research directions and priorities. Keywords: single chip; PID; Stepper Motor; Can Bus; PC 目錄 前言 ....................................................................................................................... 2 1 概述 ................................................................................................................... 2 本設計研究的現狀 ......................................................................................... 2 本設計 研究的意義 ......................................................................................... 3 本設計主要工作內容 ..................................................................................... 4 2 輸液監(jiān)控系統(tǒng)總體方案 .................................................................................... 5 系統(tǒng)需求分析 ................................................................................................. 5 系統(tǒng)方案論 證與比較 ..................................................................................... 5 控制方案比較 .............................................................................................. 5 點滴檢測方案 .............................................................................................. 6 剩余液體檢測方案 ...................................................................................... 6 速度控制方 案 ............................................................................................... 7 電機選擇及控制方案 ................................................................................... 7 主從機通信方案 ........................................................................................... 8 系統(tǒng)總體框圖 ................................................................................................10 小結 ............................................................................................................... 11 3 系統(tǒng)從站的硬件設計 .......................................................................................12 從站系統(tǒng)框圖與核心部分電路圖 ..................................................................12 從站系統(tǒng)各單元設計 .....................................................................................13 點滴信號 檢測單元 ......................................................................................13 鍵盤及顯示單元 ..........................................................................................16 電源單元 ......................................................................................................18 聲光報警單元 ..............................................................................................19 通信電路硬件 設計及其工作原理 ..................................................................19 小結 ................................................................................................................21 4 輸液監(jiān)控系統(tǒng)下位機軟件設計 .......................................................................22 下位機的軟件系統(tǒng)的總體設計 ......................................................................22 下位機系統(tǒng)各軟件模塊的設計 ......................................................................22 主模塊 ..........................................................................................................23 液滴計數模塊 ..............................................................................................23 查詢液滴有無及液滴過慢時的報警模塊程序設計 ....................................24 通信程序模塊程序設計 ..............................................................................25 5 輸液系統(tǒng)上位機軟件設計 ...............................................................................28 歡迎界面設計 .................................................................................................28 監(jiān)控 /報警界面設計 .......................................................................................29 PC 機通信接口模塊設計 ...............................................................................31 Msm 控件屬性及處理 .............................................................................31 通信協(xié)議 ......................................................................................................33 本機的通信模塊設計 ......................