标准版
#第七届立创电赛#USB电压电流表+TTL二合一

创建时间:2年前

描述

<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;"><span style="font-size:24px;"><strong>Pre: 先上实物图!</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;"> </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/5SeFHmPB9Kt6KJ2bIDmkB6WvPBwnHawuv2e7eE9V.jpeg" alt="" width="800" height="600"></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/7Ep9pHw1xvkXRrdCFdEixLQDg2hhEteiObWrIA8U.jpeg" alt="" width="800" height="600"></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/PmygHOLoEcKMONRISEM56ldG6qjkPDCIXfATKpD4.jpeg" alt="" width="800" height="600"></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;"> </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;">手里有个USB-TTL,还有个USB电流表,这俩家伙长得有点像,咱今天就给他合二为一!</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;">*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;">第一次参加电赛,电压、电流测量部分采用的官方推荐的解决方案,然后额外添加了USB串口芯片,实现无需其他工具即可进行固件烧录工作。</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;"> </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;">本项目GPL3.0开源。</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="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.本次使用的是国民技术提供的N32G430C8L7作为主控,CH340E作USB转串口芯片,电流采样芯片使用的INA199A1DCKR。</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整体较小,为方便布局使用了XC6220B331MR-G作为5V-3.3V的LDO,传统1117的封装太大,会影响布局。</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.显示部分的是使用的是0.91寸4P I2C的白色OELD屏幕模块.</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.关于电压、电流和主控部分设计不说太多,直接参考的官方设计方案,这里主要说一下USB串口芯片部分,本项目使用的是CH340E,340E采用的MSOP-10封装,体积非常小,能够满足布局需求。</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>重点</strong>说一下<strong>R5</strong>和<strong>R6</strong>,这俩个电阻主要用于连接CH340E和N32,在<strong>固件烧录完成后务必要去掉这两个电阻</strong>,不然会影响USB-TTL的正常工作。</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/9qJCITaHFMIXemUbkxyqjv4h4aqlINIIAJX9haVe.jpeg" alt="" width="623" height="280"></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;">1.软件部分直接使用官方的固件即可,官方项目地址: <a href="/limengmeng12345/ji-chu-ying-usb-dian-ya-biao" target="_blank">https://oshwhub.com/limengmeng12345/ji-chu-ying-usb-dian-ya-biao</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;">2.烧录说明:</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;">      由于已经集成了USB串口芯片,烧录时只需要先短接BOOT焊盘,然后再上电即可(也可以先上电,然后短接BOOT并保持,再短接一下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;"> </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/ovb3wRwUddzbOnowYsJmiT6m3Jkw3NOO2IZnTDU6.jpeg" alt="烧录说明" width="700" height="500"></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>Nations MCU Download Tool V1.2.2  , 放在附件了。</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;"><img src="//image.lceda.cn/pullimage/rRooHWxx5ILzjUstLRz7hl8Rqr684S7OKKxBYqcF.jpeg" alt="" width="800" height="524"></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;">烧录工具使用方法非常简单,按要求短接BOOT后上电,N32即进入下载模式,在工具内接口选择“USART”,</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>选择CH340对应的COM口</strong>(右键点击我的电脑,管理--设备管理器--端口,即可查看,我电脑上对应的是COM3),</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>连接设备  </strong>—> <strong>浏览</strong>(选择官方给的固件)<strong> </strong>—> <strong>下载    </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;"><img src="//image.lceda.cn/pullimage/U2qiFuTITfPj2NzsqQlXZfUhwBuj6ghmA4DpYqXh.jpeg" alt="" width="800" height="438"></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> <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;"> </p> <p style="line-height:1.8;">最后,在验证一下~~~</p> <p style="line-height:1.8;"> </p> <p style="line-height:1.8;"><img src="//image.lceda.cn/pullimage/wEP9nZHpMnB21bBJZfHyN53evNe72ZdfgGiK5pEP.jpeg" alt="" width="800" height="600"></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>

文档

原理图

PCB_#第七届立创电赛#USB电流表+TTL二合一

BOM

ID Name Designator Footprint Quantity Manufacturer Part Manufacturer Supplier Supplier Part
1 短接焊盘 BOOT,RST 0603 2
2 22u C1,C3 C0603 2
3 0.1u C2,C4,C5,C6,C8,C9,C10,C11,C12 C0603 9
4 4.7uF C7 C0603 1
5 USB-CONN-AM90 CN1 USB-A-TH_AM90 1
6 HDR-F-2.54_1x4 H1,H2 HDR-F-2.54_1X4 2
7 19-217/BHC-ZL1M2RY/3T LED1,LED2 LED0603-R-RD_BLUE 2
8 XC6220B331MR-G Q1 SOT-25-5_L3.0-W1.8-P0.95-LS3.0-BR 1
9 0.01Ω R1 R2512 1
10 R2,R5,R6 R0603 3
11 91kΩ R3 R0603 1
12 10kΩ R4,R7,R8,R9,R10 R0603 5
13 INA199A1DCKR U1 SC-70-6_L2.2-W1.3-P0.65-LS2.1-BR 1
14 N32G430C8L7 U3 LQFP-48_L7.0-W7.0-P0.50-LS9.0-BL 1
15 U-A-24DS-W-1 USB1 USB-A-SMD_U-A-24DS-W-1. 1
16 CH340E U2 MSOP-10_L3.0-W3.0-P0.50-LS5.0-BL 1

附件

附件名 下载
Nations MCU Download Tool V1.2.2.7z

成员

评论(0)

  • 表情
    emoji
    小嘉工作篇
    小嘉日常篇
  • 图片
成功
工程所有者当前已关闭评论
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