2
目 录
1 温湿度获取模块概述 ............................................................................................................................ 1
1.1 DHT11 .............................................................................................................................................. 1
1.1.1 原理及原理图 ......................................................................................................................... 1
1.1.2 代码思路 .................................................................................................................................. 4
1.2 蜂鸣器模块 ..................................................................................................................................... 5
1.2.1 原理及原理图 .......................................................................................................................... 5
1.2.3 代码思路 ................................................................................................................................... 5
2 光照获取与距离检测模块 ................................................................................................................... 7
2.1 光照获取 ......................................................................................................................................... 7
2.1.1 原理及原理图 ......................................................................................................................... 7
2.1.2 代码思路 .................................................................................................................................. 7
2.2 光照结果数码管及串口显示 .................................................................................................... 7
2.2.1 代码思路 .................................................................................................................................. 7
2.3 距离检测 ......................................................................................................................................... 8
2.3.1 原理及原理图 ......................................................................................................................... 8
2.3.2 代码思路 .................................................................................................................................. 8
2.3.3 遇到的困难 ............................................................................................................................. 9
3 气体(滑动变阻)检测模块 ............................................................................................................. 9
3.1 气体(滑动变阻)检测 ............................................................................................................. 9
3.1.1 原理及原理图 ....................................................................................................................... 10
3.1.2 代码思路 ................................................................................................................................ 10
3.1.3 遇到的困难 ........................................................................................................................... 11
3.2 检测结果串口打印及数码管显示 ......................................................................................... 11
3.2.1 代码思路 ................................................................................................................................ 11
Abstract ....................................................................................................................................................... 11
参考文献 ..................................................................................................................................................... 12
评论0