- 43
- 0
- 约2.26万字
- 约 10页
- 2018-04-28 发布于湖北
- 举报
基于单片机的的智能药盒的设计推荐
13 -
摘要
随着社会的发展和人们生活水平的提高,人们对生活的健康质量也追求越来越高,为了方便老年人吃药,结合当前智能药盒蓬勃的发展状况,本文介绍了一种基于单片机的家庭用智能药盒的设计。首先,本文介绍了此系统所涉及的硬件的结构和工作原理,主要包括STC90C51单片机、LCD1602液晶和单片机的定时/计数器。其次,介绍了系统硬件的模块化设计和软件的编程思想。最后是对系统进行调试之后得出最后的结果。在第一部分着重介绍了单片机的各项参数、内部结构、引脚功能,LCD1602的硬件电路、显示原理和各项命令,定时/计数器和蜂鸣器原理的简单介绍。在第二部分则系统地介绍了各模块之间的运作模式和工作流程。最后调试完善后得到的系统运行基本模式为:系统基于单片机控制,通过对单片机STC90C516定时器中断的设计,使其完成对时钟运行的控制,并通过LCD1602液晶显示出来。当系统检测到有时间设置功能键或用药设置功能键有输入时,进入关中断调时及设置状态,之后开中断并按下定时键记录当前设置的时间及用药量的值。在调节好系统时间之后,系统时间向前运行的过程中不断将系统实时时间与记录时间作比较,两者相等时发出警报并显示所设置的用药量,一分钟后系统实时时间与记录时间不在相等则自动退出提醒,如此实现每天四次用药及每次四种用药服用量的提醒,比较适合普通家庭使用。
关键词:智能药盒; STC90C516; 时钟; 1602显示
Abstract
With the development of society and peoples 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,as 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
您可能关注的文档
- 基于单片机的产品设计制作选修课开课简介推荐.doc
- 基于单片机的PID温度控制系统推荐.doc
- 基于单片机的PID控制算法推荐.doc
- 基于单片机的三相异步电动机节能控制方法的研究推荐.doc
- 基于单片机的GPS公交车报站系统论文推荐.doc
- 基于单片机的交通信号灯的控制系统设计推荐.doc
- 基于单片机的作息时间控制钟系统毕业设计 改过!!!!!推荐.doc
- 基于单片机的作息时间控制钟系统毕业论文推荐.doc
- 基于单片机的受控正弦信号发生器设计论文范本推荐.doc
- 基于单片机控制的DC-DC变换器的设计推荐.doc
- 浙江省衢州市2025-2026学年高一上学期2月期末考试政治试题(含答案).docx
- 浙江丽水市2025-2026学年第一学期普通高中教学质量监控高一英语试题卷(含答案).docx
- 浙江省衢州市2025-2026学年高一上学期2月期末考试政治试题(含答案).pdf
- 河南省实验中学2025-2026高一上学期期末历史试题含答案.docx
- 浙江衢州市2025-2026学年高一上学期2月期末英语试题(含答案,含听力原文无音频).docx
- 浙江衢州市2025-2026学年高一上学期期末考试历史试题(含答案).docx
- 山西晋城市2025-2026学年高二上学期期末自测历史试题(含答案).docx
- 对外汉语第一节课拼音教学.ppt
- 2026年春季学期班主任疫情防控迎检材料:晨午检制度+消毒记录+应急处置流程规范.docx
- AI辅助撰写年度述职报告与未来规划.docx
原创力文档

文档评论(0)