基于STM32F103的電流檢測系統(tǒng)設(shè)計(jì)
孫康亞,高紅亮,段玉龍,周成子
(湖北師范大學(xué) 電氣工程與自動化學(xué)院,湖北 黃石 435000)
摘 要:在電力系統(tǒng)中,實(shí)時檢測系統(tǒng)的電流大小非常關(guān)鍵?;?STM32F103 芯片設(shè)計(jì)了一款實(shí)時檢測電路中電流大小的設(shè)備,該設(shè)備測得的電流通過 LCD 顯示出來,便于觀察,另一方面將這些實(shí)時的數(shù)據(jù)儲存在 SD 卡設(shè)備上,對數(shù)據(jù)進(jìn)行記錄。該設(shè)備加入了 FreeRTOS 實(shí)時操作系統(tǒng),更合理有效地利用 CPU 的資源,簡化應(yīng)用軟件的設(shè)計(jì),縮短系統(tǒng)開發(fā)時間,更好地保證了系統(tǒng)的實(shí)時性和可靠性。
關(guān)鍵詞: STM32F103 芯片;電流檢測系統(tǒng);FreeRTOS 實(shí)時操作系統(tǒng);數(shù)據(jù)采集;電流傳感器
中圖分類號:TM933.1 文獻(xiàn)標(biāo)識碼:A 文章編號:1007-3175(2024)10-0014-05
Design of Current Detection System Based on STM32F103
SUN Kang-ya, GAO Hong-liang, DUAN Yu-long, ZHOU Cheng-zi
(School of Electrical Engineering and Automation, Hubei Normal University, Huangshi 435000, China)
Abstract: In the power system, it is very important to detect the current magnitude of the system in real-time. A device for real-time detection of current magnitude in circuits has been designed based on the STM32F103 chip. The measured current is displayed on an LCD screen for easy observation. Additionally, these real-time data are stored on an SD card device for recording the data. The device incorporates the FreeRTOS real-time operating system, enabling more rational and efficient utilization of CPU resources. This simplifies the design of application software, shortens system development time, and better ensures the real-time performance and reliability of the system.
Key words: STM32F103 chip; current detection system; FreeRTOS real-time operating system; data acquisition; current sensor
參考文獻(xiàn)
[1] 姚建宇,郭棟,何凱倫,尚鈺翔. 基于 STM32 的用電監(jiān)測系統(tǒng)設(shè)計(jì)[J] . 工業(yè)控制計(jì)算機(jī),2022,35(2) :98-99.
[2] 楊旻薈,田澄睿,顧浚哲. 基于 STM32F103ZET6 的電路特性測試儀[J]. 電子測試,2022,36(12) :25-27.
[3] 翁飛印. 免校正高精度溫度檢測的設(shè)計(jì)[J]. 集成電路應(yīng)用,2021,38(5) :66-67.
[4] 欒天,劉一清. 基于 STM32 的區(qū)域智能用電器檢測設(shè)備[J]. 電子測量技術(shù),2020,43(14) :182-188.
[5] 任青蓮,陶瓏,郭燕飛,陳東良. 一種基于 STM32 單片機(jī)的放大電路特性測試儀[J] . 機(jī)械工程與自動化,2021(2) :128-130.
[6] 張博納. 智慧用電監(jiān)控系統(tǒng)設(shè)計(jì)及其采集數(shù)據(jù)分析研究[D]. 溫州:溫州大學(xué),2019.
[7] 張嶸,占志龍,盧昌佐. 基于 STM32 的電路測量系統(tǒng)[J].科學(xué)技術(shù)創(chuàng)新,2020(21) :65-66.
[8] 靳濤. 簡易電路特性測試儀的設(shè)計(jì)[J]. 電子技術(shù)與軟件工程,2020(5) :100-102.
[9] 張雪倩. 基于 STM32 的三相智能電表設(shè)計(jì)與研究[D].蘭州:蘭州理工大學(xué),2021.
[10] 任莎,姚凱學(xué),李路里,王凱鵬. 基于農(nóng)業(yè)墑情站的多路功耗采集系統(tǒng)[J] . 計(jì)算機(jī)技術(shù)與發(fā)展,2020,30(7) :140-144.
[11] 程東亮. 基于 STM32 的多路信號采集系統(tǒng)設(shè)計(jì)[J]. 長江信息通信,2022,35(7) :114-116.
[12] 張雨莎,鄭天成,肖圳,李健. 電動車電瓶實(shí)時監(jiān)測與防盜報警裝置[J]. 中國新通信,2020,22(4) :162.