Blog Archive

Showing posts with label Microcontroller. Show all posts
Showing posts with label Microcontroller. Show all posts

Saturday, 11 June 2016

MICROCONTROLLER BASED ACTIVE AND REACTIVE POWER MEASUREMENT

MICROCONTROLLER BASED ACTIVE AND REACTIVE POWER MEASUREMENT

ABSTRACT
The work presented in this paper introduces a simple method for the measurement of active and reactive power digitally using microcontroller. Three signal values are generated, the first is proportional to the peak value (Vm) of the line voltage v(t), the second and third signals are proportional to the instantaneous values of the line current i(t) at the instants of v(t)=0 and v(t)=Vm, i.e. Imsinø and Imcosø respectively, where Im is the peak value of the line current and ø is the phase angle. These signals are inserted in to PIC16F877A by means of analog circuit. The active and reactive power are calculated by the algorithm written on the PIC16F877A. The calculated values by multiplications and digitization will provide a realizable and displayable form on LCD screen.
Keywords: Microcontroller, Active and Reactive Power, Microcontroller, Measurements.

INTRODUCTION
Rapid advances in the technology of solid state devices have provided many inexpensive and powerful means of implementation in the various fields of instrumentations, measurements, control….etc. thus measuring instruments, based on this new technology are replacing the conventional types of measuring equipment especially in the fields of electrical and electronics measurements. However, constant research and development are still bringing new, more flexible and simpler to use equipment. In the past many years many researchers have been able to provide good and accurate designs for the measurement of the electrical power digitally. Their attempts were based on different methods, e.g. using microprocessor, linear or non-linear ADC, etc. In this work a simple approach has been tried to realize active and reactive power digitally. This approach is based on the generation of three values by means of analog circuit, these values are proportional to Vm, Imcosø and Imsinø, thus multiplication by using microcontroller will result in Vm Imcosø, i.e. active power and Vm Imsinø, i.e. reactive power.

PRINCIPLE OF OPERATION
Consider a normal three wire power system, where voltage and current signals under steady-state conditions are of sinusoidal nature. Thus the instantaneous voltage v(t) and current i(t) are given as follows:
 
Where Vm is the peak value of the line voltage, Im is the peak value of line current, and ø is the phase angle between line voltage and line current (leading or lagging).
From Fig(1) : wt=p/2, then
 
At wt=0, then
 
Thus multiplication of eqns. (3) and (4) will give Vm Im cos ø, i.e. active power, and multiplication of eqns. (3) and (5) will give Vm Im sin ø, i.e. reactive power.

HARDWARE DESCRIPTION
The design aim is to monitor active and reactive power on LCD display continuously. The circuit diagram and corresponding timing waveforms of the system are shown in Figs. 2 and 3 respectively. The basic point in the proposed technique is to generate three values using ADC contained in the microcontroller; these values are proportional to Vm, Imcosø and Imsinø. This has been achieved by taking the ADC values from voltage and current signals at the instants of peak voltage Vm and 0 voltage, i.e. at the instant when the voltage signal crosses the zero line. To achieve this aim electronically. The current and voltage signals are acquired from the main AC line by using current transformer and potential transformer. The acquired voltage signal V1 is shifted 90o, squared V2 and reduced ON time with monostable V3. Both V1 and current signal I1 are read by the microcontroller, at the positive edge of V3, both signal values are taken, providing two components Vm and Imcosø. The two components if multiplied will result in (VmImcosø) a value proportional to the active power P. For the realization of reactive power, the same procedure is used except that the 90o phase shift is bypassed by using SPDT switch, thus the acquired current signal value is taken at the instant of zero voltage, producing value proportional to Imsinø. Thus multiplication will result in (Vm Imsinø) a value is proportional to reactive power Q. The required multiplication has been achieved with microcontroller PIC16F877A. The active and reactive power are calculated by the algorithm written on the PIC16F877A, the output of which is displayed on LCD accordingly.
 
Fig 2. Schematic diagram of measuring system
 
Fig3. Timing waveforms

PIC16F877A Microcontroller
The PIC16F877A is a microcontroller from Microchip in a chip type of 40-pin DIP packages. The principal characteristics by which this PIC was used are: digital I/O ports, analog inputs, analog to digital converter of 10 or 8-bit resolution, serial communication USART, memory storage EEPROM. The PIC16F877A, has programmed routines process or features, such as analog to digital conversion to get the values from the sensors, storage of historic data in the internal EEPROM when an alert happened generates a detection range of values which can determinate whether the system suffered acceleration that cause an alert. The circuit used in this work operates of 20 MHz clock frequency and runs each instruction as fast as 200 ns. The program for the PIC16F877A microcontroller is written in Micro C and is compiled into Hex program. Microcontroller is programmed to calculate active and reactive power. The flow chart of this calculation in Hex is shown in Fig. 4. The input of the current and voltage signals are connected to pins 3,4 and 8 as shown in Figs. 5 (a) and 5 (b).

