Discussion and analysis on the application of single chip microcomputer in motor protection

Publisher:科技先锋Latest update time:2012-07-30 Source: 21ic Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Single-chip microcomputer is the abbreviation of single-chip microcomputer. It is made by integrating CPU, ROM, RAM, TIMER/COUNTER and input/output interface (I/O) on a large-scale integrated circuit chip. Some single-chip microcomputers also integrate analog-to-digital converters (ADC), pulse width modulation modules (PWM), communication interfaces, etc. Users only need to use a small amount of peripheral circuits to form various application systems. Single-chip microcomputers can be divided into 8-bit machines and 16-bit machines, among which 8-bit machines dominate the market. There are many semiconductor manufacturers that produce single-chip microcomputers, including: INTEL, PHILIPS, SIEMENS, ADM, ATAIEL, MICROCHIP, etc. In recent years, the single-chip microcomputers produced by MICROCHIP have been favored by electronic engineers for their simple instruction system, nanosecond instruction cycle, and powerful peripheral interface functions. The author has used PIC16CXXX and PIC16FXXX series products and finds them very convenient to use.

The functions realized by the motor protector mainly include: three-phase current display, sound alarm, fault tripping, fault memory, overload protection, short circuit protection, leakage protection, phase loss protection, phase imbalance protection, phase sequence protection, over-voltage and under-voltage protection, etc. To realize such comprehensive functions with traditional analog circuits, the circuit will become very complicated and the volume of the entire device will be very large. Therefore, the functions that some analog electronic motor protectors can realize are relatively simple. For example: overcurrent protector, phase loss protector, leakage protector, etc. The emergence of single-chip microcomputers has made a qualitative leap in the development of motor protectors, reaching an unprecedented level in terms of intelligence, functional diversification, miniaturization, modularization, performance reliability, etc.

The single-chip microcomputer system is used to realize the function of motor protection. In terms of hardware, it is mainly composed of three-phase current signal sampling, leakage current sampling, voltage signal sampling, keyboard interface, display part, control output, alarm output, communication interface and other parts. The key parts are briefly analyzed below.

1. Three-phase current sampling part

This part of the design is directly related to the sampling accuracy of the current. Therefore, it must be determined through theoretical analysis and repeated experiments. This part of the circuit can use a rectifier circuit or a direct AC proportional conversion circuit. The circuit used directly determines whether the program uses DC sampling or AC sampling, and the program design will be completely different.

If DC sampling is used, the circuit needs to use a rectifier circuit. The rectifier circuit includes half-wave rectification, bridge full-wave rectification, precision half-wave rectification, precision full-wave rectification and other forms. Both diode half-wave rectification and bridge full-wave rectification have the problem that the diode conduction voltage drop affects the linearity of the rectifier circuit, especially when the signal voltage is low. The impact is greater. In order to reduce the impact of the diode conduction voltage drop, Schottky diodes should be selected as rectifier devices, such as IN5819, but it should be noted that the IN5819 withstand voltage is low (only 40V), so the sampling voltage signal should not be too large. Precision half-wave or full-wave rectifier circuits are introduced in many materials, so there is no need to repeat them here. The advantage of this circuit is that it avoids the influence of the forward conduction voltage drop of the rectifier diode, but at the same time increases the complexity of the circuit, and it is also necessary to provide positive and negative power supplies for the amplifier, which increases the cost of the power supply part. In actual use, the pros and cons should be weighed and a comprehensive consideration should be made before making a choice.

