版本协议

GPL 3.0

标签
标准版
#第六届立创电赛#房间环境监测烟雾和温湿度

创建时间:3年前

633 0

视频

  • 室内环境监测+温湿度和烟雾.mp4

  • d071e5d122f5663d2921d1d7b7b373cd.mp4

  • efb5053b2765712833c9ba669303f1f6.mp4

描述

<div class="document"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">注:* 为必填项</p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><strong><span style="color: #0093e6;">请在报名阶段填写 ↓</span></strong></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">* 1、项目功能介绍</h3> <hr class="horizontal-splitline normal-bold-2"> <p>项目介绍:</p> <p>室内环境监测<span>,</span>这个作品可以检测室内温湿度,光强,烟雾浓度(或者说可燃气体)并可以同这些值做出相应的控制,比如恒温恒湿控制,恒光控制,烟雾报警。并可以通过ESP-12F联网模块连接到云端,实现远程。</p> <p>本工程用的HK<span>32F103RET6</span>作为主控,ESP-12F作为联网模块,<span>SHT30</span>是温湿度传感器,<span>OPT3001</span>是光照传感器,<span>MQ2</span>是烟雾传感器,其中<span>SHT30</span>,<span>OPT3001</span>是<span>IIC</span>通信,<span>MQ2</span>是模拟信号;在这个工程中使用了一块<span>OLED</span>屏和三个按键作为人机交互接口,用了一个<span>EEPROM</span>来记录报警内容和设置一些信息。</p> <p>设计思路:</p> <p><img src="//image.lceda.cn/pullimage/Okx5M3CDe1FM8PCSKZfg3qeNnUMSkLxIiI0XJusW.jpeg" alt="" width="1079" height="797"></p> <p> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">*2、项目属性</h3> <hr class="horizontal-splitline normal-bold-2"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">项目为原创</p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">* 3、开源协议</h3> <hr class="horizontal-splitline normal-bold-2"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">请输入内容…</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">注:利他即利己,请认真阅读下述内容。</span></p> <ol style="line-height: 1.8;"> <li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">拥抱开源,赋予项目无限价值。建议项目核心功能开源80%以上;</span></li> <li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">若某一部分功能不可替代且删掉之后项目无法解决对应的问题,则这一部分实现的功能就是项目的核心功能;比如设计了一台电子负载且设计了一款上位机软件监控功率变化,则电子负载为核心功能,上位机软件为辅助功能;比如电子负载中使用了一款隔离485模块与上位机通信,则此485模块实现的通讯功能为辅助功能;</span></li> <li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">项目应选择适合自己的<span style="text-decoration: underline;"><a href="/p/zhangchaojiang/posts/98fdb2accd754af7b51990790db3b47a" target="_blank">开源协议</a></span>,若项目引用其他开源项目,应注明来源并遵循原作者的开源协议规定;原创项目推荐使用GPL3.0开源协议;</span></li> <li class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-hanging-indent-1.6em" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">直接引用开源项目的原电路或原代码实现的功能不可作为自己项目的核心功能、使用市场上通用模块直接实现的功能不可作为自己项目的核心功能。</span></li> </ol> <p style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><strong><span style="color: #0093e6;">请在竞赛阶段填写 ↓</span></strong></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">*4、硬件部分</h3> <hr class="horizontal-splitline normal-bold-2"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">PCB版</p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/pQV52rRp5bvmA3Cz4umeh1NvfsBgz3cFKt8VfbZW.jpeg" alt="" width="2015" height="1080">原理:</p> <p>室内环境监测可以检测室内温湿度,光强,烟雾浓度(或者说可燃气体)并可以同这些值做出相应的控制,并可以通过ESP-12F联网模块连接到云端,实现远程。</p> <p>工程用的HK<span>32F103RET6</span>作为主控,ESP-12F作为联网模块,<span>SHT30</span>是温湿度传感器,<span>OPT3001</span>是光照传感器,<span>MQ2</span>是烟雾传感器,其中<span>SHT30</span>,<span>OPT3001</span>是<span>IIC</span>通信,<span>MQ2</span>是模拟信号;在这个工程中使用了一块<span>OLED</span>屏和三个按键作为人机交互接口,用了一个<span>EEPROM</span>来记录报警内容和设置一些信息。</p> <p>原理图:</p> <p><img src="//image.lceda.cn/pullimage/T0v6I3IRZPaHLKsUz7dhmgJYWh71QDWXr1fjLSNV.png" alt="" width="777" height="548"></p> <p>注意事项:</p> <p>ESP-12F作为联网模块在手机上显示有点误差。</p> <p>使用介绍</p> <p>在这个作品中,使用三个按钮进行人机交互,其中左边的按键永远是确认按钮,中间的是选择或者删除按键,右边的是退出按键。相关功能提示会在屏幕的下方显示。</p> <p>在所有的界面中,只有控制设置界面有输入设置的功能,其余的都是查看的功能,相关设置可以在手机端进行。控制端的功能可以控制IO点的开闭,以及控制模式“AUTO”自动或者“OPER”手动。自动控制的原理是最简单的双位控制原理。</p> <p>PCB图:</p> <p><img src="//image.lceda.cn/pullimage/xFQ8ctouZcuiXarL0bEh5TY9Lxu99feIFkjahnOU.png" alt="" width="853" height="516"></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">*5、软件部分</h3> <hr class="horizontal-splitline normal-bold-2"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">微信小程序</p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/P7Ntj4gA685XDEhGIZtaLDemQxL0gK0TbcoZvdmb.jpeg" alt="" width="1080" height="2400">烟雾电路</p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/nv5vkCvAQynmFiSYjXxQqzkt2swlPzBsXvANw1Zz.png" alt="" width="255" height="352"></p> <p>根据电路图我们可以得到:<span><br>Vrl/Rl = (Vc - Vrl)/Rs</span>;<span><br>Vrl</span>:即<span>AO</span>口输出电压<span><br>Vc</span>:回路电压<span><br>Rl</span>:我的电路里面<span>Rl</span>为<span>0K</span>,具体看电路图</p> <p><span><br></span>根据技术文档我们知道<span>R0</span>就是在洁净空气下<span>Rs</span>的值。</p> <p>我的回路测试电压为<span>5V</span>,洁净空气下<span>Vrl</span>为<span>0.621887(</span>多次测得电压取平均值<span>)</span>,所以得到<span>R0</span>的值为<span>35.904K</span>。<span><br></span>注:为保证准确性,洁净空气下<span>Vrl</span>的值需要在传感器充分预热下测得。</p> <p><span> </span></p> <p>然后根据公式<span>Rs/R0 = 11.5428 * ppm^(-0.6549)</span>和<span>Vrl/Rl = (Vc - Vrl)/Rs</span>推导,得到:<span><br>ppm^0.6549 = 11.5428 * 35.904 * Vrl/(25.5* Vrl)</span>;<span><br></span>使用<span>C</span>标准库函数<span>pow(x,y)</span>求得<span>ppm;//</span>其作用是计算<span>x</span>的<span>y</span>次方。<span>x</span>、<span>y</span>及函数值都是<span>double</span>型</p> <p><span> </span></p> <p>使用的<span>HK32</span>的芯片,耐压<span>5V</span>但是<span>ADC</span>只能<span>3.3V-</span>这里要乘以<span>1.5</span>,两个电阻分压一半</p> <p><span>ppm = pow(11.5428 * 35.904 * Vrl/(25.5-1.5/24* Vrl),0.6549);</span></p> <p><span> 软件代码:</span></p> <p> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">注:若您的项目涉及软件开发,请在附件上传对应的工程源码。这里可以详细说明您的软件流程图、功能模块框图、相关算法的解释或科普、源码结构、编译环境的搭建和配置、源码编译方法、程序烧录方法等。推荐图文并茂的形式向别人介绍您的想法。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt pap-left-indent-1.6em" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">*6、BOM清单</h3> <hr class="horizontal-splitline normal-bold-2"> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/ZCzL1Lom7pZPAMicBJycx7BF6d0rLR7n3gv78wOc.png" alt="" width="1054" height="634"></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">*7、大赛LOGO验证</h3> <hr class="horizontal-splitline normal-bold-2"> <p style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/2saKoCd6NO9aLhk06x74cAnlTQIEAHHmeh2wLryp.jpeg" alt="" width="1440" height="1080"></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">请上传包含大赛logo的项目图片,logo以丝印形式印刷在PCB上面。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">点击zip下载大赛logo标识! <span style="text-decoration: underline;"><a href="https://lceda.oss-cn-shenzhen.aliyuncs.com/diy/uploads/file/2019/05/29/0e4d93a463d7ceb5e7dc77d774b7a4ae.zip" target="_blank">(大赛标识).zip</a></span></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <h3 class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;">* 8、演示您的项目并录制成视频上传</h3> <hr class="horizontal-splitline normal-bold-2"> <p style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">视频要求:请横屏拍摄,分辨率不低于1280×720,格式Mp4/Mov,单个视频大小限100M内;</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="color: #95a5a6; font-size: 14px;">视频标题:立创电赛:{项目名称}-{视频模块名称};如立创电赛:《自动驾驶》-团队介绍。</span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"><span style="font-size: 14px;">更多详情:<a href="/p/zhangchaojiang/posts/06c94d90c2c447dfbd9ed7339ff4a5b1" target="_blank">https://diy.szlcsc.com/posts/06c94d90c2c447dfbd9ed7339ff4a5b1</a></span></p> <p class="paragraph text-align-type-left pap-line-1.3 pap-line-rule-auto pap-spacing-before-3pt pap-spacing-after-3pt" style="line-height: 1.8;"> </p> </div>

文档

BOM

暂无

附件

附件名 下载
Schematic_室内环境监测_2021-09-20.pdf
PCB_PCB_室内环境监测_2_2021-09-20.pdf
Template.uvprojx

评论(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