SOFTWARE COMPONENTS
This section presents the software’s used in the design of the measuring system
A. Micro C: Micro C is powerful, feature rich development tool for PIC micros. It designed to provide the programmer with the easiest possible for developing applications for embedded systems, without compromising performance or control.
B. Proteus 7 Professional: is an interactive system level simulator. Which combines mixed mode circuit simulation, micro-processor models and interactive component models to allow the simulation of complete micro-controller based designs.
 
Fig4. Flowchart of active and reactive power measurement . Hex program

 
(a) Active power.
 
(b) Reactive power
Fig5. The microcontroller inputs of the current and voltage signals

 
(a): Active power.
 
(b): Reactive power.
Fig6. System linearity curves.

CONCLUSION
The technique presented in this paper provides a very simple means for the digital measurement of active and reactive power. Which can be implemented in the various fields of industry and education. The circuit is designed to display active and reactive power of the load connected the network. Calculation process is achieved by PIC16F877A. This approach is so straight forward that the hardware is very simple. The system has been tested under different loading conditions using proteus simulator and has shown linear behavior under those conditions, as shown in Fig.6 (a) and (b).

REFERENCES
[1] Banks, W., and Majithia, J.C., 1976, Microprocessors: Design and applications in digital instrumentation and control. IEEE Trans. on Instrumentation and Measurement, IM-25, No. 3.
[2] Filipski, P., 1980, A new approach to reactive current and reactive power measurement in nonsinusoidal systems. IEEE Trans. on Instrument and Measurement, IM-29, No.4.
[3] Hafeth, B. A., and Abdul-Karim, A. H., 1984, Digital power meter using non-linear ADC. International Journal of Electronics, 57,179-186.
[4] Ibrahim, K. M., and Abdul-Karim, A. H., 1984, A novel phase measurement method. International Journal of Electronics, 56, 217- 221.
[5] Prokik, D., 1986, A concept for measurement of electric power on the basis of Mass measurement, Rev. Roum. Phys. Tome, 31, 275-279.
[6] Fatih B., and Omer F. H., 2010, Microcontroller-controlled reactive power measurement and saving circuit design for residences and small scale enterprises, Scientific Research and Essays Vol. 5(16), pp. 2312-2317.
[7] Microchip 2001, PIC 16F87X Data Sheet, USA. [8] Basil A., 2012, Alerting system design using PIC16F877a for power distribution system, The 4th International Engineering Conference –Towards engineering of 21st century.

Tuesday, 10 May 2016

DESIGN, IMPLEMENTATION AND PERFORMANCE STUDY OF PROGRAMMABLE AUTOMATIC VOLTAGE REGULATOR

DESIGN, IMPLEMENTATION AND PERFORMANCE STUDY OF PROGRAMMABLE AUTOMATIC VOLTAGE REGULATOR

ABSTRACT

This paper proposes the design and implementation of a Programmable Automatic Voltage Regulator (PAVR) with higher precision, appropriate hysteresis and defense of anomaly. Current systems available locally lack precision and suffer the problem of oscillating between two output voltage and hence creating surge at the output which can damage valuable electronics. To avoid these, the stabilization of power voltage, minimization of output wave rate and unchangeable power-voltage to the instruments are needed while the load changes. That requires the maintenance of stable voltage and rapid reaction against the sudden change of input voltage and load. This paper defines the shortcomings and introduces a new system in the tolerable and substantial stable of 220V with '4.5% output accuracy for any deviation of input supply voltage within 100V-340V. To control the whole system automatically a microcontroller is used with some protection devices where to detect fault and the circuit implementation in this system are simple and flexible than conventional analog control circuitry. A simulation for both circuit and program has been accomplished for establishing better performance.
Keywords: Programmable Automatic Voltage Regulator (PAVR), Hysteresis, Microcontroller, Protection, Simulation.

INTRODUCTION
AC power supply by Power Development Board (PDB) in Bangladesh is subjected to variation from time to time. Moreover in rural areas supply voltage remains lower than specified most of the times. This poses a considerable threat to the sophisticated electronic devices. For that reason, many important electric machine or electric equipments may destroy. Power quality related problems, in particular voltage sags, surge and brownouts have a major negative impact on industrial productivity. This appears to be true for both industrialized as well as developing nations. So ensuring the input voltage to remain in a tolerable pre-specified limit has become a necessity in rural as well as some urban areas. In order to save these we need to use the Automatic Voltage Regulator.
An AVR is an electronic device that automatically regulates a variation of input voltage at a certain desired level to load. The voltage of main power supply may be affected by various troubling physical factors, so that special regulating equipment is required to keep the voltage steady. In replace of AVR, Programmable AVR is more flexible, easy to modify and the best for good precision and hysteresis. The existing systems like servo-stabilizers, CVTs, Ferro resonant regulators, thyristor ac regulators, tap changers and the electronic regulators are the available means for voltage regulator. Here the performances of existing commercially available technologies are compared by this system regarding response, faults handling, precision, efficiency and other important parameters. It is essential that the supply ac voltage is needed to operate automatically due to the interconnections among the systems in modern age. The electronic control circuit may be utilized to get the desired output which is very simple, flexible, reliable and cost effective.
AVR mainly functions to measure and regulate the input voltage for producing the stable output and to provide the Protection against sag, surge, spike, impulse, notch, brown out, over voltage, under voltage, over current and hysteresis to the sophisticated equipments and machineries. In this system, the whole operations are implemented by a microcontroller. Microcontroller here performs all actions in accordance with the program maintaining proper precision and hysteresis as we desire and the undesired input transitions are handled by the AC protection devices. The whole proposed design is illustrated in the following block diagram (Figure-1).
 
