Design of logic non-circulating reversible speed regulation system based on single chip microcomputer

Publisher:chunliLatest update time:2010-02-09 Source: 电子设计工程 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

1 Introduction

There are many machines in production that require both forward and reverse rotation, and often require fast starting and braking, that is, a reversible speed regulation system is needed. The reversible speed regulation system implemented by analog circuits has complex circuits, difficult adjustment, low reliability, and lacks flexible control. Therefore, a design scheme for a logic non-circulating reversible speed regulation control system based on a single-chip microcomputer is given here. The system design adopts a fully digital circuit to realize functions such as digital pulse triggering, digital speed setting detection, and digital PI algorithm. The speed and current regulation, logical judgment, and complex calculations are realized by software. It has optimization, self-adaptation, nonlinearity, and intelligent control rules that are different from general analog circuits, and it is flexible and convenient to change.

2 System composition and control principle

2.1 System composition

The digital logic non-circulating reversible speed regulation system is realized by AT89C51 single chip microcomputer to realize double closed loop control, non-circulating logic control, trigger pulse formation and phase control, as shown in Figure 1. In Figure 1, ASR is the speed loop, ACR is the current loop, DLC is the non-circulating logic controller, GT is the trigger pulse, TA is the voltage transformer, TG is the speed generator, and M is the DC motor. The main circuit adopts two groups of thyristor devices, positive group VF and reverse group VR, which are anti-parallel. The control circuit adopts the speed ASR and current ACR double closed loop system.

2.2 Control Principle

Digital non-circulating current logic control selects the positive or negative group of thyristors according to the positive or negative output value of the speed regulator, and switches accordingly according to whether the current of the main circuit is zero. And memorize the working status of the working group. Through torque polarity detection and zero current detection, corresponding logical judgment is made to release one group of thyristors and lock the other group of thyristors. For this purpose, two storage units L1 and L2 are set in the single-chip computer to memorize the working status of the positive group thyristor vF and the negative group thyristor VR.

3 System Hardware Design

The system hardware design is based on the AT89C51 single-chip microcomputer, and consists of program memory EPROM, address latch, A/D converter, 2 programmable counters, timer, pulse widening, photoelectric isolation, pulse amplification, zero-crossing detection and wave edge detection circuits, as shown in Figure 2.


3.1 Trigger

The main transformer and the synchronous transformer are both connected as D/Y-11. The symmetrical three-phase AC synchronous voltage lags 30° after the RC phase shift. The zero crossing point of the AC waveform is aligned with the trigger delay angle α=0°, and the trigger pulse can only be generated between 0° and 180°. The three-phase AC voltage after the RC phase shift is converted into a three-phase square wave with a difference of 120° and a width of 180° through the zero detector, which is added to the P1.0, P1.1 and P1.2 pins of the microcontroller as the detected power supply state, and this state is used as the basis for pulse distribution to determine the trigger sequence of VR and VF. The square wave outputs a negative pulse with an interval of 60° through the wave edge detector as the external interrupt request signal of the microcontroller. The three-phase transformer generates 6 interrupt signals in each cycle, and completes the pulse formation, distribution and shift control in each interrupt service program.

3.2 PI Regulator

The control law of the PI regulator is:


In the formula, y(t) is the output of the PI regulator; e(t) is the input of the PI regulator; Kp is the proportional coefficient; T1 is the integral time constant.

After discretizing equation (1), the regulator output increment between the (k-1)th and kth sampling times is △y(k):


In the formula, △e=ek-ek-1; yk is the kth output of the PI regulator; yk-1 is the (k-1)th output of the PI regulator; ek is the deviation between the given value and the feedback value at the seventh sampling; ek-1 is the deviation between the given value and the feedback value at the k-1th sampling; KI is the integral coefficient,


The difference equation obtained from formula (5) is:


In the formula, KI=Kp-K2, K2=TKI; yn is the nth sampling output; △Un is the input deviation at the nth sampling. In order to improve the accuracy, PI operation uses double bytes.

3.3 Non-circulating logic control

The non-circulating current logic control selects VR and VF thyristors according to the positive and negative output values ​​of the speed regulator, and makes corresponding logic judgments based on the torque polarity detection, releases one group of thyristors, locks another group of thyristors, and memorizes the working status (0 or 1) of the VF and VR thyristors, which are stored in the microcontroller storage units L1 and L2. When the thyristor is released, L1 and L2 store 1; when the thyristor is locked, L1 and L2 store 0. These status signals are sent to the P1.5 and P1.6 pins of the microcontroller to control the release and locking of the trigger pulse.

4 System Software Design

The software design for controlling current and speed determines the performance of the speed control device. The logic non-circulating current speed control system controlled by the single-chip microcomputer is required to complete the signal sampling, digital filtering, PI operation and real-time control of the two closed-loop systems in a few milliseconds. The main program flow is shown in Figure 3.


In the main program, waiting for interrupt is a stepping command. Since the response speed of the current inner loop is faster than that of the speed outer loop, an interrupt request of external interrupt 1 is nested in the timer interrupt service program T0. The interrupt service program of external interrupt 1 first samples the current, and then performs PI calculation with limiting and digital triggering according to the current situation. The system realizes speed sampling, filtering and non-circulating logic switching through the timer T0 interrupt service program.

5 Conclusion

The results of the logic non-circulating reversible speed control system are shown in Figure 4. It can be seen from Figure 4 that the armature current of the motor changes rapidly and smoothly from the maximum value allowed to the steady-state value. There is no overshoot current and speed overshoot in the dynamic process from the start to the steady state of the motor, the forward and reverse switching process is smooth, and the dynamic performance is good. Studies have shown that the digital logic non-circulating reversible speed control system controlled by a single-chip microcomputer has good stability and high reliability, which improves the accuracy and control performance of the speed control system. In addition, it also has functions that cannot be achieved by analog control systems such as information storage, data communication and fault diagnosis.

Reference address:Design of logic non-circulating reversible speed regulation system based on single chip microcomputer

Previous article:System design of elevator remote control based on C8051F340 dual serial port
Next article:Design of short sample test data acquisition system based on single chip microcomputer

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号