Design of dry-type transformer intelligent controller system using ATmega16 microcontroller

Publisher:Ziran520Latest update time:2012-05-05 Source: 河北工业大学电器研究所 Keywords:ATmega16 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
1 Working Principle
The temperature controller consists of three parts: temperature monitoring, signal processing, and output control. The system block diagram is shown in Figure 1. It obtains the winding temperature value through three platinum resistance sensors embedded in the three-phase winding of the transformer, and directly sends it to the A/D conversion input of the controller after being processed by the signal conditioning circuit. The microcontroller performs calculations and processing according to the signal data and various control parameters set, and according to the embedded software control rules, automatically displays the temperature value of the transformer winding, outputs the corresponding control signal, controls the start and stop of the fan, and outputs normal, alarm and trip signals according to the current state. At the same time, various data are transmitted to the host computer through RS-485 for centralized monitoring.
The control core of the temperature controller adopts ATmegal6 microcontroller, which is a low-power CMOS 8-bit microcontroller based on AVR RISC. It can execute one instruction in one clock cycle and can achieve 1MIPS/MHz performance, so it has real-time performance. The chip has 16KB FLASH and 512B E2PROM, which can temporarily store faults and over-temperature upper limit temperature values. 

The analog conversion control circuit is used to convert the temperature analog quantity into an electrical signal that can be recognized by the single-chip microcomputer. The conversion principle is shown in Figure 2. When the temperature changes, the resistance value of PT100 will change linearly with the change of temperature. Its voltage division value is compared with a fixed circuit voltage division value, and the result is sent to the operational amplifier and converted into an analog quantity within the A/D conversion range. The
A/D conversion accuracy in ATmega16 is 10 bits. Since the reference voltage is 5V, the analog signal must be converted into a voltage of 0 to 5V. Therefore, when designing this circuit, the parameters of each component are designed according to this requirement. At the same time, its linearization must also be considered. In order to make the calculation in the software design linear, when designing the hardware, the temperature must be linearly changed with the digital quantity converted to the single-chip microcomputer. From the circuit, it can be seen that: From the formula
,
it can be seen that the obtained A/D conversion voltage is not proportional to Rw and does not meet the linear requirements. If it meets the requirements, the conversion voltage is approximately proportional to Rw and is also approximately proportional to the temperature. In this way, the temperature of any point can be calculated by linear calculation. However, using linearization to calculate this approximately linear graph will also bring about slight errors, which can be solved in software design.
1.2 Output circuit
The output circuit is the embodiment of the calculation and control results of the analog-to-digital conversion value by the single-chip microcomputer, as shown in Figure 3. The control quantity output by the single-chip microcomputer is input to the JK port. If this signal is low level, the optocoupler device is turned on, turning on the CMOS transistor, so that the relay is energized, the normally open contact is closed, and the 220V voltage is output; otherwise, the output voltage is 0V.
[page]

The software adopts a modular structure, including 1 main module and 5 submodules (button processing submodule, digital quantum module for setting upper limit temperature and collecting boundary points, communication submodule, fault output processing submodule and display submodule). The main module completes the initialization of each submodule and calls the fault output processing submodule and display submodule. The button processing submodule, digital quantum module for setting upper limit temperature and collecting boundary points and communication module work in interrupt mode, and the main module communicates with them through a shared RAM area. Since the analog input signal of the single-chip microcomputer application system contains various noises and interferences, this program uses digital filtering technology to filter. In addition, for the linearization problem mentioned above, we divide 0~200℃ into four areas and perform linearization calculations in each area. This is much more accurate than directly calculating in the 0~200℃ area and can achieve an accuracy of 0.1℃.
The functions of each submodule are as follows:
(1) The button processing submodule applies for an interrupt to ATmega16 when a key is pressed, and modifies the pre-set flag in the interrupt subroutine. (2) Setting the upper limit temperature and collecting boundary points The digital quantum module can enter the interface for modifying the upper limit temperature by entering a password when the key is pressed for a long time. The digital quantities corresponding to 0℃, 50℃, 100℃, 150℃, and 200℃ are collected through the buttons, and the results are stored in the E2PROM. This data is used as the boundary point to calculate any temperature between 0 and 200℃. (3) The communication submodule can connect to the remote controlled object through the LBC184 (converts RS232 signals to RS485 signals) chip and the single-chip microcomputer for RS485 communication. (4) The fault output submodule can determine whether an abnormal situation occurs on site by comparing the actual temperature with the upper limit temperature. At the same time, the flag bit is set to determine whether to perform A/D conversion and whether to display. (5) The display submodule converts the results of the linear calculation from binary to BCD code and sends them to the 5-digit LED display for display. 