Figure-1: Block diagram of PAVR
A multi-tapped transformer with input supply and switches connected in primary and in secondary respectively to obtain regulated and stabilized output voltage at the load side is used. Here microcontroller plays the important role to decide and hence to control the switches through which secondary tap carries the power from input to load with a steady voltage. This system also provides the protection against surge, spike, lightning, overvoltage and excess current by adding AC breaker (MCB), Automatic Voltage Switcher (AVS) [25] in the Input line. In the upcoming sections the designing procedure with simulations, programming, the control operation of microcontroller and performance analysis will be discussed.

DESIGNING PROCEDURE AND DISCUSSION
Description of Circuit Design
As the designing commitment which is to stabilize automatically a large range (100V- 340V) variation of input voltage at a normal prescribed level output voltage (Table-1) with a great precision. For this the voltage regulation of input supply is designed which is regulated automatically in such a way that when the input voltage varies, the output voltage will remain stable at a constant value. To achieve this, a microcontroller has been programmed is such a way that when the dc input to microcontroller varies in accordance with the variation of input voltage, microcontroller will operate the suitable switch to get a regulated output from desired transformer tap. Table-1 represents the designing configuration of the multi-tapped transformer.
Firstly, the microcontroller compares a converted variable DC voltage which is found by stepped down the ac supply voltage with the range, which is shown in Table-2 and is set in the memory of the microcontroller. The voltage range for the program has been chosen in such different manner for letting switches functioned to select the different taps for getting desired output of around 220V AC (Table-2). Thus the stable output voltage occurs at the output of this designed regulation system for any short of variation of input voltage automatically. The whole schematic of the PAVR is shown in Figure-2 and Figure-3.
 
Figure-2: Schematic diagram of PAVR (Part-1)
 
Figure-3: Schematic diagram of PAVR (Part-2)

Simulation Procedure
To determine the accurate level of voltage for designing of switching and making the microcontroller program this circuit has been simulated using PSPICE Simulator. The operation of switching of PAVR at different level of input voltage is observed as well. Here, for input supply voltage of 130V, the switching operation is shown graphically in
Figure-4 where the switch under PB0 and Q0 is “ON”. At any input voltage within 100V- 340V, one and only one switch is activated at a time as defined in the program.
 
Figure-4: Simulation for 130V Input

Flowchart description
The microcontroller program of the PAVR is designed and functioned, as the following flowchart (Figure-5), to measure the received DC voltage and then to compare with the prescribed range stored in the microcontroller memory and finally to obtain a decision for the output. In the flowchart, it is also shown that when the received DC input is out of the range (i.e. above 5V and below 1V), microcontroller will operate “No Operation (NOP)”. That means, the PAVR will remain “OFF” during excess high and low voltage AC supply to protect the devices and equipments from damaging. Here the increasing and decreasing of DC input voltage are given orderly to maintain the hysteresis properly.
 
Figure-5: Flowchart for the program of microcontroller operation

Description of Program Operation
The program that was designed for the PAVR has been simulated using PIC Simulator IDE software [28]. PIC Simulator IDE is a basic complier, assembler, disassembler and debugger for microchip family PICmicro. Firstly, the microcontroller has to be selected to load the program. Then the simulation has to be run. The sequences of operation have to be executed as follows.
Option>Select Microcontroller
Tools>Assembler
File>open/PAVR.asm
Tools>Assemble & Load
Simulation>Start
Tools>Microcontroller View
Tools>8×LED Board
The overview of simulation is presented by Figure-6 with PIC Simulator IDE interface. In this figure, the PORTB0 is displayed as ON when the input voltage is in the range of 1.0V-1.5V (2Ch-0Fh).
 
Figure-6: The simulation interface of PIC Simulator IDE with output Display

Description of Microcontroller Operation
A PIC16F876A CMOS FLASH-based 8-bit microcontroller (Figure-7) is used to control the whole system which is more reliable, simple and flexible than conventional analog control circuitry. It features especially Self-reprogrammable under software control, 2 I/O pins & 3 I/O ports, 256 bytes of EEPROM data memory, 2 Comparators, 5 channels of 10-bit Analog-to-Digital (A/D) converter, Programmable code protection, Power-saving Sleep mode, Selectable oscillator options and In-Circuit Debug via two pins.
 
