版本协议

GPL 3.0

标签
专业版
#第九届立创电赛#智能家庭环境检测器

创建时间:4周前

75 0

视频

描述

<p><em>* 1<span style="font-family:宋体">、项目功能介绍</span></em></p> <p><span style="font-family:宋体">智能家庭环境检测器是一种用于监测家庭环境中各项指标的设备,它可以提供有关居住空间内的环境质量的信息。这类检测器通常集成了多种传感器,用以测量不同的环境参数。以下是一些常见的功能和技术特点:</span></p> <p>1. <strong><span style="font-family:宋体">温度测量</span></strong><span style="font-family:宋体">:监测室内温度,帮助调节空调或供暖系统。</span></p> <p>2. <strong><span style="font-family:宋体">湿度测量</span></strong><span style="font-family:宋体">:检测空气湿度水平,对于预防霉菌生长和维持舒适环境非常重要。</span></p> <p>3. <strong><span style="font-family:宋体">空气质量监测</span></strong><span style="font-family:宋体">:包括二氧化碳(</span>CO₂<span style="font-family:宋体">)、挥发性有机化合物(</span><span style="font-family:Calibri">VOCs</span><span style="font-family:宋体">)和其他有害气体的浓度,有助于识别污染源并改善通风。</span></p> <p>4. <strong><span style="font-family:宋体">光照强度</span></strong><span style="font-family:宋体">:用于自动调节照明系统或评估自然光的充足程度。</span></p> <p><br><em>*2<span style="font-family:宋体">、项目属性</span></em><br><span style="font-family:宋体">项目是首次公开,在学校参加过答辩</span><br><br><em>*3<span style="font-family:宋体">、硬件部分</span></em></p> <p><span style="font-family:宋体">智能家庭环境检测器是一种用于监测家庭环境中各种参数的设备,可以帮助用户了解室内空气质量、温度、湿度、光照强度等信息。下面是智能家庭环境检测器的一些硬件描述要点:</span></p> <h3><strong><span style="font-family:宋体">1. 微控制器单元(MCU)</span></strong></h3> <p>· <strong><span style="font-family:宋体">核心处理器</span></strong><span style="font-family:宋体">:通常使用高性能且低功耗的</span>MCU<span style="font-family:宋体">(如</span><span style="font-family:Calibri">STM32</span><span style="font-family:宋体">系列),用于处理传感器数据、执行算法和控制通信模块。</span></p> <p>· <strong><span style="font-family:宋体">功能</span></strong><span style="font-family:宋体">:负责接收来自各个传感器的数据,进行必要的计算,并决定如何处理这些数据。</span></p> <h3><strong><span style="font-family:宋体">2. 传感器模块</span></strong></h3> <p>· <strong><span style="font-family:宋体">温湿度传感器</span></strong><span style="font-family:宋体">:如</span>DHT11/DHT22<span style="font-family:宋体">或</span><span style="font-family:Calibri">SHT31</span><span style="font-family:宋体">,用于测量环境的温度和湿度。</span></p> <p>· <strong><span style="font-family:宋体">光照传感器</span></strong><span style="font-family:宋体">:如</span>BH1750<span style="font-family:宋体">或</span><span style="font-family:Calibri">TSL2591</span><span style="font-family:宋体">,用于测量室内的光线强度。</span></p> <p>· <strong><span style="font-family:宋体">空气质量传感器</span></strong><span style="font-family:宋体">:如</span>MQ<span style="font-family:宋体">系列气体传感器、</span><span style="font-family:Calibri">BME280</span><span style="font-family:宋体">或</span><span style="font-family:Calibri">Sensirion SGP30</span><span style="font-family:宋体">,用于监测</span><span style="font-family:Calibri">CO₂</span><span style="font-family:宋体">浓度、</span><span style="font-family:Calibri">VOC</span><span style="font-family:宋体">(挥发性有机化合物)水平以及其他有害气体。</span></p> <p> </p> <p>*4<span style="font-family:宋体">、软件部分</span></p> <p>1. </p> <p><strong><span style="font-family:宋体">初始化模块</span></strong><span style="font-family:宋体">:</span></p> <p>2. </p> <p>o <span style="font-family:宋体">初始化延时函数</span> (delay_init)<span style="font-family:宋体">。</span></p> <p>o <span style="font-family:宋体">初始化</span>ADC<span style="font-family:宋体">通道 </span><span style="font-family:Calibri">(</span>Adc1_Channe_Init)<span style="font-family:宋体">。</span></p> <p>o <span style="font-family:宋体">初始化按键</span> (KEY_Init)<span style="font-family:宋体">。</span></p> <p>o <span style="font-family:宋体">初始化</span>LED (LED_Init)<span style="font-family:宋体">。</span></p> <p>o <span style="font-family:宋体">初始化</span>OLED<span style="font-family:宋体">屏幕 </span><span style="font-family:Calibri">(</span>OLED_Init)<span style="font-family:宋体">。</span></p> <p>3. </p> <p><strong><span style="font-family:宋体">变量声明</span></strong><span style="font-family:宋体">:</span></p> <p>4. </p> <p>o DHT11_Temp <span style="font-family:宋体">和</span><span style="font-family:Calibri"> </span>DHT11_Hum <span style="font-family:宋体">分别存储从</span><span style="font-family:Calibri">DHT11</span><span style="font-family:宋体">传感器读取的温度和湿度。</span></p> <p>o Pre <span style="font-family:宋体">存储压力传感器的读数(未在代码中使用)。</span></p> <p>o gz_value <span style="font-family:宋体">和</span><span style="font-family:Calibri"> </span>m2_value <span style="font-family:宋体">分别存储光强传感器和另一种传感器(可能是</span><span style="font-family:Calibri">PM2.5</span><span style="font-family:宋体">或其他)的读数。</span></p> <p>o A_DHT11_Temp, A_DHT11_Hum, A_gz_value, A_m2_value <span style="font-family:宋体">分别存储温度、湿度、光强和其他传感器的报警阈值。</span></p> <p>5. </p> <p><strong><span style="font-family:宋体">主循环</span></strong><span style="font-family:宋体">:</span></p> <p>6. </p> <p>o <span style="font-family:宋体">每次循环调用</span> Get_Data <span style="font-family:宋体">函数获取传感器数据。</span></p> <p>o <span style="font-family:宋体">检查温度、湿度和</span>m2_value<span style="font-family:宋体">是否超出设定的阈值,如果超出,则改变蜂鸣器的状态。</span></p> <p>o <span style="font-family:宋体">扫描按键,如果检测到按键</span>2<span style="font-family:宋体">被按下,则切换显示模式。</span></p> <p>o <span style="font-family:宋体">根据</span> display_contrl <span style="font-family:宋体">的值交替显示不同的信息。</span></p> <p>o <span style="font-family:宋体">调用</span> Canshu_Change <span style="font-family:宋体">函数根据按键输入修改报警阈值。</span></p> <p>o <span style="font-family:宋体">延迟</span>100<span style="font-family:宋体">毫秒。</span></p> <p>7. </p> <p><strong><span style="font-family:宋体">按键修改报警阈值</span></strong><span style="font-family:宋体">:</span></p> <p>8. </p> <p>o <span style="font-family:宋体">如果按键</span>1<span style="font-family:宋体">被按下,则进入一个子菜单,允许用户通过按键</span><span style="font-family:Calibri">3</span><span style="font-family:宋体">和</span><span style="font-family:Calibri">4</span><span style="font-family:宋体">来增加或减少报警阈值。</span></p> <p>o <span style="font-family:宋体">使用按键</span>2<span style="font-family:宋体">退出子菜单并返回主界面。</span></p> <p>9. </p> <p><strong><span style="font-family:宋体">获取数据函数</span></strong><span style="font-family:宋体">:</span></p> <p>10. </p> <p>o <span style="font-family:宋体">读取</span>DHT11<span style="font-family:宋体">传感器的温度和湿度数据。</span></p> <p>o <span style="font-family:宋体">读取光强传感器和另一个传感器的值,并进行相应的处理。</span></p> <p><br><em>*5<span style="font-family:宋体">、</span><span style="font-family:Times New Roman">BOM</span><span style="font-family:宋体">清单</span></em><br><span style="font-family:宋体">上传附件查看</span></p>

文档

BOM

暂无

附件

附件名 下载
智能家庭环境监测器.epro
BOM_Board1_PCB1_2024-10-23.xlsx
(6)程序源码.zip
WeChat_20241023130147.mp4

成员

评论(0)

  • 表情
    emoji
    小嘉工作篇
    小嘉日常篇
  • 图片
成功
工程所有者当前已关闭评论
goToTop
svg-battery svg-battery-wifi svg-books svg-more svg-paste svg-pencil svg-plant svg-ruler svg-share svg-user svg-logo-cn svg-double-arrow