版本协议

GPL 3.0

专业版
#第七届立创电赛#N32G430电流表及快充采样

创建时间:1年前

描述

<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> <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;">采用国民技术MCU N32G430实现的电流表,支持电压、电流、功率、纹波及电流波动图形显示。</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;">学习Keil5编写单片机不久,很多不太明白,通过几次参加立创训练营,真的觉得能学到很多东西,比独立学习能更快,这是为什么呢?我觉得可能有以下几个方面的原因:</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、有厂商的专业人员指导,能够快速的入门学习,并且能提供有效的技术支持;</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、有立创的各位有经验大佬帮助,有问题能够获取帮助,并且还有立创提供的元器件优惠卷、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;">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;"> </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、电压、电流显示、功率显示,这个比较简单,<strong><span style="color:#169179;">已经实现</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;">2、电压纹波显示,<span style="text-decoration:line-through;">目前也实现了</span><span style="color:#ba372a;"><span style="text-decoration:line-through;">基本功能</span>,<span style="color:#169179;"><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;">3、充电协议分析,暂时想通过D+D-进行协议判断,但实测好像非常不准确,不知道充电协议具体应该怎么分析,<span style="color:#e67e23;">有待完善</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;">4、电流波动图,<span style="text-decoration:line-through;">正在</span><span style="color:#236fa1;"><span style="text-decoration:line-through;">完善过程中</span>,<strong><span style="color:#169179;">已实现</span></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;">5、功耗统计,这个功能虽然简单,但目前对这个单片机不太熟悉,得到的每次时间有些误差,所以<span style="color:#236fa1;">还在优化</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;">6、快充诱骗,想法是通过D+D-实现,但后面发现N32G430没有DAC功能,所以目前是放弃了。</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:24px;color:#e03e2d;">想要的功能大部分都已实现,程序代码也放在了附件,需要自取了。</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;"><strong><span style="font-size:18px;color:#236fa1;">功能简单说明下:</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;"><strong><span style="font-size:18px;color:#236fa1;">1、Boot/SEL按键切换不同功能页,第一页是电压电流显示,第二页是电压纹波,第三页是电流波动情况;</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;"><strong><span style="font-size:18px;color:#236fa1;">2、BTN1/+、BTN2/-在第二页和第三页调整显示的范围,放大或缩小波形图。</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;"><strong><span style="font-size:18px;color:#236fa1;">不明白的可以相互讨论,感谢大家的关注!</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> <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;">打回来的PCB,改过一版了,因为第一版发现OLED焊接屏排线留的孔放不进去^-^</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/A0tZREUofjkoySQYOTeke1CjrpedpbrLq6epYxhU.jpeg" alt="" width="1024" height="768"></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;"><img src="//image.lceda.cn/pullimage/cc9uzFySMfC99s1ZnsU5XPoODcMvWiUw9NASvivH.jpeg" alt="" width="1024" height="768"></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/4P85wSjLRfLkRNXSxODAPVGHyqLmRf2oJIGE67Br.jpeg" alt="" width="1024" height="768"></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;"><img src="//image.lceda.cn/pullimage/7CapGVooJyhroq8EimZ9iIQzY7Uv5KEJBdlHYql2.jpeg" alt="" width="1024" height="768"></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/YWeVQg8fTSMIUoastzAW1D0E8Im9a5hXC9XTDKkl.jpeg" alt="" width="1024" height="768"></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/3QQkserMaztSWson1woQOTPitKekZHNztPO1dF8K.jpeg" alt="" width="1024" height="768"></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/f8IOWXD6MWZLi6R5IYHFn0MoV0bfnGvxnZpKqeBf.jpeg" alt="" width="1024" height="768"></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/PWB1ebZwHgrAbcdRhvwrCh0SBslOIV8JN7OXCVLS.jpeg" alt="" width="1024" height="768"></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;"><img src="//image.lceda.cn/pullimage/en1c71jc70fwhoI3XcSMihqO1TZxqmIckY9igCCq.jpeg" alt="" width="1024" height="768"></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;"><img src="//image.lceda.cn/pullimage/YZoH5znzglczynxkrfSOk7bMCl1IYHc1ZfNcLa73.jpeg" alt="" width="1024" height="768"></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;"><img src="//image.lceda.cn/pullimage/fX1Lzyv57Cm7WxbS4ErBBaQuU6kqCQH9gLKm3oAY.jpeg" alt="" width="1024" height="768"></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;">参考训练营项目,参考项目链接: <a href="/limengmeng12345/ji-chu-ying-usb-dian-ya-biao#P1" target="_blank">https://oshwhub.com/limengmeng12345/ji-chu-ying-usb-dian-ya-biao#P1</a></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;">GPL 3.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;"> </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;">*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;"> </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;"><span style="color:#95a5a6;"><img src="//image.lceda.cn/pullimage/IU6rUMiKT5yVg8WtxVan4PeIW6mhjIOveg2Pe2vm.png" alt="" width="690" height="448"></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;">这里选的是使用LDO实现供电,为了兼容快充,选的是GM7333,这款LDO支持的输入电压达到了 40V,并且支持250mA的电流输出能力,完全满足了国民这款MCU的供电需求,并且外围电路简单,比使用降压电路更方便,体积也更小巧。</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;">(2)主控电路</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/K6L1dXog5jVHXvH3YiAHVevL7By7e5449jhVpMeV.png" alt="" width="712" height="611"></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;">主要使用了四路ADC,用于采样电压、电流和D+、D-的电压,使用BOOT0和PB0、PB1三个IO口用于按键,RST也引出,方便调试时使用。</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;">然后就是串口和SWD烧录口,PB6 PB7做为LED,方便程序观察状态,毕竟是新手,多留个状态灯也好判断系统有没有正常运行,后面也可以做为功能灯使用。</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:24px;">(3)电流采样</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/Mf1ixbq6p61M3lgyNTM5gWuwe4EafszaJadAU6cp.png" alt="" width="296" height="183"></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;">    电流采样使用的是INA199A1做差分放大,其实也可以使用运算放大器,但最好是精密运放,但差分电阻精度要高,不然不同硬件误差比较大,比较麻烦,并且元件较多,成本上不存在优势,所以还是使用专门的电流放大的比较方便。</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;">    这里要注意的是型号后面这个A1,A 是指精度 为1.5%(A B精度都是1.5%,C是1%,具体可以看手册),1 是指放大倍率为 50倍,2 为100倍,3为200倍,<span style="font-size:16px;color:#236fa1;">即A1就是指放大50倍,精度为1.5%</span>。选型主要是与采样电阻及MCU的采样电压相关,详细不讲了,如果想要了解可以相互讨论。</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:24px;">(4)电压采样</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/yOSwgP3Csvk91gkKPBp1Zi29GzEuxWFcC8qJ5dUh.png" alt="" width="268" height="215"></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:10采样,就是最后算出来的值 乘以10就是实际电压了,D+ D-是1:3,结果乘以3就可以了,分压计算通过 <span style="font-size:18px;">V</span><span style="font-size:12px;">adc</span>=<span style="font-size:18px;">V</span><span style="font-size:12px;">IN</span>*<span style="font-size:18px;">R2/(R1+R2),<span style="font-size:14px;">R2是低侧电阻,就是连GND的哪个。<span style="color:#e03e2d;font-size:18px;">注意:分压后最大电压不能超过供电电压(这里是3.3V)即可,不然始终是3.3V,就不能得到真实值了。</span></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> <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;">(5)OLED驱动电路</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/3kt6dosM7eLnQOndp6L3KjXAE7I15W44ErPsGGaE.png" alt="" width="758" height="467"></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;">我这里使用是30P焊接OLED屏,支持SSD1306和SH1106,我自己使用的是SH1106白光的0.96屏,这个屏某鱼上比较便宜,才4-5元一个,可以考虑多买一些放着,使用方便。当然也预留了OLED外接接口。</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 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;">就拿DMA实现4路ADC采样来说下吧,这个也是官方示例有一部分,然后遇到一个问题就是不知道应该实现是ADC中断后去处理数据还是要DMA处理完数据后去处理数据,在群里问,居然说去找个电路去学习下。没办法后面跑去找国民哪边的技术问,因为是初学,什么都不明白,不过实际操作一次后就能明白具体是什么作用,应该在哪处理。</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/zOwXiZ3GBKXlN4zXg1gFRHiDSl2JLrDZrZXeyVLJ.png" alt="" width="767" height="205"></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/PlJnjsBmpTZNJZwIzmKPm2dDWzxlQ49Zx3boZFj4.png" alt="" width="802" height="489"></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/neWPwctEDf3p76Yfy05HnlFjt5bFj4Nwvu6UOy4U.png" alt="" width="673" height="562"></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 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;"> </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/RF5ESbggs3Ml0VVD1U29GjCpz6JqmgrkdCQ4pyrF.jpeg" alt="" width="1024" height="768"></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;"> </p> </div>

