描述
<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;">基于N32G430C8L7+INA199制作的USB电流表,精度1%,串口SPI 0.96寸TFT彩屏显示,很小很漂亮,可以查看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;"><img src="//image.lceda.cn/pullimage/MHfIwXIsp7Q24hWFvIeDEKj6kBde4DwGfC25q9fk.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>整个项目经历了3个版本。</p>
<p> </p>
<p>第一个版本算是练练手,这个版本FPC插座设计在背面,PCB正面开了槽,FPC线穿过槽插到背面FPC插座上,但是问题也随之而来,买的屏幕是插接款,0.5mm间距,FPC插座引脚露出可焊接部分也只有0.5mm左右,不到1mm,比芯片难焊多了,对于我这个新手来说实在难以驾驭,焊费了3、4个FPC插座都没搞定,好在引出了I2C接口,所以这一版只是把训练营的案例跑通而已。</p>
<p> </p>
<p><img src="//image.lceda.cn/pullimage/9XpZ82nTFitmobIjlth1azZsYN8pRzoZBRXC5EuA.jpeg" alt="" width="673" height="816"></p>
<p> </p>
<p>由于之前买了几十片N32G430了,器件费也花了不少了,连3D外壳都画了好长时间了,不想就这么浪费了,于是就着手第二版,同时也买了块鹿仙子铁板烧和焊锡膏。第一版的复位和BOOT按键以及槽实在太占用空间,所以第二版就把按键取消了,换成了测试点,同时为了配合铁板烧,把FPC插座也挪到了正面。改完就打板去了,心想着这次一定没问题了,等待板子的同时,写了串口SPI的程序,把ST7735S的驱动移植到N32G430来。</p>
<p> </p>
<p><img src="//image.lceda.cn/pullimage/2XbCD0oaqP5iaOftotbPJW68AC9XPvgEP3ipue0c.jpeg" alt="" width="664" height="708"></p>
<p> </p>
<p>不得不说铁板烧简直就是神器,第二版的PCB到手后,FPC插座焊接也很顺利,于是就着手调试驱动串口SPI彩屏,这里犯了一个低级错误,第一版的FPC插座在背面,第二版的时候没注意FPC排线顺序,怎么都调试不通,期间屏幕还冒了2次烟,摸着烫手,还以为买到坏屏了,差点就放弃了。后来仔细对照了一下原理图和PCB才发现是自己排线插反了,找到问题后解决起来就方便了,好在屏幕也还没烧坏,只是屏幕背灯那里有一小块不显示,还能用。</p>
<p> </p>
<p><img src="//image.lceda.cn/pullimage/qRM2lV7dfWKMDdsB3WgEiXYFU6jknfi9c2bp4zmz.jpeg" alt="" width="783" height="561"></p>
<p> </p>
<p><img src="//image.lceda.cn/pullimage/KMWsUXU3zlTX3JwITcm0iNPbnSw9MHms8kUumese.jpeg" alt="" width="568" height="809"></p>
<p> </p>
<p>第三版就是在第二版的基础上,调整了FPC插座的方向,又省出了空间,加了一个1x4P排针接口(3V3,PB8,PB9,GND),同时也以测试点的方式引出了PA6、PA7引脚,可以接个蜂鸣器啥的。</p>
<p> </p>
<p><img src="//image.lceda.cn/pullimage/G3BmCdVQbPJL6CUyzxex9p1L4GHEm04KGdGV2SoT.png" alt="" width="1024" height="399"></p>
<p> </p>
<p><img src="//image.lceda.cn/pullimage/9tXrs2orZmRWCm2eftI0SEXoiZgOoHxUpshveeVu.png" alt="" width="1024" height="580"></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><span style="color:#000000;font-size:14px;">GPL3.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;"> </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;">MCU主控部分,电压电流采样,5V转3.3V,TFT屏幕FPC接口,指示灯,SWD下载接口,UART接口,I2C接口等电路。</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/8g29oQnj5OiR5mXdjhtTeEVbLXrgwBAbAuOhgYKT.png" alt="" width="1024" height="722"></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;">* 编译器:ARM Compiler version 5 (-O0)<br>* MDK版本:5.36<br>* 调试器:ST-Link V2</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/SVSqcRfuFguzRfs7f9G7OOYOGNUYdFvcLxJAP5KL.jpeg" alt="" width="787" height="322"></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/oglk35mop2tXzNO3vmF4idqinndtTcZodDHAgIP3.jpeg" alt="" width="878" height="774"></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;">请看下方BOM清单</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/z971OBJExL54Nj9stV3l8UDXxXA0NqYRv3avK0aU.jpeg" alt="" width="1024" height="1200"></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;">* 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>
<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>
评论(1)