摘要随着电子技术及计算机技术的快速发展,给人们的生活带来了巨大的便利。特别是以单片机为代表的电子技术,让我们的生活和工作越来越智能化,如智能光源的出现,让我们能够更加快捷的进行生活学习。
课题主要以单片机技术为核心,并结合红外传感器,光源传感器等传感器技术,通过相关的硬件及软件设计以达到智能控制光源亮度的效果。本文描述了系统硬件的工作原理,并附以系统框图加以说明,着重介绍了本系统所应用的各硬件及其接口技术和各硬件模块的功能及工作过程;另外,详细的阐述了程序的设计思路以及各个模块的实现过程。本设计以单片机技术和数字电子技术为基础,以软件开发技术为核心,软硬件相结合,以模块化的设计思路来实现本课题。
为了适应越来越普遍使用的智能移动设备,本设计在实现基本功能的基础上,增加了安卓客户端对系统的智能控制这一功能,以更方便用户体的使用。50259
毕业论文关键词:单片机;红外传感器;光源传感器;安卓软件
abstract With the rapid development of electronic technology and computer technology, has brought great convenience to people's life. Especially the electronic technology represented by single chip microcomputer, let our life and work more and more intelligent, such as the emergence of intelligent light source, enable us to more efficient learning for life.
Subject mainly by single chip microcomputer technology as the core, combined with infrared sensors, light sensors and other sensor technology, through the relevant hardware and software design in order to achieve the effect of intelligent control lighting source. This article describes the working principle of the system hardware, each accompanied by a diagram of the system, introduced this system by the application of the hardware and interface technology and the function of each hardware module and working process; In addition, detailed expounds the procedures of design ideas and implementation process of various modules. This design is based on single-chip computer technology and digital electronic technology, software development technology as the core, combining software and hardware, with the modular design idea to realize this project.
In order to adapt to more and more widespread use of smart mobile devices, the design on the basis of the basic functions, increase the android client on the system of the intelligent control function, the use of more convenient to users body.
Key words: single chip microcomputer; Infrared sensor; Light sensor; The android software
目录
摘要1
Abstract.11
前言5
1. 系统方案设计.6
2. 系统硬件设计.8
2.1 电路组成框图8
2.2 系统硬件概述及整机工作原理9
2.3 STM32微处理器简介.10
2.4 CH-06人体红外传感器简介14
2.5 光敏电阻传感器简介17
3. 系统软件设计
3.1 系统软件设计总框架18
3.2 STM32内置AD转换器的设置和使用19
3.3 STM32内置TIM定时器PWM方波输出控制22
3.4 安卓控制客户端软件设计27
4. 系统测试及调试.29
4.1 Keil开发环境的简介和搭建29
4.2