文档

BOM

暂无

附件

附件名 下载
C9F2336A-8065-4506-B286-5A7A7F5E4B3B.mp4
USBMeter.zip

成员

评论(54)

  • 表情
    emoji
    小嘉工作篇
    小嘉日常篇
  • 图片
成功
工程所有者当前已关闭评论
Marcus_Shooter 回复
<p>666</p>
Chai2008 回复
<p>66666666666666666666</p>
xc777 回复
<p>666</p>
zhaoshaox 回复
<p>收藏</p>
HAHA 回复
<p>6</p>
fengyushiqiao 回复
<p>漂亮</p>
yang_alex 回复
<p>太漂亮了!</p>
SUPREME 回复
<p>怎么参加立创训练营</p>
QQ_QQ 回复
<p>怎么参加立创训练营,太漂亮了!</p>
thinklake 回复
<p>不知道纹波功能参数性能如何</p>
clysgs 回复
<p>学习学习</p>
Huang_94 回复
<p>怎么参加立创训练营</p>
RogerHD 回复
<p>6</p>
OceanHe 回复
<p>来看看,666</p>
msz0986 回复
<p>学习</p>
zgz13 回复
<p>漂亮</p>
lsq2715833252 回复
<p>666</p>
shen_jian 回复
<p>可以</p>
shen_j 回复
<p>可以</p>
Green_Hand 回复
<p>小巧</p>
Norris 回复
<p>666</p>
YuToo 回复
<p>关注下立创EDA的公众号,有训练营上面会发的</p>
HLzw233 回复
<p>补充一下,对于容易发热的器件(ldo)封装大小决定实际可过电流</p>
YuToo 回复
<p>没明白,这里使用LDO是完全可以的,因为本身MCU功耗非常低,只有几十mA,再加上OLED、LED也非常低测试时只有不到20mA,不存在什么发热问题。<br><br/>另外也可以算下采样电阻的过流问题,假设电流10A,在0.01欧电阻上的压降就是,0.01欧<em>10A=0.1V,P=UI=0.1</em>10=0.1W,而2010的标称功率是750mW,只有七分之一不到,所以应该也没有出现发热情况。<br><br/>只是受到INA199A1 50倍的放大倍率问题,可测最大电流范围应该是受到限制,理论最大电流应该在6.6A,因为再大也显示不出来了。</p>
阿桔 回复
<p>支持一下</p>
HLzw233 回复
<p>那个电阻消耗的功率应该是P=I*IR,实际不能过10A电流,还有根据放大倍数,实际输出电压大于IO口耐压</p>
YuToo 回复
<p>功率=电压*电流,这个是直流电,没有什么功率因数之类的</p>
YuToo 回复
<p>还有根据放大倍数是不错,但输出的最大电压不会高于工作电压,供INA199的工作电压只有3.3V,就是最高不会高于这个的,这个和运放的原理是一样的</p>
NongFu 回复
<p>不错,小巧方便,支持一下</p>
HLzw233 回复
<p>哇,功率可不止是电流乘电压啊,这里用的是采样电阻,电压需要另外计算,采样电阻消耗的功率就是电流平方乘电阻,还有我没说什么功率因数</p>
YuToo 回复
<p>不明白,为什么是电流平方啊。这里说的是采样电阻的功耗,我们应该讨论的是同一个问题吧,采样电阻上的功耗不应该就是流过的电流乘以上面的压降吗?整个电路应该只有这里最有可能发热吧。如果说LDO的话,这个应该不可能发热了,只有十分之一的额定电流呢!</p>
HLzw233 回复
<p>那个LDO我后面回复没有提,就提了采样电阻可能我没详细说(如果我详细说会让我觉得自己啰嗦)</p>
YuToo 回复
<p>怎么会,不懂才问啊,毕竟我都只是爱好,半路出家,很多东西也是一知半解的</p>
zhuzhantanke 回复
<p>算错一个数,如果是10A电流,0.01欧采样电阻的功耗应该是1W,不是0.1W。</p>
YuToo 回复
<p>^-^口误</p>
cxn520 回复
<p>666</p>
eyekey 回复
<p>不错</p>
邓子言 回复
<p>编译好的hex固件可以发一下吗?381153580@qq.com, 感谢!</p>
YuToo 回复
<p>可以的,已发</p>
邓子言 回复
<p>收到,感谢大佬!</p>
邓子言 回复
<p>大佬,外壳用上螺丝的吗?如果有是什么规格的呢?谢谢</p>
YuToo 回复
<p>没有用螺丝,可以打胶粘,目前我自己使用时没粘,自己FDM打的,比较毛糙,直接盖上也不容易掉</p>
邓子言 回复
<p>好的,感谢!!</p>
ty518 回复
<p>快充最高20v输入时,LDO降压3.3v,发热情况如何</p>
YuToo 回复
<p>未测试,不过正常耗电才不到30mA,负载很低,所以应该不会有发热的情况出现</p>
ty518 回复
<p>好的,谢谢</p>
邓子言 回复
<p>老哥外壳文件方便发一下吗?381153580@qq.com, 感谢!</p>
lansejuren 回复
<p>请问这个用什么软件烧录进去?</p>
YuToo 回复
<p>PWLink、JLINK都可以的</p>
lddhwdd 回复
<p>编辑好的升级固件麻烦发一下 3299247585@qq.com</p>
Alis88262 回复
<p>没有编辑好的升级固件?哪位能麻烦发一下 35320502@qq.com</p>
YuToo 回复
<p>因为看到多人想要编译好的固件,不方便一个个发,我就上传到gitee上了,下载地址:<a href="https://gitee.com/uYuToo/usbmeter/releases" target="_blank">https://gitee.com/uYuToo/usbmeter/releases</a></p><br/><p>@Alis88262 @lddhwdd</p>
YuToo 回复
<p>请看置顶贴</p>
YuToo 回复
<p>请看置顶贴</p>
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