《電子技術(shù)應(yīng)用》
您所在的位置:首頁(yè) > 測(cè)試測(cè)量 > 設(shè)計(jì)應(yīng)用 > 基于STM32的三相電表校準(zhǔn)裝置的設(shè)計(jì)
基于STM32的三相電表校準(zhǔn)裝置的設(shè)計(jì)
2020年電子技術(shù)應(yīng)用第9期
楊 帆1,2,胡光昊1
1.武漢工程大學(xué) 電氣信息學(xué)院,湖北 武漢430205; 2.湖北省視頻圖像與高清投影工程技術(shù)研究中心,湖北 武漢430205
摘要: 針對(duì)常規(guī)三相電表校準(zhǔn)裝置測(cè)量精度低、成本高的問(wèn)題,研究了一種基于STM32F429單片機(jī)的三相多功能電表校準(zhǔn)裝置。該裝置硬件電路主要包括電壓電流采樣量程切換電路、繼電器驅(qū)動(dòng)電路、時(shí)鐘電路、RS232串口通信模塊和顯示電路。其中電壓電流采樣量程切換電路將電流和電壓互感器采集的電壓和電流信號(hào)轉(zhuǎn)換成CS5463芯片的測(cè)量范圍。單片機(jī)STM32F429有4個(gè)UART串口用作RS232通信,方便與其他外設(shè)相連。單片機(jī)接收到信號(hào)后,將采集到的電壓和電流數(shù)據(jù)顯示在TFTLCD電容觸摸屏上。軟件設(shè)計(jì)主要是初始化臨時(shí)變量和配置CS5463的相關(guān)寄存器,然后定時(shí)采集電壓和電流。通過(guò)對(duì)測(cè)試結(jié)果的分析和比較,該裝置達(dá)到了小數(shù)點(diǎn)后4位的測(cè)量精度。
中圖分類(lèi)號(hào): TN98
文獻(xiàn)標(biāo)識(shí)碼: A
DOI:10.16157/j.issn.0258-7998.191163
中文引用格式: 楊帆,胡光昊. 基于STM32的三相電表校準(zhǔn)裝置的設(shè)計(jì)[J].電子技術(shù)應(yīng)用,2020,46(9):60-63,68.
英文引用格式: Yang Fan,Hu Guanghao. Design of three-phase meter calibration device based on STM32[J]. Application of Electronic Technique,2020,46(9):60-63,68.
Design of three-phase meter calibration device based on STM32
Yang Fan1,2,Hu Guanghao1
1.School of Electrical and Information Engineering,Wuhan Institute of Technology,Wuhan 430205,China; 2.Hubei Video Image and HD Projections Engineering Research Center,Wuhan 430205,China
Abstract: Aiming at the problems of low measurement accuracy and high cost of conventional three-phase meter calibration device, this paper studies a three-phase multifunctional meter calibration device based on STM32F429 single-chip microcomputer. The hardware circuit of the device mainly includes voltage and current sampling range switching circuit, relay drive circuit, time clock circuit, RS232 serial communication module and display circuit. The voltage and current sampling range switching circuit converts the voltage and current signals collected by the current and voltage transformer into the measurement range of CS5463 chip. There are 4 UART ports for RS232 communication in STM32F429 chip, convenient to connect with other peripherals. After receiving the signal, the voltage and current data collected are displayed on the TFTLCD capacitive touch screen. Software design is mainly to initialize temporary variables and configure the relevant registers of CS5463, and then collect voltage and current at regular intervals. Through the analysis and comparison of the test results, the measurement accuracy of the device reaches 4 decimal places.
Key words : STM32F429 single chip microcomputer;voltage and current collection;range switching circuit

0 引言

    隨著電子信息技術(shù)的發(fā)展,傳統(tǒng)的感應(yīng)式電能表精度低、功耗大,已經(jīng)不再滿足要求,人們將軟硬件技術(shù)結(jié)合提出了電子式電能表[1]。目前,三相電表的測(cè)量在不斷完善:有采用SA9904A芯片的雙向三相電表,通過(guò)SPI接口訪問(wèn)寄存器,測(cè)量各相的電壓有效值和無(wú)功功率[2];考慮到不再是簡(jiǎn)單的數(shù)值計(jì)量,設(shè)計(jì)者將ADE計(jì)量芯片應(yīng)用于電表中,實(shí)現(xiàn)實(shí)時(shí)分析電流電壓波形數(shù)據(jù)、計(jì)量和判斷阻性負(fù)載大小的功能[3-5];為了保證測(cè)量性能的穩(wěn)定和遠(yuǎn)程數(shù)據(jù)傳送,出現(xiàn)了基于MSP430F149單片機(jī)和ARM的智能遠(yuǎn)傳三相電表,可以遠(yuǎn)程自動(dòng)抄表,抗干擾能力強(qiáng)[6-7];基于Kinetis微控制器的三相電表,可以測(cè)量視在能量并具有閃存升級(jí)的功能[8]。近幾年,STM32系列芯片在電表中的應(yīng)用成為一種趨勢(shì)[9-10]。考慮到液晶顯示和電流檢測(cè)的問(wèn)題[11-12],本文采用帶有LCD控制器的STM32F429芯片,簡(jiǎn)化了電路設(shè)計(jì)。因此,本文針對(duì)常規(guī)三相電表校準(zhǔn)裝置存在的測(cè)量電流、電壓精度低等問(wèn)題,研究了一種基于STM32F429的三相電表校準(zhǔn)裝置。




本文詳細(xì)內(nèi)容請(qǐng)下載:http://theprogrammingfactory.com/resource/share/2000002982




作者信息:

楊  帆1,2,胡光昊1

(1.武漢工程大學(xué) 電氣信息學(xué)院,湖北 武漢430205;

2.湖北省視頻圖像與高清投影工程技術(shù)研究中心,湖北 武漢430205)

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