Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Abstract
Commercially available electricity management systems are used to address the wastage
of electric energy. However, these systems have disadvantages such as inadaptability in
various applications, mobility and price. This study was done to develop a portable,
adaptable and affordable electricity management system that switches electrical
connections automatically or manually with wireless and programmable technology.
Accomplished circuits based from designed schematic diagrams were interconnected to
form a system comprised of an encoder-transmitter and receiver-decoder. Then an
automation program, which accepts numerical values as to when a relay switch turns on
or off, was also constructed and inserted into the system. Manual switching range test and
automatic switching range test were conducted to determine the functionality of the
system in turning on or off electrical connections using relay switches. The manual
switching range test determined the system’s capability to wirelessly turn on and off
electrical connections at various distances, and automatic switching range test determined
the system’s automation capability at various distances. All tests showed that the system
was fully functional in switching within a 35 meter range. Over-all, the system was able
to carry out its function well from the tests above. Thus, the system functions properly by
turning on or off relay switches manually or automatically at different distances within its
optimal range of 35 meters.
attempts. These tests were the manual 2 15/15 15/15 15/15 15/15 14/15 0/15 0/15
switching range test and the automatic 4 15/15 15/15 15/15 15/15 15/15 0/15 0/15
8 15/15 15/15 15/15 15/15 14/15 0/15 0/15
switching range test. The latter determined 1,2 15/15 15/15 15/15 15/15 14/15 0/15 0/15
the temperature of the immediate 1,4 15/15 15/15 15/15 15/15 14/15 0/15 0/15
surrounding environment of the components 1,8 15/15 15/15 15/15 15/15 12/15 0/15 0/15
2,4 15/15 15/15 15/15 15/15 14/15 0/15 0/15
which can affect the wave propagation 2,8 15/15 15/15 15/15 15/15 13/15 0/15 0/15
during testing (Graham Brock Inc., 2009). 4,8 15/15 15/15 15/15 15/15 15/15 0/15 0/15
1,2,4 15/15 15/15 15/15 15/15 14/15 0/15 0/15
In the manual switching range test, the result 1,2,8 15/15 15/15 15/15 15/15 14/15 0/15 0/15
1,4,8 15/15 15/15 15/15 15/15 14/15 0/15 0/15
determined the capability of the system to 2,4,8 15/15 15/15 15/15 15/15 15/15 0/15 0/15
turn on and off different relay combinations 1,2,4,8 15/15 15/15 15/15 15/15 13/15 0/15 0/15
Average ratio
on each 15/15 15/15 15/15 15/15 14/15 0/15 0/15
distance
Table 2. Surrounding temperature measured
Automatic Program the
on each distance. microcontroller
Distance (meters) 1.) Choose the
Component mode of
5 15 25 35 45 55 65 OR
Encoder- switching
Transmitter’s
surrounding 26.0 27.4 27.0 27.0 28.8 26.0 29.0 Press the push
temperature Manual
button switches
(°C)
Receiver- 2.) DTMF
Decoder’s encoder produces 3.) DTMF Wireless
surrounding 28.5 29.5 28.0 27.0 28.2 28.0 25.1 analog signals of signals are
temperature
specific DTMF broadcasted
(°C)
tone depending using FM
on the input transmission. Wireless
keypad codes.
Figure C15. Wiring diagram of front view Figure C17. Receiver-decoder in operation.
and back view of receiver-decoder.
minutes. That switch should change its state
after 18 hours and 35 minutes because the
microcontroller can't handle values greater
than 18 hours and 35 minutes. For example,
a user turned on a switch. He/she should set
the time for a switch to turn off after 18
hours and 35 minutes because the program
won't run properly once the values exceed
18 hours and 35 minutes.
// seconds it will take 1 cycle of the switch // AUTOMATED: desired time of off state.
scanning to complete. Longer period creates (in seconds). PERMALATCH: if permalatch
a higher change of success switching while function is enabled, this will indicate the
it increases time delays. Shorter periods will time of the switch to stay in on state before it
likely decrease unsuccessful switching. permanently switches off, and in order for
this to function, the variable 'input' value
float mechperiod = period * 1000; must be 0.
int selector = 0;
n=0; if(gg==1){
t=0;
i=0; n = delaytime+100;
m=0; }
}
timecheck = time=time+period; else if (replaycheck==1){
digitalWrite(autorunled,HIGH); if(x>0 && offdelay==1){
x=x-period;
// SWITCH 8 if(x==0){
gg=1;
if(replaycheck==0){ digitalWrite(9, HIGH);
if(x>0){ delay(delaytime);
gg=0; Serial.println("LED 9 ON");
x=x-period; digitalWrite(9,LOW);
} delay(100);
if(uno==1){
if(x==0){ uno=0;
gg=1; Serial.println("8 OFF");
if(replaycheck!=1){ }
else{
digitalWrite(9, HIGH); uno=1;
delay(delaytime); Serial.println("8 ON");
}
}
if(gg==1){ if(ee==1){
n=delaytime+100;
} t = delaytime+100;
} }
} }
} else if (replaycheck2==1){
if(z>0 && offdelay2==1){
z=z-period;
if(z==0){
ee=1;
// SWITCH 4 digitalWrite(10, HIGH);
delay(delaytime);
if(replaycheck2==0){ Serial.println("LED 10 ON");
digitalWrite(10,LOW);
if(z>0){ delay(100);
ee=0; if(dos==1){
z=z-period; dos=0;
} Serial.println("4 OFF");
}
if(z==0){ else{
ee=1; dos=1;
if(replaycheck2!=1){ Serial.println("4 ON");
digitalWrite(10, HIGH);
delay(delaytime); }
Serial.println("LED 10 ON"); if(ee==1){
digitalWrite(10,LOW); t=delaytime+100;
delay(100); }
} }
if(selector2==1){ }
replaycheck2=1; }
}
// SWITCH 2
z=r;
dos = 1; if(replaycheck4==0){
Serial.println("4 ON"); if(b>0){
uu++; vv=0;
if (uu>1){ b=b-period;
z=input2; }
uu=0;
dos = 0; if(b==0){
Serial.println("4 OFF. FINAL vv=1;
DATA OUTPUT. IGNORE FORMER if(replaycheck4!=1){
OUTPUT");
} digitalWrite(11, HIGH);
delay(delaytime); i=delaytime+100;
Serial.println("LED 11 ON"); }
digitalWrite(11,LOW); }
delay(100); }
} }
if(selector4==1){
replaycheck4=1; // SWITCH 1
}
if(replaycheck8==0){
b=k;
hh++; if(o>0){
quatro = 1; oo=0;
Serial.println("2 ON"); o=o-period;
if (hh>1){ }
b=input4; if(o==0){
hh=0; oo=1;
quatro = 0; if(replaycheck8!=1){
Serial.println("2 OFF. FINAL digitalWrite(12, HIGH);
DATA OUTPUT. IGNORE FORMER delay(delaytime);
OUTPUT"); Serial.println("LED 12 ON");
} digitalWrite(12,LOW);
delay(100);
} }
if(vv==1){ if(selector8==1){
i = delaytime+100; replaycheck8=1;
} }
} o=p;
else if (replaycheck4==1){ zz++;
if(b>0 && offdelay4==1){ otso = 1;
b=b-period; Serial.println("1 ON");
if(b==0){ if (zz>1){
vv=1; o=input8;
digitalWrite(11, HIGH); zz=0;
delay(delaytime); otso = 0;
Serial.println("LED 11 ON"); Serial.println("1 OFF. FINAL
digitalWrite(11,LOW); DATA OUTPUT. IGNORE FORMER
delay(100); OUTPUT");
if(quatro==1){ }
quatro=0;
Serial.println("2 OFF"); }
} if(oo==1){
else{
quatro=1; m = delaytime+100;
Serial.println("2 ON"); }
} }
if(vv==1){ else if (replaycheck8==1){
if(o>0 && offdelay8==1){ if(uno==0){
o=o-period; digitalWrite(2, LOW);
if(o==0){ }
oo=1; else{
digitalWrite(12, HIGH); digitalWrite(2, HIGH);
delay(delaytime); }
Serial.println("LED 12 ON");
digitalWrite(12,LOW); // PRELIMINARY
delay(100);
if(otso==1){ delaytotal = n+t+i+m;
otso=0; delay(mechperiod+delayman-
Serial.println("1 OFF"); delaytotal);
} time=timecheck;
else{ Serial.print("seconds have passed
otso=1; since start: ");
Serial.println("1 ON"); Serial.println(timecheck);
}
if(oo==1){ Serial.print("value of switch 1: ");
m=delaytime+100; Serial.println(x);
}
} Serial.print("value of switch 2: ");
} Serial.println(z);
}
Serial.print("value of switch 4: ");
Serial.println(b);
if(otso==0){
digitalWrite(5, LOW); Serial.print("value of switch 8: ");
} Serial.println(o);
else{
digitalWrite(5, HIGH); Serial.println("CYCLE
} COMPLETE");
if(quatro==0){ if(digitalRead(restart) == 1 ||
digitalWrite(4, LOW); digitalRead(programpin) == 1){
} if(uno==1){
else{
digitalWrite(4, HIGH); digitalWrite(12, HIGH);
} delay(delaytime);
Serial.println("LED 12 ON");
if(dos==0){ digitalWrite(12,LOW);
digitalWrite(3, LOW); delay(100);
} uno=0;
else{ Serial.println("SHUTDOWN: 8
digitalWrite(3, HIGH); OFF");
}
}
timecheck = 0;
if(dos==1){ time = 0;
digitalWrite(11, HIGH);
delay(delaytime); qq = 0;
Serial.println("LED 11 ON");
digitalWrite(11,LOW); uu = 0;
delay(100);
dos=0; hh = 0;
Serial.println("SHUTDOWN: 4
OFF"); zz = 0;
} digitalWrite(ledoutpin,HIGH);
digitalWrite(autorunled,LOW);
if(quatro==1){
digitalWrite(10, HIGH); delay(400);
delay(delaytime); }
Serial.println("LED 10 ON");
digitalWrite(10,LOW); if(digitalRead(programpin)==HIGH){
delay(100); if(uno==1){
quatro=0;
Serial.println("SHUTDOWN: 2 digitalWrite(12, HIGH);
OFF"); delay(delaytime);
} Serial.println("LED 12 ON");
digitalWrite(12,LOW);
if(otso==1){ delay(100);
digitalWrite(9, HIGH); uno=0;
delay(delaytime); Serial.println("SHUTDOWN: 8
Serial.println("LED 9 ON"); OFF");
digitalWrite(9,LOW); }
delay(100);
otso=0; if(dos==1){
Serial.println("SHUTDOWN: 1 digitalWrite(11, HIGH);
OFF"); delay(delaytime);
Serial.println("LED 11 ON");
} digitalWrite(11,LOW);
delay(100);
x=input; dos=0;
z=input2; Serial.println("SHUTDOWN: 4
b=input4; OFF");
o=input8; }
y=off; if(quatro==1){
r=off2; digitalWrite(10, HIGH);
k=off4; delay(delaytime);
p=off8; Serial.println("LED 10 ON");
digitalWrite(10,LOW);
delay(100); else{
quatro=0; digitalWrite(4, HIGH);
Serial.println("SHUTDOWN: 2 }
OFF");
}
if(otso==1){ if(dos==0){
digitalWrite(9, HIGH); digitalWrite(3, LOW);
delay(delaytime); }
Serial.println("LED 9 ON"); else{
digitalWrite(9,LOW); digitalWrite(3, HIGH);
delay(100); }
otso=0;
Serial.println("SHUTDOWN: 1
OFF"); if(uno==0){
} digitalWrite(2, LOW);
x=input; }
z=input2; else{
b=input4; digitalWrite(2, HIGH);
o=input8; }
while(tau>0){
y=off; tau=tau+1;
r=off2; digitalWrite(ledoutpin,HIGH);
k=off4; delay(60);
p=off8; digitalWrite(ledoutpin,LOW);
timecheck = 0; delay(60);
time = 0; Serial.println("STOP LOOP FOR
PROGRAMMING. Restart if needed.");
qq = 0; digitalWrite(autorunled,LOW);
if(digitalRead(restart) == 1){
uu = 0;
break;
hh = 0; digitalWrite(ledoutpin,HIGH);
digitalWrite(autorunled,LOW);
zz = 0;
if(otso==0){ }
digitalWrite(5, LOW); }
} }
else{ }
digitalWrite(5, HIGH);
}
if(quatro==0){
digitalWrite(4, LOW);
}
Appendix D ¼ Watt 8.2K 0.30 1.20
BUDGET FOR WIRELESS 4
Ohms resistor PHP PHP
PROGRAMMABLE RELAY SWITCHES
(WPRS) ½ Watt 1M 1.00 1.00
1
Ohms resistor PHP PHP
Table D1. Proposed Expenses in Wireless
Programmable Relay Switches 1 inch nuts 1.00 4.00
4
and bolts PHP PHP
Quantit Total
Component Price
y Cost 1 micro
Farads 16V 1.00 1.00
0.1 micro 1
rated PHP PHP
Farads 1.00 5.00 capacitors
5
ceramic PHP PHP
capacitor 1 nano Farads
0.30 0.60
ceramic 2
¼ Watt 100 0.30 0.30 PHP PHP
1 capacitors
Ohms resistor PHP PHP
1.5
¼ Watt 100K millimeters 5.00 60.00
0.30 1.20 12
Ohms 4 solid core PHP PHP
PHP PHP
resistors wire
¼ Watt 10K 1/8 inch nuts 1.00 18.00
0.30 5.40 18
Ohms 18 and bolts PHP PHP
PHP PHP
resistors
10 micro
¼ Watt 150 0.30 1.80 Farads 50V 3.00 3.00
6 1
Ohms resistor PHP PHP rated PHP PHP
¼ Watt 1K 0.30 0.30 capacitor
1
Ohms resistor PHP PHP 10 pico
0.30 0.30
¼ Watt 1M 0.30 0.30 Farads 1
1 PHP PHP
Ohms resistor PHP PHP capacitor
Pair of case-
mount
16.00 64.00
binding or 4
PHP PHP
connecting
posts
plastic
enclosure 280.00 280.00
1
Alexan HC- PHP PHP
823
red light
2.00 14.00
emitting 7
PHP PHP
diodes(LED)
single pole
double throw 8.00 16.00
2
toggle PHP PHP
switches
television
bunny ears 80.00 80.00
1
antenna plus PHP PHP
connector
200.00 200.00
W91212 1
PHP PHP