Design of intelligent high-power DC power supply based on single chip microcomputer

Publisher:yanfeng00Latest update time:2011-10-28 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

introduction

In high-power DC power supplies, the main circuit generally uses a thyristor three-phase fully controlled bridge rectifier circuit. The key lies in how to accurately, reliably and stably control the conduction angle of the thyristor.

At present, the most common control method in the field application of high-power DC power supply mostly adopts KC or KJ series small-scale integrated circuits, that is, the phase shift signal obtained by comparing the three-phase sawtooth wave signal with the DC control signal. However, the slope, duty cycle, amplitude, etc. of the three-phase sawtooth wave signal are closely related to the device parameters of each phase, and small interference in the comparison signal may cause a large phase shift error, so the reliability and automatic balancing ability of the circuit are poor.

Using a single-chip microcomputer as the control circuit, according to the logical relationship between the three-phase full-controlled bridge trigger pulses, a six-phase highly balanced trigger pulse is directly generated, which can overcome the disadvantage of poor balance of the KC and KJ series circuits. However, since the field system works in an environment with severe strong electrical interference, in order to reduce the interference that may cause program operation disorder, cause the system to lose control and cause damage to the main circuit components; in addition, in order to enhance the system's functions, strengthen the human-computer dialogue ability, and realize the functions of display, printing, command input, cycle detection, overvoltage and overcurrent protection, and software PI regulator, dual CPUs must be used in parallel. However, the parallel operation of dual CPUs not only increases the complexity of the system, but also reduces the reliability and practicality of the system.

In order to overcome the above limitations, the 8098 single-chip microcomputer is used as the main control unit, and the anti-interference performance of WATCHDOG is fully utilized. A universal trigger board based on the basic control principle of phase-locked loop (PLL) is used as the intermediate interface to form an intelligent high-power DC backup power supply for power plants. Figure 1 shows the control system block diagram.

Figure 1 Control system block diagram

1 System Working Principle

Taking the example of the power system performing forced charging and floating charging on the battery, the working principle of the system is explained. According to the site requirements, the system has a total of 7 working modes, as shown in Figure 1.

1) Manual mode (M)

The system works in an open-loop state, using the PWM port of 8098 to output a 0~5V control voltage signal to the trigger board after filtering, so that the corresponding output voltage of the rectifier bridge is 0~300V. This method is mainly used for the inspection and maintenance of the main circuit of the system.

2) Voltage regulation method (V)

The voltage stabilization mode (V) is also called the floating charge mode, and the system operates in a closed loop as a voltage stabilization source.

In order to enhance the flexibility and versatility of the system, PI regulation is implemented by software.

(1) Standard digital PI algorithm

FIG. 2 shows a block diagram of a computer control system with a digital PI regulator.

Figure 2 Block diagram of a typical computer control system

The Z transfer function of the digital PI regulator is:

In the formula: Ki - integral coefficient, Ki = KoT/Ti; T - sampling period; Ti - integral time constant; Kp - proportional factor; U (Z) - z transfer function of control output; E (z) - z transfer function of deviation.

Expanding formula (1), we can get the following positional algorithm:

Where Uo is the initial value; Uk is the control value obtained at the kth sampling point; Ek is the deviation value obtained at the kth sampling point; Ej is the deviation value of the jth sampling point; k is the kth sampling point.

Arranged into a recursive formula form:

According to the above recursive formula, the PI regulator can be easily implemented by software. [page]

(2) Improved digital PI algorithm

The standard PI algorithm generally cannot meet on-site requirements. For example, when starting up, stopping or significantly changing the set value, the system deviation changes dramatically in a short period of time, which can easily cause a large integral accumulation ∑ (Ek), causing the control output to change sharply, the system to overshoot seriously, and the dynamic performance to deteriorate.

In order to prevent this phenomenon from happening, the integral separation method, the over-limit weakened integral method and the effective deviation method are often used to improve the standard PI algorithm, which is more common in the design of servo systems.

Since this system is a constant value control system, it requires soft start and soft stop functions, and the above improved algorithm can no longer meet the requirements. Therefore, a new constant deviation algorithm is used.

The constant deviation method is similar to the effective deviation method. The effective deviation method is also called the inverse algorithm. That is, when the control quantity Uk exceeds the limit, Uk takes the boundary value Umax or Umin. The deviation value Ek' is calculated from the boundary value to replace the original deviation value Ek. However, in the constant deviation method, the attenuated Ek' is used to replace Ek. When the system responds to a step, it actually works in an over-damped state, thereby reducing the impact on the main circuit components during start and stop. Figure 3 shows the step input response curves of the two algorithms. Curve (a) is the standard PI algorithm response curve, and curve (b) is the constant deviation method response curve.

Figure 3 System step response curve

(3) PI parameter setting

① Sampling period T

Since the output filter network of the main circuit determines the maximum cutoff frequency f of the system output ripple, the upper limit of the sampling frequency can be determined according to Shannon's theorem, f1 = 2f. In engineering, f1 = 10f is generally taken.

Since the main circuit parameters are known, we can obtain:

Its lower limit T2 is determined by the 8098 software execution time. If a 12M crystal oscillator is used, the average execution time of each statement is 2us, and the program requires about 500 statements, then T2 = 1ms. Therefore:

