这是一个1欧姆的标准电阻。精度比较高。计划应用它来测量 DH1766 直流电源输出电流控制精度。一种方法使用这种 开尔文 测试夹子来测量流过标准电阻电流和电压。另外一种就是直接在面包板上进行测量。应用 DH1766输出电流通过编程从 0 变化到 500mA。输出初始电压设置为 5V。应用 DM3068测量标准电阻上的电压。
首先使用开尔文夹子测量不同电流下标准电阻上的电压。这可以最大限度降低接触电阻带来的误差。我们认为这种测量结果反映了 DH1766 实时电流限制的精度。由于标准电阻是 1欧姆,所以输出电流与电压之间是一个 1:1 的直线。绘制出不同电流下电压误差曲线。可以看到误差最大值不超过 0.5mA。
▲ 图1.2.1 电流与电压曲线
▲ 图1.2.2 不同电流下测量误差
#!/usr/local/bin/python
# -*- coding: gbk -*-
#******************************
# TEST1.PY - by Dr. ZhuoQing 2023-12-19
#
# Note:
#******************************
from headm import *
from tsmodule.tsvisa import *
dm3068open()
vdim = []
cdim = linspace(0, 0.5, 100)
dh1766currlimit1(0)
dh1766volt1(5)
time.sleep(1)
for i in cdim:
dh1766currlimit1(i)
time.sleep(1)
v = dm3068vdc()
printff(i, v)
vdim.append(v)
tspsave('meas1', vdim=vdim, cdim=cdim)
dh1766currlimit1(0)
plt.plot(cdim, vdim, lw=3)
plt.xlabel("Current(A)")
plt.ylabel("Voltage(V)")
plt.grid(True)
plt.tight_layout()
plt.show()
#------------------------------------------------------------
# END OF FILE : TEST1.PY
#******************************
vdim=[-0.00002,0.00531,0.01014,0.01513,0.02016,0.02519,0.03023,0.03527,0.04032,0.04538,0.05043,0.05547,0.06052,0.06554,0.07058,0.07562,0.08067,0.08572,0.09078,0.09583,0.10087,0.10591,0.11095,0.11600,0.12104,0.12609,0.13113,0.13617,0.14122,0.14626,0.15130,0.15634,0.16138,0.16643,0.17148,0.17652,0.18157,0.18662,0.19167,0.19671,0.20176,0.20678,0.21183,0.21688,0.22192,0.22696,0.23202,0.23706,0.24210,0.24714,0.25221,0.25724,0.26228,0.26734,0.27239,0.27742,0.28247,0.28753,0.29257,0.29760,0.30267,0.30771,0.31274,0.31781,0.32284,0.32788,0.33295,0.33799,0.34302,0.34808,0.35312,0.35817,0.36324,0.36826,0.37332,0.37837,0.38341,0.38847,0.39351,0.39857,0.40360,0.40866,0.41370,0.41875,0.42380,0.42885,0.43389,0.43895,0.44398,0.44905,0.45410,0.45919,0.46425,0.46929,0.47434,0.47940,0.48444,0.48950,0.49454,0.49960]
cdim=[0.00000,0.00505,0.01010,0.01515,0.02020,0.02525,0.03030,0.03535,0.04040,0.04545,0.05051,0.05556,0.06061,0.06566,0.07071,0.07576,0.08081,0.08586,0.09091,0.09596,0.10101,0.10606,0.11111,0.11616,0.12121,0.12626,0.13131,0.13636,0.14141,0.14646,0.15152,0.15657,0.16162,0.16667,0.17172,0.17677,0.18182,0.18687,0.19192,0.19697,0.20202,0.20707,0.21212,0.21717,0.22222,0.22727,0.23232,0.23737,0.24242,0.24747,0.25253,0.25758,0.26263,0.26768,0.27273,0.27778,0.28283,0.28788,0.29293,0.29798,0.30303,0.30808,0.31313,0.31818,0.32323,0.32828,0.33333,0.33838,0.34343,0.34848,0.35354,0.35859,0.36364,0.36869,0.37374,0.37879,0.38384,0.38889,0.39394,0.39899,0.40404,0.40909,0.41414,0.41919,0.42424,0.42929,0.43434,0.43939,0.44444,0.44949,0.45455,0.45960,0.46465,0.46970,0.47475,0.47980,0.48485,0.48990,0.49495,0.50000]
#!/usr/local/bin/python
# -*- coding: gbk -*-
#******************************
# TEST2.PY - by Dr. ZhuoQing 2023-12-19
#
# Note:
#******************************
from headm import *
vdim, cdim = tspload('meas1', 'vdim', 'cdim')
edim = [c-v for c,v in zip(cdim, vdim)]
plt.plot(cdim, edim, lw=3)
plt.xlabel("Current(A)")
plt.ylabel("Error(V)")
plt.grid(True)
plt.tight_layout()
plt.show()
#------------------------------------------------------------
# END OF FILE : TEST2.PY
#******************************
▲ 图1.2.3 电流与电压
▲ 图1.2.4 误差与电流
下面应用面包板连接标准电阻和电流源。此时避免不了引入接触电阻。从整体上,测量电压的线性还是挺好的。只是误差随着电流的增加而提高。在500mA时,误差超过了 8mV。将两个测量曲线绘制在一起,可以看到在面包板上引入的接触电阻,在500mA时,引起的电压误差比起 开尔文电压夹子大得多了。
▲ 图1.2.5 两个误差曲线
本文利用一个高精度电阻测量了HD1766输出限流的精度。在 500mA 之内,输出电流误差不超过 0.5mA。在面包板上测试,接触电阻会带来比较大的测量误差。根据测量结果来看,两个管脚的接触电阻大约会带来 16毫欧姆的增加。