基于单片机的无人监守点滴自动监控系统的设计
摘要:在输液的时候有很多的时候没有护理的照顾的时候,病人在输液的时候很容易造成输液拥堵,这时病人没有觉察到就会产生很多的对于病人的伤害,怎么才能在输液拥堵的及时的被发现并且,能够更好的解决输液拥堵时会发出警报,这样的话会让病人及时的觉察这样的话就可以更好的减少对病人的危害。因此,本文设计了无人监守点滴自动监控系统以解决此问题。系统以AT89S53单片机为下位机核心,上位机和CAN总线组成有线监控系统,实现主机对从机的控制。从机通过外围电路检测储液瓶中液面高度和液体点滴速度,并通过控制步进电机实现对输液速度的控制。当输液结束或输液速度发生异常时,发光二极管和蜂鸣器进行报警,并将报警信号通过串行口传送至主站。
关键词:单片机;无人坚守;自动监控;AT89S53
Abstract: in a time when there is a lot of infusion did not care to take care of the patient at the time of infusion infusion is likely to cause congestion, when patients are not aware of the patient would have hurt a lot, how can the infusion congestion timely be found and can solve the problem of congestion will be issued when the infusion is better the alarm, which makes the patient aware timely so that it can reduce the harm to patients better. Therefore, this paper designed the automatic monitoring system for unmanned working bit to solve this problem. The system takes AT89S53 microcontroller as the core of the lower computer, and the upper computer and the CAN bus form the wired monitoring system, which realizes the control of the slave computer. The liquid level and the liquid dropping speed of the liquid storage bottle are detected by the peripheral circuit, and the control of the infusion speed is realized by controlling the step motor. When the infusion is finished or the infusion speed is abnormal, the light emitting diode and the buzzer alarm, and the alarm signal is transmitted to the main station through the serial port.
Key words: single chip microcomputer; unmanned; automatic monitoring; AT89S53
目录
1绪论……………………………………………………………………………………………………… 1
1.1研究背景…………………………………………………………………………………….. 1
1.2研究意义…………………………………………………………………………………….. 1
2系统总体方案……………………………………………………………………………………….. 1
2.1 系统设计方案…………………………………………………………………………….. 2
2.1.1 控制系统方案…………………………………………………………………… 2
2.1.2 点滴检测方案…………………………………………………………………… 2
2.1.3 液位监测方案…………………………………………………………………… 2
2.1.4 滴速控制方案…………………………………………………………………… 3
2.1.5 电机选择方案…………………………………………………………………… 3
2.1.6 主从通信方案…………………………………………………………………… 3
2.2 系统硬件结构…………………………………………………………………………….. 4
3系统从站硬件设计………………………………………………………………………………… 5
3.1 从站硬件系统框图……………………………………………………………………… 5
3.2 从站系统各单元设计………………………………………………………………….. 5
3.2.1 点滴信号检测单元……………………………………………………………. 6
3.2.2 点滴信号整形单元……………………………………………………………. 7
3.2.3 液位检测单元…………………………………………………………………… 8
3.2.4 键盘控制电路…………………………………………………………………… 9
3.2.5 声光报警单元…………………………………………………………………. 10
3.2.6 电源电路单元…………………………………………………………………. 11
3.3 通信电路单元…………………………………………………………………………… 11
3.3.1 CAN总线适配芯片连接电路…………………………………………… 12
3.3.2 通信接口电路…………………………………………………………………. 13
4 系统软件设计…………………………………………………………………………………….. 13
4.1 从站软件系统总体设计…………………………………………………………….. 14
4.2 从站各模块软件设计………………………………………………………………… 14
4.2.1 主控模块………………………………………………………………………… 14
4.2.2 键盘控制模块…………………………………………………………………. 15
4.2.3 点滴速度监测模块………………………………………………………….. 18
4.2.4 电机控制模块…………………………………………………………………. 21
4.2.5 报警模块………………………………………………………………………… 21
4.2.6 主从通信模块…………………………………………………………………. 23
5 结束语……………………………………………………………………………………………….. 24
致谢………………………………………………………………………………………………………. 26
参考文献……………………………………………………………………………………………….. 27