描述
<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 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;">本项目由ESP8266模组、6V单晶硅太阳能板、18650锂电池、AHT20温湿度计、BMP280气压计组成,可以24 小时监测环境温度、湿度与气压,并通过 MQTT 将数据推送到 Home Assistant,通过 Home Assistant的数据曲线,可以随时观察室内温度、湿度与气压的变化。</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>
<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: #000000; font-size: 16px;">GPL3.0</span></p>
<p> </p>
<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="md-end-block md-p md-focus"><span class="md-plain md-expand">太阳能温湿度·气压监测站由ESP8266模组、6V单晶硅太阳能板、18650锂电池、AHT20温湿度计、BMP280气压计等组成。其余能省则省,把功耗压到极致。原理图如下:</span></p>
<p class="md-end-block md-p"><span class="md-plain"><img src="//image.lceda.cn/pullimage/UItZqTeluwFDbIf8zl8d3Pq6OvzamEAw2uRI4nv9.jpeg" alt="" width="700" height="248"></span></p>
<p class="md-end-block md-p"><span class="md-plain">因为要使用ESP8266的深度睡眠功能,需要将GPIO16连接到RST引脚。</span></p>
<p class="md-end-block md-p"><span class="md-plain">PCB图如下:</span></p>
<p class="md-end-block md-p"><span class="md-plain"><img src="//image.lceda.cn/pullimage/EZWl1gWoiHabp3sn9MdtQz1nAxCaAcSfSezpEW8g.jpeg" alt="" width="500" height="430"></span></p>
<p class="md-end-block md-p"><span class="md-plain">相比之前设计的ESP8266开发板,去掉了所有指示灯,进一步降低静态电流。</span></p>
<p class="md-end-block md-p"><span class="md-plain">实物效果:</span></p>
<p class="md-end-block md-p md-focus"><span class="md-plain md-expand"><img src="//image.lceda.cn/pullimage/KcdO8zpP5sO5Wq7Mpw6hyAEbrftWIXFGWScaeUJh.jpeg" alt="" width="600" height="444"></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;"><img src="//image.lceda.cn/pullimage/lA0tQ91nfP4B0HEz3mlKKWygC2LcxyJBN6uhs6RP.jpeg" alt="" width="600" height="478"></p>
<p class="md-end-block md-p md-focus"><span class="md-plain md-expand">太阳能板放在户外,每天直射时间不足 2 小时,但即使是散射光也能产生足够电流,锂电池电量始终健康,ESP8266 从未因缺电掉线。</span></p>
<p class="md-end-block md-p"><span class="md-plain"><img src="//image.lceda.cn/pullimage/f53bRWur4upZ8ZEcaWqp8fXYk81WZMUxPL2QAOHa.jpeg" alt="" width="600" height="528">太阳直晒时,<span>电压约5V,电流约50-85mA;没有太阳直晒时,电压约为4.6V,电流约10-30mA</span>:</span></p>
<p class="md-end-block md-p"><span class="md-plain"><img src="//image.lceda.cn/pullimage/WSKC6yZlG8ExDj3zzn3mJtchtMJ9R2ZGMGW5KP3P.jpeg" alt="" width="600" height="415"><img src="//image.lceda.cn/pullimage/mN1Z069OudZcpySomYo661UH4dr0GIBsztlfW9ui.jpeg" alt="" width="600" height="401"></span></p>
<p class="md-end-block md-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 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="md-end-block md-p md-focus"><span class="md-plain md-expand"><strong>原理:</strong>ESP8266驱动温湿度、气压模块获取环境温度、湿度与气压数据,并通过 MQTT 将数据推送到 Home Assistant,Home Assistant将温湿度气压数据展示为曲线图,用户可以随时观察室内温度、湿度与气压的变化。</span></p>
<p class="md-end-block md-p"><span class="md-plain">为了控制整体功耗,我们让ESP8266每10分钟醒来一次,测量完数据并上传Home Assistant后,进入深度睡眠。</span></p>
<p class="md-end-block md-p">代码详见附件。</p>
<p class="md-end-block md-p md-focus"><span class="md-plain md-expand">Home Assistant端的配置参考《</span><span class="md-meta-i-c md-link"><a href="https://mp.weixin.qq.com/s/-CzY9NKkbK-G7u8dYnOmgg" target="_blank"><span class="md-plain">ESP8266通过MQTT接入Home Assistant(二)</span></a></span><span class="md-plain">》,YAML配置文件代码如下:</span></p>
<pre class="md-fences md-end-block ty-contain-cm modeLoaded"><span class="cm-atom">mqtt</span><span class="cm-meta">:</span><br><span class="cm-atom"> sensor</span><span class="cm-meta">:</span><br><span class="cm-meta"> - </span><span class="cm-atom">name</span><span class="cm-meta">: </span><span class="cm-string">"温度"</span><br><span class="cm-atom"> state_topic</span><span class="cm-meta">: </span><span class="cm-string">"homeassistant/sensor/esp8266/state"</span><br><span class="cm-atom"> device_class</span><span class="cm-meta">: </span><span class="cm-string">"temperature"</span><br><span class="cm-atom"> unit_of_measurement</span><span class="cm-meta">: </span><span class="cm-string">"°C"</span><br><span class="cm-atom"> value_template</span><span class="cm-meta">: </span><span class="cm-string">"{{ value_json.temperature}}"</span><br><span class="cm-atom"> unique_id</span><span class="cm-meta">: </span><span class="cm-string">"temp01ae"</span><br><span class="cm-atom"> device</span><span class="cm-meta">:</span><br><span class="cm-atom"> name</span><span class="cm-meta">: </span><span class="cm-string">"ESP8266"</span><br><span class="cm-atom"> suggested_area</span><span class="cm-meta">: </span><span class="cm-string">"客厅"</span><br><span class="cm-atom"> manufacturer</span><span class="cm-meta">: </span><span class="cm-string">"PY学习笔记"</span><br><span class="cm-atom"> model</span><span class="cm-meta">: </span><span class="cm-string">"E103-W01"</span><br><span class="cm-atom"> model_id</span><span class="cm-meta">: </span><span class="cm-string">"ESP8266EX"</span><br><span class="cm-atom"> serial_number</span><span class="cm-meta">: </span><span class="cm-string">"pysn"</span><br><span class="cm-atom"> hw_version</span><span class="cm-meta">: </span><span class="cm-string">"v1.2.0"</span><br><span class="cm-atom"> sw_version</span><span class="cm-meta">: </span><span class="cm-string">"1.24.1"</span><br><span class="cm-atom"> identifiers</span><span class="cm-meta">:</span><br><span class="cm-meta"> - </span><span class="cm-string">"esp8266_aht10"</span><br><span class="cm-meta"> - </span><span class="cm-atom">name</span><span class="cm-meta">: </span><span class="cm-string">"湿度"</span><br><span class="cm-atom"> state_topic</span><span class="cm-meta">: </span><span class="cm-string">"homeassistant/sensor/esp8266/state"</span><br><span class="cm-atom"> device_class</span><span class="cm-meta">: </span><span class="cm-string">"humidity"</span><br><span class="cm-atom"> unit_of_measurement</span><span class="cm-meta">: </span><span class="cm-string">"%"</span><br><span class="cm-atom"> value_template</span><span class="cm-meta">: </span><span class="cm-string">"{{ value_json.humidity}}"</span><br><span class="cm-atom"> unique_id</span><span class="cm-meta">: </span><span class="cm-string">"hum01ae"</span><br><span class="cm-atom"> device</span><span class="cm-meta">:</span><br><span class="cm-atom"> identifiers</span><span class="cm-meta">:</span><br><span class="cm-meta"> - </span><span class="cm-string">"esp8266_aht10"</span><br><span class="cm-meta"> - </span><span class="cm-atom">name</span><span class="cm-meta">: </span><span class="cm-string">"气压"</span><br><span class="cm-atom"> state_topic</span><span class="cm-meta">: </span><span class="cm-string">"homeassistant/sensor/esp8266/state"</span><br><span class="cm-atom"> device_class</span><span class="cm-meta">: </span><span class="cm-string">"atmospheric_pressure"</span><br><span class="cm-atom"> unit_of_measurement</span><span class="cm-meta">: </span><span class="cm-string">"hPa"</span><br><span class="cm-atom"> value_template</span><span class="cm-meta">: </span><span class="cm-string">"{{ value_json.atmospheric_pressure}}"</span><br><span class="cm-atom"> unique_id</span><span class="cm-meta">: </span><span class="cm-string">"pas01ae"</span><br><span class="cm-atom"> device</span><span class="cm-meta">:</span><br><span class="cm-atom"> identifiers</span><span class="cm-meta">:</span><br><span class="cm-meta"> - </span><span class="cm-string">"esp8266_aht10"</span></pre>
<p class="md-end-block md-p md-focus"> </p>
<p class="md-end-block md-p md-focus">这套系统已连续稳定运行两个多月,通过Home Assistant APP,可以随时查看温湿度与气压数据,以及选定日期的温度、湿度、气压变化曲线。</p>
<p class="md-end-block md-p"><img src="//image.lceda.cn/pullimage/i7UnsTDAEmjCvC2qMj9LABQxDcMg9OvVFDYZLwWx.jpeg" alt="" width="450" height="1000"></p>
<p class="md-end-block md-p"><span class="md-plain">刚好,6-8月处于厦门的台风季,我们也观察了台风对气压的影响。</span></p>
<p class="md-end-block md-p"><span class="md-plain">台风“韦帕”于7月20日登陆广东台山,距离气压测量点约620km,气压变化情况如下:</span></p>
<p class="md-end-block md-p md-focus"><span class="md-plain md-expand"><img src="//image.lceda.cn/pullimage/HdF1KZmBrEf0jQGm3iLXCdTisgMeioas4JVlEpAW.jpeg" alt="" width="450" height="1000"></span></p>
<p class="md-end-block md-p md-focus"> </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;"><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;">注:项目涉及的BOM清单。在<span style="text-decoration: underline;"><a href="https://lceda.cn/editor" target="_blank">嘉立创EDA</a> </span>生成/上传设计文件后,BOM将自动生成至项目详情;建议包括型号、品牌、名称、封装、采购渠道、用途等内容。具体内容和形式应以表达清楚项目构成为准。 </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;">*7、大赛LOGO验证</h3>
<hr class="horizontal-splitline normal-bold-2">
<p style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/nISLT4X8mSBdNvzfphk5WIO9HMhl760Mtl6t7j9t.jpeg" alt="" width="600" height="478"></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;">* 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="/posts/42551e8f2f2548cabc1c36626a42da94" target="_blank">前往查看更多详情 ></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>
评论(0)