描述
<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;"><span style="font-size:36px;">1、项目功能介绍</span></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:16px;">#第七届立创电赛#暑期训练营电流表,可以检测usb2.0工作时电流电压和功率。</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="font-size:16px;">基于N32G430C8L7+INA199制作的USB电流表,精度1%。主要还是暑期训练营实例中功能的复现,功能上并未做太大更改!</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;"><span style="font-size:36px;">2、项目属性</span></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:16px;">项目主要还是暑期训练营实例中功能的复现,功能上并未做太大更改!相关贵重元器件进行了更换,按照我自己目前有的元器件进行了替换。</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;"><span style="font-size:36px;">3、开源协议</span></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:18px;">GPL3.0</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;"><span style="font-size:36px;">4、硬件部分</span></h3>
<h2>MCU部分</h2>
<p><span style="font-size:16px;">N32G430C8L7相关引脚配置,相关电容应参考设计手册中合理放置!也可打开本工程pcb参考放置方式。</span></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;"> </p>
<img src="//image.lceda.cn/pullimage/CS0nEarsVoBzgTu8Vck7DJErREMvtwpkZ2IuUeZv.png" alt="" width="509" height="488"><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:24px;">实际焊接中要注意1号引脚的位置,应如下图所示</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/kJh9bRoqHfZQQh7QP2fuRjdQedCXHLWr5sxPD39f.png" alt="" width="377" height="373"></p>
<h2>复位电路、BOOT电路</h2>
<p><span style="font-size:18px;">两电路参考直播莫工操作,H1,H2使用两对顶层焊盘作为触点</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;"><img src="//image.lceda.cn/pullimage/4wQVCYCFTXZcR8dDcrENM9GeyK1pEUfGqkg3FXeE.png" alt="" width="320" height="229"><img src="//image.lceda.cn/pullimage/l35S9YTJpTiXrXDYMjENQDhciZY7X1GiCVMKh1N9.png" alt="" width="277" height="230"></p>
<h2>烧录与0.91寸oled接口</h2>
<p><span style="font-size:18px;">本次采用的是创芯工坊的PWLINK2与keil mdk通过swclk与swdio进行下载调试</span></p>
<p><img src="//image.lceda.cn/pullimage/qdnCyLTdK9oLYf7iMaRokLstQW0mVaiwpRYuDy5U.png" alt="" width="327" height="230"></p>
<h2>电流采样</h2>
<div>INA199A1增益:50V/V电压输出、电流分流监控器(也称为电流传感放大器)常用于过流保护、针对系统优化的精密电流测量或闭环反馈电路。该系列器件可在独立于电源电压的 –0.3V 至 26V 共模电压下感应分流电阻器上的电压降。该系列器件采用零漂移架构,偏移较低,因此在进行电流感测时能够将分流电阻器两端的最大压降保持在最低 10mV 的满量程。这些器件由 2.7V 至 26V 的单个电源供电,消耗的最大电源电流为 100µA。所有版本的额定温度均为–40°C 至 125°C</div>
<div>PCB布局时采样电阻应注意放置和走线方式,参考手册中开尔文走线。</div>
<div>购买原件时要注意增益的不同(本次程序使用的是x1:50V/V)
<div>INA199x1:50V/V</div>
<div>INA199x2:100V/V</div>
<div>INA199x3:200V/V</div>
</div>
<p><img src="//image.lceda.cn/pullimage/Eru3iEi9LgPaIou7qtDtuQHKJ2e8XfVo8f1JvWQU.png" alt="" width="268" height="219"><img src="//image.lceda.cn/pullimage/l7TU85MYzXSjRPQrdh0c1CXxuZ47IcfCdwkKg3ZP.png" alt="" width="270" height="158"></p>
<p>焊接时同样要注意一号管脚位置</p>
<p> </p>
<p><img src="//image.lceda.cn/pullimage/hDZCburkFnk7P10e6BMu9gHnCI5LMyHyh0NOlswy.jpeg" alt="hDZCburkFnk7P10e6BMu9gHnCI5LMyHyh0NOlswy.jpeg" width="257" height="257"></p>
<h2>3.3V供电转换</h2>
<p><span style="font-size:18px;">因本次电路布局和成本的限制C2,C3直接采用mcu去耦电容中的4.7uf的电容</span></p>
<p><img src="//image.lceda.cn/pullimage/p0uFUdsgmKDH0aC7ez6PqFpFckkBYMqVyWdBoQSq.png" alt="" width="276" height="169"></p>
<h2>电压采样</h2>
<p><span style="font-size:16px;">直接使用mcu内部电压转换部分与电阻分压采集</span></p>
<p><span style="font-size:16px;">由于本工程boom仅购买到90.9k电阻,因此要对程序进行适量调整才能保证显示的精度</span></p>
<p><img src="//image.lceda.cn/pullimage/EVeiAIPHzHIwJeMh3cXuYq9dbIRu4UjAWiRiIWpN.png" alt="" width="449" height="184"></p>
<h2>外部晶振</h2>
<p><span style="font-size:18px;">考虑到后期可能会对电路进行升级迭代,本工程增加了8mhz的外部晶振电路</span></p>
<p><span style="font-size:18px;">如直接使用工程程序,可对晶振电路采取不焊措施</span></p>
<p><img src="//image.lceda.cn/pullimage/rH5cx1T4d0LCtlRjaWwa6klnFOBU2SGqecUzg5uR.png" alt="rH5cx1T4d0LCtlRjaWwa6klnFOBU2SGqecUzg5uR.png" width="404" height="312"></p>
<h2>注意事项</h2>
<p><span style="font-size:16px;">boot和复位可参考本工程放置位置,方便调试和检查</span></p>
<p><img src="//image.lceda.cn/pullimage/ke7VSwUYarLLqgDvbyMd0KpcE5DsJ2Cni2zLCIKM.png" alt="ke7VSwUYarLLqgDvbyMd0KpcE5DsJ2Cni2zLCIKM.png" width="402" height="240"></p>
<p><span style="font-size:18px;">若相关无用引脚干扰走线可适当编辑元件使其方便走线和焊接</span></p>
<p> </p>
<p><span style="font-size:36px;"><img src="//image.lceda.cn/pullimage/Po3RBRAlz41bVXuuBkrbm17KRaEMAbjsRUoAwRuc.png" alt="Po3RBRAlz41bVXuuBkrbm17KRaEMAbjsRUoAwRuc.png" width="765" height="216"></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;"><span style="font-size:36px;">5、软件部分</span></h3>
<hr class="horizontal-splitline normal-bold-2"><h2>注意事项</h2>
<p>如果采样得到的电压或电流不准,可以根据实际值修改main.c文件中VOLTAGE_FACTOR和CURRENT_FACTOR的值</p>
<p><img src="//image.lceda.cn/pullimage/kiZutKGwgXo7uLcCuaqtD0Tj2tCjAEMuPNIWTsRI.png" alt="kiZutKGwgXo7uLcCuaqtD0Tj2tCjAEMuPNIWTsRI.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;"> </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;"><span style="font-size:36px;">6、BOM清单</span></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/TE5CfqZ2Mcq5SdcUR4lhlCxrCV5jxqyH0Apc3kmZ.png" alt="TE5CfqZ2Mcq5SdcUR4lhlCxrCV5jxqyH0Apc3kmZ.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;"><span style="font-size:36px;">7、大赛LOGO验证</span></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;"><img src="//image.lceda.cn/pullimage/WxUhLQP92CcTkZhpyct7Yh9zEbXCuoXlRZlGOXgb.jpeg" width="469" height="352" alt="WxUhLQP92CcTkZhpyct7Yh9zEbXCuoXlRZlGOXgb.jpeg"><img src="//image.lceda.cn/pullimage/bKKwPkMtjvDJyHAmRP1wCle5vv9ISJWV1HxPLQxr.png" width="469" height="351" alt="bKKwPkMtjvDJyHAmRP1wCle5vv9ISJWV1HxPLQxr.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;"><span style="font-size:36px;">8</span><span style="font-size:36px;">、</span><span style="font-size:36px;">效果演示</span></h3>
<hr class="horizontal-splitline normal-bold-2"><p style="line-height:1.8;"> </p>
<h2>立创电赛:《暑期训练营电流表》-效果展示</h2>
<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;"><span style="font-size:16px;"><span style="font-size:18px;"><strong>图片展示</strong></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;"><img src="//image.lceda.cn/pullimage/O6AKgjUhJis1xDrEO7Prbz3ZEVdJXHtI8XIKWzNg.png" alt="O6AKgjUhJis1xDrEO7Prbz3ZEVdJXHtI8XIKWzNg.png" width="434" height="203"><img src="//image.lceda.cn/pullimage/nCWahA1bS7mRVKoIxE5jlQeq2h5wFTzwmffFFQZJ.jpeg" alt="nCWahA1bS7mRVKoIxE5jlQeq2h5wFTzwmffFFQZJ.jpeg" width="302" height="226"></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:18px;"><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" style="line-height:1.8;"><span style="font-size:16px;">见附件</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="font-size:16px;"><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" style="line-height:1.8;"><span style="font-size:16px;"><a href="/limengmeng12345/ji-chu-ying-usb-dian-ya-biao" target="_blank">【训练营官方案例】USB电流表 - 嘉立创EDA开源硬件平台 (oshwhub.com)</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;"><span style="font-size:16px;">清晰演示视频链接:<a href="https://www.bilibili.com/video/BV1LN4y1V74m?spm_id_from=333.999.0.0&vd_source=145e667b7ee6ccd915b6bffebb3ae4b5" target="_blank">嘉立创2022暑期训练营usb电流表_哔哩哔哩_bilibili</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;"><span style="font-size:16px;">附件中程序为测试焊接是否有问题使用,(单独点亮led)</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;"> </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>
-
123.mp4
-
202208161721 (3).mp4
评论(3)