基于单片机的的智能药盒的设计

                          摘要
随着社会的发展和人们生活水平的提高,人们对生活的健康质量也追求越来越高,为了方便老年人吃药,结合当前智能药盒蓬勃的发展状况,本文介绍了一种基于单片机的家庭用智能药盒的设计。首先,本文介绍了此系统所涉及的硬件的结构和工作原理,主要包括STC90C51单片机、LCD1602液晶和单片机的定时/计数器。其次,介绍了系统硬件的模块化设计和软件的编程思想。最后是对系统进行调试之后得出最后的结果。在第一部分着重介绍了单片机的各项参数、内部结构、引脚功能,LCD1602的硬件电路、显示原理和各项命令,定时/计数器和蜂鸣器原理的简单介绍。在第二部分则系统地介绍了各模块之间的运作模式和工作流程。最后调试完善后得到的系统运行基本模式为:系统基于单片机控制,通过对单片机STC90C516定时器中断的设计,使其完成对时钟运行的控制,并通过LCD1602液晶显示出来。当系统检测到有时间设置功能键或用药设置功能键有输入时,进入关中断调时及设置状态,之后开中断并按下定时键记录当前设置的时间及用药量的值。在调节好系统时间之后,系统时间向前运行的过程中不断将系统实时时间与记录时间作比较,两者相等时发出警报并显示所设置的用药量,一分钟后系统实时时间与记录时间不在相等则自动退出提醒,如此实现每天四次用药及每次四种用药服用量的提醒,比较适合普通家庭使用。
仿真软驱>珠光膜
水溶性酚醛树脂关键词管道内衬:智能药盒; STC90C516; 时钟; 1602显示午睡宝

晶振封装                          Abstract
    With the development of society and people's living standards improve,more and more people pursue a higher level of health.In order to facilitate the old to take medicine,in combination with the vigorous development situation of smart pillbox,this paper introduces a design of domestic smart pillbox based on STC90C516 SCM(Single chip microcomputer).First,this paper introduces the system structure and working principle of hardware involved,mainly includes SCM,LCD1602 and the counter timer of the SCM.Secondly,the paper introduces the system hardware modular design and soft programming ideas.Finally,get the final result after debugging.The first part introduces the various parameters of SCM,the internal structure and pin functions,a
s well as hardware circuit and various commands of LCD1602,the principle of LCD1602,counter timer and buzzer.The second part introduces the operation model and work process between each module systematically.After the completion of debugging,the system basic operation mode is:the system is based on STC90C516,through the design of STC90516 timer interrupt,the system control the clock running forward,and display the time on the LCD1602.When the system detects that the time setting keys or the dosage keys have input,close the interrupt and setting the value of time or dosage,then open the interrupt and press the time-setting keys down to record the time and dosage,As the system time running forward,comparing record time with the current time,when two values are equal activate the alarm and display the dosage value,a minute latter,the two values are not equal,the system close the alarm,this is the way of reminding a person to take four kinds of medicine four times a day it`s suitable for ordinary families.

本文发布于:2024-09-23 16:19:42,感谢您对本站的认可!

本文链接:https://www.17tex.com/tex/2/173229.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:系统   时间   设置   介绍   单片机   硬件   用药   原理
留言与评论(共有 0 条评论)
   
验证码:
Copyright ©2019-2024 Comsenz Inc.Powered by © 易纺专利技术学习网 豫ICP备2022007602号 豫公网安备41160202000603 站长QQ:729038198 关于我们 投诉建议