Figure-7: Pin diagram of PIC16F876A Microcontroller with program placing.
An assembly language program is loaded in the microcontroller memory (Figure-7) that configures the A/D module, comparator module and I/O ports, and sets different registers of the memory with the different range of digital code (Table-3). In the program the registers are assigned by any arbitrary names to make the program more readable.
Here port-A is used as input port and port-B as output port. Firstly, microcontroller receives the DC input corresponding to supply AC input from stepped-down transformer at RA1 of PORTA. And then it is compared with the ranges that are set in the memory of microcontroller in the form of code via an A/D converter and a comparator. After that it makes anyone of the output pins (RB0-RB7) of PORTB HIGH corresponding to the range, as mentioned in Table-2, which in turn activates a respective switch to get the regulated output from the transformer. Here a constant voltage level is maintained although the input voltage level goes high than the constant desired level (Table-4). To sense this change, the microcontroller periodically checks terminal voltage and compares this with defined reference voltage levels. For designing purpose the reference voltage and code as a range has been calculated to corresponding pins of PORTB. This is shown in Table-2 and Table-3.
Table-1: (For the Design of Multi-tapped Transformer) Output Voltage Range corresponding to Input Range and Transformation Ratio at different Taps at Normal Input Voltage of 220V
Table-2: Selection of output pins, Switches and Transformer Taps for the prescribed input DC voltage range corresponding to input AC supply voltage range.
Table-3: Hexadecimal Value of digital code equivalent to prescribed DC voltage range corresponding to AC input and PAVR output voltage.
Table-4: Experimented Analog DC input for ADC of Microcontroller and Regulated AC Output Voltage for typical AC Input Supply

PERFORMANCE ANALYSIS
This system has been experimented practically after designing. Here for some typical AC input voltage supply, the regulated output approximate to desired level is found that is shown in Table-4. From this table, it is clearly revealed that this PAVR is able to regulate any variation of input voltage of a system within 100V-340V at a stable range of 210V- 230V and also to defend the system from damage due to extreme decrease and increase in AC supply voltage which is out of the range of 100V-340V. In Figures below present some performance curves of PAVR. Figure-8 shows the desired response curve of PAVR which is produced from the desired output voltage (210V-230V) for any input supply voltage within range of 100V-340V. In Figure-9, a typical input-output voltage characteristics curve of PAVR is put on view of the regulated output voltage that is near about 220V AC (Data in Table-4).
The Figure-10 exhibits a practical input-output voltage characteristics of PAVR for random supply. In this response curve, it confirms the design requisition of a stable output in range of 210V-230V as the regulation of any change in AC supply voltage within 100V- 340V, and the protection any system from spoiling due to low voltage i.e. below 100V and high voltage i.e. above 340V. A hysteresis curve, given in Figure-11, shows the hysteresis behavior of PAVR during the operation of switches at the transition of different ranges of input supply voltage. It is needed to maintain properly to prevent the frequent vacillation of switching between “ON” and “OFF”.
 
Figure-8: Desired Response Curve of PAVR

 
Figure-9: Typical Input-Output Voltage Charactesistics of PAVR

 
Figure-10: Practical Input-Output Voltage Characteristics of PAVR for Random Supply

 
 Figure-11: Hyteresis Curve
CONCLUSION
It is clear that, from above design and discussion, and the comparison shown in Table-5 with some other common existing AVR systems, my proposed proprietary PAVR performs better than any other existing systems. Because it is mainly programmable that can be programmed as the demand maintaining proper precision and sufficient hysteresis over a wide range of input variation. Here the protection against the excessive high and low voltage and current is confirmed which is crucial for the sophisticated electrical and electronic equipments. It is mentionable that the PAVR is very much cheap than other systems because of having microcontroller in place of discrete electronic components and simple protection units. Therefore, the circuit design and implementation are very much easy, flexible and the efficiency of this system is good enough as well. According to market comparison study, the commercially available AVR has a three to four step stabilization of the input variable voltage where the output becomes a big changing stable value within a prescribed range that is not an absolute design to get an output precised. For this reason in my research the way has been adopt to make the system for getting the precision output within in a large variation of input is the design of the main transformer having a many number of taps in the secondary winding side of the transformer maintaining a small turn difference between two adjacent taps. PAVR is applied to all electrical and electronics equipments especially in communications and precision instruments of manufactories.

