描述
<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> 1、项目功能介绍</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;"> 本次训练营的桌面温湿度仪项目使用CH32V208为主控,该MCU带有低功耗蓝牙。该项目仅验证蓝牙可用性,其余功能(如OTA、传感器数据上传等功能)暂未开发。</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 style="line-height: 1.8;"><strong>GPL 3.0 </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;"></em>4、硬件部分</h3>
<p>SHT40电路,将SAD,SCL上拉。上拉电阻按数据手册选用10K。(感谢群友指正)</p>
<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;"><strong><img src="//image.lceda.cn/oshwhub/6c2a216f30e14542a76a4ff1371bacea.png" /></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;">充电期间使用TYPE-C进行供电。电池推荐直接焊接到焊盘。</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><img src="//image.lceda.cn/oshwhub/6252e5ddb7404422af60bcc30f0dcab5.png" /></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;">充电反馈电阻R18参考TP4054数据手册,500mA电池选用2k电阻。换用其他容量电池将R18更换更换为对应阻值电阻。</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/3183cec2cd434e2b87afdf9af83a55f2.png" /></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;"><img src="//image.lceda.cn/oshwhub/16f1407e9ade46b98cdaae6e82e4d9e5.png" /></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;">焊接过程中注意电感缺口处为电感引脚。二极管为1N5819W 元件印有SL注意不要买错。</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;"><img src="//image.lceda.cn/oshwhub/4ebaf604d7f947419780dd0fa7222167.png" /></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;">墨水屏为二手价签屏,需确保显示正常及使用的驱动版本。调试阶段使用树莓派PICO和墨水屏驱动板确认所购买墨水屏使用微雪2.13_V4驱动,再将其移植到CH32V208上。</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/314aa65324a84a9bb192d6f20ebc2523.png" /></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;">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/oshwhub/3f399810593a408b85b25608652ddf0c.png" /></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>5、软件部分</h3>
<p>使用MounRiver Studio进行开发,环境搭建请到<a href="<a href="http://www.mounriver.com/%22>%E6%B2%81%E6%81%92%E5%AE%98%E7%BD%91</a>%E6%9F%A5%E7%9C%8B%E3%80%82</p" target="_blank">http://www.mounriver.com/">沁恒官网</a>查看。</p</a>>
<p>墨水屏驱动代码移植<a href="<a href="https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT%22>%E5%BE%AE%E9%9B%AA2.13_V4%E3%80%82</a></p" target="_blank">https://www.waveshare.net/wiki/2.13inch_e-Paper_HAT">微雪2.13_V4。</a></p</a>>
<p>完整代码:<a href="<a href="https://gitee.com/meng121/meng-project/tree/master/CH32V208%22>CH32V208" target="_blank">https://gitee.com/meng121/meng-project/tree/master/CH32V208">CH32V208</a> · 小梦/mengProject - 码云 - 开源中国 (gitee.com)</a></p>
<p>修改底层接口在Config文件夹,对应IO映射在main.h</p>
<p><img src="//image.lceda.cn/oshwhub/77b404ee0fc6491c81f116746b5ba1b1.png" /></p>
<p>SHT40驱动移植。</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/aa40a58e1a304c52aace98e344b3a786.png" /></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;">1.使用MounRiver Studio创建CH32V208CBU6工程。</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;">2.将下列文件替换到User文件夹。</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;">3.编译,烧录后墨水屏将会刷新。</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;"><img src="//image.lceda.cn/oshwhub/617927ede408490e90b656aaaf700f8e.png" /></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;"></em>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;">FPC为翻盖上接,担心买错推荐买上下接。</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;">墨水屏为2.13黑白双色。</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;">(推荐买整机BLOZI的二手价签,ses的拆下来后还要裁剪排线和加厚会比较麻烦。)</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>7、大赛LOGO验证</h3>
<p><img src="//image.lceda.cn/oshwhub/ad110333ceec4c4ca3ac4bf156bf647b.png" /></p>
<hr class="horizontal-splitline normal-bold-2" />
<p style="line-height: 1.8;"><img src="//image.lceda.cn/oshwhub/a7bc0eb1fb1d41c897ed231ce43509d9.png" /></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> 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></p>
评论(4)