Professional Documents
Culture Documents
-INTRODUCTION
-DESIGN PARAMETERS
-SYSTEM DESIGN
INTRDUCTION:
Based on the already developed information on the previous
chapter,our device is found to be a consisting body of an active and
passive electronic components,coupled with a micro controller system
and few sensors,which are are further systematize to provide a real time
data on the current/voltage relative power drawn on a power source.
DESIGN PARAMETERS:
-Sensitivity of for power source:
This is a very important parameter to look into in our design,since the
efficiency of the device is dependent on its sensitivity to difference in
use of power.
In this project, we used two different sensor for measuring the voltage
and current respectively
The above diagram is further elaborated using the simple circuit diagram
presented below.
MICRO CONTROLLER POWER SUPPLY:
In our design, the power supply for the micro controller is made
completely different from the phase inputs,and in assembly, the power
source consist of an active 9v cell BAT1, an electrolytic capacitor
470uf/16v C1, and an indicator LED D1 which is coupled in series with R1
560 ohm.
The 9volt cell is a simple battery dc,which will always drain down in
voltage as far is in use. The drain will affect the system if the cell is not
continuous at a specified voltage. Due to this effect, a temporal charge
storage device is used to supply an almost continuous voltage at any
point.
Since we have,
Battery voltage=9v
Required capacitor charge to do almost similar work=7000c
Finding capacitor/charge relationship,
Capacitance = charge
Voltage
Finding charge,
Capacitance = 7000
16
= 437.5uf
Therefore 470uf/16v becomes the best fit to do the function.
The micro controller requires a meduim to know which input phase that
is available, and that is essentially why our design incorperats further,
the use of 5 volt regulator system,which is further pull down via a 10K
ohm resistor to further have it connected to grund on the micro
controller once there is no available power on the phase line.
The building block of the phase line inputs power source is furher shown
below,as we have them elaborated further.
REGULATOR
The circuit below, further elaborate the block diagram
above;
AC STEP DOWN:
The transformer devise is used to bring or step down the
incoming AC grid line voltage which is 220v AC down to 12v AC,
for the proper working functionality of the rest of other passive
components in the system
FILTER:
The filter circuit in this system, constitute of a simple
electrolytic capacitor, which is connected across the converted
DC voltage from the transformer.the filter network serve the
basic purpose to smooth out ripple that made their way out of
the DC output,and to ensure a constant dc voltage output, all
through the whole process of power supply.
REGULATOR:
The surge effect in most electronics is quite bad and destructive in
nature, and in this system, we would not like the same effects of surge
prevailing in the system, and in order to subdue these effects, we
integrate the use of voltage regulator 7805, to protect our system from
any sudden surge that might likely surface.
The regulator also,provides the actual voltage requirement of the sensor
we are using in this project,and hence 5volt rating.
SWITCH CIRCUIT:
The switch circuit, in our design comprises of a bipolar NPN transistor,
which is the common BC547, as it is wired to swictch in
NEGATIVEvoltage to teh relay, once the micro controller activates it,
after it gets a corresponding input phase available.
TRIGGER CIRCUIT:
The trigger circuit, consist of a simple relay and diode, which is set to be
triggered once it gets the required negative voltage,at its negative rail,
as it comes through the swicth transistor.
Once the trigger is made, the output AC input is connected instantly to
the output of the change over system, and as such ensures the cntinous
proovission of pwer source,that is uninterupted.
INTERFACE:
The interface part of the project includes the use of anLCD display
system, which satnds for LIQUID CRYSTAL DISPLAY. The display shows
the state of operation of all the processes taken by the microcontroller.
The voltage valu and ath of all other values are shown on the lcd, and
that makes the system lots more flexible for use.
DESIGN INFORMATION
Turn ratio :
Turn ratio is the number times, the primary turn is higher than
the secondary turn.
Calculating voltage ratio;
-Input voltage v1 = 220V
-Output voltage v2 = 12V
18.3 = 200V/V2
V2 = 200V/18.3
V2= 10.9V
REFERENCE
-https://circuitglobe.com/step-up-and-step-down-transformers.
html
#include <LiquidCrystal.h>
const int rs = 12, en = 11, d4 = 5, d5 = 4, d6 = 3, d7 = 2;
LiquidCrystal lcd(rs, en, d4, d5, d6, d7);
// variable for reading input phase status. This is keepin all input at 0 state
bool redState = false;
bool yellowState = false;
bool blueState = false;
bool allPhaseOn = false;
void setup() {
pinMode(redPhaseIn, INPUT);
pinMode(yellowPhaseIn, INPUT);
pinMode(bluePhaseIn, INPUT);
pinMode(redPhaseOut, OUTPUT);
pinMode(yellowPhaseOut, OUTPUT);
pinMode(bluePhaseOut, OUTPUT);
pinMode(A0,INPUT);
pinMode(A1,INPUT);
pinMode(A2,INPUT);
//Init serial monitor. This will help display what is happening on the serial monitor
Serial.begin(9600);
Serial.println("3 PHASE AUTOMATIC CHANGE OVER SYSTEM");
delay ( 2000 );
Serial.println("Processing available PHASE lines...");
// initialize the LCD
lcd.begin(16, 2);
lcd.print("3PHASE POWER SYS!");
delay(2000);
lcd.setCursor(0,1);
lcd.print("Initializing sys");
delay(2000);
void loop() {
unsigned long currentMillis = millis();
//checking for the state of each input
int redPhaseState = digitalRead(redPhaseIn);
int yellowPhaseState = digitalRead(yellowPhaseIn);
int bluePhaseState = digitalRead(bluePhaseIn);
delay (2000);
lcd.setCursor (0,1); // set to line 1, char 0
lcd.print("All phase are ON!");
digitalWrite ( redPhaseOut,HIGH);
digitalWrite ( yellowPhaseOut,LOW);
digitalWrite ( bluePhaseOut,LOW);
delay (2000);
lcd.clear();
lcd.setCursor (0,0); // set to line 1, char 0
lcd.print("RED PHASE IN USE");
lcd.setCursor (0,1); // set to line 1, char 0
lcd.print(AC_HIGH_VOLT);
lcd.setCursor(6,1);
lcd.print("V input");
}
else{
if ( redPhaseState == HIGH )
{
Serial.println("Red Phase is on");
redState = true;
analogRead (A0);
lcd.clear();
lcd.setCursor (0,0); // set to line 1, char 0
lcd.print("3PHASE POWER SYS");
delay (2000);
digitalWrite ( redPhaseOut,HIGH);
digitalWrite ( yellowPhaseOut,LOW);
digitalWrite ( bluePhaseOut,LOW);
delay (2000);
lcd.clear();
lcd.setCursor (0,0); // set to line 1, char 0
lcd.print("RED PHASE IN USE");
lcd.setCursor (0,1); // set to line 1, char 0
lcd.print(AC_HIGH_VOLT);
lcd.setCursor(6,1);
lcd.print("V input");
}
else if ( yellowPhaseState == HIGH )
{
yellowState = true;
Serial.println("Yellow Phase is on");
analogRead (A1);
lcd.clear();
lcd.setCursor (0,0); // set to line 1, char 0
lcd.print("3PHASE POWER SYS");
delay (2000);
lcd.setCursor (0,1); // set to line 1, char 0
lcd.print("Yellow phase ON!");
digitalWrite ( redPhaseOut,LOW);
digitalWrite ( yellowPhaseOut,HIGH);
digitalWrite ( bluePhaseOut,LOW);
delay (2000);
lcd.clear();
lcd.setCursor (0,0); // set to line 1, char 0
lcd.print("YELLOW PHASE ON!");
lcd.setCursor (0,1); // set to line 1, char 0
lcd.print(AC_HIGH_VOLTY);
lcd.setCursor(6,1);
lcd.print("V input");
}
else if ( bluePhaseState == HIGH)
{
blueState = true;
Serial.println("Blue Phase is on");
analogRead (A2);
lcd.clear();
lcd.setCursor (0,0); // set to line 1, char 0
lcd.print("3PHASE POWER SYS");
delay (2000);
lcd.setCursor (0,1); // set to line 1, char 0
lcd.print("BLUE phase ON!");
digitalWrite ( redPhaseOut,LOW);
digitalWrite ( yellowPhaseOut,LOW);
digitalWrite ( bluePhaseOut,HIGH);
delay (2000);
lcd.clear();
lcd.setCursor (0,0); // set to line 1, char 0
lcd.print("BLUE PHASE IS ON!");
lcd.setCursor (0,1); // set to line 1, char 0
lcd.print(AC_HIGH_VOLTB);
lcd.setCursor(6,1);
lcd.print("V input");
}
else
{
allPhaseOn = false;
Serial.println("All phases are off");
lcd.clear();
lcd.setCursor (0,0); // set to line 1, char 0
lcd.print("3PHASE POWER SYS");
delay (2000);
lcd.setCursor (0,1); // set to line 1, char 0
lcd.print("ALL PHASE OFF!");
digitalWrite ( redPhaseOut,LOW);
digitalWrite ( yellowPhaseOut,LOW);
digitalWrite ( bluePhaseOut,LOW);
}
}