电脑桌面
添加小米粒文库到电脑桌面
安装后可以在桌面快捷访问

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

基于单片机的的智能药盒的设计_第1页
基于单片机的的智能药盒的设计_第2页
基于单片机的的智能药盒的设计_第3页
摘要随着社会的发展和人们生活水平的提高,人们对生活的健康质量也追求越来越高,为了方便老年人吃药,结合当前智能药盒蓬勃的发展状况,本文介绍了一种基于单片机的家庭用智能药盒的设计。首先,本文介绍了此系统所涉及的硬件的结构和工作原理,主要包括STC90C51单片机、LCD1602液晶和单片机的定时/计数器。其次,介绍了系统硬件的模块化设计和软件的编程思想。最后是对系统进行调试之后得出最后的结果。在第一部分着重介绍了单片机的各项参数、内部结构、引脚功能,LCD1602的硬件电路、显示原理和各项命令,定时/计数器和蜂鸣器原理的简单介绍。在第二部分则系统地介绍了各模块之间的运作模式和工作流程。最后调试完善后得到的系统运行基本模式为:系统基于单片机控制,通过对单片机STC90C516定时器中断的设计,使其完成对时钟运行的控制,并通过LCD1602液晶显示出来。当系统检测到有时间设置功能键或用药设置功能键有输入时,进入关中断调时及设置状态,之后开中断并按下定时键记录当前设置的时间及用药量的值。在调节好系统时间之后,系统时间向前运行的过程中不断将系统实时时间与记录时间作比较,两者相等时发出警报并显示所设置的用药量,一分钟后系统实时时间与记录时间不在相等则自动退出提醒,如此实现每天四次用药及每次四种用药服用量的提醒,比较适合普通家庭使用。关键词:智能药盒;STC90C516;时钟;1602显示AbstractWiththedevelopmentofsocietyandpeople'slivingstandardsimprove,moreandmorepeoplepursueahigherlevelofhealth.Inordertofacilitatetheoldtotakemedicine,incombinationwiththevigorousdevelopmentsituationofsmartpillbox,thispaperintroducesadesignofdomesticsmartpillboxbasedonSTC90C516SCM(Singlechipmicrocomputer).First,thispaperintroducesthesystemstructureandworkingprincipleofhardwareinvolved,mainlyincludesSCM,LCD1602andthecountertimeroftheSCM.Secondly,thepaperintroducesthesystemhardwaremodulardesignandsoftprogrammingideas.Finally,getthefinalresultafterdebugging.ThefirstpartintroducesthevariousparametersofSCM,theinternalstructureandpinfunctions,aswellashardwarecircuitandvariouscommandsofLCD1602,theprincipleofLCD1602,countertimerandbuzzer.Thesecondpartintroducestheoperationmodelandworkprocessbetweeneachmodulesystematically.Afterthecompletionofdebugging,thesystembasicoperationmodeis:thesystemisbasedonSTC90C516,throughthedesignofSTC90516timerinterrupt,thesystemcontroltheclockrunningforward,anddisplaythetimeontheLCD1602.Whenthesystemdetectsthatthetimesettingkeysorthedosagekeyshaveinput,closetheinterruptandsettingthevalueoftimeordosage,thenopentheinterruptandpressthetime-settingkeysdowntorecordthetimeanddosage,Asthesystemtimerunningforward,comparingrecordtimewiththecurrenttime,whentwovaluesareequalactivatethealarmanddisplaythedosagevalue,aminutelatter,thetwovaluesarenotequal,thesystemclosethealarm,thisisthewayofremindingapersontotakefourkindsofmedicinefourtimesadayit`ssuitableforordinaryfamilies.Keywords:smartpillboxSTC90C516clockLCD1602目录摘要......................................................................IAbstract.................................................................II1绪论....................................................................11.1选题目的和意义.....................................................11.2目前智能药盒的现状.................................................11.3本文的结构.........................................................22系统总体方案设计........................................................32.1设计要求...........................................................32.2总体设计思路.........................................

1、当您付费下载文档后,您只拥有了使用权限,并不意味着购买了版权,文档只能用于自身使用,不得用于其他商业用途(如 [转卖]进行直接盈利或[编辑后售卖]进行间接盈利)。
2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。
3、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。

碎片内容

确认删除?
VIP
微信客服
  • 扫码咨询
会员Q群
  • 会员专属群点击这里加入QQ群
客服邮箱
回到顶部