描述
<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;"> 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;"><span style="color: #95a5a6;"><span style="font-size: 14px;">基于ESP32-PICO-D4的USB功率计,<span style="color: #95a5a6;">显示采用0.96TFT彩屏,</span>电压电流采样部分采用INA226/INA231方案,PD监测与诱骗采用FUSB302PD物理层芯片,QC监测与诱骗采用ESP32的ADC与DAC,理论上也支持其他的A口协议,但是手上没有其他的A口通信设备供采集协议的通信过程。</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;"><span style="color: #95a5a6;"><span style="font-size: 14px;">本表基本功能:</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;"><span style="color: #95a5a6;"><span style="font-size: 14px;">1.基本的双向电压电流监测,简易自耗校零,能实时监测D+ D-电压,实时的充电协议(暂只支持PD\QC\DCP\APPLE2.4\AFC)。</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;"><span style="color: #95a5a6;"><span style="font-size: 14px;">2.电压诱骗:QC\QC3的全电压诱骗,PD3.0的FIX\PPS诱骗。</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;"><span style="color: #95a5a6;"><span style="font-size: 14px;">3.软件库仑计,可以计算充电的电量。可以计算充电的电压、电流与实际带负载时间。</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;"><span style="color: #95a5a6;"><span style="font-size: 14px;">4.多种数据记录,可以监测板子温度,充电过程中的最大最小的电压、电流、功率值,平均电压、电流、功率值。</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;"><span style="color: #95a5a6;"><span style="font-size: 14px;">5.带有离线数据继承,可以选择是否继承上次的数据继续记录,防止意外断电数据丢失,同时还可以自动记录并显示5组最近记录的数据,记录内容为电压电流功率的平均值,负载时间,充电的mAh与mWh。</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;"><span style="color: #95a5a6;"><span style="font-size: 14px;">6.本表带有几乎完全的PD逻辑抓包功能与常用PD数据包分析功能,可以监测充电器的PDO,实时显示当前申请的RDO,可以记录并显示通信过程中的每一个数据包,并对常用数据包进行解析。</span></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;">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;"><span style="color: #95a5a6;"><span style="font-size: 14px;">本项目为个人设计,项目的设计有参考其他的开源与闭源方案。</span></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;"> 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;">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;"> </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;"><span style="color: #95a5a6; font-size: 14px;">主控采用ESP32-PICO-D4,外围精简,板子尺寸较小,带有WIFI与蓝牙功能可供后期开发上位机,DCDC可用MP2451(最低运行电压4.25V)/MP2456(最低运行电压3.85V),电流监测芯片可用INA226(最高电压36V)/INA231(最高电压28V),PD监测与诱骗采用FUSB302物理层芯片,A口监测与诱骗直接使用ESP32的ADC与DAC,目前A口协议仅支持QC/QC3,屏幕采用0.96 TFT彩屏,ST7735驱动。</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; font-size: 14px;">焊接注意事项:</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; font-size: 14px;">1.必备工具:一把比较好用的小头子络铁(元件间距较小),LED拆焊板/热风枪(焊接LGA、QFN),焊锡丝,焊锡膏,助焊剂,镊子,吸锡带(增加容错率),洗板水(洗按键和板子)</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; font-size: 14px;">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;"><span style="color: #95a5a6; font-size: 14px;"> 2.1 先焊接ESP32与ESP32下方的10k电阻,万用表测试背面屏幕排线引脚对地导通情况,其中有且仅有三个引脚对地导通即为正常(存在ESP32底部焊盘短路屏幕信号线的情况),焊接烧录线,测试串口是否有输出,能否烧录程序,确认焊接没问题取下烧录线。</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; font-size: 14px;"> 2.2 其次焊接FUSB302与两个4.7k电阻,焊接烧录线,刷写iic测试程序检查是否能扫描到iic地址。(对自己焊工有信心能熟练焊接QFN的可以跳过该步骤)</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; font-size: 14px;"> 2.3 然后焊接MOS与MOS旁的10K电阻,诱骗按键,焊接烧录线,烧录USB表固件,万用表通断档测试诱骗按键两端,在烧录线不接时为断开,烧录线接上时导通即为正常,可以继续下一步。</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; font-size: 14px;"> 2.4 按你的心情焊接剩余 正面 元件(除了两端的Type c口),并注意不要触动上述已经焊好的元件。</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; font-size: 14px;"> 2.5 正面焊接完成后,重复上述的所有测试项,并在IIC扫描中扫描到2个IIC地址,即可继续焊接剩下的Type c口,背面的检流电阻、天线、屏幕。</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; font-size: 14px;"> 2.6 进行成品测试,测试各功能是否正常。</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; font-size: 14px;">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;"><span style="color: #95a5a6; font-size: 14px;"> 3.1 ESP32先给芯片本体四周的引脚上锡(中间的大焊盘不要上锡,若不小心上了锡,应该用吸锡带拖平,然后重新给四周的引脚上锡),然后在PCB上,给PCB上一层助焊剂,用镊子给ESP32四周的焊盘涂上适量的锡膏(注意不要涂到中间大焊盘上),然后用镊子尖,只在中间的大焊盘上点上一丁点焊锡膏。然后将芯片按方向准确放在焊盘上,上加热台,待焊锡熔化之后,轻压ESP32,将多余的焊锡挤出,从加热台上取下,用烙铁拖掉多余的焊锡。(这种方法可以极大的避免连锡虚焊,反正我焊了二三十次没失手过)</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; font-size: 14px;"> 3.2 MOS的焊接,可以不用焊锡膏,用烙铁给MOS本体引脚上锡,然后在PCB上刷一层助焊剂,给PCB上的MOS焊盘上锡,将MOS按方向放置在PCB上,放上加热台,熔锡后用镊子轻推MOS,能自动回位即可</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; font-size: 14px;"> 3.3 INA231的焊接,同样给PCB上助焊剂并用烙铁给PCB上的焊盘上锡,INA231为BGA封装,出场已自带锡球,可以不用给芯片引脚上锡,按方向放在PCB上,放上加热台,熔锡后用镊子轻推INA231,能自动回位即可</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;">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="color: #95a5a6; font-size: 14px;">软件基于vscode platformio的arduino平台,代码实现pd协议层,带有软件库仑计记录充电电量,负载时间,记录并存储5组离线数据。</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; font-size: 14px;">第一次烧录请使用ttl烧录器,后续升级可连接WIFI无线ota升级。</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; font-size: 14px;">固件目前有些许bug和未完工的地方,待稍微完善后公开,亦可私信先获取未完善的固件。</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;">6、BOM清单</h3>
<p> </p>
<p>BOM请以此单或者附件为准,不要看立创给的BOM!!!</p>
<p>BOM请以此单或者附件为准,不要看立创给的BOM!!!</p>
<p>BOM请以此单或者附件为准,不要看立创给的BOM!!!</p>
<p> </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;"><img src="//image.lceda.cn/pullimage/2uoR1CYjmL4IlLx1MNWYZqBnZQig8ZgCeTbLnCBK.png" alt="" width="961" height="444"></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 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/utoseVEK35MwFsxazPKgfJjQVM0Yf03yrB3RqjwQ.png" alt="" width="440" height="188"></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 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;">视频一展示PD诱骗、监测和emarker读取功能</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;">视频三展示QC诱骗</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>
评论(3)