REFERENCES
[1] WD. Stevenson, Elements of Power System Analysis, McGraw-Hill International, Singapore, Fourth Edition, pp. 337-341, 354-365, 1983.
[2] J. Lamoree, D. Mueller, P. Vinett & W. Jones, Voltage sag analysis case studies, IEEE Transactions on Industry Applications, vol. 30 pp. 1083-1089, 1994.
[3] VK. Mehta & R. Mehta, Principles of Power System, S. Chand & Co., New Delhi, Third Edition, 2003.
[4] FD. Martzloff, Coordination of Surge Protectors in Low-Voltage AC Power Circuits, IEEE Transactions on Power Apparatus and Systems, vol. 99, pp. 129-133, 1980.
[5] MM. Hoque & AI. Mahmod, An Improved Automatic Voltage Regulation System with Apposite Hysteresis and Immense Precision, Chittagong University Journal of Science, vol. 33, pp. 21-33, 2010.
[6] M. Rasheduzzaman, MM. Hoque, NK. Das & JP. Chakrabartty, Design and implementation of an automatic voltage regulator (for ceiling fan) using temperature sensor, G-Science Implementation and Publication, International Online Journal of Engineering, vol. 5, pp. 207-
211, 2008.
[7] BL. Theraja, AK. Theraja, A text book of Electrical Technology, S. Chand & Co., New Delhi, 23rd Edition, pp. 335-338, 1029-1035 & 1098-1104, 2002.
[8] AP. Malvino, Electronic principles, McGraw-Hill International, Singapore, Sixth Edition, pp. 815-826, 1999.
[9] J. Millman & CC. Halkias, Integrated Electronics, Analog and Digital Circuit and System, Tata Mcgraw-Hill Edition, pp.568-470 & 583-585, 1991.
[10] GK. Mithal & M. Gupta, Industrial and Power Electronics, Khanna Publishers, India, Nineteenth Edition, pp. 79-90, 2003.
[11] CT. Pan & TY. Chang, An improved hysteresis current controller for reducing switching frequency. IEEE Transactions on Power Electronics, vol. 9, pp. 97-104, 1994.
[12] V. Sudha & M. Krishnaveni, Power fluctuations-usage of servo voltage stabilizers in industries, International Journal of Applied Engineering Research, Dindigul, vol. 2, pp. 283-289, 2011.
[13] D. Hou & J. Roberts, Capacitive voltage transformer: transient overreach concerns and solutions for distance relaying, Canadian Conference on Electrical and Computer Engineering, vol. 1, pp. 119 – 125, 1996.
[14] H. Hart & R. Kakalec, The derivation and application of design equations for ferroresonant voltage regulators and regulated rectifiers, IEEE Transactions on Magnetics, vol. 7, pp. 205- 211, 1971.
[15] MC. Huang, J. Lu & YJ. Peng, Research on Trigger Methods for Thyristor AC-Voltage Regulator, Journal on Power Electronics, vol. 02, 2004.
[16] DH. Jang, Chungnam & GH. Choe, Step-up/down AC voltage regulator using transformer with tap changer and PWM AC chopper, IEEE Transactions on Industrial Electronics, vol. 45, pp. 905-911, 1998.
[17] DL. Fletcher & WO. Stadlin, Transformer Tap-Position Estimation. Proceedings, 13th PICA Conference, pp.226 -232, 1983.
[18] MS. Calovic, Modeling and Analysis of Under-Load Tap-Changing Transformer Control Systems, IEEE Transactions on Power Apparatus and Systems, vol. 103, pp. 1909-1915, 1984.
[19] JA. Jindrick & K. Nohria, Microprocessor Based Control of Transformer Tap- Changing, McGraw-Edison Bulletin 82016. 1982.
[20] N. Kutkut, R. Schneider, T. Grant & D. Divan, AC voltage regulation Technologies, Power Quality Assurance, pp. 92 -97, 1997.
[21] KE. Addoweesh & AL. Mohamadein, Microprocessor based harmonic elimination in chopper type AC voltage regulators, IEEE Transactions on Power Electronics, vol. 5, pp. 191-200, 1990.
[22] PIC16F876A, 28/40/44-Pin Enhanced Flash Microcontrollers Data Sheet, Microchip Technology Incorporated, ISO 9001/ QS-9000. U.S.A. 2003.
[23] Miniature Circuit Breakers and Switches, Class 720, QOU, Schneider Electric USA, 0720CT9401R1/05, 2005, available at http://www.uecorp.com/busway/faq_pdf/ qou.pdf
[24] W Breer, P Hug, U Hunziker, R Kaltenrieder, H Unterweger & H Weichert, Low-Voltage Switchgear and Controlgear, Allen Bradley - Rockwell Automation, Milwaukee, USA, 2009
[25] V Sukumar & T Castagnet, An Automatic Line Voltage Switching Circuit, AVS10-30, SGSTHOMSON Microelectronics, 1995
[26] Berkley Spice, SPICE8, Electrical and Electronic Simulation Software, 1970.
[27] RL. Boylsted & L. Nashelsky, Electronic Devices and Circuit Theory, Prentice-Hall, USA, 6th Edition, pp.741-748 & 773-780, 1996.
[28] Vladimir Soso, PIC Simulator IDE v.6 91, Oshon Software, 2011.
[29] Configuration of Automatic Voltage Regulator, SAMSUNG, VENUS, MICROTECH, VENSTAB, SILICON.

Thursday, 21 April 2016

