专业版
#第八届立创电赛#基于瑞萨单片机的电池内阻测试仪

创建时间:9个月前

视频

  • 立创电赛:《基于瑞萨单片机的电池内阻测试仪》-功能演示.mp4

  • 立创电赛:《基于瑞萨单片机的电池内阻测试仪》-耐压测试.mp4

  • 立创电赛:《基于瑞萨单片机的电池内阻测试仪》-校准方法.mp4

  • 立创电赛:《基于瑞萨单片机的电池内阻测试仪》-团队介绍.mp4

描述

<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;">电动汽车越来越多,维修保养生产需要测试电池的內阻,而高耐压的电池內阻测试仪价格较高,于是自己设计一个,可以测试400V的高压电池,借助瑞萨R7FA2E1A7单片机的高性能ADC,內阻最大可显示40000字,最小分辨率0.01毫欧,两个量程分别是4欧和0.4欧,4欧档位最小分辨0.1毫欧,0.4欧档位最小分辨0.01毫欧,整机功耗20毫安以下,可测电池內阻和开关电源市电整流后的大滤波电容的ESR,并且不用放电。</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> <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;">原创首次开源</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> <p> </p> <p>GPL 3.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> <p>电源:</p> <p><img src="//image.lceda.cn/pullimage/wedRo4DKFIl6faz1IzTBC3Y8uDRtk1neWtIt58SS.png" alt="" width="1101" height="765"></p> <p> </p> <p>电源采用单节18650电池供电,电源部分包含锂电池充电和保护电路</p> <p> </p> <p> </p> <p>主控</p> <p><img src="//image.lceda.cn/pullimage/UBrp5Oh9J8jQYRhBCrvktIfS7NxJLgoDoPdagI05.png" alt="" width="1200" height="721"></p> <p>瑞萨R7FA2E1A7单片机</p> <p> </p> <p> </p> <p>显示:</p> <p> </p> <p><img src="//image.lceda.cn/pullimage/W9YSqpA1xPgqXs07lSRZcHuMfVeyEE8wypc4iOgL.png" alt="" width="867" height="665"></p> <p>采用COG12864显示</p> <p> </p> <p> </p> <p>pwm滤波电路:</p> <p><img src="//image.lceda.cn/pullimage/fPSBjywmiXWSEPDwPLe7Dr4XqQquX4GTjSGp08Le.png" alt="" width="688" height="513"></p> <p>单片机P400口输出一路1KHZ 方波,进入RC滤波器过滤成正弦波,注R15、R16未焊接,设想用来扩展量程用的冗余设计。</p> <p> </p> <p> </p> <p> </p> <p>恒流和保护电路部分:</p> <p> </p> <p><img src="//image.lceda.cn/pullimage/MTBIrXDiC6udM1ljMJbJO6Lpc6ntxFMZyrVusyNw.png" alt="" width="1198" height="579"></p> <p>1KHZ经过PWM滤波后的正弦波通过C7、R3、R13抬高到VCC的一半进入R10.1跟随器,接着进入恒流电路,R4、R5、R12是电流采样电阻,设置为恒流12毫安。Q1和Q2代替二极管保护运放,C100、C101为隔直电容采用的是安规电容,L1-L10限制电流变化速度增加保护电路可靠性,R11采用线绕电阻防止烧毁,D1 TVS将电压限制在一定范围,整个保护电路可耐压400V,尽管没有火花减小电路但是火花不是太明显。</p> <p> </p> <p>调试:开尔文夹子夹住1欧电阻,用万用表交流毫伏档测1欧电阻两端,电压应为12毫伏左右,波形为标准正弦波。</p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p>测试夹部分</p> <p><img src="//image.lceda.cn/pullimage/1qyGD23Tb5GFjT1htrFRgZSkzW3HmXMbTU2QE6TG.png" alt="" width="603" height="726"></p> <p>采用四线测量排除导线电阻影响,H1、H2一个夹子,H3、H4一个夹子,H1、H3电流回路最好两根线互相缠绕,H2、H4通过C16、C31隔离电池直流并且把正弦波信号抬高1.65V,R18、R38为限流电阻,Q3、Q4、Q5、Q6用三极管代替二级管。</p> <p> </p> <p> </p> <p> </p> <p>放大电路</p> <p><img src="//image.lceda.cn/pullimage/XT4R2jFhoRMGcpTf6ZzfMgla993ehAdHAfuFfETM.png" alt="" width="489" height="576">三运放仪表放大器,放大21倍</p> <p> </p> <p> </p> <p> </p> <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 pap-left-indent-1.6em" style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/z24r3nvPYialgz8feqRnATTiwIaRsUSuR98MqRaA.png" alt="" width="624" height="732">采用先衰减后放大,U4模拟开关控制衰减10倍或直通,U12.2十倍放大电路,最后进入单片机ADC口。</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> <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> <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> <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> <p> </p> <p> </p> <p>程序采用纯汇编编写,编译器ARM-NONE-EABI,可以直接到ARM官方网站下载,也可以自己下载GNU BINUTILS自己编译  </p> <p>编译命令</p> <p><code></code></p> <ol> <li>    ../configure --target=arm-none-eabi --prefix=/home/yjmwxwx/220g/ruanjian/chengxu/arm/bianyiqi/bintuils/</li> <li>    make</li> <li>    make install</li> </ol> <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.s是源代码,1.bin是固件</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;">EMACS编辑器</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/fgBerBM9ZxF7bk5XdZAMCzCrr6XZm0baTJ7UVYVP.png" alt="" width="896" height="699"></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;">编译器,输入make就可以了</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/oF4E3sAKWLtkhcCqTd7fNAVwwX6gWxMmCw5HvWWB.png" alt="" width="896" height="699"></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;">JLINK 命令行调试工具,我用的是JLINK V9 的SWD模式,需要连接四根线到板子,分别是GND、SWDIO、SWCLK、VCC。</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;">型号输入R7FA2E1A7,模式选择SWD</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;"><code>loadbin /home/yjmwxwx/1.bin 0</code></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/1fWEruSFjk5F52fkCN3rc3uiMtNZiaKTzCpVeffg.png" alt="" width="1200" height="875"></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;">软件涉及单片机部分的有IO、GPT、ADC、DTC、DATA FLASH、SCI_SPI几个部分,涉及信号处理的主要是DFT和滑动滤波器。单片机定时器输出一路1KHZ PWM,另外一个定时器设置25K频率触发ADC采样,采集的数据通过DTC传输250点到RAM,SYSTICK定时器设置0.01秒中断一次,进入中断先算250点的DFT,得到实部虚部各进入300点滑动滤波器,得到的数据还需要旋转相位用来只显示阻抗的电阻部分。</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;">GPT定时器设置25K频率用来触发ADC,SYSTICK定时器设置0.01秒中断一次处理ADC采集的数据。</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;">定时器输出1KHZ PWM</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/ctJ6xlxOv2HQv0zMK18a2A3BgiIm21ocG5iYXrgx.png" alt="" width="808" height="554"></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;">ADC设置,通过定时器触发ADC采样</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/CPCtHQpM53hB5PQElHslFUqSTpmQObLKyT5q9k2I.png" alt="" width="634" height="464"></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采样的定时器设置25K频率,另外设置SYSTICK定时器0.01秒中断一次处理ADC采样数据</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/5QNjfjNVHJBR1yMu60Sd47WRxNyzypXB2m2pChDf.png" alt="" width="814" height="754"></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;">设置DTC传输ADC采集到的数据,一共传输250个32位循环模式,25K采样频率采集250点保证采集到的数据相位锁定方便后面处理采集到的数据。</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/8S0QQq7nA7pjZIn8MkGrQUn9UDWWuLHBQUU3hiuB.png" alt="" width="723" height="702"></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;">进入SYSTICK中断后先算DFT得到实部虚部,再把这两个数据各自放到300点滑动滤波器</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/XUD2aMBYkNTxzDGcS340fs4r3py1Spzl4jpMb90h.png" alt="" width="435" height="514"></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/iOfFo8vEsqb1fynHs4qnVvhanjpfggiVWBsTWnfN.png" alt="" width="722" height="823"></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;">DFT计算一部分程序</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/8bhXGVS9Mn5v2K5kZtdKwO2vRvIpDY7BvYyyQwGz.png" alt="" width="601" height="629"></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;">DFT计算用COS和SIN查询表生成程序,格式为Q15定点数,N=500是数据点数,M=10是算第10个点。采样率25000HZ除250点=100HZ,每个点100HZ,第10个点就是我们需要的1KHZ</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;"><code></code></p> <p>#include <stdio.h><br>#include <math.h><br>#include <stdlib.h><br>void main() {<br>  float m,pi,sr,si;</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;"><code></code></p> <p>  int rr,ii, n,i;<br>  n=500;<br>  m=10;<br>  pi=3.141592653;    <br>    for(i=0;i<n;i++){<br>       sr=cos(2*pi*i*m/n);<br>       si=-sin(2*pi*i*m/n);<br>       rr=sr*0x8000;<br>       ii=si*0x8000;<br>       printf("0x%04X,0x%04X,",rr,ii);<br>}<br>    printf("\n");<br>}</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;">通过DTC传输到内存的数据通过OCTAVE显示出来,注意显示是512点,DTC传输最大256个32位,就算设置传输250点也会占用内存256个32位,前面6个32位是无用数据。</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/FSLvLmZ4uPzKslcWfRUh4LuKzMmSMbDEXmukAeYN.png" alt="" width="1222" height="707">上面数据用OCTAVE FFT功能计算后,可以看到第10个点幅度最高就是我们需要的1KHZ</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/VSHnTSxyNVRLLn2NYo3SyeD7NsjgUdGXi3qTG5Ws.png" alt="" width="1236" height="683">ADC采集到的数据</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;"><code></code></p> <p>a=[02046   02046   02045   02046   02045   02045   02042   02042<br>02039   02039   02032   02033   02451   02452   02405   02407<br>02339   02342   02257   02260   02165   02168   02065   02070<br>01962   01966   01860   01863   01765   01769   01689   01691<br>01638   01640   01618   01619   01627   01626   01661   01660<br>01718   01715   01793   01790   01881   01877   01977   01973<br>02079   02076   02182   02178   02283   02279   02369   02366<br>02432   02429   02468   02467   02473   02473   02450   02452<br>02405   02407   02338   02341   02257   02259   02165   02168<br>02065   02069   01962   01966   01860   01863   01765   01769<br>01689   01691   01639   01640   01619   01619   01627   01626<br>01661   01661   01719   01715   01793   01789   01880   01876<br>01978   01973   02079   02076   02182   02179   02282   02278<br>02369   02367   02432   02430   02467   02466   02473   02473<br>02451   02453   02404   02406   02339   02341   02257   02260<br>02164   02168   02065   02069   01962   01966   01860   01863<br>01765   01769   01689   01690   01639   01640   01618   01617<br>01627   01627   01662   01659   01719   01716   01793   01790<br>01881   01877   01977   01974   02079   02075   02182   02179<br>02282   02279   02369   02366   02432   02430   02468   02467<br>02474   02474   02451   02452   02405   02406   02339   02342<br>02257   02260   02165   02168   02066   02069   01962   01966<br>01860   01864   01766   01768   01688   01690   01639   01639<br>01618   01618   01627   01627   01662   01660   01718   01716<br>01793   01790   01881   01877   01977   01973   02078   02075<br>02182   02179   02282   02279   02368   02365   02431   02429<br>02468   02467   02473   02473   02450   02452   02405   02408<br>02339   02341   02257   02260   02164   02168   02066   02069<br>01962   01966   01859   01863   01764   01768   01689   01691<br>01638   01640   01617   01618   01627   01626   01661   01660<br>01717   01716   01794   01790   01880   01877   01976   01973<br>02080   02076   02182   02178   02282   02278   02368   02366<br>02433   02430   02467   02466   02473   02473   02451   02451<br>02405   02406   02338   02341   02257   02260   02165   02169<br>02065   02068   01963   01966   01860   01863   01765   01768<br>01688   01691   01639   01640   01618   01618   01626   01625<br>01661   01660   01718   01716   01793   01790   01880   01878<br>01977   01973   02079   02075   02182   02179   02282   02279<br>02369   02365   02432   02430   02467   02466   02474   02474<br>02451   02452   02405   02406   02338   02341   02257   02260<br>02165   02168   02065   02069   01963   01966   01861   01864<br>01765   01768   01689   01691   01639   01641   01619   01619<br>01626   01626   01661   01659   01718   01716   01793   01790<br>01880   01876   01977   01974   02080   02076   02184   02174<br>02288   02284   02369   02365   02433   02430   02479   02466<br>02472   02473   02451   02452   02406   02407   02339   02341<br>02259   02260   02164   02167   02065   02069   01962   01966<br>01860   01864   01765   01767   01688   01691   01638   01636<br>01617   01618   01624   01628   01661   01659   01717   01715<br>01790   01788   01879   01876   01975   01972   02082   02074<br>02180   02177   02281   02277   02367   02364   02431   02430<br>02465   02457   02471   02470   02453   02450   02402   02404<br>02338   02340   02255   02253   02163   02166   02064   02068<br>01963   01964   01858   01862   01764   01766   01687   01689<br>01637   01640   01615   01616   01624   01619   01659   01659<br>01728   01714   01790   01787   01879   01875   01975   01971<br>02077   02073   02180   02176   02278   02276   02366   02364<br>02429   02427   02465   02464   02471   02471   02449   02449<br>02402   02404   02339   02339   02255   02258   02162   02166<br>02062   02067   01960   01964   01859   01861   01763   01765<br>01685   01688   01637   01637   01618   01616   01624   01623<br>01659   01658   01717   01714   01791   01787   01878   01875<br>01975   01971   02073   02073   02179   02178   02280   02289<br>02367   02363   02430   02427   02466   02468   02472   02472]</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;"><code></code></p> <p>b = reshape(a',1,512)<br>b = b-2048<br>c = 0:511<br>plot (c,b)</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;"><code></code></p> <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;">滤波后的实部和虚部还需要旋转下相位,因为测电池內阻只显示阻抗的电阻部分</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/pRMtviU8EVKYYcahQVkbgvSSsXVAE8Z6Yk5GlNKT.png" alt="" width="1136" height="554"></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;">程序里面计算COS和SIN还有ATAN2的程序采用的是CORDIC算法,CORDIC算法详细介绍见附件。</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" 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-00是短路清零、显示P-01是相位校准、显示P-02是标准电阻校准。<br><br>按住切换档位的按键再同时按住另一个进入校准模式,数码管显示P-00,按档位加的按键会在P-00、P-01、P-02之间切换,两个按键一块按退出校准菜单显示END,按另外一个按键进入显示的菜单。<br><br>P-00 夹子短路,两个按键加减调到0,先调欧档,两个按键一块按进入毫欧档,调好后再两个按键一块按保存到FLASH 显示END<br><br>P-01 夹住1欧电阻,调到这个电阻真实相位,我也不知道就调到0了,调好后两个按键一块按保存到FLASH 显示END<br><br>P-02 夹住标准电阻把读数调到和电阻一样,也是先调欧档,两个按键一块按进入毫欧档,调好后再两个按键一块按保存到FLASH 显示END</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"> <table> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">No.</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">Quantity</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">Comment</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">Designator</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">Footprint</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">Value</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">Manufacturer Part</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">Manufacturer</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">Supplier Part</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">Supplier</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">18</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">10uF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C1,C2,C12,C13,C15,C17,C21,C22,C23,C25,C28,C32,C34,C35,C39,C41,C45,C46</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C0603</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">10uF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">CL10A106KP8NNNC</span></td> <td align="left"><span style="color: #000000;">SAMSUNG(三星)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C19702</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">2</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">11</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1nF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C3,C4,C5,C6,C8,C9,C10,C11,C26,C27,C33</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C0603</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1nF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">CC0603JRNPO9BN102</span></td> <td align="left"><span style="color: #000000;">YAGEO(国巨)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C106246</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">3</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">8</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">100nF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C7,C24,C29,C36,C37,C38,C40,C42</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C0603</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">100nF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">CC0603KRX7R9BB104</span></td> <td align="left"><span style="color: #000000;">YAGEO(国巨)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C14663</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">4</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">2</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">100nF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C16,C31</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">CAP-TH_L13.0-W6.0-P10.00-D1.0</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">100nF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">MP2104K27C3X6LC</span></td> <td align="left"><span style="color: #000000;">SRD(圣融达)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C105759</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">5</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">2</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">10pF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C18,C19</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C0603</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">10pF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">CC0603JRNPO9BN100</span></td> <td align="left"><span style="color: #000000;">YAGEO(国巨)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C106245</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">6</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">470uF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C43</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">CAP-TH_BD8.0-P3.50-D0.6-FD</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">470uF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">KM477M016F12RR0VH2FP0</span></td> <td align="left"><span style="color: #000000;">CX(承兴)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C28067</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">7</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">2</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1uF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C100,C101</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">CAP-TH_L18.0-W11.0-P15.00-D0.8</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1uF</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">PX105K2C1503</span></td> <td align="left"><span style="color: #000000;">KYET(科雅)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C2693799</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">8</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SMBJ5.0A</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">D1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SMB_L4.3-W3.6-LS5.3-RD</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SMBJ5.0A</span></td> <td align="left"><span style="color: #000000;">FTR(乔光电子)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C693503</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">9</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">AFA01-S10FCA-00</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">FPC1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">FPC-SMD_10P-P1.0_FGS-XJ-H2.0</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">AFA01-S10FCA-00</span></td> <td align="left"><span style="color: #000000;">JS(钜硕电子)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C262756</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">10</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">8</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">H1,H2,H3,H4,H5,H6,H7,H8</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">HDR-TH_1P-V-M_XKB_X4611WV-01I-C28D40</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C81276</span></td> <td align="left"><span style="color: #000000;"> </span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">11</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">10</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">47uH</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">L1,L2,L3,L4,L5,L6,L7,L8,L9,L10</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">IND-SMD_L4.5-W4.0_SLF0403</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">47uH</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SLF0403-470KTT</span></td> <td align="left"><span style="color: #000000;">Sunltech(韩国顺磁)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C182152</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">12</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">2</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">204-10SURD/S530-A3-L</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LED1,LED2</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LED-TH_BD3.0-P2.54-FD</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">204-10SURD/S530-A3-L</span></td> <td align="left"><span style="color: #000000;">EVERLIGHT(亿光)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C99771</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">13</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">6</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SS8050</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">Q1,Q2,Q3,Q4,Q5,Q6</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SOT-23-3_L2.9-W1.3-P1.90-LS2.4-BR</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SS8050</span></td> <td align="left"><span style="color: #000000;">ElecSuper(静芯微)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C5249676</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">14</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">9</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">100kΩ</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R1,R6,R7,R8,R9,R10,R14,R26,R39</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R0603</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">100kΩ</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">RC0603FR-07100KL</span></td> <td align="left"><span style="color: #000000;">YAGEO(国巨)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C14675</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">15</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">21</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">10kΩ</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R2,R15,R16,R17,R18,R20,R21,R22,R23,R24,R25,R27,R30,R31,R32,R33,R34,R38,R41,R44,R47</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R0603</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">10kΩ</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">RC0603FR-0710KL</span></td> <td align="left"><span style="color: #000000;">YAGEO(国巨)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C98220</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">16</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">6</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1MΩ</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R3,R13,R19,R35,R36,R37</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R0603</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1MΩ</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">0603WAF1004T5E</span></td> <td align="left"><span style="color: #000000;">UNI-ROYAL(厚声)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C22935</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">17</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">3</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">100Ω</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R4,R5,R12</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R2512</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">100Ω</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">CRH2512J100RE04Z</span></td> <td align="left"><span style="color: #000000;">EVEROHMS(天二科技)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C175441</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">18</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">5.1Ω</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R11</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">RES-TH_BD3.5-L9.0-P13.00-D0.8</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">5.1Ω</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">KNP1WS-5Ω1±5%-2T52</span></td> <td align="left"><span style="color: #000000;">VO(翔胜)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C601740</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">19</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">11</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1kΩ</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R28,R29,R40,R42,R43,R45,R46,R48,R51,R52,R54</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R0603</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1kΩ</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">RC0603FR-071KL</span></td> <td align="left"><span style="color: #000000;">YAGEO(国巨)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C22548</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">20</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">100Ω</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R49</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R0603</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">100Ω</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">RC0603FR-07100RL</span></td> <td align="left"><span style="color: #000000;">YAGEO(国巨)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C105588</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">21</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">2</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">10Ω</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R50,R53</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R0603</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">10Ω</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">0603WAF100JT5E</span></td> <td align="left"><span style="color: #000000;">UNI-ROYAL(厚声)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C22859</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">22</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">2</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1TS005A-2500-5001</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SW1,SW2</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SW-TH_4P-L6.0-W6.0-P3.90-LS6.5</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1TS005A-2500-5001</span></td> <td align="left"><span style="color: #000000;">HYP(鸿源精密)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C255811</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">23</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SS-12F20-G070</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SW3</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SW-TH_G-SWITCH_SS-12F20-G070</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SS-12F20-G070</span></td> <td align="left"><span style="color: #000000;">G-Switch(品赞)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C2848914</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">24</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">4</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">TP1,TP2,TP3,TP4</span></td> <td align="left"><span style="color: #000000;">M2螺丝</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000;"> </span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">25</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R7FA2E1A72DFL#AA0</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">U3</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LQFP-48_L7.0-W7.0-P0.50-LS9.0-BL</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">R7FA2E1A72DFL#AA0</span></td> <td align="left"><span style="color: #000000;">RENESAS(瑞萨)/IDT</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C2932201</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">26</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SGM3157</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">U4</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SC-70-6_L2.2-W1.3-P0.65-LS2.1-BL</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SGM3157</span></td> <td align="left"><span style="color: #000000;">UMW(广东友台半导体)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C394901</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">27</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">WSP4056</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">U5</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SOP-8_L5.1-W3.9-P1.27-LS6.0-BL</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">WSP4056</span></td> <td align="left"><span style="color: #000000;">WINSOK(微硕)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C2985892</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">28</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">662K.</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">U6</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SOT-23-3_L2.9-W1.3-P1.90-LS2.4-BR</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">662K.</span></td> <td align="left"><span style="color: #000000;">FM(富满)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C841298</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">29</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">WSTDW01</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">U7</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SOT-23-6_L2.9-W1.6-P0.95-LS2.8-BR</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">WSTDW01</span></td> <td align="left"><span style="color: #000000;">WINSOK(微硕)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C86873</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">30</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">2</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">AO3400A</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">U8,U9</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SOT-23-3_L3.0-W1.6-P1.90-LS2.8-BR</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">AO3400A</span></td> <td align="left"><span style="color: #000000;">ElecSuper(静芯微)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C5224194</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">31</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">3</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LMV358ARZ</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">U10,U11,U12</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">SOP-8_L4.9-W3.9-P1.27-LS6.0-BL</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LMV358ARZ</span></td> <td align="left"><span style="color: #000000;">HTCSEMI(海天芯)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C2928823</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">32</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">TYPE-C16PIN2MD(073)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">USB1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">USB-C-SMD_TYPE-C-6PIN-2MD-073</span></td> <td align="left"><span style="color: #000000;"> </span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">TYPE-C16PIN2MD(073)</span></td> <td align="left"><span style="color: #000000;">SHOU HAN(首韩)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C2765186</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> <tr> <td align="left" height="20"><span style="color: #000000; font-family: Calibri;">33</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">-</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">X1</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">OSC-SMD_4P-L3.2-W2.5-BL</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">-</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">7325-3200A0910-00</span></td> <td align="left"><span style="color: #000000;">XTY(新天源)</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">C389917</span></td> <td align="left"><span style="color: #000000; font-family: Calibri;">LCSC</span></td> </tr> </table> <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;"><img src="//image.lceda.cn/pullimage/1yHGa93wvsfRTsW8bX3Ce0f94btdhA2ri2COvQbD.jpeg" alt="" width="1200" height="1200"></p> <p style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/O3bnpI4WJGQIMrVzdsq8BIzMOUC2J2xas9Bonbjc.jpeg" alt="" width="1200" height="1200"></p> <p style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/IgVbVH1kfzgGyj1cliZMli1mzd9DnUX1GedwXBmT.jpeg" alt="" width="1200" height="1200"></p> <p style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/DoXi61Plqw2QtM6zG84KreGV1V0TLAs6cmVQcO34.jpeg" alt="" width="1200" height="1200"></p> <p style="line-height: 1.8;"><img src="//image.lceda.cn/pullimage/wxupcNCInHPCCrfzoSaX43ACESNYU2ujmULwozOU.jpeg" alt="" width="1200" 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;"><span style="color: #95a5a6; font-size: 14px;">请上传包含大赛logo的项目图片,logo以丝印形式印刷在PCB上面。</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;">点击zip下载大赛logo标识! <span style="text-decoration: underline;"><a href="https://image.lceda.cn/easyedaResource/images/%E7%AB%8B%E5%88%9B%E7%94%B5%E8%B5%9B%E6%A0%87%E8%AF%86.rar" target="_blank">(大赛标识).zip</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;"> </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> <p> </p> <p>B站高清视频</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;"><a title="立创电赛:《基于瑞萨单片机的电池内阻测试仪》-团队介绍" href="https://www.bilibili.com/video/BV11G411m7uC/?spm_id_from=333.999.0.0&vd_source=c212050d120d3457e1f6d0cd79c641de" target="_blank">立创电赛:《基于瑞萨单片机的电池内阻测试仪》-团队介绍</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> <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 title="立创电赛:《基于瑞萨单片机的电池内阻测试仪》-功能演示" href="https://www.bilibili.com/video/BV1bu411M7qe/?spm_id_from=333.999.0.0&vd_source=c212050d120d3457e1f6d0cd79c641de" target="_blank">立创电赛:《基于瑞萨单片机的电池内阻测试仪》-功能演示</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> <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 title="立创电赛:《基于瑞萨单片机的电池内阻测试仪》-耐压测试" href="https://www.bilibili.com/video/BV12z4y1F7D2/?spm_id_from=333.999.0.0&vd_source=c212050d120d3457e1f6d0cd79c641de" target="_blank">立创电赛:《基于瑞萨单片机的电池内阻测试仪》-耐压测试</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> <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 title="立创电赛:《基于瑞萨单片机的电池内阻测试仪》-校准方法" href="https://www.bilibili.com/video/BV1mh4y1B7XK/?spm_id_from=333.999.0.0&vd_source=c212050d120d3457e1f6d0cd79c641de" target="_blank">立创电赛:《基于瑞萨单片机的电池内阻测试仪》-校准方法</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;"><span style="font-size: 14px;">更多详情:<a href="/posts/15a52db9fd7d40c492eb505280278e45" target="_blank">https://diy.szlcsc.com/posts/15a52db9fd7d40c492eb505280278e45</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;"> </p> </div>

