内容发布更新时间 : 2024/11/14 11:52:19星期一 下面是文章的全部内容请认真阅读。
毕业设计说明书
基于51单片机的视力保护仪设计
办学单位 : 应天职业技术学院 班 级 : 电子121班 学 生 : 彭小滠 指导教师 : 葛东旭 提交日期 : 2015 年 3 月 20 日
摘 要
摘要:本论文阐述了一种基于单片机的智能视力保护器的设计。该设计以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 protection
1
目录
第一章 绪论 .................................................................................................................................................................. 3 1.1选题背景.............................................................................................................................................................. 3 1.2选题的意义.......................................................................................................................................................... 3 1.3设计的任务.......................................................................................................................................................... 3 第2章 系统总体方案系统设计 .................................................................................................................................. 4 2.2系统主要模块的选择与论证 .............................................................................................................................. 4 2.2.1探头检测模块的选择与论证 ....................................................................................................................... 4 2.2.2单片机控制模块的选择与论证 ................................................................................................................... 4 2.2.3显示模块的选择与论证 ............................................................................................................................... 4 2.3总体系统设计框图 ............................................................................................................................................. 5 第3章 系统硬件系统设计 .......................................................................................................................................... 6 3.1概述 ..................................................................................................................................................................... 6 3.2控制模块.............................................................................................................................................................. 6 3.2.1 STC89C52单片机简介 ................................................................................................................................ 6 3.2.2单片机主控电路设计................................................................................................................................... 9 3.4.1 1602 液晶简介 ....................................................................................................................................... 13 3.4.2 指令说明 ................................................................................................................................................... 14 3.4.3 显示电路原理图 ....................................................................................................................................... 15 3.5 报警模块 ........................................................................................................................................................... 15 第4章系统软件系统设计 .......................................................................................................................................... 16 第5章 系统分析与调试 ............................................................................................................................................ 18 参考文献 ...................................................................................................................................................................... 20 结论 .............................................................................................................................................................................. 21 附 录 ............................................................................................................................................................................ 22
2