1ms≤ T≤6ms

The size of 1 was eventually selected through on-site debugging.

② Proportional factor Kp and integral time constant Ti The critical proportional method is often used in engineering to adjust the constants Kp and Ti. That is, under closed-loop conditions, temporarily remove the integral effect and gradually increase the proportional gain until the closed-loop system reaches a critical stable state and continuous oscillation occurs. Note the critical gain Ku and oscillation period Tu at this time, and obtain the approximate values ​​of Kp= and Ti by looking up the table, and then make corrections by debugging the whole machine.

The results of the voltage stabilization closed-loop experiment of this system are: Ku = 6, Tu = 12.0ms.

From the table, we can get: Kp=0.45 x Ku=2.7, Ti=Tu÷1.2=10ms.

Through the whole machine debugging, we can get the values ​​of parameters A and B in the recursive formula: A=3, B=2.

(4) Algorithm

To simplify program design, unsigned number arithmetic is used when programming 8098 software.

3) Steady flow method (I)

The steady-current mode is also called the strong-charging mode. The system operates as a current source closed-loop. The principle is the same as above, but the difference is that the integral time constant is smaller and the adjustment speed is faster.

The experimental data are as follows: Tu=6.0ms, Ti=5ms, A=4, B=2.

4) Automatic conversion of voltage and current (V/I)

When the battery is low, the system works in forced charging mode, and the battery voltage gradually increases. When it exceeds the set value, it switches to floating charging mode.

That is, the system can automatically select the charging mode according to the load conditions. Figure 4 shows a typical two-stage charging curve.

Figure 4 Battery two-stage charging curve

5) Working mode memory (M1.M2)

The system can store two sets of commonly used data, namely, working mode, voltage and current set values, voltage and current stabilization conversion values, and overvoltage and overcurrent values.

The current work records can also be protected when power is off.

6) Soft start and soft stop mode (SS)

When this key is pressed, the system works in soft stop mode. The trigger board pulls the control pulse phase to the maximum and then blocks the pulse output. When this key is released, it is soft start mode. The control output slowly increases from the minimum to the given value.

7) Battery testing method (TEST)

The system can detect the battery voltage cyclically, which is displayed by a digital tube and can also be printed out through the serial port, with an alarm prompt.

[page]

2 System workflow diagram

After the system is powered on, the peripheral interface of the microcontroller is checked first to ensure that the human-computer dialogue channel is unobstructed. Then a power-on signal is issued to reset the LEDs, given registers, etc., and then a square wave signal with a frequency of 2Hz is generated as the given input of the system.

To enter the above 7 working modes, the system has three ways.

Path I is the power-off restart mode. That is, after the system loses power, it can record the current working mode and return to the original state directly after power is restored.

This path is the entry channel when the system is working normally.

Path II and III are generally used for debugging. Path II is to enter the corresponding working mode through M and M, while the user needs to use Path III when setting the given value, conversion value and protection value.

After the system enters the corresponding working mode, it can accept user commands through interrupt mode and change the current working state (interrupt program flowchart omitted). Figure 5 shows the system working flow chart.

Figure 5 System workflow diagram

3. Introduction to the Universal Trigger Board

The thyristor universal trigger board is a thyristor trigger system designed based on the logical relationship between the three-phase synchronous signals locked by the voltage-controlled oscillator (VCO) using the phase-locked loop control technology (PLL) with a 40-core CMOS large-scale integrated circuit as the core. Given a 0~5V DC control signal, it can generate a three-phase, six-phase or twelve-phase strong trigger pulse with a phase shift range of 0°~180°. Due to the use of the above new technology, many shortcomings of similar products in the KC and KJ series are overcome, making the control pulse output by the trigger board highly symmetrical and balanced. In addition, the board's anti-interference ability and various additional functions also greatly enhance the practicality of the board, so it has a very high performance-price ratio and is suitable for various high-power thyristor control circuits such as rectification, inversion, and AC side primary control.

The trigger board does not require a synchronous transformer, has the ability to automatically measure and control the phase sequence, and has a phase loss protection function and a pulse prohibition interface; it can provide dual 30° and 120° wide high-frequency modulation trigger pulses through the code switch. Experiments have shown that the pulse can directly drive thyristors above 1000A, making it an ideal product for thyristor trigger systems in field applications.

4 Conclusion

The characteristic of this system is the flexible application of software PI regulator. On the one hand, it can make a comprehensive comparison of various PI algorithms and verify some new algorithms. On the other hand, based on the versatility of the system, different control modes and parameters can be given to different controlled objects. For example, batteries with 100A and 500A need different PI adjustment parameters; even if the capacity is the same but the manufacturer is different, the required parameters are inconsistent, which is determined by the chemical reaction speed inside the battery.

Another feature of the system is the use of a universal trigger board. It is located between the computer PI regulator and the thyristor main circuit. As a good buffer interface, it can ensure the safety and reliability of the system when the regulation is out of control. On the other hand, the WATCHDOG of the 8098 microcontroller also strengthens the system's anti-interference ability, making the system very suitable for field control.

Reference address:Design of intelligent high-power DC power supply based on single chip microcomputer

Previous article:DSP Design Scheme for Power Electronics Control System
Next article:Design of serial communication based on single chip microcomputer application system

Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

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号