基于单片机的点滴输液报警系统设计(含电路原理图,程序代码)(论文11000字,电路原理图,程序代码)
摘 要
打点滴是病人最为常见的医疗手段,其可以快速有效的治疗相应疾病,保障人体的健康,而由于打点滴的过程通常需要持续数小时,速度非常缓慢,因此经常会出现血液倒流等情况,同时也会出现一些病人私自调高点滴速度,加快点滴流速等情况,这些都会带来意想不到的后果,因此本文针对这些情况,设计了一点滴输液报警系统。
本系统采用STC89C52单片机为核心控制器,通过槽型光耦对点滴的速度进行检测,如果点滴的速度太快或者太慢则会通过蜂鸣器进行报警提醒,并且求上限和下限的阈值用户可以通过按键进行设定,并且可以通过LCD液晶进行显示,另外还加入了蓝牙通信功能,其不仅能将当前点滴速度通过蓝牙传输到手机APP,还可以通过手机对阈值进行设定。本设计完成了点滴输液报警系统的原理图、软件程序的设计,并完成了实物模型的制作,同时对点滴速度,蓝牙通信等核心功能进行测试,最终达到了预期目标,实现了点滴速度检测,异常报警等功能。
关键词:点滴输液,报警,单片机,蓝牙
Drip infusion alarm system based on single chip microcomputer
Abstract
Drip is the most common medical means for patients, which can quickly and effectively treat corresponding diseases and protect human health. Because the process of drip usually lasts for several hours and the speed is very slow, there are often situations such as blood backflow. At the same time, some patients privately increase the drip speed and speed up the drip flow rate, which will bring unexpected consequences. Therefore, this paper aims at these situations, A drip infusion alarm system is designed.
The system uses STC89C52 single chip microcomputer as the core controller to detect the speed of the drop through the slot optocoupler. If the speed of the drop is too fast or too slow, it will give an alarm through the buzzer, and calculate the threshold of the upper and lower limits. The user can set it by pressing the key and display it through LCD. In addition, Bluetooth communication function is added, It can not only transmit the current drip speed to the mobile app through Bluetooth, but also set the threshold through the mobile phone. This design completes the schematic diagram and software program of the drip infusion alarm system, and completes the production of the physical model. At the same time, it tests the drip speed, Bluetooth communication and other core functions, and finally achieves the expected goal, realizing the functions of drip speed detection, abnormal alarm and so on.
Key words: intravenous infusion, alarm, single chip microcomputer, Bluetooth
总体方案介绍
本课题为基于单片机的点滴输液报警系统,其整个架构如图2.1所示,采用STC89C52单片机为核心控制器,通过槽型光耦对点滴的速度进行检测,如果点滴的速度太快或者太慢则会通过蜂鸣器进行报警提醒,并且求上限和下限的阈值用户可以通过按键进行设定,并且可以通过LCD液晶进行显示,另外还加入了蓝牙通信功能,其不仅能将当前点滴速度通过蓝牙传输到手机APP,还可以通过手机对阈值进行设定。
目录
摘 要 II
ABSTRACT III
第1章 绪 论 7
1.1 课题背景及意义 7
1.2国内外研究现状 7
1.3本文主要内容 8
第2章 总体方案设计 9
2.1总体方案介绍 9
2.2主控器的选择 9
2.3液晶显示模块的选择 10
2.4 无线通信模块的选择 11
第3章 系统硬件设计 13
3.1 STC89C52最小系统电路设计 13
3.2 按键电路设计 14
3.3 报警电路设计 15
3.4 LCD 1602显示电路 16
3.5 步进电机控制电路设计 17
3.6蓝牙通信模块 18
第4章软件设计 20
4.1软件开发环境介绍 20
4.2 C语言 20
4.3主程序设计 20
4.4 液晶显示程序 21
4.5点滴速度检测程序设计 22
4.6蓝牙通信程序设计 23
第5章 系统测试 25
5.1硬件调试 25
5.2软件调试 25
结 论 28
参考文献 29
致谢 31
|