描述
<p><div class="document">
<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;"><em> 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;">本项目基于训练营的桌面温湿度仪项目开发,采用STM32G030K6T6主控,具有按键唤醒、可充电、自动休眠的功能,除此之外预留串口屏接口,可连接串口屏使用。使用盛思锐SHT40温湿度传感器,通过I2C与传感器通信,电源电路使用TP4056电池管理芯片,PW5300升压稳压芯片,AMS1117线性稳压芯片</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;"></em>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>
<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;"><em> 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;">GPL3.0</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;"></em>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;"><img src="//image.lceda.cn/oshwhub/a24d5da1396a4df099d1c640695ef171.png" alt="" width="1383" height="978" /></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;"><strong> <span style="font-size: 18pt;">项目整体原理图</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 pap-left-indent-1.6em" style="line-height: 1.8;"><span style="font-size: 18pt;"><strong>核心电路(MCU相关)</strong></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;"><strong><span style="font-size: 18pt;"><img src="//image.lceda.cn/oshwhub/75e6902113e246549ff2b7619bf10b30.png" alt="" width="1013" height="363" /></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 pap-left-indent-1.6em" style="line-height: 1.8;"><span style="font-size: 14pt;"><strong>主控MCU的供电由5V转3.3V电路整流滤波后输入,主控外围引脚根据定义进行使用,使用32.768KHz外部晶振提供计时(本次项目并未用到),方便后期的功能拓展,添加手动复位键,便于调试,唤醒电路可以在需要温湿度显示的时候唤醒MCU,让数码管显示温湿度,在不需要的时候可以进入低功耗的待机状态,以节省能耗,测试led可以共调试初期测试MCU功能。</strong></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;"><span style="font-size: 18pt;"><strong>电源电路</strong></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;"><span style="font-size: 18pt;"><strong><img src="//image.lceda.cn/oshwhub/02c4d7caae954c3b815b3cbd20ab6747.png" alt="" width="950" height="363" /></strong></span></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;"> </h3>
<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;"><img src="//image.lceda.cn/oshwhub/2ed40b72e6704498944af5d7a14549db.png" alt="" width="1016" height="350" /></h3>
<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;"> </h3>
<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;"> </h3>
<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;"><img src="//image.lceda.cn/oshwhub/c3d2fc6c9a1345e8b1d3fe2f505f44c9.png" alt="" width="876" height="355" /></h3>
<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;">电源可分为三个部分</h3>
<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;">一. 充电管理部分,使用最常用的充电管理IC TP4056进行充电操作,充电电流为800mA,在保证充电速度的情况下减少了芯片的发热。<br />二.5V升压稳压电路,为保证串口屏的正常使用,电源需提供5V电压,我这里使用的是PW5300升压稳压芯片,这款芯片具有低功耗,高转化率的特点,同时外围电路较为简单。<br />三,5V转3.3V降压电路,MCU及其他组件均使用3.3V,我这里选用的是ams1117芯片,这款芯片是最为常用的ido芯片,在压差不大的情况下其外围电路简单易上手,同时为了防止短路等情况损坏电路,我额外添加了一个6v 1.5A自恢复保险丝,保证在意外情况下能及时断开电路。</h3>
<p><strong><span style="font-size: 18pt;">显示电路</span></strong></p>
<p><img src="//image.lceda.cn/oshwhub/a5530775ce08475ca2a6d1d1b3cfa0fc.png" alt="" width="1383" height="656" /></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;">为了点亮多个数码管这边选用了SN74HC595PWR寄存器来连接数码管进行显示,通过MCU的单个引脚就能实现对LED数码管的控制,同时有很多群友反馈说数码管经常乱跳,不亮等情况,大多数都是595的焊接问题,在焊接时犹其要注意有无连锡,虚焊等情况。</h3>
<p><strong><span style="font-size: 18pt;">STlink接口,传感器及其扩展</span></strong></p>
<p><strong><span style="font-size: 18pt;"><img src="//image.lceda.cn/oshwhub/b08c11c2641e43b2886d697803eeb13e.png" alt="" width="282" height="555" /></span></strong></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;">传感器这里直接使用的本次大赛提供的SHT40模块,需要注意的一点,此模块并没有设置任何防反接措施,带电反接可导致传感器损毁,请注意接线顺序,串口屏接口未标注线序,使用串口屏时请注意。</h3>
<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;"><em>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;"><span style="font-size: 12pt;"><strong>代码直接使用案例代码,可自行修改,串口屏代码由于个人时间问题未实装,考虑在后续版本中加上</strong></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;"> </h3>
<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;"></em>6、大赛LOGO验证</h3>
<hr class="horizontal-splitline normal-bold-2" />
<p style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/a21295a81bb6443c9a6a76966d55d7f4.jpg" alt="" width="1383" height="1014" /></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/oshwhub/3ca12756d66945b7ad8b771fbe3e1fa2.jpg" alt="" width="1353" height="1003" /></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>
<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>
</div></p>
评论(0)