Professional Documents
Culture Documents
1 2 3 4 5
Introduction
Project Objective
General Introduction
Project Introduction
Back
Objective
To upgrade the existing three phase
analog regulatory system, to a three phase,
microcontroller based SCR drive system.
So that if any fluctuation comes in three
phase voltage supply, controller will Sense
that fluctuation and accordingly give
triggering pulses to the SCR to get
controlled regulated output at the load.
Back
General Introduction
In our day to day life we use a lot of electronic
devices to satisfy
our needs or to make our life comfortable and
luxurious.
Back
Project Introduction
Load has a constant voltage of 220 V dc., in spite of
any variation in the input voltage.
Back
POWER
24V AC 230V AC
SUPPLY
SCR
ZERO
BRIDGE O/P
CROSSING
CKT
DETECTOR
MICRO-
CLOCK & CONTROLLER
RESET
CKT
POTENTIAL
DIVIDER
ADC
Back
Block Diagram Description
• POWER SUPPLY
• ZERO CROSSING DETECTOR
• SCR BRIDGE NETWORK
• POTENTIAL DIVIDER
• ANALOG TO DIGITAL CONVERTER (ADC 0808)
• MICROCONTROLLER 89C51RD2
Back
Power Supply
• Center tapped step down transformer with rating
240V to 24V and 500mA.
Back
Zero Crossing Detector
Back
SCR Bridge
Consist of:
Back
Potential Divider
Back
Analog to Digital Converter
Back
Micro-controller
• The only Decision making block of the system
• Acts as a comparator
Back
Circuit Diagram & Component
Specification
• Circuit Diagram
• Component Specifications
Back
U 9
26 17
27 IN 0 D B 0 14
28 IN 1 D B 1 15
1 IN 2 D B 2 8
2 IN 3 D B 3 18
3 IN 4 D B 4 19 U 3
4 IN 5 D B 5 20
5 IN 6 D B 6 21 39 21
IN 7 D B 7 38 P 0 .0 /A D 0 P 2 .0 /A 8 22 R 4
25 7 37 P 0 .1 /A D 1 P 2 .1 /A 9 23
AD C 0808
24 AD D A EO C 36 P 0 .2 /A D 2 P 2 .2 /A 1 0 24
23 AD D B 35 P 0 .3 /A D 3 P 2 .3 /A 1 1 25
R 4 + R 5 + R 6 = 59K
AD D C 34 P 0 .4 /A D 4 P 2 .4 /A 1 2 26
12 33 P 0 .5 /A D 5 P 2 .5 /A 1 3 27 R 5
16 +VR EF 32 P 0 .6 /A D 6 P 2 .6 /A 1 4 28
-V R E F P 0 .7 /A D 7 P 2 .7 /A 1 5
10 1 10
C LK 2 P 1 .0 P 3 .0 /R XD 11
P 1 .1 P 3 .1 /T XD
89C 51
22 3 12 Q1 Q2 R 3 R 6
9 ALE 4 P 1 .2 P 3 .2 /IN T 0 13 SC R SC R
6 OE 5 P 1 .3 P 3 .3 /IN T 1 14 10k
S TA R T 6 P 1 .4 P 3 .4 /T 0 15
11 7 P 1 .5 P 3 .5 /T 1 16 D 7 D 8 R 7
VC C VC C 8 P 1 .6 P 3 .6 /W R 17
D IO D E
D IO D E
P 1 .7 P 3 .7 /R D 1k
19 30
C 7 18 XTA L1 A L E /P R O G 29
1 0 u fC 5 XTA L2 PSEN
30 pf 31
R 1 9 E A /V P P
8 .2 k R ST VCC
20 M H Z
Y 1
C 6 30 pf
D 1 D IO D E
U 2 LM 7805
TR AN SFO R M ER C T
T1 24v DC
1 5 1 3
V IN VO U T VC C
1
6 D IO D E D 2 +5V
240v ac
4 8 M C 7815C
2 1 3
10uf
D IO D E D 3 V IN V O U T +15v C 4
0 .1 u f
D 4 D IO D E C 2
7
1
U 6 R 2 3 + U 8
1 k 6
P 2 .5
10uf C 5 2 -
2 3 -15v
V IN VO U T
U A741C
D 6
C 3 D IO D E
4
5
Back
L 7915 U 7 1 k
0 .1 u f
R 2
Component Specification
• Regulators LM7805, MC7815, L7915
• Diodes 1N4007
• Op-Amp UA741
• Analog to Digital Converter ADC0808
• Micro-Controller P89C51RD2
• SCR MCR100-6
Back
LM7805
• 3-Terminal Regulators
Back
Back
MC7815
• Output Current in Excess of 1.0 A
Back
Back
Diode
• High surge current capability.
Back
Op-amp
• Large Input Voltage range
• High gain
• Short-Circuit protection
• Supply voltage +/- 22V
• Input voltage +/- 15V
• Power dissipation 500mW
Back
Microcontroller
• 80C51 Central Processing Unit.
• On-chip Flash Program Memory with In-System
Programming (ISP) and In-Application Programming
(IAP) capability
• 6 clocks per machine cycle operation (standard)
• Speed up to 20 MHz with 6 clock cycles per machine
cycle(40 MHz equivalent performance)
• RAM expandable externally to 64 kB
• 4 level priority interrupt
• Four 8-bit I/O ports. Pin diagram
• Power control modes
- Clock can be stopped and resumed
- Idle mode
- Power down mode Back
Back
MCR 100-6
• Blocking Voltage to 600 V.
• SCR Characteristics
Back
ADC 0808
• 8-channel multiplexer with address logic.
• Resolution 8 bits.
26 1 7
27 IN 0 D B 0 1 4
28 IN 1 D B 1 1 5
1 IN 2 D B 2 8
2 IN 3 D B 3 1 8
3 IN 4 D B 4 1 9 U 3
4 IN 5 D B 5 2 0
5 IN 6 D B 6 2 1 3 9 2 1
IN 7 D B 7 3 8 P 0 .0 /A D 0 P 2 .0 /A 8 2 2 R 4
25 7 3 7 P 0 .1 /A D 1 P 2 .1 /A 9 2 3
AD C 0808
24 AD D A EO C 3 6 P 0 .2 /A D 2 P2 .2 /A 1 0 2 4
R 4 + R 5 + R 6 = 59K
23 AD D B 3 5 P 0 .3 /A D 3 P2 .3 /A 1 1 2 5
AD D C 3 4 P 0 .4 /A D 4 P2 .4 /A 1 2 2 6
P 0 .5 /A D 5 P2 .5 /A 1 3 P 2 .5
12 3 3 2 7 R 5
16 +VR EF 3 2 P 0 .6 /A D 6 P2 .6 /A 1 4 2 8
-V R E F P 0 .7 /A D 7 P2 .7 /A 1 5
10 1 1 0 Q 1
C LK 2 P 1 .0 P 3 .0 /R XD 1 1
89C 51
22 3 P 1 .1 P 3 .1 /T X D 1 2 SC R Q 2 R 3 R 6
9 ALE 4 P 1 .2 P 3 .2 /IN T 0 1 3 SC R
6 O E 5 P 1 .3 P 3 .3 /IN T 1 1 4 10k
S TA R T 6 P 1 .4 P 3 .4 /T 0 1 5
11 7 P 1 .5 P 3 .5 /T 1 1 6 R 8
VC C VC C 8 P 1 .6 P 3 .6 /W R 1 7
P 1 .7 P 3 .7 /R D Q 3 SC R 1k
19 30 SC R Q 4
C 7 18 XTA L1 A L E /P R O G 29
1 0 u fC 5 XTA L2 PSEN
30 pf 31
R 1 9 E A /V P P
8 .2 k R ST VCC
20 M H Z
Y 1
C 6 30 pf
D 1 D IO D E
T R AN SFO R M ER C T
U 2 LM 7805
T1 24v DC
1 5 1 3
V IN VO U T VC C
1
6 D IO D E D 2 +5V
240v ac
4 8 M C 7815C
2 1 3
10uf
D IO D E D 3 V IN V O U T +15v C 4
0 .1 u f
D 4 D IO D E C 2
7
1
U 6 R 2 3 + U 8
1 k 6
P 2 .5
10uf C 5 2 -
2 3 -15v
U A741C
V IN VO U T D 6
C 3 D IO D E
4
5
L 7915 U 7 1 k
0 .1 u f
R 2
Back
Three Phase Line & Load
Regulation using SCR and
Microcontroller
FLOW CHARTS
• Main Program (Flow-chart & Code)
Start
timer
No
Is
TF=1
Yes
Stop
timer
End
Back
Start
End
Back
Start
Start
timer
No
Is
TF=1
Yes
Stop
timer
End Back
Start
Activate
ALE
Activate
SOC
Monitor
EOC
End
Back
A
Yes
Is ZCD=1
No
R
Back
START
No
Is ZCD=1
Yes
A
Next
Back
Conclusion
We designed hardware for voltage regulation by
using SCR Bridge, which senses fluctuations in the
single-phase input mains supply across the load and
nullifies it.
Next
Future Enhancement
Next
Thank you
unsigned int delay_calc()
{ unsigned char i,ip=0;
unsigned int hex_value=0;
code unsigned char ip_adc[ ]={0xC2, 0xC3, 0xC4, 0xC5, 0xC6, 0xc7, 0xC8,
0xC9, 0xCA, 0xCB, 0xCC, 0xCD, 0xCE, 0xCF,
0xD0, 0xD1, 0xD2, 0xD3, 0xD4, 0xD5, 0xD6,
0xD7, 0xD8, 0xD9, 0xDA, 0xDB, 0xDC, 0xDD,
0xDE, 0xDF, 0xE0, 0xE1, 0xE2, 0xE3, 0xE4,
0xE5, 0xE6, 0xE7, 0xE8, 0xE9, 0xEA, 0xEB,
0xEC, 0xED, 0xEE, 0xEF, 0xF0, 0xF1, 0xF2,
0xF3, 0xF4, 0xF5, 0xF6, 0xF7, 0xF8, 0xF9,
0xFA, 0xFB, 0xFC, 0xFD, 0xFE, 0xFF};
code unsigned int tmod_value[ ]={0xFD1D, 0xFBDE, 0xFAED, 0xFA23, 0xF972, 0xF8D4, 0xF843,
0xF7BC, 0xF73F, 0xF6C9, 0xF659, 0xF5EF, 0xF58A, 0xF529,
0xF4CC, 0xF472, 0xF41B, 0xF3C8, 0xF377, 0xF329, 0xF2DD,
0xF293, 0xF248, 0xF205, 0xF1C0, 0xF17E, 0xF13C, 0xF0FD,
0xF0BF, 0xF082, 0xF046, 0xF00C, 0xEFD3, 0xEF9A, 0xEF63,
0xEF2D, 0xEEF8, 0xEEC4, 0xEE91, 0xEE5F, 0xEE2D, 0xEDFD,
0xEDCD, 0xED9D, 0xED6F, 0xED41, 0xED14, 0xECE8, 0xECBC,
0xEC91, 0xEC66, 0xEC3D, 0xEC13, 0xEBEA, 0xEBC2, 0xEB9A,
0xEB73, 0xEB4C, 0xEB26, 0xEB00, 0xEADB, 0xEAB6};
ip=P1;
if(ip>0xC1)
{ for(i=0;i<62;i++)
{ if(ip==ip_adc[i])
{ hex_value=tmod_value[i];
break; } }
} else
{hex_value=0xFFFF;}
return(hex_value); Back
}
sbit trigger1=P2^0;
sbit trigger2=P2^1;
sbit soc=P2^2;
sbit eoc=P2^3;
sbit oe=P2^4;
sbit zcd=P2^5;
Back
unsigned char ADC(void);
void delay_trigger(void);
Back
unsigned char ADC(void)
{
oe=1;
soc=1;
LOOP_5:
soc=0;
if(soc==1)
goto LOOP_5;
while(eoc==1);
oe=0;
return(0);
}
Back
void delay_trigger()
{
TMOD=0x01;
TH0=0xF9;
TL0=0x7D;
TR0=1;
while(!TF0);
TR0=0;
TF0=0;
}
Back
void angle_delay(unsigned char tl0, unsigned char th0)
{
TMOD=0x01;
TL0 = tl0;
TH0 = th0;
TR0 = 1;
while(!TF0);
TR0 = 0;
TF0 = 0;
}
Back
#include <stdio.h>
#include <reg51.h>
#include <set_bit.h>
#include <func_declaration.h>
#include <ADC.h>
#include <delay_trigger.h>
#include <angle_delay.h>
#include <delay_calc.h>
void main()
{ unsigned int b;
unsigned char tl0,th0;
do{ P1=0x0ff;
ADC();
b = delay_calc();
tl0 = b;
b = b&0xFF00;
b = b>>8;
th0=b;
while(!zcd);
angle_delay(tl0,th0);
LOOP_2:
trigger1=1;
if(!trigger1)
goto LOOP_2;
Next
LOOP_3: trigger1=0;
if(trigger1)
goto LOOP_3;
ADC();
b = delay_calc();
tl0 = b;
b = b&0xFF00;
b = b>>8;
th0=b;
while(zcd);
angle_delay(tl0,th0);
LOOP_4: trigger2=1;
if(!trigger2)
goto LOOP_4;
LOOP_5: trigger2=0;
if(trigger2)
goto LOOP_5;
}while(1);
}
Back