{$cfg_webname}
主页 > 电子信息 > 电子 >

基于STM32的视力保护器的设计

来源:56doc.com  资料编号:5D26720 资料等级:★★★★★ %E8%B5%84%E6%96%99%E7%BC%96%E5%8F%B7%EF%BC%9A5D26720
资料以网页介绍的为准,下载后不会有水印.资料仅供学习参考之用. 帮助
资料介绍

基于STM32的视力保护器的设计(论文12500字,代码)
摘要:针对青少年朋友近视问题越来越严重的现状,本文设计了一个基于STM32的视力保护系统。本系统采用模块化设计方式,单片机作为控制核心控制各单元的运作。主控单元采用STM32嵌入式处理器,系统由超声波测距模块、光强检测模块、蜂鸣器报警模块、OLED液晶显示模块组成。本系统选用HC-SR04进行测距,根据测量结果,发出报警提示;将光敏电阻一端的电压信号利用STM32处理器转变成数字信号,当光照过强或过暗的时候,发出报警提示;利用STM32处理器的定时器系统控制学习时间,当学习时间过长时,发出报警提示,从到保护使用者的视力,并把信息显示在OLED显示屏上。本系统结合软硬件设计实现了视力保护的功能,系统结构简单紧凑,灵敏度加高。
关键字: STM32;光敏电阻;超声波模块;OLED;视力保护

Eyesight protector based on STM32
Abstract: A vision protection system based on STM32 is designed in this paper according to the present situation of young people more and more serious problem of myopia. This system takes the monolithic computer as the control core and uses the modular design method. The system is composed of ultrasonic ranging module, light intensity detection module, timing module, sound and light alarm module, liquid crystal display module and the main control module which uses STM32 embedded processor. In the system HC-SR04 is adopted to carry on the distance measure and the warning is sent out according to the survey result; The voltage signal of the photosensitive resistance is converted into digital signal by the STM32 processor, and the warning signal is issued when the light is too strong or too dim; STM32 processor uses the timer system to control the learning time, and the warning signal is issued when the learning time is too long. The information is displayed on the OLED display finally. This system combines the hardware and software design to achieve visual protection function, which has simple and compact structure, high sensitivity.
Key words: STM32; photosensitive resistance; Ultrasonic module; OLED; Vision protection
 

基于STM32的视力保护器的设计
基于STM32的视力保护器的设计


目 录
1 引言    1
    1.1 选题背景    1
    1.2视力保护器的现状    1
    1.3本文的主要内容    2
2系统设计    2
3硬件设计    3
    3.1 主控单元    4
        3.1.1 STM32单片机    4
        3.1.2 STM32最小系统    5
        3.1.3 STM32的定时器中断    7
    3.2 超声波测距单元    8
        3.2.1单元工作原理    8
        3.2.2 HC-SR04单元    9
        3.2.3 HC-SR04单元参数    10
    3.3光强检测单元    10
        3.3.1 光强检测单元原理    10
        3.3.2 光敏单元简介    11
    3.4蜂鸣器报警单元    11
    3.5 OLED显示单元    12
        3.5.1 OLED显示单元原理    12
        3.5.2 OLED单元简介    13
        3.5.3 OLED单元特点    13
4 软件设计    14
    4.1主程序流程    14
    4.2软件主要子程序介绍    15
        4.2.1超声波单元驱动程序    15
        4.2.2 OLED显示单元程序    16
        4.2.3中断定时程序    17
5 调试    18
    5.1 系统组装过程    18
    5.2调试    19
6结论    20
参考文献:    21
致谢    22
附录    23

推荐资料