ULTRA-FAST ACTING ELECTRONIC CIRCUIT BREAKER

ULTRA-FAST ACTING ELECTRONIC CIRCUIT BREAKER
ABSTRACT
The steadily increasing population has more demand and consumption of electric energy in the market as raised and that of equipment’s used like electrical and electronics are also costlier. So to protect the electrical system from overload or short circuit here is one possibility, which is by ultrafast acting electronic circuit breaker. A circuit breaker is automatic operated switch designed to shut down the power supply when overloaded. The tripping depends on the current passing through the CT’s which is connected in series with load. It uses the PIC- microcontroller into which program is dumped for the operation. The unit is extremely fast and over comes the drawback of thermal type circuit breaker like MCB based on a thermal bimetal lever-trip mechanism which is very slow. Here an electronic circuit breaker is designed which is based on the current sensing across a series element typically a CT (current Transformer). The current sensed which is compared against the preset value proportional to the voltage by comparator which is inbuilt in PIC Micro controller to generate an output that drives a relay through a MOSFET to trip the load very fastly.
Keywords: Microcontroller, CT, Relay, MOSFET.

INTRODUCTION
In this project electrical system can be protected from the over load condition. Industrial instruments or home appliances failures have many causes and one of the main causes is over load. The primary of the distribution transformer or any other transformer is designed to operate at certain specific current, if that current flowing through that instrument is more than the rated current, then immediately the System may burn because of over load, through this project we are going to protect the system from over load condition. In this project work for generating high current or over load current more loads are applied to the circuit; so that the current will be increased. Whenever the over current is drawn by load the circuit will be tripped. To trip the circuit we are using one relay which will be controlled through PIC microcontroller. When over load occurred the relay will trip the total circuit. And it will be monitored on the LCD. LCD displays are used to display the status of circuit breaker. For protection from over current condition first we have to measure the total load current. Here we are using CT for measuring the load current and the output of CT is given to ADC for converting analog output of CT into digital data. Hence ADC output is given for monitoring purpose. When current increases behind certain limit then we are going to trip the load by using relay. In this project we are using 230v bulbs as a load. We are going to increase the load by increasing the number of bulbs ON. When we ON more bulbs it causes over load condition and microcontroller will detect that and it will trip the total load by using relay through MOSFET which acts as switching circuit.

EXPLANATION
The main power supply is given directly to load through CT and step down transformer. 230 volt is Step down to 12v and supplied to regulated supply unit which consist of bridge rectifier to convert ac to dc and passed through 7805 regulator to get 5v supply for working of microcontroller, capacitor filters are used to remove the ripples to get pure constant dc voltage. The current passing to load is sensed by the current transformer and output of CT will be in analog form is given to the ADC pin of PIC microcontroller for converting the analog output to digital data. The current sensed is compared with the inbuilt comparator of microcontroller which as pre-set reference value. If the current sensed is less than the pre-set value than MOSFET will be in OFF state and relay will not trip the supply to load. As we increase the load current drawn is more so if the current is increase than the pre-set value than MOSFET will turn ON and energizes the relay. Thus LED used as an indicator is properly biased, and it glows. The relay coil gets energized, causing the armature to shift its position to the normal open point from the normal closed point.
The AC supply to the load is thus cut off from the load and the load is tripped. Once the circuit is tripped it must be reset for further use using reset button as shown in Fig.1. In either case, the microcontroller is programmed so as to show the status of the output on the LCD interfaced to it. In case of normal operation microcontroller will pin will receive 5v dc from regulator and accordingly displays the status on the LCD. In case of any abnormalities, the microcontroller pin doesn’t receive the 5V input signal and the related status is accordingly displayed on the LCD.
 
Fig.1. Block Diagram of Proposed System.
TABLE I: Trip Current Setting


 
Fig.2. PIC Microcontroller.
During this implementation an 8 bit peripheral interfaced controller microcontroller is used with following specifications as shown in Fig.2.
·       RAM 256 bytes
·       ROM 4 kilo bytes
·       8 bit Processor
·       4 I/O Ports
·       Timers 2
·       Power saving mode
·       RXD TXD interfacing

HARDWARE IMPLEMENTATION
The fig.3 shows the hardware implementation of ultra fast acting electronic circuit breaker using microcontroller.
 
Fig.3. Hardware implementation.
CONCLUSION
Now A days the protection and control of equipment plays a very important role. To avoid electrical failure we use fast responding circuit breakers because of its considerable accuracy in fault detection and cut off- time, and also its smooth operation compared to conventional type. Future Scope: The operating time of electromagnetic relay can be improved by using sophisticated electronic components.

REFFERENCE
[1]Raj kamal –Microcontrollers Architecture, rogramming, Interfacing and System Design.
[2]Mazidi and Mazidi –Embedded Systems.
[3]PIC-Microcontroller Manual – Microchip.
[4]A M S Almadji & J G J Sloot review of Current limitting IEEE.
[5]T. Genji , Nakamar: high speed circuit Breaker for electric power system.
[6]200WAS RI BIN ABU ,HARUN:Over Current protection using PIC Microcontroller IEEE.

