1 System Design
The overall framework of the system is shown in Figure 1. The system adopts a high-frequency inverter solution, that is, a structure of front-stage boost and rear-stage inverter, which can avoid the use of bulky power frequency transformers, effectively reduce the size, weight and cost of the power supply, and improve the efficiency of the power supply. The working principle of the circuit is that the 12 V DC input voltage is filtered and then boosted to a 350 V DC bus voltage by push-pull boost and full-bridge rectification, and then converted into 220 V/50 Hz industrial frequency AC power by a full-bridge inverter circuit. The sampling circuit samples the corresponding points to achieve closed-loop control and protection functions.
Under high current conditions, if the duty cycle of the power tube drive signal is too small, it will cause serious heating and reduce efficiency. Therefore, the front stage of the inverter power supply adopts a quasi-open-loop control method, that is, when the input voltage is within a certain range, the duty cycle of the drive signal is opened to the maximum and remains unchanged. When the input voltage is too high, the duty cycle is reduced to maintain the bus voltage within a certain range. The advantage of this is that the front stage boost can achieve higher efficiency.
2 System Hardware Design
The hardware structure of the inverter power supply is shown in Figure 2. It mainly includes a DC push-pull boost circuit, a sinusoidal inverter circuit, an output filter circuit, a drive circuit, a sampling circuit, a main controller and a dot matrix liquid crystal. Among them, the DC boost part increases the input voltage to a bus DC voltage above the peak value of the output sinusoidal AC, the sinusoidal inverter part inverts the bus DC voltage and obtains a sinusoidal AC through the output filter circuit, and the sampling circuit samples the bus voltage, bus current, output voltage, output current, and input voltage to achieve short-circuit protection, overvoltage and undervoltage protection, overcurrent protection, closed-loop voltage stabilization and other functions. The function of the drive circuit is to match and amplify the logic level of the drive signal to meet the requirements of driving the power tube. The function of the control circuit is to generate the drive signal and process the sampled signal to realize complex system functions. The function of the dot matrix LCD is to display system working information, such as output voltage, current and protection information.
1) Main controller The main controller uses the STM32F103VE enhanced microcontroller. The STM32 series microcontroller is a product designed by STMicroelectronics for high-performance, low-cost, and low-power embedded applications. This microcontroller adopts the Harvard structure, which allows the processor to perform addressing and data reading and writing operations at the same time. The processor performance is as high as 1.25 MIPS/MHz. It supports single-cycle hardware multiplication and division, with a maximum clock frequency of 72 M, and a maximum of 512 kB on-chip Flash and 64 kB on-chip RAM. It also has many peripherals suitable for inverter and motor drive, such as up to 30 PWMs and 3 12-bit precision ADCs. In this system, it is used to generate PWM and SPWM drive signals, and process the sampled signals to complete the voltage stabilization feedback and protection functions, and drive the dot matrix LCD to display system information. Considering the actual speed of the power tube and the driver chip, the frequency of the boost PWM wave is 20 kHz, and the frequency of the inverter SPWM wave is 18 kHz. According to different modulation methods, the SPWM drive signal form can be divided into: bipolar, unipolar, and unipolar frequency multiplication. Since bipolar modulation has low distortion, the SPWM in this design adopts bipolar drive mode.
2) Dot matrix liquid crystal LPH7366 dot matrix liquid crystal is selected, which has the characteristics of ultra-low power consumption. It is used to display the current working status of the system, such as output voltage, output current, input voltage and other information. At the same time, it indicates whether the system is in protection and what protection state it is in.
3) Auxiliary power supply Provide different voltage power requirements for different parts of the system. After the DC input voltage is stepped down to 5.0 V by LM2596-5 V, one part is used to power the sampling circuit, and the other part is stabilized to 3.3 V by LDO regulator LM117-3.3 V for the processor and dot matrix liquid crystal. At the same time, a voltage of about 20 V is obtained from an auxiliary winding of the push-pull transformer, which is rectified and filtered and stabilized to 15 V by LM2596-ADJ for use by the drive circuit. [page]
In the push-pull boost driver (U1, U2), TLP250 is responsible for matching the drive signal amplitude with the current. For the full-bridge inverter driver (U3, U4, U5, U6), not only the drive level and drive capability should be considered, but also the isolation of the upper and lower tube drive signals. To simplify the design, the upper tube driver (U3, U5) of the full-bridge inverter adopts a bootstrap power supply method to reduce the number of isolated power supplies used.
For the inverter bridge drive circuit, in order to avoid direct connection between the upper and lower tubes, the dead zone problem needs to be considered in the design. The PWM module of the STM32 microcontroller has a dead zone function, and this design adopts a software dead zone method. Another advantage of this is that for different power tubes, only the software design needs to be changed to obtain the best dead zone parameters.
5) Sampling circuit Output voltage sampling is used for feedback voltage regulation, output current sampling is used for overload protection, bus current sampling is used for short-circuit protection, bus voltage sampling is used to limit the bus voltage virtual high, and input voltage sampling is used for input overvoltage/undervoltage protection. Current transformers and voltage transformers are used in output sampling, which greatly reduces system interference and improves system reliability. The schematic diagram of the sampling circuit is shown in Figure 4.
For output current sampling, a 5 A/5 mA current transformer is used in this design. Since the output of the current transformer is a millivolt AC signal, in order to be collected by the AD module inside the microcontroller, it must be rectified into a DC signal and amplified. However, ordinary diode rectifier circuits are ineffective for millivolt voltages, so a small voltage rectifier circuit composed of an operational amplifier (U11, LM3 58) is used here. Actual tests show that this circuit effectively solves the problem of sampling millivolt signals. [page]
3 System Software Design
In order to improve the readability and code efficiency of the system, the software is designed with the state machine concept. Figure 5 shows the state transition diagram of the system. After the system is powered on and reset, it enters the SAMPLE sampling state. If the sampling completion flag FINISH is detected, it enters the JUDGE state for judgment. If FAULT is not 0, that is, there is a fault signal (overvoltage/undervoltage, overload, short circuit), it enters the PROTECT state to turn off the output, and jumps to the WAIT state to wait for the fault signal to be eliminated. When the fault signal is eliminated, the system soft restarts and starts new sampling and detection. If no fault signal is detected after the JUDGE state, it enters the NORMAL normal state and adjusts the voltage.
After the system is powered on, the initialization of each peripheral is completed first, mainly including the initialization of the system clock, timer, GPIO port, ADC, DMA, interrupt and SPI. Here, once the timer and interrupt are initialized, PWM and SPWM waves will be generated. Considering the high real-time requirements of overcurrent, short-circuit protection and feedback voltage regulation, they are completed in the interrupt. Undervoltage and overvoltage have low real-time requirements and are placed in the main program. In order to improve the performance of the system, ADC sampling uses DMA to transmit data. After the transmission is completed, an interrupt request is issued to perform simple filtering on the collected data. Other function functions call this data to complete the corresponding protection and voltage regulation functions. The flow chart of the main program is shown in Figure 6.
4 Debugging and Experiments
Based on the above ideas, a 400 W prototype was trial-produced, using IRF3205 as the push-pull boost power tube, HER307 as the rectifier diode, and IRF840 as the full-bridge inverter power tube. The PWM wave frequency of the front-stage boost is set to 20 kHz, the frequency of the rear-stage SPWM wave is set to 18 kHz, the output filter inductor L is 1 mH, and the output filter capacitor C is 4.7 μF. The actual test sinusoidal AC output voltage accuracy is 220 V ± 1%, the frequency accuracy is 50 Hz ± 0.1%, the THD is less than 1.5%, and the inverter efficiency is greater than 87%. The test waveform at full load is shown in Figure 7 (the output is measured by a 20 kΩ/100 kΩ resistor divider).
5 Conclusion The design of the digitally controlled sine wave inverter power supply with STM32 microcontroller as the main controller was fully discussed in
the paper , and the key issues involved were discussed in detail. In view of the higher requirements of high-end electronic equipment for inverter power supply, an effective solution was proposed. The use of this design scheme not only simplifies the hardware design of the inverter power supply, but also greatly improves the quality and performance of the power supply, and has a high promotion value.
Previous article:Wireless fire detection and alarm system based on information fusion technology
Next article:Design of wireless control system based on password recognition
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- Happy Teacher's Day! Let's talk about the teacher you remember most when you were in school!
- Definition of waveform overshoot on sampling resistor in constant current source application
- How to generate such waveform using Verilog?
- Environmental Monitoring System
- Are only foreign companies exempt from overtime work?
- 【micropython】Improved reset to bootloader
- 06 Make GD32L233C expansion board
- The names, wavelengths, characteristics and application fields of each band in the electromagnetic spectrum
- [TI Course] How is the anti-interference ability of TI millimeter-wave radar?
- The ampere-second product of capacitance and the volt-second product of inductance