
基于51单片机的视力保护仪设计-毕业设计说明书.doc
31页毕业设计说明书基于 51 单片机的视力保护仪设计办学单位 : 应天职业技术学院 班 级 : 电子 121 班 学 生 : 彭小滠 指导教师 : 葛东旭 提交日期 : 2015 年 3 月 20 日1摘 要摘要:本论文阐述了一种基于单片机的智能视力保护器的设计该设计以 89C52 为核心,可实现距离监测、设置报警距离等功能,通过 LCD 显示各种参数信息,并能修改各个参数初值来适应不同使用者的需求测距是利用超声波传感器来实现软件利用 C语言进行编程,并采用模块化的设计思路该系统具有简单实用的特征,对青少年视力保护具有很好的效果关键词:STC89C52 ; 超声波:视力保护Abstract:This paper expounds a design of intelligent vision protector based on single chip microcomputer. The system with 89C52 as the core uses LCD to display various parameter information, and changes the parameter initial value online to adapt to the needs of different users. Distance measurement is realized by ultrasonic sensors, light intensity detection is achieved by photosensitive element, timer function is realized by 89C52’s timer. Software design uses C language to programe, with modular thought. The system has the characteristics of simple and practical, has the very good effect to teenagers vision protection. Keywords: STC89C52; Ultrasonic; Vision protection2目录第一章 绪论 ....................................................................................................................................................................31.1 选题背景 ...............................................................................................................................................................31.2 选题的意义 ...........................................................................................................................................................31.3 设计的任务 ...........................................................................................................................................................3第 2 章 系 统总体方案系统设计 ....................................................................................................................................42.2 系统主要模块的选择与论证 ...............................................................................................................................42.2.1 探头检测模块的选择与论证 ........................................................................................................................42.2.2 单片机控制模块的选择与论证 ....................................................................................................................42.2.3 显示模块的选择与论证 ................................................................................................................................42.3 总体系统设计框图 ..............................................................................................................................................5第 3 章 系统硬件系统设计 ............................................................................................................................................63.1 概述 .......................................................................................................................................................................63.2 控制模块 ...............................................................................................................................................................63.2.1 STC89C52 单片机简介 ..................................................................................................................................63.2.2 单片机主控电路设计 ....................................................................................................................................93.4.1 1602 液晶简介 .........................................................................................................................................133.4.2 指令说明 .....................................................................................................................................................143.4.3 显示电路原理图 .........................................................................................................................................153.5 报警模块 .............................................................................................................................................................15第 4 章系统软件系统设计 ............................................................................................................................................16第 5 章 系统分析与调试 ..............................................................................................................................................18参考文献 ........................................................................................................................................................................20结论 ................................................................................................................................................................................21附 录 ..............................................................................................................................................................................223第一章 绪论1.1 选题背景当前由于电视、网络的高速发展、学习压力的加重等诸多因素,使得青少年长时间不卫生、超负荷用眼,造成了青少年近视率大大提高。
据国家统计局最近的一项调查显示,目前我国学生视力低下的状况令人担。
