Real Time Automated Load Shedding System
Real Time Automated Load Shedding System
Real Time Automated Load Shedding System
1. INTRODUCTION
The power consumption is increasing day by day. Load shedding is a method by power supply board to minimize the consumption of power. With the help of this system the process of load shedding of power lines can be made automatic. The whole process is controlled by the microcontroller 89c51 and the real time clock (RTC) PCF 8563 which runs in real time. Here the user can feed the different timings (ON and OFF) for the different power lines, and then according to the entered timings the microcontroller connects and disconnects the power lines automated load shedding system is achieved through real time. In this system two type of faults namely overload and open line faults can also be identified. Automated load shedding system is achieved through real time. However, these automated solutions lack system operating knowledge and are still best-guess methods which typically result in excessive or sufficient load shedding. A load shedding system can provide faster and optimal load relief by utilizing actual operating conditions.
1.1 Objectives:
The Load Shedding for the power lines is performed Automated and this process is achieved through Real Time. Microprocessor plays a very important role in this project which is operated to transmit load shed commands as an input to the Relay drivers. It is the best method which typically results in efficient Load Shedding and this system can provide faster and most favorable load relief by utilizing actual operating conditions and knowledge. Turn ON and OFF for the Load Lines can be provided simultaneously at the same time or it can be done at different time.
1.3 Software:
Kiel micro vision.
Dept. of E&E, SKIT Bangalore -90 2010-2011 Page 1
Eeprom 24c32
MC 89c51
Power LINES
16*2 LCD
2010-2011
Page 2
3. FUNCTIONAL DESCRIPTION
In this project a real time clock PCF 8563 is used to monitor the time, which can be interfaced with the microcontroller and it runs in 24 hour format. So on power up first we have to initialize RTC by entering the present time in the form of Hr: Min: Sec and date in the form of Date/month/Year and weekday, once the informations entire are entered, then RTC will start running in real time.
If we want to control the lines according to the time, then user has to enter the ON and OFF time for each and every lines which will be stored in the microcontroller memory, then microcontroller reads the time from the RTC and will be checking with the entered timings, if any one of the ON or Off time is matched with the present timing then the controller switches ON or Off particular relay to connect or disconnect the particular line.
And also one line is monitored by extracting the current signal through it using the CT HTS10p then it is processed and digitized, then according to the digital signal related to the current signal the microcontroller will come to know that the line is opened or overloaded.
The output of the transducer is a signal of very low voltage (will be in terms of mille volts), which is amplified in two stages using lm 348 amplifier with the gain of 40. Then the amplified voltage is rectified using diode in 4148 and the rectified DC voltage of current signal is applied to the first channel of ADC 0809.
2010-2011
Page 3
As the model is turned on, controller will wait for the key press. When the key is pressed load will be turned ON. The controller will then start calculating the units. The available voltage is measured and displayed on the LCD.
2010-2011
Page 4
In mains-supplied electronic systems the AC input voltage must be converted into a DC voltage with the right value and degree of stabilization. Figures below shows the simplest rectifier, filter and stabilization circuits. In these basic configurations the peak voltage across the load is equal to the peak value of the AC voltage supplied by the transformers secondary Winding. For most applications the output ripple produced by these circuits is too high. If a filter capacitor is added after the rectifier diodes The output voltage waveform is improved considerably. The Figure in the circuit uses a center-tapped transformer with four rectifier diodes
Single phase AC voltage is stepped down from 230V ac to 15V AC. Using a bridge rectifier, 15V AC supply is rectified and filtered, passed through a linear regulator circuit to get a regulated power supply. With the help of IC 7812 and 7912 linear regulators +-12 V regulated supply is derived.
2010-2011
Page 5
Transformer selected is 15-0-15 volts, 1 Amps. Peak Secondary voltage = 1.4142 * 15 = 21.21 Volts Filter capacitor voltage = 21.21 0.7-0.7 = 19.81 volts The value of the capacitor is selected in such a way that for the designed circuit the ripple of the rectified , filtered dc voltage should have a minimum value; C = 5 I / FV for a 10% ripple factor. Where I= load current F= Supply frequency, V= Peak secondary supply voltage of transformer The ripple factor must be as much as low as possible for the proper operation of the circuit. Capacitor C2 is used as High frequency filter, bypass all high frequency signals coming on the DCline. IC 7812 is a +ve voltage regulator needs an input voltage minimum of 12+ 2.5 = 14.5 volts for providing regulated voltage.
2010-2011
Page 6
Similarly IC 7912 is a -ve voltage regulator needs an input voltage minimum of 12 + 2.5 = 14.5 volts for providing regulated voltage. IC 7805 is a positive voltage regulator gives a related output voltage of 5 Volts which needs a minimum voltage of 5+2.5 = 7.5 volts as minimum input for its operations. 5Volts, 1.0 Amps Regulated DC Power supply The +5Volts regulated DC power supply is derived from another regulator IC 7805 whose input voltage is unregulated DC supply of around 15V DC. Unregulated DC voltage is applied to the input pin of the regulator IC after filtering AC component through capacitors. The regulator IC keeps the line and load regulation with in 1% of throughout voltage and once again the capacitors are used to reduce the ac components on the output voltage.
Capacitors C2 and C4 are used for high frequency noise rejection. Capacitor C3 improves the load regulation.
Fig 4.1.2: 5 volts, 1.0 amps regulated power supply circuit Dept. of E&E, SKIT Bangalore -90 2010-2011 Page 7
4.2 Hall effect Current Transducer and its signal conditioning circuit
The output of the sensor is linearly proportional to the current in the A Hall Effect
Current Sensor is a current transformer, which utilizes the Hall Effect. This effect was first observed by Edwin Hall in 1879. He conducted experiments on gold foils wherein he monitored the current flowing from the top to the bottom of a thin rectangular strip. He found that, in the presence of a magnetic field perpendicular to the strip, the electrons were deflected to one side of the gold foil. This caused an excess electrical charge build up, which gave rise to a voltage difference across the right and left side of the foil. This electric field (voltage difference), which is perpendicular to both the magnetic field and the current flow, is called the Hall Voltage. In the absence of a magnetic field, or in the presence of a magnetic field parallel to the strip, there was no voltage difference between the right and left side of the strip.
2010-2011
Page 8
The Hall Effect can be explained by the Lorentz force principle. When a charge moves in a direction perpendicular to an applied magnetic field, it experiences a force defined by the Lorentz Law. The direction of this Force is perpendicular to the direction of propagation of the charge and that of the external magnetic field.
A Hall Current Sensor utilizes the principle of the Hall Effect to detect the current levels. These sensors monitor the gauss level created by a flow of current; they do not measure the actual current flow. The current being measured (through the primary conductor) is passed through a flux-collecting core (which is generally a slotted torpid) that concentrates the magnetic field on the Hall element. The Hall element is a piece of semiconductor material, which produces the Hall voltage proportional to the current flow. The Hall voltage is a low level signal, so generally a low noise high gain amplifier is used to regulate the output of the Hall element. The Hall Element along with the evaluation and regulation circuitry is generally fabricated into a single IC (Integrated Circuit).
Figure shows an example of the output waveform of these sensors. These sensors are radiometric; where the output voltage of the sensor is half that of the supply voltage, when the current in the primary conductor is zero. This voltage is called the quiescent voltage (Vq). When the current flows in the positive direction then the output voltage is greater than Vq, when the current flow reverses, the output voltage is leads than Vq. Saturation occurs when the current exceeds the rating of the sensor.
2010-2011
Page 9
In the below figure the voltage generated Vo across the width of the flat, rectangular conductor is directly proportional to both the magnitude of the current through it and the strength of the magnetic field.
Fig 4.2.2.2: Circuit diagram showing relationship between generated voltage Vo and current
2010-2011
Page 10
It makes sense then that if we were to build a device using a Hall-effect sensor where the current through the conductor was pushed by AC voltage from an external circuit and the magnetic field was set up by a pair or wire coils energized by the current of the AC power circuit, the Hall voltage would be in direct proportion to the multiple of circuit current and voltage. The below figure shows the configuration of a closed loop sensor. Here, the output of the Hall IC is amplified and driven through a coil wound around the core. This secondary current, Is, creates a secondary magnetic field in the core. The magnetic flux from the secondary coil is exactly opposite to that generated by the primary conductor and this result in the cancellation of the magnetic flux in the core. The current through the secondary coil is driven through a resistor to measure a voltage that is proportional to the input current Ip.
The selected Hall IC has a quiescent voltage, Voq = 2.5 V which is typically half the supply voltage. It has a sensitivity of 4mV/G. The range of the output voltage for the selected Hall IC is 0.25 V to 4.75 V.
2010-2011
Page 11
Based on the sensitivity rating and the output voltage we can safely estimate that the IC can sense a flux of 500 G. The selection of the core is based on the size of the primary conductor or the dimension requirements if any.
In the application, a 5Amps Hall effect current transducer is used for reference. The hall sensor operates with a supply voltage of 5 voltages and gives a DC voltage of 2.5Volts for zero current. Since the hall sensor output voltage is 200mv/Amps, voltage developed in the transducer is first amplified, rectified filtered and offset compensated to use it for further application.
2010-2011
Page 12
SW1
SW2
SW3
SW4
SW5
SW6
SW7
1 2 3 R2 R
16X2 LCD
4 5 6 7 8 9 1011121314
16 15
SW9
SW10
SW11
SW12
+5V U1 40 31 5 6 7 21 22 23 24 25 26 27 28 J1 10 11 12 13 14 15 16 17 29 CON8 1 2 3 4 5 6 7 8
SW13
SW14
SW15
C1
C2
+5V U1 PCF8563 1 8 2 7 3 6 Y1 5
1 2 3 4
A0 A1
VCC EA/VPP P1.4 P1.5 P0.0/AD0 P1.6 P0.1/AD1 P2.0/A8 P0.2/AD2 P2.1/A9 P0.3/AD3 P2.2/A10 P0.4/AD4 P2.3/A11 P0.5/AD5 P2.4/A12 P0.6/AD6 P2.5/A13 P0.7/AD7 P2.6/A14 P2.7/A15 P1.0 P1.1 P1.2 P1.3 P3.0/RXD P3.1/TXD P3.2/INT0 P1.7 P3.3/INT1 P3.4/T0 P3.5/T1 P3.6/WR XTAL1 P3.7/RD PSEN
CAP NP C2 2
1 SW PUSHBUTTON
C3 CAP NP CAPACITOR R3 R
ALE/PROG 20
30
2010-2011
Page 13
Operation
In this project a Real time clock PCF 8563 is used to monitor the time which can be interfaced with the microcontroller and it runs in 24 hours format. So, on power up first we have to initialize RTC by entering the present time in the form of Hr: Min: Sec and date in the form of Date/month/Year and weekday. Once all the information is entered, the RTC will start running in real time.
If we want to control the load lines according to the time, then user has to enter the ON and OFF time for each and every line which will be stored in the microcontroller memory. Then Microcontroller reads the time from the RTC and will be checking with the entered timings. If any one of the ON or OFF time is matched with the present timings then the controller switches ON or OFF the particular relay to connect or disconnect the particular line.
Here Relay driver is used to drive the relay connected across the power lines and they are switched ON and OFF to connect and disconnect the loads from the power lines according to entered ON and OFF time. A relay is an electro-magnetic switch which is useful if you want to use a low Voltage circuit to switch ON and OFF a light bulb (or anything else) connected to the 220V mains supply.
2010-2011
Page 14
6. HARDWARE
6.1 Power Supply
Main building block of any electronic system is the power supply to provide required power for their operation. For the microcontroller, audio amplifier, keyboard, edge connector +5V, required. And for driving the motor +12V Is required. The power supply provides regulated output voltage of +5V, and non regulated output voltage +12V. Three terminal IC 7805 meets the requirement of +5V regulated. The secondary voltage from the main transformer is rectified by diodes D1-D4 and filtered by capacitor C1. This unregulated dc voltage is supplied to input pin of regulator IC. C2 is an input bypass capacitor and C3 is to improve ripple rejection. The IC used are fixed regulator with internal short circuit current limiting and thermal shut down capability
2010-2011
Page 15
Applications Mobile telephones Portable instruments Fax machines Battery powered products.
2010-2011
Page 16
Pin Diagram
1 2 3 4
P C F 8 5 6 3
8 7 6 5
Functional description The PCF 8563 contains sixteen 8-bit registers with an auto-incrementing address register, an on-chip 32.768 kHz oscillator with an integrated capacitor, a frequency divider which provides the source clock for the Real-time Clock (RTC), a programmable clock output, a timer, an alarm, a voltage-low detector and a 400 kHz I2C-bus Interface.
All 16 registers are designed as addressable 8-bit parallel registers although not all bits are implemented. The first two registers (memory address 00H and 01) are used as control and/or status registers. The memory addresses 02H through 08H are used as counters for the clock function (Seconds up to year counters). Address locations 09H through 0CH contain alarm registers which define the conditions for an alarm. Address 0DH controls the CLKOUT output frequency. 0EH and 0FH are the timer control and timer registers, respectively.
The Seconds, Minutes, Hours, Days, Months, Years as well as the Minute alarm, Hour alarm and day alarm registers are all coded in BCD format. The Weekdays and Weekday alarm register are not coded in BCD format.
When one of the RTC registers is read the contents of all counters are frozen. Therefore, faulty reading of the clock/calendar during a carry condition is prevented.
2010-2011
Page 17
2010-2011
Page 18
CURSOR POSITIONING The 44780 contain a certain amount of memory, which is assigned to display. All text we write to 44780 is stored in this memory, and the 44780 subsequently reads this memory to display the text on LCD itself. This memory maps is shown below. DISPLAY In the above memory map, area up to 0F and 4F is the visible display. As one can see, it measures 16 characters per 2 lines. The numbers in each box in memory address that corresponds to that on screen. Thus the Set Cursor Position instruction 80h tell the LCD to position the cursor. Adding the cursor position to 80h does these sets the cursor to the required position on the screen.
PIN Assignment
PIN NO. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
SYMBOL Vss VDD V0 RS R/W E DBO DB1 DB2 DB3 DB4 DB5 DB6 DB7 LED-(K) LED-(A)
2010-2011
Page 19
Key sensing logic Initially all the column lines will be in high state and each rows are grounded by making the row port lines low one by one. If we are in say first row it will check whether any key is pressed by reading the column port. If any one of the first row is pressed then the particular column will get low level if in the first row then the column number which gets the low signal will be the key number. For example if we start the column number from zero then the first key identified as number zero. If the none of the key is pressed in row 1 then controller will ground the next row in this row .If any key is pressed it will identify the column number and adds number 4 once to get exact to get exact key number if it is in the row 3 it add number 4 two times to the column number to get the correct key.
2010-2011
Page 20
Interfacing keyboard
230 AC
VALVE
AC Load
BC 548
GND
GND
2010-2011
Page 21
Here relay driver is used to drive the relays connected across the power lines, and they are switched ON and Off to connect and disconnect the loads from the power lines according to the entered ON and Off time.
boundary. Functional address lines allow up to eight devices on the same bus, for up to 2 Mbit address space. This device is available in the standard 8-pin plastic DIP, and 8-pin SOIC (208 mil) packages.
PIN Descriptions
A0,A1,A2 Chip are Address Inputs The A0,A1,A2 inputs are used by the 24x256 for multiple device operation. The levels on these inputs are compared with the corresponding bits in the slave address .The chip is selected if the compare is true. Up to eight devices may be connected to the same bus by using different chip is select bit combinations. If left unconnected, these inputs will be pulled down internally to Vss. SDA Serial Data This is a bi-directional pin used to transfer addresses and data into and data out of the device. It is an open drain terminal, therefore, the SDA bus requires a pull up resistor to Vcc (typical 10 k ohm for 100 khz, 2k ohm for 400 khz)
2010-2011
Page 23
SCL serial clock This input is used to synchronize the data transfer from and to the device. WP This pin can be connected to either Vss, Vcc or left floating. An internal pull-down on this pin will keep the device in the unprotected state if left floating. If tied to Vss or left floating, normal memory operation is enabled (read/write the memory 0000-7FFF). If tied to Vcc, WRITE operations are inhibited. Read operation as are not affected. Functional description The 24xx256 support a bi-directional 2-write bus and data transmission protocol. A device that sends data onto the bus is defined as a transmitter, and a device receiving data as a receiver. The bus must be controlled by a master device which generates the serial clock (SCL), controls the bus access, and generates the START and STOP conditions while the 24xx256 works as a slave. Both master and slave can operate as a transmitter or receiver, but the master device determines which mode is activated. Bus characteristics The following bus protocol has been defined: Data transfer may be initiated only when the bus is not busy. During data transfer, the data line must remainstable whenever the clock line-is HIGH/ changes in the data line while the clock line is high will be interpreted as a START or STOP condition. Accordingly, the following bus conditions have been defined. Bus not Busy (A) Both data and clock lines remains HIGH> Start Data Transfer(B) A HIGH to LOW, transmission of the SDA line while the clock (SCL) is high determines START condition. All commands must be preceded by a START condition. Data Valid (D) The state of the data represents valid data when, after a START condition, the data line is stable for the duration of the HIGH period of the clock signal.
2010-2011
Page 24
7. FLOW CHART
start
Initialise RTC
Yes
No
Is req to enter the timings for ON and OFF?
Yesy
Yes
No
No Yes
Display Line open
Is line open ?
time ?
Yes
Switch ON or Switch OFF the corresponding time matched line
No
Is line over loaded
Yes
No
Fig 8.1: Flow chart
2010-2011
Page 25
Disadvantages
Since Microcontroller controls the whole system, if any fault occurs in it the whole system fails.
Applications
To provide automated load shedding for the power lines. Can be used in Industries for automation purposes.
2010-2011
Page 26
9. RESULT
The load shedding can be done according to time. Can maintain time limit for load shedding. Turn ON and OFF the load simultaneously at the same time Turn ON and OFF the load at the different time.
DATE
02/05/2011 02/05/2011 03/05/2011 03/05/2011 05/05/2011 05/05/2011 07/05/2011 07/05/2011
DAY
MONDAY MONDAY TUESDAY TUESDAY THURSDAY THURSDAY SATURDAY SATURDAY
OFF TIME
12:30:22 13:15:15 10:30:30 09:15:00 12:24:10 15:02:00 14:09:22 14:30:00
ON TIME
12:50:15 13:30:30 10:55:55 09:59:00 12:35:45 15:05:44 14:10:30 14:33:26
STATUS
SUCCESSFUL SUCCESSFUL SUCCESSFUL SUCCESSFUL SUCCESSFUL SUCCESSFUL FAULT DISPLAYED (OVER LOAD) FAULT DISPLAYED (OPEN LINE)
2010-2011
Page 27
10. CONCLUSION
Load shedding serves as the ultimate guard that protects the power system from a disturbance-induced collapse. Since we are operating A.C power lines, we should not keep any line open. We can conclude that, with the help of this system the load shedding for the power lines can be made Automatic according to the entered timings for different areas along with fault analysis.
2010-2011
Page 28