多功能视力保护器的设计
多功能视力保护器的设计(论文15000字)
摘要:最近几年来,青少年的近视率在不断提升,严重影响了中小学生的学习和生活。本文针对这种情况设计了一个基于STM32F103C8T6多功能视力保护器系统。该系统包含超声波测距模块、光照采集模块、显示模块、按键模块、声光报警模块和短信传输模块。本系统通过超声波传感器测量眼睛到书本的距离,测量结果与系统中设定的距离数值相比较,当测量的距离小于设定的距离时就会报警;通过光敏电阻检测学习场所的光照强度,光照强度与系统中设定的光照值相比较,当测量值大于或小于设定的光照值就会报警;通过单片机定时器记录学习时间,达到设定的时间后就会报警。在声光报警的同时,系统将信息显示在显示屏上,并通过短信模块发送报警短信到相应手机上。论文重点介绍了该系统的硬、软件设计原理和方案,对各硬件模块进行了详细地描述。调试结果表明,该系统能有效地监测学习环境并根据情况准确报警,使用起来方便快捷,具有良好的实用性。
关键词:视力保护;超声波测距;光敏电阻;SIM900A
Design of the Multifunctional Eyesight Protector
Abstract: The rate of myopia among young people has been increasing in recent years, which has seriously affected the learning and life of primary and secondary school students. A multifunctional eyesight protector system based on STM32F103C8T6 is designed in order to solve this problem in this paper. The system includes an ultrasonic ranging module, a lighting acquisition module, a display module, a key module, an acousto-optic alarm module and a short message transmission module.The distance between the eyes and the book is measured by ultrasonic supersonic device in this system. The system can alarm when the measurement result is less than the standard value which is set. The light intensity of the learning place is detected by the photosensitive resistance, and the intensity of light is compared with the illumination value which is set in the system. The system can alarm when the measured value is greater than or less than the standard value which is set. The learning time is recorded through a single chip timer, and the alarm is reached after a predetermined time. At the same time, the system displays the information on the screen and sends the alarm message to the corresponding mobile phone via the SMS module. The hardware and software design principles and schemes of the system are introduced emphatically in the paper, and all the hardware modules are also described in detail. The results show that the system can detect and alarm the environment effectively. It is convenient and has good practicability. [资料来源:http://doc163.com]
Key words: eyesight protector;ultrasonic distance measurement;photosensitive resistance;SIM900A
[来源:http://Doc163.com]
目录
摘要 I
Abstract II
1绪论 1
1.1选题的意义 1
1.2研究现状及发展趋势 1
1.3论文的主要工作 2
1.3.1论文研究的主要内容 2
1.3.2论文的组织结构 2
2系统方案设计 3
2.1系统框图 3
2.2方案论证与选择 3
2.2.1主控模块的选择 3
2.2.2显示电路的选择 4
2.2.3按键的选择 4
2.2.4电源的选择 4
2.3设计方案 5
3硬件电路设计 5
3.1系统原理图 5
3.2单片机最小系统模块 5
3.2.1 STM32单片机 6
3.2.2电源电路 8
3.2.3时钟电路 8
3.2.4复位电路 9
3.2.5按键电路 9
3.3超声波测距模块 10
3.4光照检测模块 12
3.5显示模块 12
3.6声光报警模块 14
3.7短信传输模块 14
4系统软件设计 16
4.1设计的软件环境简介 16
4.2系统主程序设计 17
4.3子程序设计 18 [资料来源:Doc163.com]
4.3.1 定时程序设计 18
4.3.2 超声波测距模块程序设计 19
4.3.3 光照模块程序设计 21
4.3.4 短信传输模块程序设计 23
5系统调试 24
5.1软件调试 24
5.2硬件调试 25
5.2.1定时功能调试 25
5.2.2距离监测功能调试 25
5.2.3光照强度监测功能调试 26
5.2.4短信传输功能调试 27
6系统总结 28
6.1全文总结 28
6.2不足与展望 28
参考文献 29
致谢 30
附录 31