您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 管理学资料 > 基于单片机的视力保护器设计
济南大学泉城学院毕业设计题目基于单片机的视力保护器设计学院工学院专业电气工程及其自动化班级1302班学生张越学号2013010709指导教师张兴达魏志轩二〇一七年五月十六日济南大学泉城学院毕业设计-I-摘要最近几年来,青少年近视出现低龄化趋向。青少年视力下降主要受以下几个因素的影响:眼睛距书本过近、长时间用眼、过度使用视屏终端、学习时光线太强或太弱等。其中光线强弱不适和长时间用眼又是造成青少年视力损伤的重中之重。本文以STC89C52单片机为中心,围绕其进行硬件电路设计和软件程序设计。硬件电路有:报警提示电路、超声波测距电路、光线检测电路、定时电路和显示电路。软件程序的编写以C语言为主以及利用单片机内部自带的定时器实现具体的功能。本文给出了系统主要的硬件电路、软件程序流程图、程序设计及部分子程序的流程图、程序设计,并制作了仿真实物,能够达到预期效果。本文提出了尚需解决的问题,并给出了解决方法,介绍了视力保护器的应用和市场前景,为进一步开发应用提供了技术支持。关键词:单片机;传感器;视力保护济南大学泉城学院毕业设计-II-ABSTRACTInrecentyears,juvenilemyopiayoungeragetrend.Juvenilevisualdeclinemainlybythefollowingfactors:theeyesfromthebooktooclose,longtimewiththeeye,excessiveuseofthescreenterminal,withtheeyeswhenthelightistoostrongortooweak.Whichlightintensityanddiscomfortandlongtimewiththeeyeiscausedbytheimportanceofadolescentswithvisualimpairment.Inthispaper,STC89C52microcontrollerasthecenter,arounditshardwarecircuitdesignandsoftwareprogramdesign.Hardwarecircuitsare:soundandlightalarmcircuit,ultrasonicdistancemeasurementcircuit,lightinductioncircuit,timingcircuitanddisplaycircuit.ThepreparationofsoftwareprogramstoCProgrammingLanguageandtheuseofsingle-chipinternalbuilt-intimertoachievespecificfunctions.Thispapergivesthemainhardwarecircuit,softwareprogramflowchart,programdesignandsomesubroutineflowchart,programdesign,andproducedasimulationofthekind,toachievethedesiredresults.Inthispaper,theproblemsthatneedtobesolvedareputforward,andthesolutionsaregiven.Theapplicationandmarketprospectofvisionprotectionareintroduced,whichprovidestechnicalsupportforfurtherdevelopmentandapplication.Keywords:microcontrollertechnology;sensor;protectionofeyesights济南大学泉城学院毕业设计-III-目录摘要................................................................................................................................IABSTRACT.........................................................................................................................II1前言...................................................................................................................................11.1选题背景与意义.....................................................................................................11.2国内外研究现状.....................................................................................................11.2.1国内研究现状...............................................................................................11.2.2国外研究现状...............................................................................................21.3设计要求.................................................................................................................22系统方案选择...................................................................................................................32.1系统总体设计.........................................................................................................32.2系统硬件方案设计.................................................................................................32.3系统软件方案设计.................................................................................................53系统硬件设计...................................................................................................................73.1主控制模块.............................................................................................................73.1.1晶振电路.......................................................................................................73.1.2复位电路.......................................................................................................83.2超声波检测电路.....................................................................................................93.2.1超声波发射电路...........................................................................................93.2.2超声波接收电路.........................................................................................103.3光线检测电路.......................................................................................................103.4显示电路...............................................................................................................113.5声光报警提示电路...............................................................................................123.6按键电路...............................................................................................................133.7定时电路...............................................................................................................134系统软件设计.................................................................................................................154.1KeilμVision4软件平台.........................................................................................154.2主程序设计...........................................................................................................154.3子程序设计...........................................................................................................164.3.1光照检测子程序.........................................................................................164.3.2超声波测距子程序............
本文标题:基于单片机的视力保护器设计
链接地址:https://www.777doc.com/doc-3124105 .html