目 录
1 绪 论 ...................................................................................................................................................1
1.1 研究背景和意义........................................................................................................................1
1.1.1 背景分析........................................................................................................................1
1.1.2 本课题的研究意义........................................................................................................1
1.2 课题研究方法和内容................................................................................................................2
1.2.1 研究方法........................................................................................................................2
1.2.2 研究内容........................................................................................................................2
2 系统分析 ...............................................................................................................................................3
2.1 系统背景及现状........................................................................................................................3
2.2 系统需求分析............................................................................................................................3
2.2.1 市场需求........................................................................................................................3
2.2.2 功能需求........................................................................................................................3
2.3 系统方案....................................................................................................................................4
2.4 可行性分析................................................................................................................................5
2.4.1 经济可行性分析............................................................................................................5
2.4.2 技术可行性分析............................................................................................................5
3 系统硬件设计 .......................................................................................................................................6
3.1 系统功能设计............................................................................................................................6
3.2 硬件系统设计............................................................................................................................6
3.3 硬件模块选型............................................................................................................................7
3.3.1 主控芯片........................................................................................................................7
3.3.2 显示模块........................................................................................................................8
3.3.3 烟雾传感器模块............................................................................................................9
3.3.4 AD 转换模块.................................................................................................................10
3.3.5 温度传感模块..............................................................................................................11
3.3.6 人体红外传感器..........................................................................................................12
3.3.7 报警模块......................................................................................................................12
3.3.8 按键模块......................................................................................................................13
3.3.9 电源模块......................................................................................................................14
4 系统软件设计 .....................................................................................................................................15
4.1 开发环境搭建..........................................................................................................................15
4.1.1 开发软件安装..............................................................................................................15
4.1.2 烧写软件平台..............................................................................................................16
4.2 软件总体设计..........................................................................................................................17
4.2.1 软件设计流程图..........................................................................................................17
4.2.2 主函数..........................................................................................................................18
4.3 软件模块设计与实现..............................................................................................................19
4.3.1 LCD 显示模块 ..............................................................................................................19
4.3.2 AD 模数转换模块 ........................................................................................................21
4.3.3 温度传感器模块..........................................................................................................23
4.3.4 人体红外传感器模块..................................................................................................25