UNDERGROUND CABLE FAULT DISTANCE LOCATOR

UNDERGROUND CABLE FAULT DISTANCE LOCATOR
ABSTRACT
This paper proposes fault location model for underground power cable using microcontroller. The aim of this project is to determine the distance of underground cable fault from base station in kilometers. This project uses the simple concept of ohm’s law. When any fault like short circuit occurs, voltage drop will vary depending on the length of fault in cable, since the current varies. A set of resistors are therefore used to represent the cable and a dc voltage is fed at one end and the fault is detected by detecting the change in voltage using a analog to voltage converter and a microcontroller is used to make the necessary calculations so that the fault distance is displayed on the LCD display.
KEYWORDS: Underground cable, fault location, fault detection, location methods, microcontroller

INTRODUCTION
Till last decades cables were made to lay overhead& currently it is lay to underground cable which is superior to earlier method. Because the underground cable are not affected by any adverse weather condition such as storm, snow, heavy rainfall as well as pollution. But when any fault occur in cable, then it is difficult to locate fault. So we will move to find the exact location of fault.
Now the world is become digitalized so the project is intended to detect the location of fault in digital way. The underground cable system is more common practice followed in many urban areas. While fault occurs for some reason at that time the repairing process related to that particular cable is difficult due to not knowing the exact location of cable fault. Fault in cable is represented as:
• Any defect,
• Inconsistency,
• Weakness or non-homogeneity that affect performance of cable .
• Current is diverted from the intended path .
• Caused by breaking of conductor& failure of insulation

Fault in cable can be classified in two groups:
1) Open circuit fault:
Open circuit faults are better than short circuit fault, because when these faults occurs current flows through cable becomes zero. This type of fault is caused by break in conducting path. Such faults occur when one or more phase conductors break.
2) Short circuit fault: Further short circuit fault can be categorized in two types:
a) Symmetrical fault: Three-phase fault is called symmetrical fault.In this all three phases are short circuited.
b) Unsymmetrical fault: In this fault magnitude of current is not equal & not displaced by 120 degree.

FAULT LOCATION METHODS
Fault location methods can be classified as:
1) Online method: This method utilize & process the sampled voltages& current to determine the fault points. Online method for underground cable are less than overhead lines.
2) Offline method: In this method special instrument is used to test out service of cable in the field. There are two offline methods as following

1) Tracer method: In this method fault point is detected by walking on the cable lines. Fault point is indicated from audible signal or electromagnetic signal. It is used to pinpoint fault location very accurately.
Example: 1) Tracing current method
2) Sheath coil method

2) Terminal method: It is a technique used to detect fault location of cable from one or both ends without tracing. This method use to locate general area of fault, to expedite tracing on buried cable.
Example: 1) Murray loop method
2) Impulse current method
BLOCK DIAGRAM:
The project uses the simple concept of OHMs law where a low DC voltage is applied at the feeder end through a series resistor. The current would vary depending upon the length of fault of the cable in case there is a short circuit of LL or 3L or LG etc. The series resistor voltage drop changes accordingly which is then fed to an ADC to develop precise digital data which the programmed microcontroller would display the same in Kilo meters. The project is assembled with a set of resistors representing cable length in KMs and fault creation is made by a set of switches at every known KM to cross check the accuracy of the same. 
This is proposed model of underground cable fault distance locator using microcontroller. It is classified in four parts –DC power supply part, cable part, controlling part, display part. DC power supply part consist of ac supply of 230v is step down using transformer, bridge rectifier converts ac signal to dc & regulator is used to produce constant dc voltage.
The cable part is denoted by set of resistors along with switches. Current sensing part of cable represented as set of resistors &switches are used as fault creators to indicate the fault at each location. This part senses the change in current by sensing the voltage drop. Next is controlling part which consist of analog to digital convertor which receives input from the current sensing circuit, converts this voltage into digital signal and feeds the microcontroller with the signal. The microcontroller also forms part of the controlling unit and makes necessary calculations regarding the distance of the fault. The microcontroller also drives a relay driver which in turn controls the switching of a set of relays for proper connection of the cable at each phase.
The display part consists of the LCD display interfaced to the microcontroller which shows the status of the cable of each phase and the distance of the cable at the particular phase, in case of any fault.

ALGORITHM & FLOWCHART
Algorithm:
Step1: Initialize the ports, declare timer, ADC, LCD functions.
Step2: Begin an infinite loop; turn on relay 1 by making pin 0.0 high.
Step3: Display “R:” at the starting of first line in LCD.
Step4: Call ADC Function, depending upon ADC output, displays the fault position.
Step5: Call delay.
Step6: Repeat steps 3 to 5 for other two phases.

