《電子技術(shù)應(yīng)用》
您所在的位置:首頁 > 其他 > 設(shè)計應(yīng)用 > 基于Excel VBA的電源電流檢測電路快速參數(shù)選定
基于Excel VBA的電源電流檢測電路快速參數(shù)選定
2023年電子技術(shù)應(yīng)用第5期
周軍,丁濤杰,毛臻
(中國電子科技集團(tuán)公司第五十八研究所,江蘇 無錫 214035)
摘要: 對于實際的電源電路系統(tǒng),通過設(shè)計電流檢測電路來實現(xiàn)對各路電源電流的實時檢測,在電流檢測電路設(shè)計過程中通常需要對采樣電阻和調(diào)理電阻的阻值進(jìn)行選型計算。針對這種比較繁瑣且重復(fù)性較高的工作,提出利用Excel VBA編寫包含串聯(lián)、并聯(lián)及比例的阻值選型計算模塊技術(shù),能夠快速有效地解決電流檢測電路中的電阻選型問題。結(jié)果表明:使用VBA程序?qū)﹄娮钄?shù)據(jù)進(jìn)行選型計算,能夠在Excel的工作表單元格上自動生成目標(biāo)電阻阻值,該方法能夠有效地提高采樣電阻和調(diào)理電阻的阻值選型計算的精度及效率。
關(guān)鍵詞: 電流檢測 阻值計算 Excel VBA
中圖分類號:TN7
文獻(xiàn)標(biāo)志碼:A
DOI: 10.16157/j.issn.0258-7998.223467
中文引用格式: 周軍,丁濤杰,毛臻. 基于Excel VBA的電源電流檢測電路快速參數(shù)選定[J]. 電子技術(shù)應(yīng)用,2023,49(5):67-70.
英文引用格式: Zhou Jun,Ding Taojie,Mao Zhen. Fast parameter selection of power supply current detection circuit based on Excel VBA[J]. Application of Electronic Technique,2023,49(5):67-70.
Fast parameter selection of power supply current detection circuit based on Excel VBA
Zhou Jun,Ding Taojie,Mao Zhen
(China Electronics Technology Group Corporation No.58 Research Institute, Wuxi 214035, China)
Abstract: For the actual power supply circuit system, the current detection circuit is designed to realize the real-time detection of each power supply current. In the process of current detection circuit design, it is usually necessary to select and calculate the resistance values of the sampling resistance and conditioning resistance. In view of this complicated and highly repetitive work, the technology of using Excel VBA to compile resistance selection calculation module including series, parallel and proportion is proposed. It can quickly and effectively solve the problem of resistance selection in current detection circuit. The results show that using VBA program to calculate the resistance data can automatically generate the target resistance value on the Excel worksheet cells. This method can effectively improve the accuracy and efficiency of the resistance selection calculation of the sampling resistance and conditioning resistance.
Key words : current detection;calculation of resistance value;Excel;VBA

0 引言

對于一個實際的電路系統(tǒng),需要認(rèn)真分析它的電源需求,不僅僅要關(guān)心輸入電壓和輸出電壓,還要細(xì)致地考慮電源總功耗問題,因此在設(shè)計電源電路前需要先評估每路電源的功耗,然后選擇合適的電源IC。在測試電源電路時有時想知道之前評估的電源功耗是否準(zhǔn)確,很容易通過電源儀表去觀測到輸入電源的電流從而計算輸入電源的總功耗,但是輸入電源經(jīng)過變換后的每一路的輸出電源無法進(jìn)行實時觀測,此時運(yùn)用電源電流檢測IC能實時對各路電源進(jìn)行電流監(jiān)測,從而能計算各路電源的功耗。

電源電流檢測電路除了檢測電流IC外,通常包含電流采樣電阻和信號調(diào)理電路,最終將調(diào)理后的電壓信號送至ADC進(jìn)行采樣,在電流轉(zhuǎn)換到電壓過程中就涉及了定標(biāo)問題,本文利用Excel VBA進(jìn)行快速定標(biāo)。


本文詳細(xì)內(nèi)容請下載:http://ihrv.cn/resource/share/2000005325




作者信息:

周軍,丁濤杰,毛臻

(中國電子科技集團(tuán)公司第五十八研究所,江蘇 無錫 214035)


此內(nèi)容為AET網(wǎng)站原創(chuàng),未經(jīng)授權(quán)禁止轉(zhuǎn)載。