(1) To solve the AC power interference in the temperature controller, a power filter is connected in series at the incoming end of the AC power, that is, the primary end of the power transformer. This can effectively suppress the intrusion of high-frequency interference (Figure 4).
(3) Use varistors at both ends of the temperature sensor in the analog conversion circuit and other places to absorb overvoltages of different polarities.
(4) Conduct electromagnetic interference tests at the dry-type transformer operation site, conduct probability statistical analysis on the test results, and minimize the electromagnetic interference generated by the interference source by carefully selecting components and using hardware anti-interference technology and software anti-interference technology.
The temperature controller has low power consumption, advanced technology, complete functions, simple operation, reliable performance, and can work stably for a long time in very harsh electromagnetic interference or high temperature environments. It is an ideal monitoring device for dry-type transformers.
Keywords:ATmega16 Reference address:Design of dry-type transformer intelligent controller system using ATmega16 microcontroller

Previous article:Design of dry-type transformer intelligent controller system using ATmega16
Next article:AVR MCU Hardware/Software Co-simulation Using VMLAB

Recommended ReadingLatest update time:2024-11-16 21:30

Multi-channel hydrological parameter acquisition and wireless transmission system based on ATmega16
Introduction In order to adapt to the modernization and information requirements of flood control and water conservancy scheduling, the construction of hydrological monitoring systems has entered the digital and networked stage. In many key waters (key rivers, lakes, reservoirs, water conservancy projects, etc.), it
[Microcontroller]
Multi-channel hydrological parameter acquisition and wireless transmission system based on ATmega16
Intelligent road lighting energy-saving system based on nRF905
    At present, the road lighting management systems in most cities in China still use relatively simple traditional control methods such as light control and time control. These systems generally have limitations such as difficulty in feedback of street lamp operation status information and difficulty in remote contro
[Microcontroller]
Intelligent road lighting energy-saving system based on nRF905
Proteus—AVR microcontroller (ATMEGA16 microcontroller) system clock and clock option settings
Before setting it up, I have to talk about the information in the ATMEGA16 datasheet, of course, about the system clock and clock options. 1. System clock and clock options (here we mainly introduce the principle, and 3 will introduce how to set it. In fact, if you know 1, then the following 2 and 3 will be quite simp
[Microcontroller]
Proteus—AVR microcontroller (ATMEGA16 microcontroller) system clock and clock option settings
Atmega16 microcontroller connected to ESP8266 NodeMCU to send email
Atmega16 is a low-cost 8-bit microcontroller with a higher number of GPIOs compared to its previous versions. It has all the commonly used communication protocols like UART, USART, SPI, and I2C. Due to its wide community support and simplicity, it has a wide range of applications in the robotics, automotive, and autom
[Microcontroller]
Atmega16 microcontroller connected to ESP8266 NodeMCU to send email
Atmega16 1602 LCD usage
#include #include util/delay.h #include"1602.h" uchar L ="LI Miss You"; void display()//display function {  write_com(0x80);  show_string(L);//display string } void init()//initialization function {  DDRC=0xff;//set all to output  DDRA|=(1 7)|(1 6);//set the 6th bit (rs control pin of 1602) and the 7th bi
[Microcontroller]
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号