Flowchart
POWER SUPPLY
The power supply circuit consists of step down transformer which is 230v step down to 12v.In this circuit 4diodes are used to form bridge rectifier which delivers pulsating dc voltage & then fed to capacitor filter the output voltage from rectifier is fed to filter to eliminate any a.c. components present even after rectification. The filtered DC voltage is given to regulator to produce 12v constant DC voltage.

TRANSFORMER
Transformer is static device which transfer electrical energy from one circuit to other circuit with change in voltage or current without change in frequency. In this step down transformer is used. Usually, DC voltage is required to operate various electronic equipment and these voltages are 5V, 9V and 12V. But these voltages cannot be obtained directly. Thus the a.c. input available at the mains supply i.e. 230V is to be down the required voltage level. This is done by a transformer. Principle of transformer is according to faraday’s law of electromagnetic induction.

8051 MICROCONTROLLER
Microcontroller is on chip true microcomputer. Intel 8051 is most popular microcontroller producing in world market. It has 64kb external data memory, 64kb program memory, & 256 bytes internal data memory. It increases reliability. Hardware is less because of single chip microcomputer. Smaller access time & speed is high.

RECTIFIER
The output from the transformer is fed to the rectifier. It converts A.C. into pulsating D.C. the rectifier may be a half wave or a full wave rectifier. In this project, a bridge rectifier is used because of its merits like good stability and full wave rectification. The bridge rectifier is a circuit, which converts an ac voltage to dc voltage using bot half cycles of the input ac voltage. The bridge rectifier circuit is shows in the figure. The circuit has four diodes connected to form a bridge. The ac input voltage is applied to the diagonally opposite ends of the bridge. The load resistance is connected between the other two ends of the bridge.

LCD
Liquid crystal display are interfacing to microcontroller 8051.Most commonly LCD used are 16*2 & 20*2 display. In 16*2 display means 16 represents column & 2 represents rows.

Voltage Regulator:
A voltage regulator is an electrical regulator designed to automatically maintain a constant voltage level. In this project, power supply of 5V and 12V are required. In order to obtain these voltage levels, 7805 and 7812 voltage regulators are to be used. The first number 78 represents positive supply and the numbers 05, 12 represent the required output voltage levels. The L78xx series of three-terminal positive regulators is available.

RELAY
Relay is sensing device which senses the fault &send a trip signal to circuit breaker to isolate the faulty section. A relay is automatic device by means of which an electrical circuit is indirectly controlled &is governed by change in the same or another electrical circuit. There are various types of relay: Numerical relay, Static relay & electromagnetic relay. Relay is housed in panel in the control room.

ADVANTAGES
1) Less maintenance
2) It has higher efficiency
3) Less fault occur in underground cable
4) Underground cable fault location model are applicable to all types of cable ranging from 1kv to 500kv&other types of cable fault such as-Short circuit fault, cable cuts, Resistive fault, Sheath faults, Water trees, Partial discharges.
5) Improved public safety.

CONCLUSION
In this paper we detect the exact location of short circuit fault in the underground cable from feeder end in km by using microcontroller8051.For this we use simple concept of OHM’s law so fault can be easily detected and repaired.

REFERENCES
[1] Qinghai Shi, Troeltzsch U, Kanoun O. Detection and localization of cable faults by time and frequency domain measurements. Conf. Systems and Signals and Devices, 7th International conference, Amman. 2010; 1-6.
[2] B. Clegg, Underground Cable Fault Location. New York: McGraw- Hill, 1993.
[3] M.-S. Choi, D.-S. Lee, and X. Yang, “A line to ground fault location algorithm for underground cable system,” KIEE Trans. Power Eng., pp. 267–273, Jun. 2005.
[4] E. C. Bascom, “Computerized underground cable faultlocation expertise, ”in Proc. IEEE Power Eng. Soc.General Meeting, Apr. 10–15,1994, pp. 376–382.J. Clerk Maxwell, A Treatise on Electricity and Magnetism, 3rded., vol. 2. Oxford: Clarendon, 1892, pp.68–73.
[5] K.K. Kuan, Prof. K. Warwick, “ Real-time expert system for fault location on high voltage underground distribution cables”, IEEE PROCEEDINGS-C, Vol. 139, No. 3, MAY 1992.
[6] J. Densley, “Ageing mechanisms and diagnostics for power cables—an overview,” IEEE Electr. Insul. Mag., vol. 17, no. 1, pp. 14–22, Jan./Feb. 2001.
[7] T. S. Sidhu and Z. Xu, “Detection of incipient faults in distribution underground cables”, IEEE Trans. Power Del., vol. 25, no. 3, pp. 1363–1371, Jul. 2010.
[8] Tarlochan S. Sidhu, Zhihan Xu, “Detection of Incipient Faults in Distribution Underground Cables”, IEEE Transactions on Power Delivery, Vol. 25, NO. 3, JULY 2010.
[9] Md. Fakhrul Islam, Amanullah M T Oo, Salahuddin. A. Azad1 , “Locating Underground Cable Faults: A Review and Guideline for New Development” , 2013 IEEE