文档

BOM

暂无

附件

附件名 下载
程序源代码和固件.zip
ProProject_#第八届立创电赛#基于瑞萨单片机的电池内阻测试仪_2023-10-09.zip
cordic.pdf
cordic ZH.pdf

成员

评论(56)

  • 表情
    emoji
    小嘉工作篇
    小嘉日常篇
  • 图片
成功
工程所有者当前已关闭评论
ss96 回复
<p>支持一下,感谢分享</p>
Aoocoo 回复
<p>老哥哥,在B站上看到你了。</p>
小龙哥哥 回复
<p>使用汇编开发?牛[emojis:强]</p>
MDLZCOOL 回复
<p>老哥,加油啊!!!</p>
yjmwxwx 回复
<p>我汇编写的其实不好,属于自己折腾自己。。</p>
YOLOBING 回复
<p>老哥液晶屏要买哪种啊?</p>
yjmwxwx 回复
<p>st7567主控的COG12864,我看以前有人搞我做的另一个制作用的POS机上用的那种COG12864也能显示</p>
jmpcb2022 回复
<p>B站老友为你加油</p>
snqzgq16888 回复
<p>知识改变命运这句话一点不假</p>
poker173 回复
<p>虽然这门课很难,但这个老师我是我的佩服,能力、表达、个性都杠杠的</p>
verysunshine 回复
<p>冲冲冲,拿奖拿奖拿奖,必须支持一下!希望作者做出更多有意思的项目!!!<br/>冲冲冲,拿奖拿奖拿奖,必须支持一下!希望作者做出更多有意思的项目!!!</p>
立创电赛 回复
<p>点赞+收藏+评论赢500元京东E卡:<a href="https://diy.szlcsc.com/posts/9d4438cf6d3848d3a53c50e029514a91" target="_blank">https://diy.szlcsc.com/posts/9d4438cf6d3848d3a53c50e029514a91</a></p>
lumine_c 回复
<p>很实用的小工具👍</p>
daybeen 回复
<p>用汇编写确实厉害,</p>
立创电赛 回复
<p>@daybeen恭喜您的评论中奖了!10元京东E卡等额积分已发送到您的账户,您可登录立创商城https://activity.szlcsc.com/point/use/info.html查看!感谢您对立创电赛的支持!</p>
YOLO 回复
<p>抄作业今天终于点亮程序了,之前手头上只有jlink-v8没法下载程序,看到别人开源了jlink-v9也抄了一个,成功下载了,等买校准电阻再好好研究下,希望老哥能继续更新</p>
立创电赛 回复
<p>评论来源 bilibili InteractorCell:太离谱了,第一眼基努里维斯第二眼牢大,这个造型简直是抽象圣体。不过说正经的,看得出来up主还是喜欢电子技术的,其实就算是我们学电子电气类的大学生,也有很多人技术水平很差(包括我),而且这种手艺要自学做好也确实不容易,希望老哥能越做越好吧</p>
立创电赛 回复
<p>评论来源 bilibili 左51右32:看了兄弟你的各种回复,家里蹲16年没有找到活主要是吃了学历的亏,给个不太成熟的建议:先想法搞到一年的学费生活费,找个路子考个大专哪怕成人自考也行,花个2、3年把毕业证整下来,方向嘛就电子/自动化这一块,期间如果是在学校就和老师多交流系统的学习一下,这种提高很快的(毕竟兄弟你有基础),课余时间找个兼职(给人交流的好机会)或接点小项目(比如毕设一类的,软硬件全包整个实物收个千八百的,论文嘛指导这写一下,也算给人交流)或者参加比赛,这样搞项目经验也有了和人沟通交流的能力也有了,当然最重要的刀了也有了;如果不是在学校那就更好了,时间自由安排,课还是要上的,田间耕耘累了把腰间别的武林秘籍拿出来领悟一番。待到证搞到手,甚至可提前一年出来找个公司直接上手开干[emojis:呲牙]</p>
立创电赛 回复
<p>评论来源 bilibili 下饭夏硫:老哥你用汇编把这个MCU调出来了了啊,牛逼。。</p>
yjmwxwx 回复
<p>需要的话可以继续更新,有什么问题多交流</p>
fcglg 回复
<p>在B站见过</p>
立创电赛 回复
<p>@fcglg恭喜您的评论中奖了!10元京东E卡等额积分已发送到您的账户,您可登录立创商城:<a href="https://activity.szlcsc.com/point/use/info.html" target="_blank">https://activity.szlcsc.com/point/use/info.html</a> 查看!感谢您对立创电赛的支持</p>
shanghaikb 回复
<p>专研勤学苦练</p>
YOLO 回复
<p>以下是我复制过程中遇到的一些问题:<br/>1、PCB上有一处错误:+3.3v过孔连到了背面的GND铺铜(应该加完过孔没重新铺铜导致的?),破坏背面过孔焊盘可解决。<br/>2、校准时按键的增减功能在不同校准程序中不一致<br/>3、靠按键增减校准似乎很麻烦,可否做成一键置零之类或者长按快速增减(不知道为什么,我在校准1欧电阻相位时初始是176.xx,意味着我要归零的话需要按一万七百多次按键。后来想了个办法:用万用表的方波输出功能模拟按键按下,居然也行,快了不少)<br/>4、校准10毫欧电阻时,一开始按按键没反应,后面用方波才发现可能是后面还有若干位小数没显示?</p>
yjmwxwx 回复
<p>SWCLK下面的加了个+3.3忘记重新铺铜了。。 我当时就画了一版,打样回来烧写程序发现没留+3.3V焊盘,就加了个焊盘,忘记重新铺铜也没仔细检测。。<br/>现在的校准程序不好用,算內阻是直接ADC采集到的数值乘一个数字,校准就是调这个数字大小,当校准用的电阻是当前档位下限的时候,调起来很慢,校准电阻是上限的时候调起来就快了,测下限电阻偏大可以用短路清零来调。</p><br/><p>程序里面一共7个校准数据,现在校准算法调起来慢,可以直接改初始校准数据<br/>chuchang_dianzu对应P2菜单校准数据,P1调的就是chuchang_qiwang_jiaodu,P0就是chuchang_duanlu_r</p><br/><p>初始角度可以直接改固件地址0x3fc8里面的0xfffffe0c,初始的是-500,改了这个再进P1保存</p><p><img title="点击查看大图" src="//image.lceda.cn/pullimage/fSP81doULwAhDlqBB0jdGtHob5QxwS4M94YjgwkU.webp" alt="fSP81doULwAhDlqBB0jdGtHob5QxwS4M94YjgwkU.webp"><img title="点击查看大图" src="//image.lceda.cn/pullimage/TAxrQlmjz8xVP3k4jC9LcZ3iJbfE1E0ty1c4qHId.webp" alt="TAxrQlmjz8xVP3k4jC9LcZ3iJbfE1E0ty1c4qHId.webp"></p>
yjmwxwx 回复
<p>要是用的元器件一样不应该偏差这么大角度,你做的现在能正常测量吗,不能的话可以说出来,我标出各点的电压方便你排查问题。</p>
YOLO 回复
<p>元器件基本都是立创下单的,做出了似乎不是很准,反复校准了测出来偏差还是挺大的,搞不懂哪里有问题</p><p><img title="点击查看大图" src="//image.lceda.cn/pullimage/Dw3WqP6BQtfe5jhFGtiHdYMquxTvyk7qLOmn9RkE.webp" alt="Dw3WqP6BQtfe5jhFGtiHdYMquxTvyk7qLOmn9RkE.webp"></p>
yjmwxwx 回复
<p>排查下看看电路有没有问题。<br/>1、先查RC滤波电路:<br/>单片机PWM经过RC滤波后,万用表交流档测对GND大概39毫伏左右。我实际R15、R16是没焊接的,这个是准备扩展量程用的,程序没写这部分。<br/>2、查恒流电路:<br/>夹住1欧电阻,用万用表交流毫伏档测量这个电阻两端看看是不是12毫伏左右,如果是表示恒流电路没问题。<br/>3、查仪表放大器电路:<br/>再测三运放仪表放大器后,也就是U12的1脚,对GND应该是252毫伏左右,正常表示仪表放大器也没问题。<br/>4、查最后一级放大电路:<br/>再测进单片机ADC 对GND是不是252毫伏左右,也正常表示后面这级放大电路也没问题。</p><br/><p>上面的都正常,那么比如测串联的10毫欧电阻偏差能多大? 元器件都一样不应该相位差那么多</p>
YOLO 回复
<p>我测出来的<br/>1、RC滤波电路:交流49mv<br/>2、恒流电路:交流12mv<br/>3、仪表放大器电路:交流232mv<br/>4、最后一级放大电路:交流230mv</p>
hjc79 回复
<p>电感可以直接用470uH的吗?为什么要串这么多个?另外仪表放大之后,用运放做无损整流成直流之后,MCU用ADC读直流,软件是不是更简单好写一点?</p>
yjmwxwx 回复
<p>确定下夹子线接的对不对,电路板两端接一个开尔文夹,中间两个接一个夹子。<br/>夹住1欧电阻万用表交流档测这个1欧电阻两端如果是12毫伏表示前面恒流和RC电路都正常。但是测仪表放大器后面的电压偏小了,仪表放大器是21倍放大,12乘21等于252,感觉不应该偏差这么大,最后一级正常。 查下夹子线电压回路到电路板两个104安规电容和仪表放大器这部分有没有问题。</p>
yjmwxwx 回复
<p>不接电感也可以,接一个也可以,当时接电感是为了想让电流不能突变增加保护电路可靠性。 整流最好还是用单片机搞,要不得加带通滤波</p>
YOLO 回复
<p>感觉现在测得很准了,线性度也不错,总结下来之前效果不好应该是我贪心把R15,R16焊接上了影响到了,恒流电路那边重新测量11.3mv,这样算下来后面232也就不会偏差太大了。再次感谢,希望大佬再出优秀项目让我学习[emojis:呲牙]</p>
yjmwxwx 回复
<p>也感谢你的制作了,还帮助我找到PCB上的严重错误,我太粗心了。[emojis:呲牙]</p>
Beich 回复
<p>DFT部分和后面ATAN能不能写个C语言版本的啊,汇编的实在看不懂[emojis:流泪]</p>
立创电赛 回复
<p>@yolo恭喜您中大奖了!500元京东E卡等额积分已发送到您的账户,您可登录立创商城:<a href="https://activity.szlcsc.com/point/use/info.html" target="_blank">https://activity.szlcsc.com/point/use/info.html</a> 查看!感谢您对立创电赛的支持!</p>
yjmwxwx 回复
<p>DFT部分就是和COS还有SIN表相乘累加,这个非常简单,我写的长是因为感觉MCU空间足够大,不用也浪费了,于是没用循环感觉能计算的快点。 ATAN2计算程序可以看下附件里面CORDIC算法具体讲解,还有例子。</p>
YOLO 回复
<p>感谢立创电赛[emojis:呲牙]沾了大佬的光</p>
立创电赛 回复
<p>恭喜您在“瑞萨MCU杯”第八届立创电子设计开源大赛中获得优胜奖,更多详情见:<a href="https://diy.szlcsc.com/posts/9aea5131523341fbab0bb927c5c4c603" target="_blank">https://diy.szlcsc.com/posts/9aea5131523341fbab0bb927c5c4c603</a></p>
hidn 回复
<p>大神这个项目的模拟部分能结合替换到简单版内阻仪上吗?这个模拟部分比简单版还简单mcu用简单版的</p>
yjmwxwx 回复
<p>@hidn 这个就是从PY32那版改的,增加了耐压,你可以看下我开源广场那PY32的那版,那个成本最低</p>
yjmwxwx 回复
<p>看我空间PY32那个就是简化的</p>
csr8675 回复
<p>抄了作业但不会烧录,手里只有st link以不能用?</p>
yjmwxwx 回复
<p>我只用过JLINK V9烧录,百度了下 R7FA2E1A7 串口 看到别人有用串口烧录的</p>
mxrc_0507 回复
<p>大佬,这个代码这样写正确吗?哈哈</p><br/><h1>include <math.h></h1><br/><h1>include <complex.h></h1><br/><h1>define PI 3.14159265</h1><br/><h1>define N 512 // 采样点数</h1><br/><p>// 假设adc_samples是你从ADC获取的样本<br/>double adc_samples[N];</p><br/><p>// DFT计算<br/>void compute_dft(double<em> in, double complex</em> out) {<br/>for (int k = 0; k < N; k++) {<br/>out[k] = 0.0 + 0.0 <em> I;<br/>for (int n = 0; n < N; n++) {<br/>double theta = 2.0 </em> PI <em> k </em> n / N;<br/>out[k] += in[n] <em> (cos(theta) - sin(theta) </em> I);<br/>}<br/>}<br/>}</p><br/><p>// CORDIC相位旋转<br/>double complex cordic_rotation(double complex in, double angle) {<br/>double cos_angle = cos(angle);<br/>double sin_angle = sin(angle);<br/>return (creal(in) <em> cos_angle - cimag(in) </em> sin_angle) + (creal(in) <em> sin_angle + cimag(in) </em> cos_angle) * I;<br/>}</p><br/><p>int main() {<br/>double complex dft_out[N];<br/>compute_dft(adc_samples, dft_out);</p><br/><pre><code>// 假设我们只关心频率为f的结果<br/>int f = 50;<br/>double complex result = cordic_rotation(dft_out[f], -2.0 * PI * f / N);<br/><br/>// 输出电阻部分<br/>printf("电池内阻阻抗的电阻部分: %f\n", creal(result));<br/><br/>return 0;</code></pre><br/><p>}</p>
yjmwxwx 回复
<p>我不懂C语言啦。。。 我算DFT大概就是相乘累加</p><br/><p>void main() {<br/>float pi,sr,si,dft_r,dft_i;<br/>int adc_samples [2000];<br/>int rr,ii, n,i,m;<br/>n=2000; //adc采样点数<br/>m=200; //ADC采样率1MHZ,采集100KHZ目标信号, 100000/(1000000/2000)=200<br/>pi=3.141592653;<br><br/>for(i=0;i<n;i++){<br/>sr = cos(2<em>pi</em>i<em>m/n);<br/>si = -sin(2</em>pi<em>i</em>m/n);<br/>dft_r += adc_samples[i]<em>sr; //结果实部<br/>dft_i += adc_samples[i]</em>si; //结果虚部<br/>}</p>
mxrc_0507 回复
<p>这个是微软的Copilot写的,没有在开发环境中跑过。只是觉得好玩就贴上来了,这个得实话实说。感谢大佬!</p>
chenfeng001 回复
<p>有屏幕连接吗,我买的cog12864屏不亮,有3.3v,st7567驱动的</p>
yjmwxwx 回复
<p>我这个屏幕是论坛买的二手货卖家已经卖完了,ST7567的应该通用,程序就是按照ST7567手册写的。 我这个电路板加了一个3.3V焊盘后忘记重新覆铜导致那个焊盘和GND短路了,现在改不了了, 你可以检查下,就是JLINK SWD口下面那个+3.3</p>
chenfeng001 回复
<p>有人知道屏幕在那买的,做了一个。发现买不是屏幕,我逛了一圈都找不到屏幕,ST7567 COG都找不到对应脚位的屏幕,脚位对应都不对,谁有屏幕连接发一下</p>
chenfeng001 回复
<p>3.3v那个点拿刀切断了的,现在找不到屏幕,ST7567 10pin的脚对标不对</p>
yjmwxwx 回复
<p><a href="http://www.crystalradio.cn/forum.php?mod=viewthread&tid=2003199&extra=&highlight=%CA%FD%C2%EB%B9%DC&page=1" target="_blank"></a><a href="http://www.crystalradio.cn/forum.php?mod=viewthread&amp;tid=2003199&amp;extra=&amp;highlight=%CA%FD%C2%EB%B9%DC&amp;page=1" target="_blank">http://www.crystalradio.cn/forum.php?mod=viewthread&amp;tid=2003199&amp;extra=&amp;highlight=%CA%FD%C2%EB%B9%DC&amp;page=1</a></p><br/><p>我是在论坛上买的,而且这个屏幕标记的第10脚实际是1脚,正好和别的反着,可能是厂家定制的,我当时1.5元一个买的。一共没几根线,感觉只能飞线下了,要么就得改PCB,程序都是通用的就是引脚位置不一样。</p>
zyq3910 回复
<p>@yjmwxwx 老大哥,没看明白,实部虚部累加,不是结果越来越大?汇编程序没看懂所有问问</p>
yjmwxwx 回复
<p>ADC采集到的电压序列表要和COS还有SIN表相乘后再累加,COS和SIN的振幅正负都是对称的,ADC采集的电压序列和COS或者SIN同相位累加后就是0了,这个我也不会解释,你可以看下Richard G.Lyons(理查德 G.莱昂斯)写的数字信号处理,我当时就是看的这本书学的,里面DFT章节有详细例子</p>
zyq3910 回复
<p>@yjmwxwx b-2048;是不是滤掉了1.65V的直流部分,得到了正弦波形</p>
yjmwxwx 回复
<p>不需要减去2048,DFT后直流在第0点上,想要测的频率在别的点上,自然就过滤掉直流了</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