黄土马家

Three-phase inverter system

 
Overview

*Note: This work won the first prize in the Guangzhou Six-School Invitational Competition and the Enterprise Special Award

Figure 1 Hardware block diagram of inverter system

 

2.  Hardware schematic diagram and principle description

(1) Driving circuit schematic diagram

Figure 2 Driving circuit schematic diagram

The drive circuit uses a high-speed optocoupler isolation module 6N137 to connect the microcontroller and the drive circuit. The optocoupler module uses optical signals as the medium to realize the coupling and transmission of electrical signals. The input and output are completely electrically isolated and have strong anti-interference performance. . For industrial application measurement and control systems that include both weak current control parts and strong current control parts, the use of optocoupler isolation can effectively achieve the isolation of weak current and strong current and achieve the purpose of anti-interference . The specific schematic diagram of the circuit is as follows:

Figure 3 Optocoupler isolation module

The driver circuit uses a half-bridge driver, and the driver chip uses IR2104. The upper and lower arm power tubes of this half-bridge circuit are alternately turned on. Whenever the lower arm is turned on and the upper arm Q1 is turned off , the potential of the Vs pin is the saturated conduction voltage drop of the lower arm Q2 , which is basically close to the ground potential. At this time, Vcc charges the bootstrap capacitor C1 between VB and VS through the bootstrap diode to make it close to the Vcc voltage. When Q2 is turned off, based on the internal CMOS structure (see the internal diagram below for details), HO and Vs are disconnected, and HO and Vb are connected. At the same time, the voltage at the Vs terminal will increase. Since the C1 voltage cannot suddenly change to Vcc , and there is a bootstrap diode between Vcc and Vb , the potential at the Vb point is close to the sum of the Vs point potential and the voltage on C1 . So at this time, the voltage difference between Vb ( HO ) and Vs is the Vcc voltage, and this voltage difference can be used to open the upper arm. According to the chip data sheet, the bootstrap capacitance of IR2104 is selected to be 100nF .

Figure 4 Half-bridge drive schematic diagram

 

(2) ADC sampling front-end circuit schematic diagram

    The ADC front-end first raises the negative voltage, and then performs impedance transformation through a voltage follower to convert the voltage to be measured to 0-3.3V , and then connects to the built-in ADC of the microcontroller for sampling.

Figure 5   ADC sampling circuit front-end schematic diagram

  The reference source uses TL431 to output a stable 3V reference. The schematic diagram is as follows:

Figure 6   TL431 voltage stabilization schematic diagram

Then the voltage is converted to within 0-3.3V through the resistor network voltage divider and voltage follower .

Figure 7  Resistor network voltage dividing principle diagram

 

(3) System power supply solution

Figure 8  Dual-channel 5V/3.3V power module

The system power supply scheme is as shown above. The input is 12V and can output two channels of 5V and two channels of 3.3V . The maximum current is 5A . It is used to power the minimum system of the microcontroller, the optocoupler isolation module, the ADC front-end sampling circuit module, the Bluetooth module, etc.

 

2.      Software flow diagram:

Figure 9   Software flow diagram

3.      System appearance design

Figure 10  System appearance design

(1)  Power module: The power module in the upper left corner is connected to a 12V DC power supply and can generate 3.3V DC voltage and 5V DC voltage to meet different requirements.

(2)  stm32 main control circuit: The stm32 main control circuit on the right connects the Bluetooth module, OLED screen and voltage divider circuit, and simultaneously controls the normal operation of the optocoupler isolation + half-bridge drive module

(3)  Voltage dividing circuit: The left voltage dividing circuit is connected to any end of the three-phase electrical output port, and is connected to the stm32 on-chip ADC after voltage division.

(4)  Optocoupler isolation + half-bridge drive module: The optocoupler isolation + half-bridge drive module in the lower left corner provides spwm wave control to invert DC voltage.

 

5. Testing and Debugging

( 1 ) System test plan

A voltage source capable of generating a DC voltage above 40V is used to drive the half-bridge drive circuit, and a 12V DC voltage source is used to power the main control circuit. During the test, the DC voltage is supplied to the input end of the inverter system, and a dual-channel oscilloscope is used to measure the two phase voltages, and the DC voltage is adjusted until the effective value of the phase voltage reaches 12V . Observe the peak-to-peak value and frequency of the output, and detect the phase difference between the two channels. At the same time, use a multimeter to detect the effective value of the AC voltage and make three measurements to find the average value as the final result. After the adc detection is completed, Bluetooth will send the data to the computer, use matlab to draw the waveform and conduct harmonic analysis, and measure the amplitude-frequency curve and total harmonic distortion of the three-phase electricity generated.

( 2 ) Test equipment

A voltage source capable of producing a DC voltage above 40V

A 12V DC voltage source

multimeter

Dual channel oscilloscope

( 3 ) Test data

Three-phase electrical performance indicators when the DC voltage is 38.52V ( the effective value of the phase voltage is close to 12V at this time)

Table 1 Three-phase electrical performance indicators

       Number of measurements

Measurement items

1

2

3

average value

Frequency /Hz

49.50

50.00

50.00

49.83

Phase difference / degree

118.8

122.4

120.2

120.47

Phase voltage peak to peak value /V

36 . 00

36 . 00

36.00

36.00

Phase voltage effective value /V

12.010

12.009

12.024

12.014

After testing, when the input voltage of the inverter system reaches 38.52V , the effective value of the output three-phase electrical phase voltage reaches 12.0214V , and the frequency is 49.83z . The phase difference between the phase voltages is 120.47 °. Matlab performs fft transformation and obtains the result at 50Hz. Get peaks at left and right points.

Table 2 AC voltage (phase voltage) effective value changes with DC voltage

DC voltage /V

Phase voltage effective value /V

10

3.105

15

4.665

20

6.223

25

7.785

30

9.342

35

10.915

40

12.226

45

14.042

 

 

( 4 ) Result analysis

Compare the detected data with the basic requirements of the question. The basic requirements are as follows

a. The DC power supply provides three-phase symmetrical AC power to the resistive load through a three-phase inverter circuit, with a phase difference of 120 °.

b. When the effective value of the line current of the resistive load is 1A , the effective value of the line voltage is 12V ± 1V , and the frequency is 50Hz ± 1Hz.

According to the actual measurement, when the DC voltage is 38.52V , the three-phase electrical phase difference is 120.47 °, the frequency is 49.83Hz , the peak-to-peak value of the phase voltage is 36.00V , and the effective value is 12.014V , which can better meet the requirements of the question.

At the same time, compared with the increased requirements

Select Bluetooth communication transmission data as required. The computer uses matlab to receive the data and analyze the amplitude-frequency characteristics of the voltage waveform. It can analyze harmonics within 10th order and calculate harmonic distortion within 10th order .

 

( 5 ) Functions realized (indicators achieved)

1 When the input voltage of the inverter system reaches 40.5V , the output three-phase electrical frequency is 50Hz , and the phase difference between the phase voltages is 120 . The effective value of the phase voltage reaches 12V , and the effective value of the current is 1A .

2 stm32 on-chip ADC collects voltage with an accuracy of 12bit .

3 Bluetooth communication transmission data, matlab harmonic analysis, can analyze harmonics within 10th order, draw amplitude-frequency curves and calculate harmonic distortion within 10th order.

参考设计图片
×
 
 
Search Datasheet?

Supported by EEWorld Datasheet

Forum More
Update:2025-05-10 21:35:38

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
community

Robot
development
community

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号