In some high-end instruments, people generally use AC sampling. The sampling method is to continuously and real-time sample a complete waveform of the measured signal at a certain period (called sampling period) (for a sine wave, only half a period is needed), and then perform true effective value calculation on the discrete signal obtained by sampling, so as to obtain the true effective value of the current signal, thus avoiding the influence of waveform distortion of the measured signal on the sampling value. There are several key technologies for AC sampling: 1. The sampling period should be much smaller than the period of the measured signal, which is not a problem for the power frequency current signal, because the processing speed of the current microcontroller is sufficient. 2. To avoid distortion of the sampling signal from the hardware, efforts need to be made from several aspects: ① Ensure that the waveform distortion of the voltage signal output by the current transformer within the measurement range is small. ② The sampling signal of the current transformer often needs to be proportionally amplified to the input interface of the microcontroller, which requires the signal conversion circuit to have small distortion. ③ To prevent noise interference, the general practice is to add a high-frequency bypass capacitor to the input port of the microcontroller. The AC sampling circuit removes the RC filter capacitor, so the response speed is greatly improved compared to DC sampling, which is especially beneficial for those follow-up systems that require high response characteristics. Although AC sampling has many advantages that DC sampling cannot match, it is rarely used in some simpler small systems because it increases the difficulty of software programming and takes up a large storage space.

2. Display

LED digital tubes are often used as user interfaces in industrial control instruments. They have the advantages of high brightness and simple driving circuits, but they can only display a limited number of characters, making it difficult to express relatively rich information. At present, some high-end instruments have begun to use character LCDs or graphic LCDs, some of which also contain Chinese character library modules, which are directly displayed in Chinese, making the interface very intuitive, easy to understand and operate. However, this also increases the cost of the circuit, especially the price of graphic LCD modules is too high, which is generally unacceptable for low-priced instruments.

The interface between the microcontroller and the LED digital tube generally adopts serial communication, and is equipped with a shift register to drive the digital tube. Different driver programs can be designed to achieve different display modes. For example: the digital tube flashes, the decimal point is automatically changed, and special characters are displayed. In order to reduce the power consumption of the digital tube, a dynamic drive method is generally adopted, that is, it is only displayed within (1/3-1/2) T in a cycle (T). The brightness of the digital tube can be changed by adjusting the duty cycle. In addition, it should be noted that the driving voltage of the digital tube cannot be too high. If it is driven by a +5V power supply, a current limiting resistor or a buck diode must be added. Among them, a buck diode is better to prevent voltage fluctuations caused by changes in the number of digital tubes lit, thereby ensuring the stability of the brightness of the digital tube.

The data line of the interface between the microcontroller and the character LCD module can still use the serial interface mode, and the control signal can be directly controlled by the microcontroller I/O port. If the data line uses the parallel mode, it will occupy a large amount of microcontroller resources, so it is not suitable for use. When compiling the driver, if the performance permits, you should pay attention to reducing the signal frequency of the data line and the clock line as much as possible, so as to reduce electromagnetic interference.

3. Control output

The control output part can use electromechanical relays or solid relays. The former is cheap, has abundant market products, and has a relatively simple driving circuit, but its reliability and service life are limited, and "sparks" will be generated when the contacts are in action, which can seriously affect the normal operation of the system. Therefore, when laying out the PCB board, the relay should be kept as far away from the microcontroller as possible and close to the output port of the instrument. In addition, a freewheeling diode should be connected in parallel at both ends of the relay coil, otherwise a high induced voltage will be generated at the moment when the relay coil is powered off, thereby destroying the circuit. Solid-state relays have the characteristics of long life, stable performance, and no sparks. With the gradual reduction of their prices and the improvement of their performance, they have begun to be widely used, but the price of low-power solid-state relays is still many times higher than that of ordinary relays. Therefore, ordinary relays are used in most motor protectors. In many applications, people hope to have two independent control outputs, one as the main circuit control output and the other as an auxiliary output, as an alarm or other function control.

In the single-chip microcomputer system, software is a very important part, which can fully reflect the designer's design ideas. Through the program, the intelligent control of the motor protector and remote communication functions can be realized.

Reference address:Discussion and analysis on the application of single chip microcomputer in motor protection

Previous article:Hardware Design of Network Interactive Digital Set-Top Box Based on ST40GX1 and STi5514
Next article:Design of high voltage drive power supply 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号